From 32dd8a662462992c8028bb217622095aa2676425 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 17 Nov 2026 03:57:31 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to 0b8cd30 --- librarian.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index f57ea63ec57f..adf56b055220 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.52.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: a74d0502444d12c07abc7ed95f90ebb52950e918 - sha256: 9e619a21b96e142c3d017d9a492463419464677d80026a6bea1809d8217d6ec3 + commit: 0b8cd308f11dda6e1adb1a6df69e82e3227dc361 + sha256: 27dce0c838cfe6790c049879a13271c92cc55d9497200b65ed94aa6c2b6c96eb showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd From c8d89d7911db7703b0a68ae7ef40eaf3835a55cc Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 17 Nov 2026 03:57:33 +0000 Subject: [PATCH 2/2] chore: generate libraries --- java-accessapproval/README.md | 8 +- java-accesscontextmanager/README.md | 8 +- java-admanager/README.md | 8 +- java-advisorynotifications/README.md | 8 +- java-agentidentity/README.md | 8 +- java-agentregistry/README.md | 8 +- java-aiplatform/README.md | 8 +- java-alloydb-connectors/README.md | 8 +- java-alloydb/README.md | 8 +- java-analytics-admin/README.md | 8 +- java-analytics-data/README.md | 8 +- java-analyticshub/README.md | 8 +- java-api-gateway/README.md | 8 +- java-apigee-connect/README.md | 8 +- java-apihub/README.md | 8 +- java-apikeys/README.md | 8 +- java-appengine-admin/README.md | 8 +- java-apphub/README.md | 8 +- .../cloud/apphub/v1/ApplicationProto.java | 23 +- .../com/google/cloud/apphub/v1/Scope.java | 23 + .../google/cloud/apphub/v1/application.proto | 3 + java-appoptimize/README.md | 8 +- java-apptopology/README.md | 8 +- java-artifact-registry/README.md | 8 +- java-asset/README.md | 8 +- java-assured-workloads/README.md | 8 +- java-auditmanager/README.md | 8 +- java-backstory/README.md | 8 +- java-backupdr/README.md | 8 +- java-bare-metal-solution/README.md | 8 +- java-batch/README.md | 8 +- java-beyondcorp-appconnections/README.md | 8 +- java-beyondcorp-appconnectors/README.md | 8 +- java-beyondcorp-appgateways/README.md | 8 +- .../README.md | 8 +- java-beyondcorp-clientgateways/README.md | 8 +- java-biglake-hive/README.md | 8 +- java-biglake/README.md | 8 +- java-bigquery-data-exchange/README.md | 8 +- java-bigqueryconnection/README.md | 8 +- java-bigquerydatapolicy/README.md | 8 +- java-bigquerydatatransfer/README.md | 8 +- java-bigquerymigration/README.md | 8 +- java-bigqueryreservation/README.md | 8 +- java-bigquerystorage/README.md | 8 +- java-bigtable/README.md | 8 +- java-billing/README.md | 8 +- java-billingbudgets/README.md | 8 +- java-binary-authorization/README.md | 8 +- java-capacityplanner/README.md | 8 +- java-certificate-manager/README.md | 8 +- java-ces/README.md | 8 +- java-channel/README.md | 8 +- java-chat/README.md | 8 +- .../com/google/chat/v1/ChatServiceClient.java | 156 + .../google/chat/v1/ChatServiceSettings.java | 12 + .../com/google/chat/v1/gapic_metadata.json | 3 + .../google/chat/v1/stub/ChatServiceStub.java | 6 + .../chat/v1/stub/ChatServiceStubSettings.java | 27 + .../chat/v1/stub/GrpcChatServiceStub.java | 38 + .../chat/v1/stub/HttpJsonChatServiceStub.java | 70 + .../com.google.chat.v1/reflect-config.json | 18 + .../v1/ChatServiceClientHttpJsonTest.java | 55 + .../google/chat/v1/ChatServiceClientTest.java | 43 + .../google/chat/v1/MockChatServiceImpl.java | 22 + .../com/google/chat/v1/ChatServiceGrpc.java | 198 +- .../com/google/chat/v1/ChatServiceProto.java | 276 +- .../google/chat/v1/ThreadReadStateProto.java | 47 +- .../chat/v1/UpdateThreadReadStateRequest.java | 1312 ++++++++ ...UpdateThreadReadStateRequestOrBuilder.java | 186 ++ .../proto/google/chat/v1/chat_service.proto | 19 + .../google/chat/v1/thread_read_state.proto | 37 + .../AsyncUpdateThreadReadState.java | 51 + .../SyncUpdateThreadReadState.java | 47 + ...readReadStateThreadreadstateFieldmask.java | 44 + java-chronicle/README.md | 8 +- java-cloudapiregistry/README.md | 8 +- java-cloudbuild/README.md | 8 +- .../README.md | 8 +- java-cloudcontrolspartner/README.md | 8 +- java-cloudquotas/README.md | 8 +- java-cloudsecuritycompliance/README.md | 8 +- java-cloudsupport/README.md | 8 +- java-commerceproducer/README.md | 8 +- java-compute/README.md | 8 +- java-confidentialcomputing/README.md | 8 +- java-configdelivery/README.md | 8 +- java-connectgateway/README.md | 8 +- java-contact-center-insights/README.md | 8 +- java-container/README.md | 8 +- java-containeranalysis/README.md | 8 +- java-contentwarehouse/README.md | 8 +- java-data-fusion/README.md | 8 +- java-databasecenter/README.md | 8 +- java-dataflow/README.md | 8 +- java-dataform/README.md | 8 +- .../cloud/dataform/v1/DataformClient.java | 191 ++ .../cloud/dataform/v1/DataformSettings.java | 23 + .../cloud/dataform/v1/gapic_metadata.json | 3 + .../cloud/dataform/v1/stub/DataformStub.java | 12 + .../v1/stub/DataformStubSettings.java | 73 + .../dataform/v1/stub/GrpcDataformStub.java | 49 + .../v1/stub/HttpJsonDataformStub.java | 84 + .../dataform/v1beta1/DataformClient.java | 191 ++ .../dataform/v1beta1/DataformSettings.java | 23 + .../dataform/v1beta1/gapic_metadata.json | 3 + .../dataform/v1beta1/stub/DataformStub.java | 12 + .../v1beta1/stub/DataformStubSettings.java | 73 + .../v1beta1/stub/GrpcDataformStub.java | 50 + .../v1beta1/stub/HttpJsonDataformStub.java | 85 + .../reflect-config.json | 27 + .../reflect-config.json | 27 + .../v1/DataformClientHttpJsonTest.java | 122 + .../cloud/dataform/v1/DataformClientTest.java | 120 + .../cloud/dataform/v1/MockDataformImpl.java | 22 + .../v1beta1/DataformClientHttpJsonTest.java | 130 + .../dataform/v1beta1/DataformClientTest.java | 128 + .../dataform/v1beta1/MockDataformImpl.java | 22 + .../cloud/dataform/v1/DataformGrpc.java | 218 +- .../cloud/dataform/v1beta1/DataformGrpc.java | 234 +- .../dataform/v1/CreateWorkspaceMetadata.java | 1622 +++++++++ .../v1/CreateWorkspaceMetadataOrBuilder.java | 155 + .../cloud/dataform/v1/DataformProto.java | 1351 ++++---- .../google/cloud/dataform/v1/Repository.java | 18 +- .../google/cloud/dataform/v1/dataform.proto | 54 + .../dataform/v1beta1/CreateFolderRequest.java | 14 +- .../v1beta1/CreateFolderRequestOrBuilder.java | 4 +- .../v1beta1/CreateTeamFolderRequest.java | 14 +- .../CreateTeamFolderRequestOrBuilder.java | 4 +- .../v1beta1/CreateWorkspaceMetadata.java | 1624 +++++++++ .../CreateWorkspaceMetadataOrBuilder.java | 156 + .../cloud/dataform/v1beta1/DataformProto.java | 1576 ++++----- .../cloud/dataform/v1beta1/Repository.java | 18 +- .../cloud/dataform/v1beta1/dataform.proto | 54 + .../AsyncCreateWorkspaceLongRunning.java | 53 + .../AsyncCreateWorkspaceLongRunningLRO.java | 53 + .../SyncCreateWorkspaceLongRunning.java | 48 + ...gRunningRepositorynameWorkspaceString.java | 46 + ...spaceLongRunningStringWorkspaceString.java | 45 + .../AsyncCreateWorkspaceLongRunning.java | 53 + .../AsyncCreateWorkspaceLongRunningLRO.java | 53 + .../SyncCreateWorkspaceLongRunning.java | 48 + ...gRunningRepositorynameWorkspaceString.java | 46 + ...spaceLongRunningStringWorkspaceString.java | 45 + java-datalineage/README.md | 8 +- java-datamanager/README.md | 8 +- java-dataplex/README.md | 8 +- java-dataproc-metastore/README.md | 8 +- java-dataproc/README.md | 8 +- java-datastore/README.md | 8 +- java-datastream/README.md | 8 +- java-deploy/README.md | 8 +- java-designcenter/README.md | 8 +- java-developerconnect/README.md | 8 +- java-developerknowledge/README.md | 8 +- java-devicestreaming/README.md | 8 +- java-dialogflow-cx/README.md | 8 +- java-dialogflow/README.md | 8 +- java-discoveryengine/README.md | 8 +- .../v1/ProjectServiceClient.java | 6 + .../v1beta/ProjectServiceClient.java | 6 + .../stub/HttpJsonProjectServiceStub.java | 1 + .../reflect-config.json | 9 + .../reflect-config.json | 9 + .../v1/ProjectServiceProto.java | 84 +- .../v1/ProvisionProjectRequest.java | 837 +++++ .../v1/ProvisionProjectRequestOrBuilder.java | 105 + .../discoveryengine/v1/project_service.proto | 37 + .../v1beta/ProjectServiceProto.java | 85 +- .../v1beta/ProvisionProjectRequest.java | 841 +++++ .../ProvisionProjectRequestOrBuilder.java | 106 + .../v1beta/project_service.proto | 41 + .../AsyncProvisionProject.java | 3 + .../AsyncProvisionProjectLRO.java | 3 + .../SyncProvisionProject.java | 3 + .../AsyncProvisionProject.java | 3 + .../AsyncProvisionProjectLRO.java | 3 + .../SyncProvisionProject.java | 3 + java-distributedcloudedge/README.md | 8 +- java-dlp/README.md | 8 +- java-dms/README.md | 8 +- java-document-ai/README.md | 8 +- java-domains/README.md | 8 +- java-edgenetwork/README.md | 8 +- java-enterpriseknowledgegraph/README.md | 8 +- java-errorreporting/README.md | 8 +- java-essential-contacts/README.md | 8 +- java-eventarc-publishing/README.md | 8 +- java-eventarc/README.md | 8 +- java-filestore/README.md | 8 +- java-financialservices/README.md | 8 +- java-firestore/README.md | 8 +- java-ftp/README.md | 8 +- java-functions/README.md | 8 +- java-gdchardwaremanagement/README.md | 8 +- java-geminidataanalytics/README.md | 8 +- java-gke-backup/README.md | 8 +- java-gke-connect-gateway/README.md | 8 +- java-gke-multi-cloud/README.md | 8 +- java-gkehub/README.md | 8 +- java-gkerecommender/README.md | 8 +- java-grafeas/README.md | 8 +- java-gsuite-addons/README.md | 8 +- java-health/README.md | 8 +- java-hypercomputecluster/README.md | 8 +- java-iam-admin/README.md | 8 +- java-iam-policy/README.md | 8 +- java-iamcredentials/README.md | 8 +- java-iap/README.md | 8 +- java-ids/README.md | 8 +- java-infra-manager/README.md | 8 +- java-iot/README.md | 8 +- java-kms/README.md | 8 +- java-kmsinventory/README.md | 8 +- java-language/README.md | 8 +- java-licensemanager/README.md | 8 +- java-life-sciences/README.md | 8 +- java-locationfinder/README.md | 8 +- java-logging/README.md | 8 +- java-lustre/README.md | 8 +- java-maintenance/README.md | 8 +- java-managed-identities/README.md | 8 +- java-managedkafka/README.md | 8 +- java-maps-addressvalidation/README.md | 8 +- java-maps-area-insights/README.md | 8 +- java-maps-fleetengine-delivery/README.md | 8 +- java-maps-fleetengine/README.md | 8 +- java-maps-geocode/README.md | 8 +- java-maps-isochrones/README.md | 8 +- java-maps-mapmanagement/README.md | 8 +- java-maps-mapsplatformdatasets/README.md | 8 +- java-maps-navconnect/README.md | 8 +- java-maps-places/README.md | 8 +- java-maps-routeoptimization/README.md | 8 +- java-maps-routing/README.md | 8 +- java-maps-solar/README.md | 8 +- java-marketingplatformadminapi/README.md | 8 +- java-mediatranslation/README.md | 8 +- java-meet/README.md | 8 +- java-memcache/README.md | 8 +- java-migrationcenter/README.md | 8 +- java-modelarmor/README.md | 8 +- java-monitoring-dashboards/README.md | 8 +- java-monitoring-metricsscope/README.md | 8 +- java-monitoring/README.md | 8 +- java-netapp/README.md | 8 +- java-network-management/README.md | 8 +- java-network-security/README.md | 8 +- java-networkconnectivity/README.md | 8 +- java-networkservices/README.md | 8 +- java-notebooks/README.md | 8 +- java-observability/README.md | 8 +- java-optimization/README.md | 8 +- java-oracledatabase/README.md | 8 +- .../v1/OracleDatabaseClient.java | 153 + .../v1/OracleDatabaseSettings.java | 23 + .../oracledatabase/v1/gapic_metadata.json | 3 + .../v1/stub/GrpcOracleDatabaseStub.java | 46 + .../v1/stub/HttpJsonOracleDatabaseStub.java | 80 + .../v1/stub/OracleDatabaseStub.java | 10 + .../v1/stub/OracleDatabaseStubSettings.java | 69 + .../reflect-config.json | 18 + .../v1/MockOracleDatabaseImpl.java | 21 + .../v1/OracleDatabaseClientHttpJsonTest.java | 72 + .../v1/OracleDatabaseClientTest.java | 54 + .../oracledatabase/v1/OracleDatabaseGrpc.java | 237 +- .../oracledatabase/v1/OdbDnsZoneProto.java | 62 +- .../v1/UpdateOdbDnsZoneRequest.java | 1374 ++++++++ .../v1/UpdateOdbDnsZoneRequestOrBuilder.java | 182 + .../cloud/oracledatabase/v1/V1mainProto.java | 735 +++-- .../oracledatabase/v1/odb_dns_zone.proto | 33 + .../oracledatabase/v1/oracledatabase.proto | 14 + .../AsyncUpdateOdbDnsZone.java | 53 + .../AsyncUpdateOdbDnsZoneLRO.java | 53 + .../SyncUpdateOdbDnsZone.java | 48 + ...ncUpdateOdbDnsZoneOdbdnszoneFieldmask.java | 44 + java-orchestration-airflow/README.md | 8 +- java-orgpolicy/README.md | 8 +- java-os-config/README.md | 8 +- java-os-login/README.md | 8 +- java-parallelstore/README.md | 8 +- java-parametermanager/README.md | 8 +- java-phishingprotection/README.md | 8 +- java-policy-troubleshooter/README.md | 8 +- java-policysimulator/README.md | 8 +- java-private-catalog/README.md | 8 +- java-privilegedaccessmanager/README.md | 8 +- java-productregistry/README.md | 8 +- java-profiler/README.md | 8 +- java-publicca/README.md | 8 +- java-pubsub/README.md | 8 +- java-rapidmigrationassessment/README.md | 8 +- java-recaptchaenterprise/README.md | 8 +- java-recommendations-ai/README.md | 8 +- java-recommender/README.md | 8 +- java-redis-cluster/README.md | 8 +- java-redis/README.md | 8 +- java-resourcemanager/README.md | 8 +- java-retail/README.md | 8 +- java-run/README.md | 8 +- java-saasservicemgmt/README.md | 8 +- java-scheduler/README.md | 8 +- java-secretmanager/README.md | 8 +- .../v1/SecretOperationsServiceClient.java | 1625 +++++++++ .../v1/SecretOperationsServiceSettings.java | 358 ++ .../secretmanager/v1/gapic_metadata.json | 27 + .../cloud/secretmanager/v1/package-info.java | 28 + ...ecretOperationsServiceCallableFactory.java | 115 + .../stub/GrpcSecretOperationsServiceStub.java | 400 +++ ...ecretOperationsServiceCallableFactory.java | 103 + .../HttpJsonSecretOperationsServiceStub.java | 631 ++++ .../v1/stub/SecretOperationsServiceStub.java | 110 + .../SecretOperationsServiceStubSettings.java | 745 +++++ .../reflect-config.json | 342 ++ .../v1/MockSecretOperationsService.java | 59 + .../v1/MockSecretOperationsServiceImpl.java | 186 ++ ...etOperationsServiceClientHttpJsonTest.java | 973 ++++++ .../v1/SecretOperationsServiceClientTest.java | 922 ++++++ .../v1/SecretOperationsServiceGrpc.java | 1110 +++++++ .../google/cloud/secretmanager/v1/Backup.java | 2828 ++++++++++++++++ .../cloud/secretmanager/v1/BackupName.java | 226 ++ .../secretmanager/v1/BackupOrBuilder.java | 364 ++ .../secretmanager/v1/CreateBackupRequest.java | 1150 +++++++ .../v1/CreateBackupRequestOrBuilder.java | 136 + .../cloud/secretmanager/v1/CryptoKeyName.java | 264 ++ .../secretmanager/v1/DeleteBackupRequest.java | 823 +++++ .../v1/DeleteBackupRequestOrBuilder.java | 90 + .../secretmanager/v1/GetBackupRequest.java | 626 ++++ .../v1/GetBackupRequestOrBuilder.java | 62 + .../secretmanager/v1/ListBackupsRequest.java | 1305 ++++++++ .../v1/ListBackupsRequestOrBuilder.java | 157 + .../secretmanager/v1/ListBackupsResponse.java | 1440 ++++++++ .../v1/ListBackupsResponseOrBuilder.java | 173 + .../secretmanager/v1/OperationMetadata.java | 2940 +++++++++++++++++ .../v1/OperationMetadataOrBuilder.java | 276 ++ .../v1/OperationsServiceProto.java | 363 ++ .../secretmanager/v1/ResourcesProto.java | 97 +- .../v1/RestoreBackupRequest.java | 1299 ++++++++ .../v1/RestoreBackupRequestOrBuilder.java | 170 + .../google/cloud/secretmanager/v1/Secret.java | 342 +- .../secretmanager/v1/SecretOrBuilder.java | 30 + .../secretmanager/v1/UpdateBackupRequest.java | 1085 ++++++ .../v1/UpdateBackupRequestOrBuilder.java | 129 + .../secretmanager/v1/operations_service.proto | 416 +++ .../cloud/secretmanager/v1/resources.proto | 16 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../createbackup/AsyncCreateBackup.java | 54 + .../createbackup/AsyncCreateBackupLRO.java | 54 + .../createbackup/SyncCreateBackup.java | 49 + ...cCreateBackupLocationnameBackupString.java | 46 + .../SyncCreateBackupStringBackupString.java | 46 + .../deletebackup/AsyncDeleteBackup.java | 52 + .../deletebackup/AsyncDeleteBackupLRO.java | 53 + .../deletebackup/SyncDeleteBackup.java | 48 + .../SyncDeleteBackupBackupname.java | 43 + .../deletebackup/SyncDeleteBackupString.java | 43 + .../getbackup/AsyncGetBackup.java | 51 + .../getbackup/SyncGetBackup.java | 47 + .../getbackup/SyncGetBackupBackupname.java | 43 + .../getbackup/SyncGetBackupString.java | 43 + .../listbackups/AsyncListBackups.java | 57 + .../listbackups/AsyncListBackupsPaged.java | 65 + .../listbackups/SyncListBackups.java | 53 + .../SyncListBackupsLocationname.java | 45 + .../listbackups/SyncListBackupsString.java | 45 + .../restorebackup/AsyncRestoreBackup.java | 58 + .../restorebackup/AsyncRestoreBackupLRO.java | 59 + .../restorebackup/SyncRestoreBackup.java | 54 + ...oreBackupBackupnameLocationnameString.java | 49 + ...toreBackupBackupnameProjectnameString.java | 49 + ...ncRestoreBackupBackupnameStringString.java | 49 + ...RestoreBackupStringLocationnameString.java | 49 + ...cRestoreBackupStringProjectnameString.java | 49 + .../SyncRestoreBackupStringStringString.java | 49 + .../updatebackup/AsyncUpdateBackup.java | 53 + .../updatebackup/AsyncUpdateBackupLRO.java | 53 + .../updatebackup/SyncUpdateBackup.java | 48 + .../SyncUpdateBackupBackupFieldmask.java | 44 + .../createbackup/SyncCreateBackup.java | 54 + .../getbackup/SyncGetBackup.java | 57 + .../createbackup/SyncCreateBackup.java | 54 + .../getbackup/SyncGetBackup.java | 57 + java-securesourcemanager/README.md | 8 +- java-security-private-ca/README.md | 8 +- java-securitycenter-settings/README.md | 8 +- java-securitycenter/README.md | 8 +- java-securitycentermanagement/README.md | 8 +- java-securityposture/README.md | 8 +- java-service-control/README.md | 8 +- java-service-management/README.md | 8 +- java-service-usage/README.md | 8 +- java-servicedirectory/README.md | 8 +- java-servicehealth/README.md | 8 +- java-shell/README.md | 8 +- java-shopping-css/README.md | 8 +- java-shopping-merchant-accounts/README.md | 8 +- java-shopping-merchant-conversions/README.md | 8 +- java-shopping-merchant-datasources/README.md | 8 +- java-shopping-merchant-inventories/README.md | 8 +- .../README.md | 8 +- java-shopping-merchant-lfp/README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- .../README.md | 8 +- java-shopping-merchant-products/README.md | 8 +- java-shopping-merchant-promotions/README.md | 8 +- java-shopping-merchant-quota/README.md | 8 +- java-shopping-merchant-reports/README.md | 8 +- java-shopping-merchant-reviews/README.md | 8 +- java-spanner/README.md | 8 +- .../connection/ConnectionOptionsTest.java | 14 +- .../GrpcInterceptorProviderTest.java | 3 +- java-spanneradapter/README.md | 8 +- java-speech/README.md | 8 +- java-storage-transfer/README.md | 8 +- java-storage/README.md | 10 +- java-storagebatchoperations/README.md | 8 +- java-storageinsights/README.md | 8 +- java-talent/README.md | 8 +- java-tasks/README.md | 8 +- java-telcoautomation/README.md | 8 +- java-texttospeech/README.md | 8 +- java-tpu/README.md | 8 +- java-trace/README.md | 8 +- java-translate/README.md | 8 +- java-valkey/README.md | 8 +- java-vectorsearch/README.md | 8 +- java-video-intelligence/README.md | 8 +- java-video-live-stream/README.md | 8 +- java-video-stitcher/README.md | 8 +- java-video-transcoder/README.md | 8 +- java-vision/README.md | 8 +- java-visionai/README.md | 8 +- java-vmmigration/README.md | 8 +- java-vmwareengine/README.md | 8 +- java-vpcaccess/README.md | 8 +- java-webrisk/README.md | 8 +- java-websecurityscanner/README.md | 8 +- java-workflow-executions/README.md | 8 +- java-workflows/README.md | 8 +- java-workloadidentity/README.md | 8 +- java-workloadmanager/README.md | 8 +- java-workspaceevents/README.md | 8 +- java-workstations/README.md | 8 +- 447 files changed, 42581 insertions(+), 3298 deletions(-) create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java create mode 100644 java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java create mode 100644 java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZone.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java create mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java create mode 100644 java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java create mode 100644 java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java create mode 100644 java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java create mode 100644 java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index 6b963e60ae1f..af62c4be7737 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-accessapproval' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.103.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-accessapproval.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index eb5b11fcaa42..fa778f5fb073 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.103.0 + 1.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-identity-accesscontextmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.103.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-identity-accesscontextmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/README.md b/java-admanager/README.md index beeb0a931990..e506d16b3897 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.61.0' +implementation 'com.google.api-ads:ad-manager:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.61.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.62.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/ad-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index ed395eb6e320..4d79068949ee 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-advisorynotifications' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.91.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-agentidentity/README.md b/java-agentidentity/README.md index 12057602bcda..4cded7678d53 100644 --- a/java-agentidentity/README.md +++ b/java-agentidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentidentity - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentidentity:0.8.0' +implementation 'com.google.cloud:google-cloud-agentidentity:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentidentity/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-agentregistry/README.md b/java-agentregistry/README.md index b79f5dd6baec..53831757a9d1 100644 --- a/java-agentregistry/README.md +++ b/java-agentregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentregistry - 0.9.0 + 0.10.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentregistry:0.9.0' +implementation 'com.google.cloud:google-cloud-agentregistry:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.10.0" ``` ## Authentication @@ -188,7 +188,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.10.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index a893f2756832..60157c5ee6cc 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.103.0 + 3.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.103.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index ae5c4460cdfd..fd70bc21206e 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.80.0 + 0.81.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb-connectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.80.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.81.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.80.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.81.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb-connectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.80.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.81.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-alloydb/README.md b/java-alloydb/README.md index 21d12dd0399e..782231dc7269 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.91.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-alloydb.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index f17ca602cf2c..ca16a8ede4b8 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.112.0 + 0.113.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.112.0' +implementation 'com.google.analytics:google-analytics-admin:0.113.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.112.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.113.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.112.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.113.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index 6a33e1be547f..c9d522897b47 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.113.0 + 0.114.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-data' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.113.0' +implementation 'com.google.analytics:google-analytics-data:0.114.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.113.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.114.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.analytics/google-analytics-data.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.113.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.114.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index f86d1d46d267..4c5469ced856 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-analyticshub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.99.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index 3b8e384775fc..5a58332abfdc 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-api-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.102.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-api-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 9e8ce1af783d..6bf25a17426a 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apigee-connect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.102.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apigee-connect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apihub/README.md b/java-apihub/README.md index 896567b3892b..f780b464b79c 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.55.0 + 0.56.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apihub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.55.0' +implementation 'com.google.cloud:google-cloud-apihub:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.56.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.56.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apikeys/README.md b/java-apikeys/README.md index 8fd7c8ed44d5..0d43689791f0 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.100.0 + 0.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apikeys' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.100.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apikeys.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 50d1be2aaa4c..d932bba9d1a5 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-appengine-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.102.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appengine-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/README.md b/java-apphub/README.md index 1e1f1dc59a9d..6b8572b2fea6 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apphub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.66.0' +implementation 'com.google.cloud:google-cloud-apphub:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apphub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java index eabfd3e78d98..5a23a438f561 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/ApplicationProto.java @@ -108,24 +108,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004type\030\001 \001(\0162,.google.cloud.apphub.v1.ApplicationType.Type\"0\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\022\n" - + "\016AI_APPLICATION\020\001\"w\n" + + "\016AI_APPLICATION\020\001\"\213\001\n" + "\005Scope\0226\n" - + "\004type\030\001 \001(\0162\".google.cloud.apphub.v1.Scope.TypeB\004\342A\001\002\"6\n" + + "\004type\030\001 \001(\0162\".google.cloud.apphub.v1.Scope.TypeB\004\342A\001\002\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\014\n" + "\010REGIONAL\020\001\022\n\n" - + "\006GLOBAL\020\002\"\340\001\n" + + "\006GLOBAL\020\002\022\022\n" + + "\016MULTI_REGIONAL\020\003\"\340\001\n" + "\025ApplicationProperties\022d\n" - + "\021extended_metadata\030\001 \003(\0132C.google.clo" - + "ud.apphub.v1.ApplicationProperties.ExtendedMetadataEntryB\004\342A\001\003\032a\n" + + "\021extended_metadata\030\001 \003(\0132C.google.cloud.apphub.v1.Applic" + + "ationProperties.ExtendedMetadataEntryB\004\342A\001\003\032a\n" + "\025ExtendedMetadataEntry\022\013\n" + "\003key\030\001 \001(\t\0227\n" - + "\005value\030\002 \001(\0132(.go" - + "ogle.cloud.apphub.v1.ExtendedMetadata:\0028\001B\262\001\n" - + "\032com.google.cloud.apphub.v1B\020ApplicationProtoP\001Z2cloud.google.com/go/apphub" - + "/apiv1/apphubpb;apphubpb\252\002\026Google.Cloud." - + "AppHub.V1\312\002\026Google\\Cloud\\AppHub\\V1\352\002\031Goo" - + "gle::Cloud::AppHub::V1b\006proto3" + + "\005value\030\002" + + " \001(\0132(.google.cloud.apphub.v1.ExtendedMetadata:\0028\001B\262\001\n" + + "\032com.google.cloud.apphub.v1B\020ApplicationProtoP\001Z2cloud" + + ".google.com/go/apphub/apiv1/apphubpb;app" + + "hubpb\252\002\026Google.Cloud.AppHub.V1\312\002\026Google\\" + + "Cloud\\AppHub\\V1\352\002\031Google::Cloud::AppHub::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java index f5be0234abf4..c44682b3a5b8 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/java/com/google/cloud/apphub/v1/Scope.java @@ -109,6 +109,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * GLOBAL = 2; */ GLOBAL(2), + /** + * + * + *
+     * Multi-regional type.
+     * 
+ * + * MULTI_REGIONAL = 3; + */ + MULTI_REGIONAL(3), UNRECOGNIZED(-1), ; @@ -155,6 +165,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GLOBAL_VALUE = 2; + /** + * + * + *
+     * Multi-regional type.
+     * 
+ * + * MULTI_REGIONAL = 3; + */ + public static final int MULTI_REGIONAL_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -185,6 +206,8 @@ public static Type forNumber(int value) { return REGIONAL; case 2: return GLOBAL; + case 3: + return MULTI_REGIONAL; default: return null; } diff --git a/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto b/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto index d10162478bf3..cd8d02cd260c 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto +++ b/java-apphub/proto-google-cloud-apphub-v1/src/main/proto/google/cloud/apphub/v1/application.proto @@ -135,6 +135,9 @@ message Scope { // Global type. GLOBAL = 2; + + // Multi-regional type. + MULTI_REGIONAL = 3; } // Required. Scope Type. diff --git a/java-appoptimize/README.md b/java-appoptimize/README.md index 43e5fcaeff53..bf3b81695ddf 100644 --- a/java-appoptimize/README.md +++ b/java-appoptimize/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appoptimize - 0.12.0 + 0.13.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-appoptimize' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appoptimize:0.12.0' +implementation 'com.google.cloud:google-cloud-appoptimize:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.13.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-appoptimize.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-apptopology/README.md b/java-apptopology/README.md index f5ec8c0e57bf..74be95041a4f 100644 --- a/java-apptopology/README.md +++ b/java-apptopology/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apptopology - 0.6.0 + 0.7.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apptopology' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apptopology:0.6.0' +implementation 'com.google.cloud:google-cloud-apptopology:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.7.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apptopology/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-apptopology.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index a953e921a68d..590d8b463f97 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-artifact-registry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.101.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-artifact-registry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-asset/README.md b/java-asset/README.md index da8fdce880f0..b4f5cfbb754f 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.106.0 + 3.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-asset' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.106.0' +implementation 'com.google.cloud:google-cloud-asset:3.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-asset.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.107.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index d9c1452692b5..23218d0dee69 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-assured-workloads' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.102.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-assured-workloads.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index bb5f219a7499..777dac78d239 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.20.0 + 0.21.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-auditmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.20.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.21.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.21.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backstory/README.md b/java-backstory/README.md index abe966124f77..f5641c5ccc53 100644 --- a/java-backstory/README.md +++ b/java-backstory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backstory - 0.10.0 + 0.11.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-backstory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backstory:0.10.0' +implementation 'com.google.cloud:google-cloud-backstory:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.11.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backstory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 127e479249c5..0cb08f372b1d 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.61.0 + 0.62.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-backupdr' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.61.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.61.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.62.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index c81b183603bf..e8f79d28a97d 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bare-metal-solution' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.102.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bare-metal-solution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-batch/README.md b/java-batch/README.md index 9da38d014b7c..d438105084e6 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-batch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.102.0' +implementation 'com.google.cloud:google-cloud-batch:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-batch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 3a2d8460d353..cd7fefc7f027 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnections.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index c2d5d6e0adbe..9ff86e08501d 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appconnectors.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index cb74ab1ddbe2..4270f93544f5 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-appgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index fdb2ce8610a6..29e067a491b0 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 71565e64a971..d7e6f4aef718 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.100.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-beyondcorp-clientgateways.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake-hive/README.md b/java-biglake-hive/README.md index a48a1e4b8808..749a819d385b 100644 --- a/java-biglake-hive/README.md +++ b/java-biglake-hive/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake-hive - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake-hive' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake-hive:0.7.0' +implementation 'com.google.cloud:google-cloud-biglake-hive:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake-hive" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake-hive" % "0.8.0" ``` ## Authentication @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake-hive/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake-hive.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake-hive/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake-hive/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-biglake/README.md b/java-biglake/README.md index 0e2968535ef1..46c9f45c5125 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.90.0 + 0.91.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.90.0' +implementation 'com.google.cloud:google-cloud-biglake:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.91.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-biglake.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 19d974ec72da..946ed0849bbb 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.97.0 + 2.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquery-data-exchange' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.97.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquery-data-exchange.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 9eed3cf71c93..2b80f76fe4fe 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryconnection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.104.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryconnection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 4d7bf5296bcd..dfa890144b40 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.99.0 + 0.100.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatapolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.99.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.100.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatapolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index dacc1ca901f1..46a01a9df6c8 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatatransfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.102.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerydatatransfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index ef35c54723ba..b30934f67629 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerymigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.105.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerymigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index 31a8ddd41e6a..b4641b9ec0ab 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryreservation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.103.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigqueryreservation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigquerystorage/README.md b/java-bigquerystorage/README.md index 339527309e6a..b14498081754 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerystorage - 3.38.0 + 3.39.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerystorage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerystorage:3.38.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.39.0" ``` ## Authentication @@ -233,7 +233,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigquerystorage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-bigtable/README.md b/java-bigtable/README.md index 4b6f65415a67..1a75a453b9e9 100644 --- a/java-bigtable/README.md +++ b/java-bigtable/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigtable - 2.88.0 + 2.89.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigtable:2.88.0' +implementation 'com.google.cloud:google-cloud-bigtable:2.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.89.0" ``` ## Authentication @@ -450,7 +450,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-bigtable.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billing/README.md b/java-billing/README.md index 634bc8218816..e2cca9ea22dd 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.102.0' +implementation 'com.google.cloud:google-cloud-billing:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index b9d7700ec05e..0b5c66d08bdf 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billingbudgets' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.102.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-billingbudgets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index f7a1612ba081..88c60b07f1b0 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-binary-authorization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.101.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-binary-authorization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index 864dc607fc71..1bb64652aed8 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.25.0 + 0.26.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-capacityplanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.25.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.26.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.25.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.26.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.25.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.26.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index cb425e8ae755..51ca99ff326a 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-certificate-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.105.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-certificate-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ces/README.md b/java-ces/README.md index 4b3d94f6d86b..6f8910581d50 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.18.0 + 0.19.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ces' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.18.0' +implementation 'com.google.cloud:google-cloud-ces:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.19.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ces.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-channel/README.md b/java-channel/README.md index 6e01416f6526..f4a025c1595e 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-channel - 3.106.0 + 3.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-channel' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-channel:3.106.0' +implementation 'com.google.cloud:google-cloud-channel:3.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-channel" % "3.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-channel/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-channel.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-channel/3.107.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/README.md b/java-chat/README.md index 74a7e5c52bd3..06be053471b5 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chat - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chat' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chat:0.66.0' +implementation 'com.google.cloud:google-cloud-chat:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chat" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chat/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chat.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chat/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index d084e6b14677..04b2ff93139b 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -847,6 +847,26 @@ * * * + *

UpdateThreadReadState + *

Updates a user's read state within a thread, used to identify read and unread messages. For an example, see [Update a user's thread read state](https://developers.google.com/workspace/chat/update-thread-read-state). + *

Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with the [authorization scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

GetThreadReadState *

Returns details about a user's read state within a thread, used to identify read and unread messages. For an example, see [Get details about a user's thread read state](https://developers.google.com/workspace/chat/get-thread-read-state). *

Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): @@ -8130,6 +8150,142 @@ public final SpaceReadState updateSpaceReadState(UpdateSpaceReadStateRequest req return stub.updateSpaceReadStateCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a user's read state within a thread, used to identify read and unread messages. For an + * example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   ThreadReadState threadReadState = ThreadReadState.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ThreadReadState response =
+   *       chatServiceClient.updateThreadReadState(threadReadState, updateMask);
+   * }
+   * }
+ * + * @param threadReadState Required. The thread read state and fields to update. + *

Only supports updating read state for the calling user. + *

To refer to the calling user, set one of the following: + *

- The `me` alias. For example, + * `users/me/spaces/{space}/threads/{thread}/threadReadState`. + *

- Their Workspace email address. For example, + * `users/user{@literal @}example.com/spaces/{space}/threads/{thread}/threadReadState`. + *

- Their user id. For example, + * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + *

Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + * @param updateMask Required. The field paths to update. Currently supported field paths: + *

- `last_read_time` + *

When `last_read_time` is before the latest message create time, the thread appears as + * unread in the UI. + *

To mark the thread as read, set `last_read_time` to a timestamp equal to or later than + * the latest message create time. Future timestamps are coerced to the current request time. + * Setting a negative timestamp (before `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` + * error. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ThreadReadState updateThreadReadState( + ThreadReadState threadReadState, FieldMask updateMask) { + UpdateThreadReadStateRequest request = + UpdateThreadReadStateRequest.newBuilder() + .setThreadReadState(threadReadState) + .setUpdateMask(updateMask) + .build(); + return updateThreadReadState(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a user's read state within a thread, used to identify read and unread messages. For an + * example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   UpdateThreadReadStateRequest request =
+   *       UpdateThreadReadStateRequest.newBuilder()
+   *           .setThreadReadState(ThreadReadState.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ThreadReadState response = chatServiceClient.updateThreadReadState(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ThreadReadState updateThreadReadState(UpdateThreadReadStateRequest request) { + return updateThreadReadStateCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a user's read state within a thread, used to identify read and unread messages. For an + * example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * + *

Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

- `https://www.googleapis.com/auth/chat.users.readstate` + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
+   *   UpdateThreadReadStateRequest request =
+   *       UpdateThreadReadStateRequest.newBuilder()
+   *           .setThreadReadState(ThreadReadState.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       chatServiceClient.updateThreadReadStateCallable().futureCall(request);
+   *   // Do something.
+   *   ThreadReadState response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateThreadReadStateCallable() { + return stub.updateThreadReadStateCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns details about a user's read state within a thread, used to identify read and unread diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index 28538887cb99..06e9c9d53882 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -294,6 +294,12 @@ public UnaryCallSettings getSpaceReadS return ((ChatServiceStubSettings) getStubSettings()).updateSpaceReadStateSettings(); } + /** Returns the object with the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings + updateThreadReadStateSettings() { + return ((ChatServiceStubSettings) getStubSettings()).updateThreadReadStateSettings(); + } + /** Returns the object with the settings used for calls to getThreadReadState. */ public UnaryCallSettings getThreadReadStateSettings() { @@ -707,6 +713,12 @@ public UnaryCallSettings.Builder deleteCustomEm return getStubSettingsBuilder().updateSpaceReadStateSettings(); } + /** Returns the builder for the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings.Builder + updateThreadReadStateSettings() { + return getStubSettingsBuilder().updateThreadReadStateSettings(); + } + /** Returns the builder for the settings used for calls to getThreadReadState. */ public UnaryCallSettings.Builder getThreadReadStateSettings() { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json index fb29e81bc974..45ceacfda93a 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json @@ -166,6 +166,9 @@ "UpdateSpaceReadState": { "methods": ["updateSpaceReadState", "updateSpaceReadState", "updateSpaceReadStateCallable"] }, + "UpdateThreadReadState": { + "methods": ["updateThreadReadState", "updateThreadReadState", "updateThreadReadStateCallable"] + }, "UploadAttachment": { "methods": ["uploadAttachment", "uploadAttachmentCallable"] } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java index 9c00bb5e5ae9..d78fb9950fe2 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java @@ -112,6 +112,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.protobuf.Empty; @@ -313,6 +314,11 @@ public UnaryCallable updateSpaceRea throw new UnsupportedOperationException("Not implemented: updateSpaceReadStateCallable()"); } + public UnaryCallable + updateThreadReadStateCallable() { + throw new UnsupportedOperationException("Not implemented: updateThreadReadStateCallable()"); + } + public UnaryCallable getThreadReadStateCallable() { throw new UnsupportedOperationException("Not implemented: getThreadReadStateCallable()"); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index 835f991635a5..0d9883da329f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -139,6 +139,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.common.collect.ImmutableList; @@ -309,6 +310,8 @@ public class ChatServiceStubSettings extends StubSettings updateSpaceReadStateSettings; + private final UnaryCallSettings + updateThreadReadStateSettings; private final UnaryCallSettings getThreadReadStateSettings; private final UnaryCallSettings getAvailabilitySettings; @@ -1172,6 +1175,12 @@ public UnaryCallSettings getSpaceReadS return updateSpaceReadStateSettings; } + /** Returns the object with the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings + updateThreadReadStateSettings() { + return updateThreadReadStateSettings; + } + /** Returns the object with the settings used for calls to getThreadReadState. */ public UnaryCallSettings getThreadReadStateSettings() { @@ -1419,6 +1428,7 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { deleteCustomEmojiSettings = settingsBuilder.deleteCustomEmojiSettings().build(); getSpaceReadStateSettings = settingsBuilder.getSpaceReadStateSettings().build(); updateSpaceReadStateSettings = settingsBuilder.updateSpaceReadStateSettings().build(); + updateThreadReadStateSettings = settingsBuilder.updateThreadReadStateSettings().build(); getThreadReadStateSettings = settingsBuilder.getThreadReadStateSettings().build(); getAvailabilitySettings = settingsBuilder.getAvailabilitySettings().build(); markAsActiveSettings = settingsBuilder.markAsActiveSettings().build(); @@ -1519,6 +1529,8 @@ public static class Builder extends StubSettings.Builder updateSpaceReadStateSettings; + private final UnaryCallSettings.Builder + updateThreadReadStateSettings; private final UnaryCallSettings.Builder getThreadReadStateSettings; private final UnaryCallSettings.Builder @@ -1630,6 +1642,7 @@ protected Builder(@Nullable ClientContext clientContext) { deleteCustomEmojiSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSpaceReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateThreadReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getThreadReadStateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getAvailabilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); markAsActiveSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1686,6 +1699,7 @@ protected Builder(@Nullable ClientContext clientContext) { deleteCustomEmojiSettings, getSpaceReadStateSettings, updateSpaceReadStateSettings, + updateThreadReadStateSettings, getThreadReadStateSettings, getAvailabilitySettings, markAsActiveSettings, @@ -1745,6 +1759,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteCustomEmojiSettings = settings.deleteCustomEmojiSettings.toBuilder(); getSpaceReadStateSettings = settings.getSpaceReadStateSettings.toBuilder(); updateSpaceReadStateSettings = settings.updateSpaceReadStateSettings.toBuilder(); + updateThreadReadStateSettings = settings.updateThreadReadStateSettings.toBuilder(); getThreadReadStateSettings = settings.getThreadReadStateSettings.toBuilder(); getAvailabilitySettings = settings.getAvailabilitySettings.toBuilder(); markAsActiveSettings = settings.markAsActiveSettings.toBuilder(); @@ -1803,6 +1818,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteCustomEmojiSettings, getSpaceReadStateSettings, updateSpaceReadStateSettings, + updateThreadReadStateSettings, getThreadReadStateSettings, getAvailabilitySettings, markAsActiveSettings, @@ -2023,6 +2039,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .updateThreadReadStateSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getThreadReadStateSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2332,6 +2353,12 @@ public UnaryCallSettings.Builder deleteCustomEm return updateSpaceReadStateSettings; } + /** Returns the builder for the settings used for calls to updateThreadReadState. */ + public UnaryCallSettings.Builder + updateThreadReadStateSettings() { + return updateThreadReadStateSettings; + } + /** Returns the builder for the settings used for calls to getThreadReadState. */ public UnaryCallSettings.Builder getThreadReadStateSettings() { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java index 90ea925826bc..ff76d30b17be 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java @@ -117,6 +117,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.longrunning.stub.GrpcOperationsStub; @@ -515,6 +516,17 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateThreadReadStateMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/UpdateThreadReadState") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateThreadReadStateRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ThreadReadState.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getThreadReadStateMethodDescriptor = MethodDescriptor.newBuilder() @@ -778,6 +790,8 @@ public class GrpcChatServiceStub extends ChatServiceStub { private final UnaryCallable getSpaceReadStateCallable; private final UnaryCallable updateSpaceReadStateCallable; + private final UnaryCallable + updateThreadReadStateCallable; private final UnaryCallable getThreadReadStateCallable; private final UnaryCallable getAvailabilityCallable; @@ -1188,6 +1202,19 @@ protected GrpcChatServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + updateThreadReadStateTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateThreadReadStateMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "thread_read_state.name", + String.valueOf(request.getThreadReadState().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getThreadReadStateTransportSettings = GrpcCallSettings.newBuilder() @@ -1541,6 +1568,11 @@ protected GrpcChatServiceStub( updateSpaceReadStateTransportSettings, settings.updateSpaceReadStateSettings(), clientContext); + this.updateThreadReadStateCallable = + callableFactory.createUnaryCallable( + updateThreadReadStateTransportSettings, + settings.updateThreadReadStateSettings(), + clientContext); this.getThreadReadStateCallable = callableFactory.createUnaryCallable( getThreadReadStateTransportSettings, @@ -1854,6 +1886,12 @@ public UnaryCallable updateSpaceRea return updateSpaceReadStateCallable; } + @Override + public UnaryCallable + updateThreadReadStateCallable() { + return updateThreadReadStateCallable; + } + @Override public UnaryCallable getThreadReadStateCallable() { return getThreadReadStateCallable; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java index c529851b7130..1200b4ca0338 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java @@ -122,6 +122,7 @@ import com.google.chat.v1.UpdateSpaceNotificationSettingRequest; import com.google.chat.v1.UpdateSpaceReadStateRequest; import com.google.chat.v1.UpdateSpaceRequest; +import com.google.chat.v1.UpdateThreadReadStateRequest; import com.google.chat.v1.UploadAttachmentRequest; import com.google.chat.v1.UploadAttachmentResponse; import com.google.protobuf.Empty; @@ -1440,6 +1441,47 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + updateThreadReadStateMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/UpdateThreadReadState") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{threadReadState.name=users/*/spaces/*/threads/*/threadReadState}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "threadReadState.name", + request.getThreadReadState().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("threadReadState", request.getThreadReadState(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ThreadReadState.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getThreadReadStateMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2163,6 +2205,8 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { private final UnaryCallable getSpaceReadStateCallable; private final UnaryCallable updateSpaceReadStateCallable; + private final UnaryCallable + updateThreadReadStateCallable; private final UnaryCallable getThreadReadStateCallable; private final UnaryCallable getAvailabilityCallable; @@ -2611,6 +2655,20 @@ protected HttpJsonChatServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + updateThreadReadStateTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateThreadReadStateMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "thread_read_state.name", + String.valueOf(request.getThreadReadState().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getThreadReadStateTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2985,6 +3043,11 @@ protected HttpJsonChatServiceStub( updateSpaceReadStateTransportSettings, settings.updateSpaceReadStateSettings(), clientContext); + this.updateThreadReadStateCallable = + callableFactory.createUnaryCallable( + updateThreadReadStateTransportSettings, + settings.updateThreadReadStateSettings(), + clientContext); this.getThreadReadStateCallable = callableFactory.createUnaryCallable( getThreadReadStateTransportSettings, @@ -3103,6 +3166,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteCustomEmojiMethodDescriptor); methodDescriptors.add(getSpaceReadStateMethodDescriptor); methodDescriptors.add(updateSpaceReadStateMethodDescriptor); + methodDescriptors.add(updateThreadReadStateMethodDescriptor); methodDescriptors.add(getThreadReadStateMethodDescriptor); methodDescriptors.add(getAvailabilityMethodDescriptor); methodDescriptors.add(markAsActiveMethodDescriptor); @@ -3353,6 +3417,12 @@ public UnaryCallable updateSpaceRea return updateSpaceReadStateCallable; } + @Override + public UnaryCallable + updateThreadReadStateCallable() { + return updateThreadReadStateCallable; + } + @Override public UnaryCallable getThreadReadStateCallable() { return getThreadReadStateCallable; diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index 67ec7fa1b797..087c2ebff131 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -4580,6 +4580,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.UpdateThreadReadStateRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.UpdateThreadReadStateRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.UploadAttachmentRequest", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index ce6d11915a9e..1db137c575ee 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -3064,6 +3064,61 @@ public void updateSpaceReadStateExceptionTest() throws Exception { } } + @Test + public void updateThreadReadStateTest() throws Exception { + ThreadReadState expectedResponse = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ThreadReadState threadReadState = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ThreadReadState actualResponse = client.updateThreadReadState(threadReadState, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateThreadReadStateExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ThreadReadState threadReadState = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateThreadReadState(threadReadState, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getThreadReadStateTest() throws Exception { ThreadReadState expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index 9f8ed58440a2..ac256c19dc0c 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -2635,6 +2635,49 @@ public void updateSpaceReadStateExceptionTest() throws Exception { } } + @Test + public void updateThreadReadStateTest() throws Exception { + ThreadReadState expectedResponse = + ThreadReadState.newBuilder() + .setName(ThreadReadStateName.of("[USER]", "[SPACE]", "[THREAD]").toString()) + .setLastReadTime(Timestamp.newBuilder().build()) + .build(); + mockChatService.addResponse(expectedResponse); + + ThreadReadState threadReadState = ThreadReadState.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ThreadReadState actualResponse = client.updateThreadReadState(threadReadState, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateThreadReadStateRequest actualRequest = + ((UpdateThreadReadStateRequest) actualRequests.get(0)); + + Assert.assertEquals(threadReadState, actualRequest.getThreadReadState()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateThreadReadStateExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + ThreadReadState threadReadState = ThreadReadState.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateThreadReadState(threadReadState, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getThreadReadStateTest() throws Exception { ThreadReadState expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java index 8db15afc6ab6..b7c3d9ef94c9 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java @@ -789,6 +789,28 @@ public void updateSpaceReadState( } } + @Override + public void updateThreadReadState( + UpdateThreadReadStateRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ThreadReadState) { + requests.add(request); + responseObserver.onNext(((ThreadReadState) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateThreadReadState, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ThreadReadState.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getThreadReadState( GetThreadReadStateRequest request, StreamObserver responseObserver) { diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index da7dd3b664d6..db6ac5e6160a 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -1451,6 +1451,50 @@ private ChatServiceGrpc() {} return getUpdateSpaceReadStateMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateThreadReadStateRequest, com.google.chat.v1.ThreadReadState> + getUpdateThreadReadStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateThreadReadState", + requestType = com.google.chat.v1.UpdateThreadReadStateRequest.class, + responseType = com.google.chat.v1.ThreadReadState.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateThreadReadStateRequest, com.google.chat.v1.ThreadReadState> + getUpdateThreadReadStateMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.UpdateThreadReadStateRequest, com.google.chat.v1.ThreadReadState> + getUpdateThreadReadStateMethod; + if ((getUpdateThreadReadStateMethod = ChatServiceGrpc.getUpdateThreadReadStateMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getUpdateThreadReadStateMethod = ChatServiceGrpc.getUpdateThreadReadStateMethod) + == null) { + ChatServiceGrpc.getUpdateThreadReadStateMethod = + getUpdateThreadReadStateMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateThreadReadState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.UpdateThreadReadStateRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.ThreadReadState.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("UpdateThreadReadState")) + .build(); + } + } + } + return getUpdateThreadReadStateMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.chat.v1.GetThreadReadStateRequest, com.google.chat.v1.ThreadReadState> getGetThreadReadStateMethod; @@ -3409,6 +3453,27 @@ default void updateSpaceReadState( getUpdateSpaceReadStateMethod(), responseObserver); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + default void updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateThreadReadStateMethod(), responseObserver); + } + /** * * @@ -5105,6 +5170,29 @@ public void updateSpaceReadState( responseObserver); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + public void updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateThreadReadStateMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -6722,6 +6810,26 @@ public com.google.chat.v1.SpaceReadState updateSpaceReadState( getChannel(), getUpdateSpaceReadStateMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + public com.google.chat.v1.ThreadReadState updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateThreadReadStateMethod(), getCallOptions(), request); + } + /** * * @@ -8282,6 +8390,26 @@ public com.google.chat.v1.SpaceReadState updateSpaceReadState( getChannel(), getUpdateSpaceReadStateMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates a user's read state within a thread, used to identify read and
+     * unread messages. For an example, see [Update a user's thread read
+     * state](https://developers.google.com/workspace/chat/update-thread-read-state).
+     * Requires [user
+     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
+     * with the [authorization
+     * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
+     *   - `https://www.googleapis.com/auth/chat.users.readstate`
+     * 
+ */ + public com.google.chat.v1.ThreadReadState updateThreadReadState( + com.google.chat.v1.UpdateThreadReadStateRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateThreadReadStateMethod(), getCallOptions(), request); + } + /** * * @@ -9856,6 +9984,26 @@ public com.google.common.util.concurrent.ListenableFuture + * Updates a user's read state within a thread, used to identify read and + * unread messages. For an example, see [Update a user's thread read + * state](https://developers.google.com/workspace/chat/update-thread-read-state). + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with the [authorization + * scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * - `https://www.googleapis.com/auth/chat.users.readstate` + * + */ + public com.google.common.util.concurrent.ListenableFuture + updateThreadReadState(com.google.chat.v1.UpdateThreadReadStateRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateThreadReadStateMethod(), getCallOptions()), request); + } + /** * * @@ -10341,24 +10489,25 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10563,6 +10712,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.UpdateSpaceReadStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_THREAD_READ_STATE: + serviceImpl.updateThreadReadState( + (com.google.chat.v1.UpdateThreadReadStateRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_THREAD_READ_STATE: serviceImpl.getThreadReadState( (com.google.chat.v1.GetThreadReadStateRequest) request, @@ -10890,6 +11044,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.UpdateSpaceReadStateRequest, com.google.chat.v1.SpaceReadState>(service, METHODID_UPDATE_SPACE_READ_STATE))) + .addMethod( + getUpdateThreadReadStateMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.UpdateThreadReadStateRequest, + com.google.chat.v1.ThreadReadState>( + service, METHODID_UPDATE_THREAD_READ_STATE))) .addMethod( getGetThreadReadStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11091,6 +11252,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteCustomEmojiMethod()) .addMethod(getGetSpaceReadStateMethod()) .addMethod(getUpdateSpaceReadStateMethod()) + .addMethod(getUpdateThreadReadStateMethod()) .addMethod(getGetThreadReadStateMethod()) .addMethod(getGetAvailabilityMethod()) .addMethod(getMarkAsActiveMethod()) diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index abc160526a5e..f466f7111085 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032%google/chat/v1/space_read_state.pro" + "to\032 google/chat/v1/space_setup.proto\032&go" + "ogle/chat/v1/thread_read_state.proto\032\033go" - + "ogle/protobuf/empty.proto2\204P\n\013ChatServic" + + "ogle/protobuf/empty.proto2\362Q\n\013ChatServic" + "e\022\233\001\n\rCreateMessage\022$.google.chat.v1.Cre" + "ateMessageRequest\032\027.google.chat.v1.Messa" + "ge\"K\332A\031parent,message,message_id\202\323\344\223\002)\"\036" @@ -188,142 +188,148 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "v1.SpaceReadState\"t\332A\034space_read_state,u" + "pdate_mask\202\323\344\223\002O2;/v1/{space_read_state." + "name=users/*/spaces/*/spaceReadState}:\020s" - + "pace_read_state\022\246\001\n\022GetThreadReadState\022)" - + ".google.chat.v1.GetThreadReadStateReques" - + "t\032\037.google.chat.v1.ThreadReadState\"D\332A\004n" - + "ame\202\323\344\223\0027\0225/v1/{name=users/*/spaces/*/th" - + "reads/*/threadReadState}\022\207\001\n\017GetAvailabi" - + "lity\022&.google.chat.v1.GetAvailabilityReq" - + "uest\032\034.google.chat.v1.Availability\".\332A\004n" - + "ame\202\323\344\223\002!\022\037/v1/{name=users/*/availabilit" - + "y}\022\212\001\n\014MarkAsActive\022#.google.chat.v1.Mar" - + "kAsActiveRequest\032\034.google.chat.v1.Availa" - + "bility\"7\202\323\344\223\0021\",/v1/{name=users/*/availa" - + "bility}:markAsActive:\001*\022\204\001\n\nMarkAsAway\022!" - + ".google.chat.v1.MarkAsAwayRequest\032\034.goog" - + "le.chat.v1.Availability\"5\202\323\344\223\002/\"*/v1/{na" - + "me=users/*/availability}:markAsAway:\001*\022\234" - + "\001\n\022MarkAsDoNotDisturb\022).google.chat.v1.M" - + "arkAsDoNotDisturbRequest\032\034.google.chat.v" - + "1.Availability\"=\202\323\344\223\0027\"2/v1/{name=users/" - + "*/availability}:markAsDoNotDisturb:\001*\022\274\001" - + "\n\022UpdateAvailability\022).google.chat.v1.Up" - + "dateAvailabilityRequest\032\034.google.chat.v1" - + ".Availability\"]\332A\030availability,update_ma" - + "sk\202\323\344\223\002<2,/v1/{availability.name=users/*" - + "/availability}:\014availability\022\203\001\n\rGetSpac" - + "eEvent\022$.google.chat.v1.GetSpaceEventReq" - + "uest\032\032.google.chat.v1.SpaceEvent\"0\332A\004nam" - + "e\202\323\344\223\002#\022!/v1/{name=spaces/*/spaceEvents/" - + "*}\022\235\001\n\017ListSpaceEvents\022&.google.chat.v1." - + "ListSpaceEventsRequest\032\'.google.chat.v1." - + "ListSpaceEventsResponse\"9\332A\rparent,filte" - + "r\202\323\344\223\002#\022!/v1/{parent=spaces/*}/spaceEven" - + "ts\022\300\001\n\033GetSpaceNotificationSetting\0222.goo" - + "gle.chat.v1.GetSpaceNotificationSettingR" - + "equest\032(.google.chat.v1.SpaceNotificatio" - + "nSetting\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=users" - + "/*/spaces/*/spaceNotificationSetting}\022\240\002" - + "\n\036UpdateSpaceNotificationSetting\0225.googl" - + "e.chat.v1.UpdateSpaceNotificationSetting" - + "Request\032(.google.chat.v1.SpaceNotificati" - + "onSetting\"\234\001\332A&space_notification_settin" - + "g,update_mask\202\323\344\223\002m2O/v1/{space_notifica" - + "tion_setting.name=users/*/spaces/*/space" - + "NotificationSetting}:\032space_notification" - + "_setting\022\217\001\n\rCreateSection\022$.google.chat" - + ".v1.CreateSectionRequest\032\027.google.chat.v" - + "1.Section\"?\332A\016parent,section\202\323\344\223\002(\"\035/v1/" - + "{parent=users/*}/sections:\007section\022{\n\rDe" - + "leteSection\022$.google.chat.v1.DeleteSecti" - + "onRequest\032\026.google.protobuf.Empty\",\332A\004na" - + "me\202\323\344\223\002\037*\035/v1/{name=users/*/sections/*}\022" - + "\234\001\n\rUpdateSection\022$.google.chat.v1.Updat" - + "eSectionRequest\032\027.google.chat.v1.Section" - + "\"L\332A\023section,update_mask\202\323\344\223\00202%/v1/{sec" - + "tion.name=users/*/sections/*}:\007section\022\211" - + "\001\n\014ListSections\022#.google.chat.v1.ListSec" - + "tionsRequest\032$.google.chat.v1.ListSectio" - + "nsResponse\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent" - + "=users/*}/sections\022\225\001\n\017PositionSection\022&" - + ".google.chat.v1.PositionSectionRequest\032\'" - + ".google.chat.v1.PositionSectionResponse\"" - + "1\202\323\344\223\002+\"&/v1/{name=users/*/sections/*}:p" - + "osition:\001*\022\235\001\n\020ListSectionItems\022\'.google" - + ".chat.v1.ListSectionItemsRequest\032(.googl" - + "e.chat.v1.ListSectionItemsResponse\"6\332A\006p" - + "arent\202\323\344\223\002\'\022%/v1/{parent=users/*/section" - + "s/*}/items\022\257\001\n\017MoveSectionItem\022&.google." - + "chat.v1.MoveSectionItemRequest\032\'.google." - + "chat.v1.MoveSectionItemResponse\"K\332A\023name" - + ",target_section\202\323\344\223\002/\"*/v1/{name=users/*" - + "/sections/*/items/*}:move:\001*\022\246\001\n\023Replace" - + "MessageCards\022*.google.chat.v1.ReplaceMes" - + "sageCardsRequest\032+.google.chat.v1.Replac" - + "eMessageCardsResponse\"6\202\323\344\223\0020\"+/v1/{name" - + "=spaces/*/messages/*}:replaceCards:\001*\032\340\021" - + "\312A\023chat.googleapis.com\322A\306\021https://www.go" - + "ogleapis.com/auth/chat.admin.delete,http" - + "s://www.googleapis.com/auth/chat.admin.m" - + "emberships,https://www.googleapis.com/au" - + "th/chat.admin.memberships.readonly,https" - + "://www.googleapis.com/auth/chat.admin.sp" - + "aces,https://www.googleapis.com/auth/cha" - + "t.admin.spaces.readonly,https://www.goog" - + "leapis.com/auth/chat.app.all.memberships" - + ".readonly,https://www.googleapis.com/aut" - + "h/chat.app.all.messages.readonly,https:/" - + "/www.googleapis.com/auth/chat.app.all.sp" - + "aces.readonly,https://www.googleapis.com" - + "/auth/chat.app.delete,https://www.google" - + "apis.com/auth/chat.app.memberships,https" - + "://www.googleapis.com/auth/chat.app.memb" - + "erships.readonly,https://www.googleapis." - + "com/auth/chat.app.messages.readonly,http" - + "s://www.googleapis.com/auth/chat.app.spa" - + "ces,https://www.googleapis.com/auth/chat" - + ".app.spaces.create,https://www.googleapi" - + "s.com/auth/chat.app.spaces.readonly,http" - + "s://www.googleapis.com/auth/chat.bot,htt" - + "ps://www.googleapis.com/auth/chat.custom" - + "emojis,https://www.googleapis.com/auth/c" - + "hat.customemojis.readonly,https://www.go" - + "ogleapis.com/auth/chat.delete,https://ww" - + "w.googleapis.com/auth/chat.import,https:" - + "//www.googleapis.com/auth/chat.membershi" - + "ps,https://www.googleapis.com/auth/chat." - + "memberships.app,https://www.googleapis.c" - + "om/auth/chat.memberships.readonly,https:" - + "//www.googleapis.com/auth/chat.messages," - + "https://www.googleapis.com/auth/chat.mes" - + "sages.create,https://www.googleapis.com/" - + "auth/chat.messages.reactions,https://www" - + ".googleapis.com/auth/chat.messages.react" - + "ions.create,https://www.googleapis.com/a" - + "uth/chat.messages.reactions.readonly,htt" - + "ps://www.googleapis.com/auth/chat.messag" + + "pace_read_state\022\353\001\n\025UpdateThreadReadStat" + + "e\022,.google.chat.v1.UpdateThreadReadState" + + "Request\032\037.google.chat.v1.ThreadReadState" + + "\"\202\001\332A\035thread_read_state,update_mask\202\323\344\223\002" + + "\\2G/v1/{thread_read_state.name=users/*/s" + + "paces/*/threads/*/threadReadState}:\021thre" + + "ad_read_state\022\246\001\n\022GetThreadReadState\022).g" + + "oogle.chat.v1.GetThreadReadStateRequest\032" + + "\037.google.chat.v1.ThreadReadState\"D\332A\004nam" + + "e\202\323\344\223\0027\0225/v1/{name=users/*/spaces/*/thre" + + "ads/*/threadReadState}\022\207\001\n\017GetAvailabili" + + "ty\022&.google.chat.v1.GetAvailabilityReque" + + "st\032\034.google.chat.v1.Availability\".\332A\004nam" + + "e\202\323\344\223\002!\022\037/v1/{name=users/*/availability}" + + "\022\212\001\n\014MarkAsActive\022#.google.chat.v1.MarkA" + + "sActiveRequest\032\034.google.chat.v1.Availabi" + + "lity\"7\202\323\344\223\0021\",/v1/{name=users/*/availabi" + + "lity}:markAsActive:\001*\022\204\001\n\nMarkAsAway\022!.g" + + "oogle.chat.v1.MarkAsAwayRequest\032\034.google" + + ".chat.v1.Availability\"5\202\323\344\223\002/\"*/v1/{name" + + "=users/*/availability}:markAsAway:\001*\022\234\001\n" + + "\022MarkAsDoNotDisturb\022).google.chat.v1.Mar" + + "kAsDoNotDisturbRequest\032\034.google.chat.v1." + + "Availability\"=\202\323\344\223\0027\"2/v1/{name=users/*/" + + "availability}:markAsDoNotDisturb:\001*\022\274\001\n\022" + + "UpdateAvailability\022).google.chat.v1.Upda" + + "teAvailabilityRequest\032\034.google.chat.v1.A" + + "vailability\"]\332A\030availability,update_mask" + + "\202\323\344\223\002<2,/v1/{availability.name=users/*/a" + + "vailability}:\014availability\022\203\001\n\rGetSpaceE" + + "vent\022$.google.chat.v1.GetSpaceEventReque" + + "st\032\032.google.chat.v1.SpaceEvent\"0\332A\004name\202" + + "\323\344\223\002#\022!/v1/{name=spaces/*/spaceEvents/*}" + + "\022\235\001\n\017ListSpaceEvents\022&.google.chat.v1.Li" + + "stSpaceEventsRequest\032\'.google.chat.v1.Li" + + "stSpaceEventsResponse\"9\332A\rparent,filter\202" + + "\323\344\223\002#\022!/v1/{parent=spaces/*}/spaceEvents" + + "\022\300\001\n\033GetSpaceNotificationSetting\0222.googl" + + "e.chat.v1.GetSpaceNotificationSettingReq" + + "uest\032(.google.chat.v1.SpaceNotificationS" + + "etting\"C\332A\004name\202\323\344\223\0026\0224/v1/{name=users/*" + + "/spaces/*/spaceNotificationSetting}\022\240\002\n\036" + + "UpdateSpaceNotificationSetting\0225.google." + + "chat.v1.UpdateSpaceNotificationSettingRe" + + "quest\032(.google.chat.v1.SpaceNotification" + + "Setting\"\234\001\332A&space_notification_setting," + + "update_mask\202\323\344\223\002m2O/v1/{space_notificati" + + "on_setting.name=users/*/spaces/*/spaceNo" + + "tificationSetting}:\032space_notification_s" + + "etting\022\217\001\n\rCreateSection\022$.google.chat.v" + + "1.CreateSectionRequest\032\027.google.chat.v1." + + "Section\"?\332A\016parent,section\202\323\344\223\002(\"\035/v1/{p" + + "arent=users/*}/sections:\007section\022{\n\rDele" + + "teSection\022$.google.chat.v1.DeleteSection" + + "Request\032\026.google.protobuf.Empty\",\332A\004name" + + "\202\323\344\223\002\037*\035/v1/{name=users/*/sections/*}\022\234\001" + + "\n\rUpdateSection\022$.google.chat.v1.UpdateS" + + "ectionRequest\032\027.google.chat.v1.Section\"L" + + "\332A\023section,update_mask\202\323\344\223\00202%/v1/{secti" + + "on.name=users/*/sections/*}:\007section\022\211\001\n" + + "\014ListSections\022#.google.chat.v1.ListSecti" + + "onsRequest\032$.google.chat.v1.ListSections" + + "Response\".\332A\006parent\202\323\344\223\002\037\022\035/v1/{parent=u" + + "sers/*}/sections\022\225\001\n\017PositionSection\022&.g" + + "oogle.chat.v1.PositionSectionRequest\032\'.g" + + "oogle.chat.v1.PositionSectionResponse\"1\202" + + "\323\344\223\002+\"&/v1/{name=users/*/sections/*}:pos" + + "ition:\001*\022\235\001\n\020ListSectionItems\022\'.google.c" + + "hat.v1.ListSectionItemsRequest\032(.google." + + "chat.v1.ListSectionItemsResponse\"6\332A\006par" + + "ent\202\323\344\223\002\'\022%/v1/{parent=users/*/sections/" + + "*}/items\022\257\001\n\017MoveSectionItem\022&.google.ch" + + "at.v1.MoveSectionItemRequest\032\'.google.ch" + + "at.v1.MoveSectionItemResponse\"K\332A\023name,t" + + "arget_section\202\323\344\223\002/\"*/v1/{name=users/*/s" + + "ections/*/items/*}:move:\001*\022\246\001\n\023ReplaceMe" + + "ssageCards\022*.google.chat.v1.ReplaceMessa" + + "geCardsRequest\032+.google.chat.v1.ReplaceM" + + "essageCardsResponse\"6\202\323\344\223\0020\"+/v1/{name=s" + + "paces/*/messages/*}:replaceCards:\001*\032\340\021\312A" + + "\023chat.googleapis.com\322A\306\021https://www.goog" + + "leapis.com/auth/chat.admin.delete,https:" + + "//www.googleapis.com/auth/chat.admin.mem" + + "berships,https://www.googleapis.com/auth" + + "/chat.admin.memberships.readonly,https:/" + + "/www.googleapis.com/auth/chat.admin.spac" + + "es,https://www.googleapis.com/auth/chat." + + "admin.spaces.readonly,https://www.google" + + "apis.com/auth/chat.app.all.memberships.r" + + "eadonly,https://www.googleapis.com/auth/" + + "chat.app.all.messages.readonly,https://w" + + "ww.googleapis.com/auth/chat.app.all.spac" + "es.readonly,https://www.googleapis.com/a" - + "uth/chat.spaces,https://www.googleapis.c" - + "om/auth/chat.spaces.create,https://www.g" - + "oogleapis.com/auth/chat.spaces.pins,http" - + "s://www.googleapis.com/auth/chat.spaces." - + "pins.readonly,https://www.googleapis.com" - + "/auth/chat.spaces.readonly,https://www.g" - + "oogleapis.com/auth/chat.users.availabili" - + "ty,https://www.googleapis.com/auth/chat." - + "users.availability.readonly,https://www." - + "googleapis.com/auth/chat.users.readstate" + + "uth/chat.app.delete,https://www.googleap" + + "is.com/auth/chat.app.memberships,https:/" + + "/www.googleapis.com/auth/chat.app.member" + + "ships.readonly,https://www.googleapis.co" + + "m/auth/chat.app.messages.readonly,https:" + + "//www.googleapis.com/auth/chat.app.space" + + "s,https://www.googleapis.com/auth/chat.a" + + "pp.spaces.create,https://www.googleapis." + + "com/auth/chat.app.spaces.readonly,https:" + + "//www.googleapis.com/auth/chat.bot,https" + + "://www.googleapis.com/auth/chat.customem" + + "ojis,https://www.googleapis.com/auth/cha" + + "t.customemojis.readonly,https://www.goog" + + "leapis.com/auth/chat.delete,https://www." + + "googleapis.com/auth/chat.import,https://" + + "www.googleapis.com/auth/chat.memberships" + + ",https://www.googleapis.com/auth/chat.me" + + "mberships.app,https://www.googleapis.com" + + "/auth/chat.memberships.readonly,https://" + + "www.googleapis.com/auth/chat.messages,ht" + + "tps://www.googleapis.com/auth/chat.messa" + + "ges.create,https://www.googleapis.com/au" + + "th/chat.messages.reactions,https://www.g" + + "oogleapis.com/auth/chat.messages.reactio" + + "ns.create,https://www.googleapis.com/aut" + + "h/chat.messages.reactions.readonly,https" + + "://www.googleapis.com/auth/chat.messages" + + ".readonly,https://www.googleapis.com/aut" + + "h/chat.spaces,https://www.googleapis.com" + + "/auth/chat.spaces.create,https://www.goo" + + "gleapis.com/auth/chat.spaces.pins,https:" + + "//www.googleapis.com/auth/chat.spaces.pi" + + "ns.readonly,https://www.googleapis.com/a" + + "uth/chat.spaces.readonly,https://www.goo" + + "gleapis.com/auth/chat.users.availability" + ",https://www.googleapis.com/auth/chat.us" - + "ers.readstate.readonly,https://www.googl" - + "eapis.com/auth/chat.users.sections,https" - + "://www.googleapis.com/auth/chat.users.se" - + "ctions.readonly,https://www.googleapis.c" - + "om/auth/chat.users.spacesettingsB\251\001\n\022com" - + ".google.chat.v1B\020ChatServiceProtoP\001Z,clo" - + "ud.google.com/go/chat/apiv1/chatpb;chatp" - + "b\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023" - + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" - + "::V1b\006proto3" + + "ers.availability.readonly,https://www.go" + + "ogleapis.com/auth/chat.users.readstate,h" + + "ttps://www.googleapis.com/auth/chat.user" + + "s.readstate.readonly,https://www.googlea" + + "pis.com/auth/chat.users.sections,https:/" + + "/www.googleapis.com/auth/chat.users.sect" + + "ions.readonly,https://www.googleapis.com" + + "/auth/chat.users.spacesettingsB\251\001\n\022com.g" + + "oogle.chat.v1B\020ChatServiceProtoP\001Z,cloud" + + ".google.com/go/chat/apiv1/chatpb;chatpb\242" + + "\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023Go" + + "ogle\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::" + + "V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java index 9803d66f6e76..8e64446e907b 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ThreadReadStateProto.java @@ -48,6 +48,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_GetThreadReadStateRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_GetThreadReadStateRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_UpdateThreadReadStateRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -59,20 +63,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n&google/chat/v1/thread_read_state.proto" + "\022\016google.chat.v1\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032\037go" - + "ogle/protobuf/timestamp.proto\"\314\001\n\017Thread" - + "ReadState\022\014\n\004name\030\001 \001(\t\0222\n\016last_read_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp:w\352At" - + "\n#chat.googleapis.com/ThreadReadState\022 + * Request message for UpdateThreadReadState API. + * + * + * Protobuf type {@code google.chat.v1.UpdateThreadReadStateRequest} + */ +@com.google.protobuf.Generated +public final class UpdateThreadReadStateRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.UpdateThreadReadStateRequest) + UpdateThreadReadStateRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateThreadReadStateRequest"); + } + + // Use UpdateThreadReadStateRequest.newBuilder() to construct. + private UpdateThreadReadStateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateThreadReadStateRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.UpdateThreadReadStateRequest.class, + com.google.chat.v1.UpdateThreadReadStateRequest.Builder.class); + } + + private int bitField0_; + public static final int THREAD_READ_STATE_FIELD_NUMBER = 1; + private com.google.chat.v1.ThreadReadState threadReadState_; + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the threadReadState field is set. + */ + @java.lang.Override + public boolean hasThreadReadState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threadReadState. + */ + @java.lang.Override + public com.google.chat.v1.ThreadReadState getThreadReadState() { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.chat.v1.ThreadReadStateOrBuilder getThreadReadStateOrBuilder() { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getThreadReadState()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getThreadReadState()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.UpdateThreadReadStateRequest)) { + return super.equals(obj); + } + com.google.chat.v1.UpdateThreadReadStateRequest other = + (com.google.chat.v1.UpdateThreadReadStateRequest) obj; + + if (hasThreadReadState() != other.hasThreadReadState()) return false; + if (hasThreadReadState()) { + if (!getThreadReadState().equals(other.getThreadReadState())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasThreadReadState()) { + hash = (37 * hash) + THREAD_READ_STATE_FIELD_NUMBER; + hash = (53 * hash) + getThreadReadState().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.UpdateThreadReadStateRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for UpdateThreadReadState API.
+   * 
+ * + * Protobuf type {@code google.chat.v1.UpdateThreadReadStateRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.UpdateThreadReadStateRequest) + com.google.chat.v1.UpdateThreadReadStateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.UpdateThreadReadStateRequest.class, + com.google.chat.v1.UpdateThreadReadStateRequest.Builder.class); + } + + // Construct using com.google.chat.v1.UpdateThreadReadStateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetThreadReadStateFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + threadReadState_ = null; + if (threadReadStateBuilder_ != null) { + threadReadStateBuilder_.dispose(); + threadReadStateBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.ThreadReadStateProto + .internal_static_google_chat_v1_UpdateThreadReadStateRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest getDefaultInstanceForType() { + return com.google.chat.v1.UpdateThreadReadStateRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest build() { + com.google.chat.v1.UpdateThreadReadStateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest buildPartial() { + com.google.chat.v1.UpdateThreadReadStateRequest result = + new com.google.chat.v1.UpdateThreadReadStateRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.UpdateThreadReadStateRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.threadReadState_ = + threadReadStateBuilder_ == null ? threadReadState_ : threadReadStateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.UpdateThreadReadStateRequest) { + return mergeFrom((com.google.chat.v1.UpdateThreadReadStateRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.UpdateThreadReadStateRequest other) { + if (other == com.google.chat.v1.UpdateThreadReadStateRequest.getDefaultInstance()) + return this; + if (other.hasThreadReadState()) { + mergeThreadReadState(other.getThreadReadState()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetThreadReadStateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.chat.v1.ThreadReadState threadReadState_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ThreadReadState, + com.google.chat.v1.ThreadReadState.Builder, + com.google.chat.v1.ThreadReadStateOrBuilder> + threadReadStateBuilder_; + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the threadReadState field is set. + */ + public boolean hasThreadReadState() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threadReadState. + */ + public com.google.chat.v1.ThreadReadState getThreadReadState() { + if (threadReadStateBuilder_ == null) { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } else { + return threadReadStateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setThreadReadState(com.google.chat.v1.ThreadReadState value) { + if (threadReadStateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + threadReadState_ = value; + } else { + threadReadStateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setThreadReadState(com.google.chat.v1.ThreadReadState.Builder builderForValue) { + if (threadReadStateBuilder_ == null) { + threadReadState_ = builderForValue.build(); + } else { + threadReadStateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeThreadReadState(com.google.chat.v1.ThreadReadState value) { + if (threadReadStateBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && threadReadState_ != null + && threadReadState_ != com.google.chat.v1.ThreadReadState.getDefaultInstance()) { + getThreadReadStateBuilder().mergeFrom(value); + } else { + threadReadState_ = value; + } + } else { + threadReadStateBuilder_.mergeFrom(value); + } + if (threadReadState_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearThreadReadState() { + bitField0_ = (bitField0_ & ~0x00000001); + threadReadState_ = null; + if (threadReadStateBuilder_ != null) { + threadReadStateBuilder_.dispose(); + threadReadStateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.chat.v1.ThreadReadState.Builder getThreadReadStateBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetThreadReadStateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.chat.v1.ThreadReadStateOrBuilder getThreadReadStateOrBuilder() { + if (threadReadStateBuilder_ != null) { + return threadReadStateBuilder_.getMessageOrBuilder(); + } else { + return threadReadState_ == null + ? com.google.chat.v1.ThreadReadState.getDefaultInstance() + : threadReadState_; + } + } + + /** + * + * + *
+     * Required. The thread read state and fields to update.
+     *
+     * Only supports updating read state for the calling user.
+     *
+     * To refer to the calling user, set one of the following:
+     *
+     * - The `me` alias. For example,
+     * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their Workspace email address. For example,
+     * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * - Their user id. For example,
+     * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+     *
+     * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+     * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ThreadReadState, + com.google.chat.v1.ThreadReadState.Builder, + com.google.chat.v1.ThreadReadStateOrBuilder> + internalGetThreadReadStateFieldBuilder() { + if (threadReadStateBuilder_ == null) { + threadReadStateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.ThreadReadState, + com.google.chat.v1.ThreadReadState.Builder, + com.google.chat.v1.ThreadReadStateOrBuilder>( + getThreadReadState(), getParentForChildren(), isClean()); + threadReadState_ = null; + } + return threadReadStateBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The field paths to update. Currently supported field paths:
+     *
+     * - `last_read_time`
+     *
+     * When `last_read_time` is before the latest message create time, the thread
+     * appears as unread in the UI.
+     *
+     * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+     * later than the latest message create time. Future timestamps are coerced to
+     * the current request time. Setting a negative timestamp (before
+     * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.UpdateThreadReadStateRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.UpdateThreadReadStateRequest) + private static final com.google.chat.v1.UpdateThreadReadStateRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.UpdateThreadReadStateRequest(); + } + + public static com.google.chat.v1.UpdateThreadReadStateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateThreadReadStateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.chat.v1.UpdateThreadReadStateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java new file mode 100644 index 000000000000..293657824b06 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/UpdateThreadReadStateRequestOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/thread_read_state.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface UpdateThreadReadStateRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.UpdateThreadReadStateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the threadReadState field is set. + */ + boolean hasThreadReadState(); + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threadReadState. + */ + com.google.chat.v1.ThreadReadState getThreadReadState(); + + /** + * + * + *
+   * Required. The thread read state and fields to update.
+   *
+   * Only supports updating read state for the calling user.
+   *
+   * To refer to the calling user, set one of the following:
+   *
+   * - The `me` alias. For example,
+   * `users/me/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their Workspace email address. For example,
+   * `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * - Their user id. For example,
+   * `users/123456789/spaces/{space}/threads/{thread}/threadReadState`.
+   *
+   * Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState`
+   * 
+ * + * + * .google.chat.v1.ThreadReadState thread_read_state = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.chat.v1.ThreadReadStateOrBuilder getThreadReadStateOrBuilder(); + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The field paths to update. Currently supported field paths:
+   *
+   * - `last_read_time`
+   *
+   * When `last_read_time` is before the latest message create time, the thread
+   * appears as unread in the UI.
+   *
+   * To mark the thread as read, set `last_read_time` to a timestamp equal to or
+   * later than the latest message create time. Future timestamps are coerced to
+   * the current request time. Setting a negative timestamp (before
+   * `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index b4bdf14da99c..bfeba9a69924 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -1174,6 +1174,25 @@ service ChatService { option (google.api.method_signature) = "space_read_state,update_mask"; } + // Updates a user's read state within a thread, used to identify read and + // unread messages. For an example, see [Update a user's thread read + // state](https://developers.google.com/workspace/chat/update-thread-read-state). + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with the [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.users.readstate` + rpc UpdateThreadReadState(UpdateThreadReadStateRequest) + returns (ThreadReadState) { + option (google.api.http) = { + patch: "/v1/{thread_read_state.name=users/*/spaces/*/threads/*/threadReadState}" + body: "thread_read_state" + }; + option (google.api.method_signature) = "thread_read_state,update_mask"; + } + // Returns details about a user's read state within a thread, used to identify // read and unread messages. For an example, see [Get details about a user's // thread read diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto index 23934346840d..4d9c833f2bd2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/thread_read_state.proto @@ -18,6 +18,7 @@ package google.chat.v1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Apps.Chat.V1"; @@ -73,3 +74,39 @@ message GetThreadReadStateRequest { } ]; } + +// Request message for UpdateThreadReadState API. +message UpdateThreadReadStateRequest { + // Required. The thread read state and fields to update. + // + // Only supports updating read state for the calling user. + // + // To refer to the calling user, set one of the following: + // + // - The `me` alias. For example, + // `users/me/spaces/{space}/threads/{thread}/threadReadState`. + // + // - Their Workspace email address. For example, + // `users/user@example.com/spaces/{space}/threads/{thread}/threadReadState`. + // + // - Their user id. For example, + // `users/123456789/spaces/{space}/threads/{thread}/threadReadState`. + // + // Format: `users/{user}/spaces/{space}/threads/{thread}/threadReadState` + ThreadReadState thread_read_state = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The field paths to update. Currently supported field paths: + // + // - `last_read_time` + // + // When `last_read_time` is before the latest message create time, the thread + // appears as unread in the UI. + // + // To mark the thread as read, set `last_read_time` to a timestamp equal to or + // later than the latest message create time. Future timestamps are coerced to + // the current request time. Setting a negative timestamp (before + // `1970-01-01T00:00:00Z`) returns an `INVALID_ARGUMENT` error. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java new file mode 100644 index 000000000000..e40529ccf348 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/AsyncUpdateThreadReadState.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateThreadReadState_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateThreadReadStateRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateThreadReadState { + + public static void main(String[] args) throws Exception { + asyncUpdateThreadReadState(); + } + + public static void asyncUpdateThreadReadState() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + UpdateThreadReadStateRequest request = + UpdateThreadReadStateRequest.newBuilder() + .setThreadReadState(ThreadReadState.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + chatServiceClient.updateThreadReadStateCallable().futureCall(request); + // Do something. + ThreadReadState response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_UpdateThreadReadState_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java new file mode 100644 index 000000000000..618653a40156 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadState.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateThreadReadState_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ThreadReadState; +import com.google.chat.v1.UpdateThreadReadStateRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateThreadReadState { + + public static void main(String[] args) throws Exception { + syncUpdateThreadReadState(); + } + + public static void syncUpdateThreadReadState() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + UpdateThreadReadStateRequest request = + UpdateThreadReadStateRequest.newBuilder() + .setThreadReadState(ThreadReadState.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ThreadReadState response = chatServiceClient.updateThreadReadState(request); + } + } +} +// [END chat_v1_generated_ChatService_UpdateThreadReadState_sync] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java new file mode 100644 index 000000000000..e7a516babe06 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/updatethreadreadstate/SyncUpdateThreadReadStateThreadreadstateFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_UpdateThreadReadState_ThreadreadstateFieldmask_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.ThreadReadState; +import com.google.protobuf.FieldMask; + +public class SyncUpdateThreadReadStateThreadreadstateFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateThreadReadStateThreadreadstateFieldmask(); + } + + public static void syncUpdateThreadReadStateThreadreadstateFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + ThreadReadState threadReadState = ThreadReadState.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ThreadReadState response = + chatServiceClient.updateThreadReadState(threadReadState, updateMask); + } + } +} +// [END chat_v1_generated_ChatService_UpdateThreadReadState_ThreadreadstateFieldmask_sync] diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 3426da96bbd3..6f707a49d391 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.40.0 + 0.41.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chronicle' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.40.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.41.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.41.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 448256745d1d..4d4a061db853 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 0.21.0 + 0.22.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudapiregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.21.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.22.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudapiregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.22.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index 32010bd157a7..a770e6cf7d75 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.104.0 + 3.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-build' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.104.0' +implementation 'com.google.cloud:google-cloud-build:3.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-build/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-build.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 63a55a61bc51..ba4f619369f1 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.100.0 + 0.101.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.100.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.101.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcommerceconsumerprocurement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index 36e9bd643158..f22ac0a4d569 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.66.0 + 0.67.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudcontrolspartner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.66.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.67.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index c7052dc2a3c2..d8bf76ca93eb 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.70.0 + 0.71.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudquotas' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.70.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.71.0" ``` ## Authentication @@ -182,7 +182,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudquotas.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 46b5a1e53d5f..61db46fcca89 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.29.0 + 0.30.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.29.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.30.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.30.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index dd0ced8c3cfe..6db54e1953a7 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.86.0 + 0.87.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsupport' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.86.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.87.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.86.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.87.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsupport/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudsupport.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.86.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.87.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-commerceproducer/README.md b/java-commerceproducer/README.md index de38f816d758..ef7798a87807 100644 --- a/java-commerceproducer/README.md +++ b/java-commerceproducer/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-commerceproducer - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-commerceproducer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-commerceproducer:0.8.0' +implementation 'com.google.cloud:google-cloud-commerceproducer:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-commerceproducer/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-commerceproducer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-compute/README.md b/java-compute/README.md index 2973a9eb11d8..a3fd8d8e30e1 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.112.0 + 1.113.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-compute' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.112.0' +implementation 'com.google.cloud:google-cloud-compute:1.113.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.112.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.113.0" ``` ## Authentication @@ -245,7 +245,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-compute.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.112.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.113.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index 231f35fdf86f..f8cf59ecec18 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.88.0 + 0.89.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-confidentialcomputing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.88.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.89.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-confidentialcomputing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.89.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index 2323b1c8df68..3b76250ed33c 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.36.0 + 0.37.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-configdelivery' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.36.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.37.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index 8b15b6345a1f..470275182be6 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.54.0 + 0.55.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-connectgateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.54.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.55.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.55.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 66728154e4eb..b2979d574cc6 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-contact-center-insights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.102.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contact-center-insights/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-container/README.md b/java-container/README.md index 115bef601ecb..628db512d6e8 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.105.0 + 2.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-container' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.105.0' +implementation 'com.google.cloud:google-cloud-container:2.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 4c5c47a6d299..3888e1178fe9 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-containeranalysis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.103.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index e32413426bbc..80fbce7c9970 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-contentwarehouse' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.98.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contentwarehouse/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contentwarehouse.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index 6362c4a7325a..ce6363f32af5 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-data-fusion' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.102.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index bf84f3371a75..d1baf58ae6ed 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.23.0 + 0.24.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-databasecenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.23.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.23.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.24.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataflow/README.md b/java-dataflow/README.md index e0c9cea08605..67147849351b 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.106.0 + 0.107.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.106.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.107.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.107.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/README.md b/java-dataform/README.md index cc7c9c8c35ca..7e0ddd57412e 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.101.0' +implementation 'com.google.cloud:google-cloud-dataform:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java index c78015af400a..aa16f8fe3779 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformClient.java @@ -628,6 +628,26 @@ * * * + *

CreateWorkspaceLongRunning + *

Creates a new Workspace in a given Repository asynchronously. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkspaceLongRunningAsync(CreateWorkspaceRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkspaceLongRunningAsync(RepositoryName parent, Workspace workspace, String workspaceId) + *

  • createWorkspaceLongRunningAsync(String parent, Workspace workspace, String workspaceId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkspaceLongRunningOperationCallable() + *

  • createWorkspaceLongRunningCallable() + *

+ * + * + * *

DeleteWorkspace *

Deletes a single Workspace. * @@ -5224,6 +5244,177 @@ public final UnaryCallable createWorkspaceCal return stub.createWorkspaceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + @Nullable RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   Workspace response = dataformClient.createWorkspaceLongRunningAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + CreateWorkspaceRequest request) { + return createWorkspaceLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   OperationFuture future =
+   *       dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createWorkspaceLongRunningOperationCallable() { + return stub.createWorkspaceLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createWorkspaceLongRunningCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkspaceLongRunningCallable() { + return stub.createWorkspaceLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single Workspace. diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java index 30455f383a64..9788b96168c8 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/DataformSettings.java @@ -346,6 +346,17 @@ public UnaryCallSettings createWorkspaceSetti return ((DataformStubSettings) getStubSettings()).createWorkspaceSettings(); } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningSettings(); + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return ((DataformStubSettings) getStubSettings()).deleteWorkspaceSettings(); @@ -954,6 +965,18 @@ public UnaryCallSettings.Builder createWorksp return getStubSettingsBuilder().createWorkspaceSettings(); } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return getStubSettingsBuilder().deleteWorkspaceSettings(); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json index 87ad780ee4eb..3c7dd735f024 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/gapic_metadata.json @@ -49,6 +49,9 @@ "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "CreateWorkspaceLongRunning": { + "methods": ["createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningOperationCallable", "createWorkspaceLongRunningCallable"] + }, "DeleteFolder": { "methods": ["deleteFolder", "deleteFolder", "deleteFolder", "deleteFolderCallable"] }, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java index 593f0c0f5d0d..9a77fc9ae7b7 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStub.java @@ -55,6 +55,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -392,6 +393,17 @@ public UnaryCallable createWorkspaceCallable( throw new UnsupportedOperationException("Not implemented: createWorkspaceCallable()"); } + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningOperationCallable()"); + } + + public UnaryCallable createWorkspaceLongRunningCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningCallable()"); + } + public UnaryCallable deleteWorkspaceCallable() { throw new UnsupportedOperationException("Not implemented: deleteWorkspaceCallable()"); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java index c7f89b99ac35..df22f76fe476 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/DataformStubSettings.java @@ -85,6 +85,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -364,6 +365,10 @@ public class DataformStubSettings extends StubSettings { listWorkspacesSettings; private final UnaryCallSettings getWorkspaceSettings; private final UnaryCallSettings createWorkspaceSettings; + private final UnaryCallSettings + createWorkspaceLongRunningSettings; + private final OperationCallSettings + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings deleteWorkspaceSettings; private final UnaryCallSettings installNpmPackagesSettings; @@ -1780,6 +1785,17 @@ public UnaryCallSettings createWorkspaceSetti return createWorkspaceSettings; } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return deleteWorkspaceSettings; @@ -2207,6 +2223,10 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { listWorkspacesSettings = settingsBuilder.listWorkspacesSettings().build(); getWorkspaceSettings = settingsBuilder.getWorkspaceSettings().build(); createWorkspaceSettings = settingsBuilder.createWorkspaceSettings().build(); + createWorkspaceLongRunningSettings = + settingsBuilder.createWorkspaceLongRunningSettings().build(); + createWorkspaceLongRunningOperationSettings = + settingsBuilder.createWorkspaceLongRunningOperationSettings().build(); deleteWorkspaceSettings = settingsBuilder.deleteWorkspaceSettings().build(); installNpmPackagesSettings = settingsBuilder.installNpmPackagesSettings().build(); pullGitCommitsSettings = settingsBuilder.pullGitCommitsSettings().build(); @@ -2355,6 +2375,11 @@ public static class Builder extends StubSettings.Builder getWorkspaceSettings; private final UnaryCallSettings.Builder createWorkspaceSettings; + private final UnaryCallSettings.Builder + createWorkspaceLongRunningSettings; + private final OperationCallSettings.Builder< + CreateWorkspaceRequest, Workspace, CreateWorkspaceMetadata> + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings.Builder deleteWorkspaceSettings; private final UnaryCallSettings.Builder installNpmPackagesSettings; @@ -2532,6 +2557,8 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings = PagedCallSettings.newBuilder(LIST_WORKSPACES_PAGE_STR_FACT); getWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningOperationSettings = OperationCallSettings.newBuilder(); deleteWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); installNpmPackagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); pullGitCommitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2618,6 +2645,7 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -2707,6 +2735,9 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings = settings.listWorkspacesSettings.toBuilder(); getWorkspaceSettings = settings.getWorkspaceSettings.toBuilder(); createWorkspaceSettings = settings.createWorkspaceSettings.toBuilder(); + createWorkspaceLongRunningSettings = settings.createWorkspaceLongRunningSettings.toBuilder(); + createWorkspaceLongRunningOperationSettings = + settings.createWorkspaceLongRunningOperationSettings.toBuilder(); deleteWorkspaceSettings = settings.deleteWorkspaceSettings.toBuilder(); installNpmPackagesSettings = settings.installNpmPackagesSettings.toBuilder(); pullGitCommitsSettings = settings.pullGitCommitsSettings.toBuilder(); @@ -2791,6 +2822,7 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -3014,6 +3046,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createWorkspaceLongRunningSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteWorkspaceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -3339,6 +3376,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createWorkspaceLongRunningOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateWorkspaceMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .createCompilationResultLongRunningOperationSettings() .setInitialCallSettings( @@ -3597,6 +3658,18 @@ public UnaryCallSettings.Builder createWorksp return createWorkspaceSettings; } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return deleteWorkspaceSettings; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java index 2e3454641c4d..07d5ddc61162 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/GrpcDataformStub.java @@ -60,6 +60,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -539,6 +540,17 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateWorkspaceLongRunning") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() @@ -1138,6 +1150,9 @@ public class GrpcDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -1625,6 +1640,18 @@ protected GrpcDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + createWorkspaceLongRunningTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -2340,6 +2367,17 @@ protected GrpcDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + operationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -2824,6 +2862,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java index cb745674056b..0574abeb4735 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/HttpJsonDataformStub.java @@ -68,6 +68,7 @@ import com.google.cloud.dataform.v1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1.DeleteFolderRequest; import com.google.cloud.dataform.v1.DeleteFolderTreeMetadata; @@ -207,7 +208,9 @@ public class HttpJsonDataformStub extends DataformStub { .add(CreateCompilationResultMetadata.getDescriptor()) .add(MoveFolderMetadata.getDescriptor()) .add(MoveRepositoryMetadata.getDescriptor()) + .add(CreateWorkspaceMetadata.getDescriptor()) .add(DeleteFolderTreeMetadata.getDescriptor()) + .add(Workspace.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -1341,6 +1344,48 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.dataform.v1.Dataform/CreateWorkspaceLongRunning") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "workspaceId", request.getWorkspaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workspace", request.getWorkspace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkspaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteWorkspaceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -3121,6 +3166,9 @@ public class HttpJsonDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -3671,6 +3719,19 @@ protected HttpJsonDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + createWorkspaceLongRunningTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -4442,6 +4503,17 @@ protected HttpJsonDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -4719,6 +4791,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listWorkspacesMethodDescriptor); methodDescriptors.add(getWorkspaceMethodDescriptor); methodDescriptors.add(createWorkspaceMethodDescriptor); + methodDescriptors.add(createWorkspaceLongRunningMethodDescriptor); methodDescriptors.add(deleteWorkspaceMethodDescriptor); methodDescriptors.add(installNpmPackagesMethodDescriptor); methodDescriptors.add(pullGitCommitsMethodDescriptor); @@ -5008,6 +5081,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java index 1a059b8881b2..813b9ebb1850 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -648,6 +648,26 @@ * * * + *

CreateWorkspaceLongRunning + *

Creates a new Workspace in a given Repository asynchronously. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createWorkspaceLongRunningAsync(CreateWorkspaceRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createWorkspaceLongRunningAsync(RepositoryName parent, Workspace workspace, String workspaceId) + *

  • createWorkspaceLongRunningAsync(String parent, Workspace workspace, String workspaceId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createWorkspaceLongRunningOperationCallable() + *

  • createWorkspaceLongRunningCallable() + *

+ * + * + * *

DeleteWorkspace *

Deletes a single Workspace. * @@ -5508,6 +5528,177 @@ public final UnaryCallable createWorkspaceCal return stub.createWorkspaceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + @Nullable RepositoryName parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
+   *   Workspace workspace = Workspace.newBuilder().build();
+   *   String workspaceId = "workspaceId466560144";
+   *   Workspace response =
+   *       dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get();
+   * }
+   * }
+ * + * @param parent Required. The repository in which to create the workspace. Must be in the format + * `projects/*/locations/*/repositories/*`. + * @param workspace Required. The workspace to create. + * @param workspaceId Required. The ID to use for the workspace, which will become the final + * component of the workspace's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + String parent, Workspace workspace, String workspaceId) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(parent) + .setWorkspace(workspace) + .setWorkspaceId(workspaceId) + .build(); + return createWorkspaceLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   Workspace response = dataformClient.createWorkspaceLongRunningAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createWorkspaceLongRunningAsync( + CreateWorkspaceRequest request) { + return createWorkspaceLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   OperationFuture future =
+   *       dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Workspace response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createWorkspaceLongRunningOperationCallable() { + return stub.createWorkspaceLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Workspace in a given Repository asynchronously. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataformClient dataformClient = DataformClient.create()) {
+   *   CreateWorkspaceRequest request =
+   *       CreateWorkspaceRequest.newBuilder()
+   *           .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
+   *           .setWorkspace(Workspace.newBuilder().build())
+   *           .setWorkspaceId("workspaceId466560144")
+   *           .build();
+   *   ApiFuture future =
+   *       dataformClient.createWorkspaceLongRunningCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createWorkspaceLongRunningCallable() { + return stub.createWorkspaceLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single Workspace. diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java index ee27c8c71ef6..956a1cab0425 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -365,6 +365,17 @@ public UnaryCallSettings createWorkspaceSetti return ((DataformStubSettings) getStubSettings()).createWorkspaceSettings(); } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningSettings(); + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return ((DataformStubSettings) getStubSettings()).createWorkspaceLongRunningOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return ((DataformStubSettings) getStubSettings()).deleteWorkspaceSettings(); @@ -1029,6 +1040,18 @@ public UnaryCallSettings.Builder createWorksp return getStubSettingsBuilder().createWorkspaceSettings(); } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningSettings(); + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return getStubSettingsBuilder().createWorkspaceLongRunningOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return getStubSettingsBuilder().deleteWorkspaceSettings(); diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json index f70c854a368c..628d28e3b5ee 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json @@ -52,6 +52,9 @@ "CreateWorkspace": { "methods": ["createWorkspace", "createWorkspace", "createWorkspace", "createWorkspaceCallable"] }, + "CreateWorkspaceLongRunning": { + "methods": ["createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningAsync", "createWorkspaceLongRunningOperationCallable", "createWorkspaceLongRunningCallable"] + }, "DeleteBranch": { "methods": ["deleteBranch", "deleteBranchCallable"] }, diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java index 3d17ac3e6e0e..54db9995000e 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java @@ -59,6 +59,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -425,6 +426,17 @@ public UnaryCallable createWorkspaceCallable( throw new UnsupportedOperationException("Not implemented: createWorkspaceCallable()"); } + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningOperationCallable()"); + } + + public UnaryCallable createWorkspaceLongRunningCallable() { + throw new UnsupportedOperationException( + "Not implemented: createWorkspaceLongRunningCallable()"); + } + public UnaryCallable deleteWorkspaceCallable() { throw new UnsupportedOperationException("Not implemented: deleteWorkspaceCallable()"); } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java index e17cbaa8cfad..7d5e0ab7cb9d 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java @@ -89,6 +89,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -389,6 +390,10 @@ public class DataformStubSettings extends StubSettings { listWorkspacesSettings; private final UnaryCallSettings getWorkspaceSettings; private final UnaryCallSettings createWorkspaceSettings; + private final UnaryCallSettings + createWorkspaceLongRunningSettings; + private final OperationCallSettings + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings deleteWorkspaceSettings; private final UnaryCallSettings installNpmPackagesSettings; @@ -1967,6 +1972,17 @@ public UnaryCallSettings createWorkspaceSetti return createWorkspaceSettings; } + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the object with the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the object with the settings used for calls to deleteWorkspace. */ public UnaryCallSettings deleteWorkspaceSettings() { return deleteWorkspaceSettings; @@ -2439,6 +2455,10 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException { listWorkspacesSettings = settingsBuilder.listWorkspacesSettings().build(); getWorkspaceSettings = settingsBuilder.getWorkspaceSettings().build(); createWorkspaceSettings = settingsBuilder.createWorkspaceSettings().build(); + createWorkspaceLongRunningSettings = + settingsBuilder.createWorkspaceLongRunningSettings().build(); + createWorkspaceLongRunningOperationSettings = + settingsBuilder.createWorkspaceLongRunningOperationSettings().build(); deleteWorkspaceSettings = settingsBuilder.deleteWorkspaceSettings().build(); installNpmPackagesSettings = settingsBuilder.installNpmPackagesSettings().build(); pullGitCommitsSettings = settingsBuilder.pullGitCommitsSettings().build(); @@ -2601,6 +2621,11 @@ public static class Builder extends StubSettings.Builder getWorkspaceSettings; private final UnaryCallSettings.Builder createWorkspaceSettings; + private final UnaryCallSettings.Builder + createWorkspaceLongRunningSettings; + private final OperationCallSettings.Builder< + CreateWorkspaceRequest, Workspace, CreateWorkspaceMetadata> + createWorkspaceLongRunningOperationSettings; private final UnaryCallSettings.Builder deleteWorkspaceSettings; private final UnaryCallSettings.Builder installNpmPackagesSettings; @@ -2799,6 +2824,8 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings = PagedCallSettings.newBuilder(LIST_WORKSPACES_PAGE_STR_FACT); getWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createWorkspaceLongRunningOperationSettings = OperationCallSettings.newBuilder(); deleteWorkspaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); installNpmPackagesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); pullGitCommitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2894,6 +2921,7 @@ protected Builder(@Nullable ClientContext clientContext) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -2993,6 +3021,9 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings = settings.listWorkspacesSettings.toBuilder(); getWorkspaceSettings = settings.getWorkspaceSettings.toBuilder(); createWorkspaceSettings = settings.createWorkspaceSettings.toBuilder(); + createWorkspaceLongRunningSettings = settings.createWorkspaceLongRunningSettings.toBuilder(); + createWorkspaceLongRunningOperationSettings = + settings.createWorkspaceLongRunningOperationSettings.toBuilder(); deleteWorkspaceSettings = settings.deleteWorkspaceSettings.toBuilder(); installNpmPackagesSettings = settings.installNpmPackagesSettings.toBuilder(); pullGitCommitsSettings = settings.pullGitCommitsSettings.toBuilder(); @@ -3085,6 +3116,7 @@ protected Builder(DataformStubSettings settings) { listWorkspacesSettings, getWorkspaceSettings, createWorkspaceSettings, + createWorkspaceLongRunningSettings, deleteWorkspaceSettings, installNpmPackagesSettings, pullGitCommitsSettings, @@ -3319,6 +3351,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createWorkspaceLongRunningSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .deleteWorkspaceSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -3701,6 +3738,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createWorkspaceLongRunningOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Workspace.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CreateWorkspaceMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .createCompilationResultLongRunningOperationSettings() .setInitialCallSettings( @@ -3974,6 +4035,18 @@ public UnaryCallSettings.Builder createWorksp return createWorkspaceSettings; } + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public UnaryCallSettings.Builder + createWorkspaceLongRunningSettings() { + return createWorkspaceLongRunningSettings; + } + + /** Returns the builder for the settings used for calls to createWorkspaceLongRunning. */ + public OperationCallSettings.Builder + createWorkspaceLongRunningOperationSettings() { + return createWorkspaceLongRunningOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteWorkspace. */ public UnaryCallSettings.Builder deleteWorkspaceSettings() { return deleteWorkspaceSettings; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java index 9b2d7c8f00dd..147494450e4b 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java @@ -64,6 +64,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -569,6 +570,18 @@ public class GrpcDataformStub extends DataformStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/CreateWorkspaceLongRunning") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateWorkspaceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteWorkspaceMethodDescriptor = MethodDescriptor.newBuilder() @@ -1252,6 +1265,9 @@ public class GrpcDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -1767,6 +1783,18 @@ protected GrpcDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + createWorkspaceLongRunningTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings deleteWorkspaceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -2568,6 +2596,17 @@ protected GrpcDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + operationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -3105,6 +3144,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java index 5a311a99a858..ccca84704321 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java @@ -72,6 +72,7 @@ import com.google.cloud.dataform.v1beta1.CreateTeamFolderRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowConfigRequest; import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchRequest; import com.google.cloud.dataform.v1beta1.DeleteBranchResponse; @@ -225,8 +226,10 @@ public class HttpJsonDataformStub extends DataformStub { .add(DeleteRepositoryLongRunningMetadata.getDescriptor()) .add(MoveRepositoryMetadata.getDescriptor()) .add(CreateCompilationResultMetadata.getDescriptor()) + .add(Workspace.getDescriptor()) .add(CompilationResult.getDescriptor()) .add(DeleteFolderTreeMetadata.getDescriptor()) + .add(CreateWorkspaceMetadata.getDescriptor()) .add(MoveFolderMetadata.getDescriptor()) .build(); @@ -1405,6 +1408,49 @@ public class HttpJsonDataformStub extends DataformStub { .build()) .build(); + private static final ApiMethodDescriptor + createWorkspaceLongRunningMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.dataform.v1beta1.Dataform/CreateWorkspaceLongRunning") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "workspaceId", request.getWorkspaceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("workspace", request.getWorkspace(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateWorkspaceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteWorkspaceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -3419,6 +3465,9 @@ public class HttpJsonDataformStub extends DataformStub { listWorkspacesPagedCallable; private final UnaryCallable getWorkspaceCallable; private final UnaryCallable createWorkspaceCallable; + private final UnaryCallable createWorkspaceLongRunningCallable; + private final OperationCallable + createWorkspaceLongRunningOperationCallable; private final UnaryCallable deleteWorkspaceCallable; private final UnaryCallable installNpmPackagesCallable; @@ -3998,6 +4047,19 @@ protected HttpJsonDataformStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + createWorkspaceLongRunningTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createWorkspaceLongRunningMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings deleteWorkspaceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteWorkspaceMethodDescriptor) @@ -4861,6 +4923,17 @@ protected HttpJsonDataformStub( this.createWorkspaceCallable = callableFactory.createUnaryCallable( createWorkspaceTransportSettings, settings.createWorkspaceSettings(), clientContext); + this.createWorkspaceLongRunningCallable = + callableFactory.createUnaryCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningSettings(), + clientContext); + this.createWorkspaceLongRunningOperationCallable = + callableFactory.createOperationCallable( + createWorkspaceLongRunningTransportSettings, + settings.createWorkspaceLongRunningOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteWorkspaceCallable = callableFactory.createUnaryCallable( deleteWorkspaceTransportSettings, settings.deleteWorkspaceSettings(), clientContext); @@ -5177,6 +5250,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listWorkspacesMethodDescriptor); methodDescriptors.add(getWorkspaceMethodDescriptor); methodDescriptors.add(createWorkspaceMethodDescriptor); + methodDescriptors.add(createWorkspaceLongRunningMethodDescriptor); methodDescriptors.add(deleteWorkspaceMethodDescriptor); methodDescriptors.add(installNpmPackagesMethodDescriptor); methodDescriptors.add(pullGitCommitsMethodDescriptor); @@ -5487,6 +5561,17 @@ public UnaryCallable createWorkspaceCallable( return createWorkspaceCallable; } + @Override + public UnaryCallable createWorkspaceLongRunningCallable() { + return createWorkspaceLongRunningCallable; + } + + @Override + public OperationCallable + createWorkspaceLongRunningOperationCallable() { + return createWorkspaceLongRunningOperationCallable; + } + @Override public UnaryCallable deleteWorkspaceCallable() { return deleteWorkspaceCallable; diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json index 1d5e5a15f384..6067ceae95ac 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1/reflect-config.json @@ -1286,6 +1286,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1.CreateWorkspaceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.CreateWorkspaceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1.CreateWorkspaceMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1.CreateWorkspaceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json index 5c1604893ad6..523d1be41db4 100644 --- a/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json +++ b/java-dataform/google-cloud-dataform/src/main/resources/META-INF/native-image/com.google.cloud.dataform.v1beta1/reflect-config.json @@ -1322,6 +1322,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java index 6a565d41fb80..5d9305db46f0 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientHttpJsonTest.java @@ -2749,6 +2749,128 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkspaceLongRunningExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkspaceLongRunningExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java index a592375e1ba0..c3680f57fbeb 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/DataformClientTest.java @@ -2460,6 +2460,126 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java index 2ff66696bbc3..5ad4fff5d095 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1/MockDataformImpl.java @@ -707,6 +707,28 @@ public void createWorkspace( } } + @Override + public void createWorkspaceLongRunning( + CreateWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkspaceLongRunning, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteWorkspace( DeleteWorkspaceRequest request, StreamObserver responseObserver) { diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java index 3b40aaf7c3d7..986894d820f4 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java @@ -2867,6 +2867,136 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkspaceLongRunningExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createWorkspaceLongRunningExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-9015/locations/location-9015/repositories/repositorie-9015"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java index cddf2d8e9f7d..b2f3399bc749 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java @@ -2576,6 +2576,134 @@ public void createWorkspaceExceptionTest2() throws Exception { } } + @Test + public void createWorkspaceLongRunningTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createWorkspaceLongRunningTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName( + WorkspaceName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]", "[WORKSPACE]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setDataEncryptionState(DataEncryptionState.newBuilder().build()) + .setInternalMetadata("internalMetadata6789388") + .setDisableMoves(true) + .setOriginalBranch("originalBranch1098005203") + .setPrivateResourceMetadata(PrivateResourceMetadata.newBuilder().build()) + .setEnableBranchManagement(true) + .setDepth(95472323) + .setShallow(true) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createWorkspaceLongRunningTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDataform.addResponse(resultOperation); + + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + + Workspace actualResponse = + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataform.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateWorkspaceRequest actualRequest = ((CreateWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workspace, actualRequest.getWorkspace()); + Assert.assertEquals(workspaceId, actualRequest.getWorkspaceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createWorkspaceLongRunningExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataform.addException(exception); + + try { + String parent = "parent-995424086"; + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + client.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteWorkspaceTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java index ebf8464c2498..a9a751290619 100644 --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java @@ -729,6 +729,28 @@ public void createWorkspace( } } + @Override + public void createWorkspaceLongRunning( + CreateWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateWorkspaceLongRunning, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteWorkspace( DeleteWorkspaceRequest request, StreamObserver responseObserver) { diff --git a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java index 2003c9028f11..bb78b29e1ab2 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformGrpc.java @@ -1399,6 +1399,52 @@ private DataformGrpc() {} return getCreateWorkspaceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkspaceLongRunning", + requestType = com.google.cloud.dataform.v1.CreateWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + DataformGrpc.getCreateWorkspaceLongRunningMethod = + getCreateWorkspaceLongRunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkspaceLongRunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1.CreateWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateWorkspaceLongRunning")) + .build(); + } + } + } + return getCreateWorkspaceLongRunningMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1.DeleteWorkspaceRequest, com.google.protobuf.Empty> getDeleteWorkspaceMethod; @@ -3947,6 +3993,20 @@ default void createWorkspace( getCreateWorkspaceMethod(), responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + default void createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkspaceLongRunningMethod(), responseObserver); + } + /** * * @@ -5152,6 +5212,22 @@ public void createWorkspace( responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public void createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -6348,6 +6424,20 @@ public com.google.cloud.dataform.v1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -7401,6 +7491,19 @@ public com.google.cloud.dataform.v1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -8447,6 +8550,19 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkspaceLongRunning(com.google.cloud.dataform.v1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -9119,50 +9235,51 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_WORKSPACES = 27; private static final int METHODID_GET_WORKSPACE = 28; private static final int METHODID_CREATE_WORKSPACE = 29; - private static final int METHODID_DELETE_WORKSPACE = 30; - private static final int METHODID_INSTALL_NPM_PACKAGES = 31; - private static final int METHODID_PULL_GIT_COMMITS = 32; - private static final int METHODID_PUSH_GIT_COMMITS = 33; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 34; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 35; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 36; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 37; - private static final int METHODID_FETCH_FILE_DIFF = 38; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 39; - private static final int METHODID_SEARCH_FILES = 40; - private static final int METHODID_MAKE_DIRECTORY = 41; - private static final int METHODID_REMOVE_DIRECTORY = 42; - private static final int METHODID_MOVE_DIRECTORY = 43; - private static final int METHODID_READ_FILE = 44; - private static final int METHODID_REMOVE_FILE = 45; - private static final int METHODID_MOVE_FILE = 46; - private static final int METHODID_WRITE_FILE = 47; - private static final int METHODID_LIST_RELEASE_CONFIGS = 48; - private static final int METHODID_GET_RELEASE_CONFIG = 49; - private static final int METHODID_CREATE_RELEASE_CONFIG = 50; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 51; - private static final int METHODID_DELETE_RELEASE_CONFIG = 52; - private static final int METHODID_LIST_COMPILATION_RESULTS = 53; - private static final int METHODID_GET_COMPILATION_RESULT = 54; - private static final int METHODID_CREATE_COMPILATION_RESULT = 55; - private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 56; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 57; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 58; - private static final int METHODID_GET_WORKFLOW_CONFIG = 59; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 60; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 61; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 62; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 63; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 64; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 65; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 66; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 67; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 68; - private static final int METHODID_GET_CONFIG = 69; - private static final int METHODID_UPDATE_CONFIG = 70; - private static final int METHODID_GET_IAM_POLICY = 71; - private static final int METHODID_SET_IAM_POLICY = 72; - private static final int METHODID_TEST_IAM_PERMISSIONS = 73; + private static final int METHODID_CREATE_WORKSPACE_LONG_RUNNING = 30; + private static final int METHODID_DELETE_WORKSPACE = 31; + private static final int METHODID_INSTALL_NPM_PACKAGES = 32; + private static final int METHODID_PULL_GIT_COMMITS = 33; + private static final int METHODID_PUSH_GIT_COMMITS = 34; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 35; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 36; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 37; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 38; + private static final int METHODID_FETCH_FILE_DIFF = 39; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 40; + private static final int METHODID_SEARCH_FILES = 41; + private static final int METHODID_MAKE_DIRECTORY = 42; + private static final int METHODID_REMOVE_DIRECTORY = 43; + private static final int METHODID_MOVE_DIRECTORY = 44; + private static final int METHODID_READ_FILE = 45; + private static final int METHODID_REMOVE_FILE = 46; + private static final int METHODID_MOVE_FILE = 47; + private static final int METHODID_WRITE_FILE = 48; + private static final int METHODID_LIST_RELEASE_CONFIGS = 49; + private static final int METHODID_GET_RELEASE_CONFIG = 50; + private static final int METHODID_CREATE_RELEASE_CONFIG = 51; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 52; + private static final int METHODID_DELETE_RELEASE_CONFIG = 53; + private static final int METHODID_LIST_COMPILATION_RESULTS = 54; + private static final int METHODID_GET_COMPILATION_RESULT = 55; + private static final int METHODID_CREATE_COMPILATION_RESULT = 56; + private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 57; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 58; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 59; + private static final int METHODID_GET_WORKFLOW_CONFIG = 60; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 61; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 62; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 63; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 64; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 65; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 66; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 67; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 68; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 69; + private static final int METHODID_GET_CONFIG = 70; + private static final int METHODID_UPDATE_CONFIG = 71; + private static final int METHODID_GET_IAM_POLICY = 72; + private static final int METHODID_SET_IAM_POLICY = 73; + private static final int METHODID_TEST_IAM_PERMISSIONS = 74; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -9359,6 +9476,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_WORKSPACE_LONG_RUNNING: + serviceImpl.createWorkspaceLongRunning( + (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_WORKSPACE: serviceImpl.deleteWorkspace( (com.google.cloud.dataform.v1.DeleteWorkspaceRequest) request, @@ -9835,6 +9957,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1.CreateWorkspaceRequest, com.google.cloud.dataform.v1.Workspace>(service, METHODID_CREATE_WORKSPACE))) + .addMethod( + getCreateWorkspaceLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSPACE_LONG_RUNNING))) .addMethod( getDeleteWorkspaceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -10209,6 +10338,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListWorkspacesMethod()) .addMethod(getGetWorkspaceMethod()) .addMethod(getCreateWorkspaceMethod()) + .addMethod(getCreateWorkspaceLongRunningMethod()) .addMethod(getDeleteWorkspaceMethod()) .addMethod(getInstallNpmPackagesMethod()) .addMethod(getPullGitCommitsMethod()) diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java index 25611c3c7571..34ac7e1e1589 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java @@ -1472,6 +1472,55 @@ private DataformGrpc() {} return getCreateWorkspaceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkspaceLongRunning", + requestType = com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation> + getCreateWorkspaceLongRunningMethod; + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + synchronized (DataformGrpc.class) { + if ((getCreateWorkspaceLongRunningMethod = DataformGrpc.getCreateWorkspaceLongRunningMethod) + == null) { + DataformGrpc.getCreateWorkspaceLongRunningMethod = + getCreateWorkspaceLongRunningMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateWorkspaceLongRunning")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataformMethodDescriptorSupplier("CreateWorkspaceLongRunning")) + .build(); + } + } + } + return getCreateWorkspaceLongRunningMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest, com.google.protobuf.Empty> getDeleteWorkspaceMethod; @@ -4361,6 +4410,20 @@ default void createWorkspace( getCreateWorkspaceMethod(), responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + default void createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWorkspaceLongRunningMethod(), responseObserver); + } + /** * * @@ -5693,6 +5756,22 @@ public void createWorkspace( responseObserver); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public void createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -7028,6 +7107,20 @@ public com.google.cloud.dataform.v1beta1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -8191,6 +8284,19 @@ public com.google.cloud.dataform.v1beta1.Workspace createWorkspace( getChannel(), getCreateWorkspaceMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.longrunning.Operation createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkspaceLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -9338,6 +9444,20 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getCreateWorkspaceMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Creates a new Workspace in a given Repository asynchronously.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createWorkspaceLongRunning( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkspaceLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -10110,56 +10230,57 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_LIST_WORKSPACES = 28; private static final int METHODID_GET_WORKSPACE = 29; private static final int METHODID_CREATE_WORKSPACE = 30; - private static final int METHODID_DELETE_WORKSPACE = 31; - private static final int METHODID_INSTALL_NPM_PACKAGES = 32; - private static final int METHODID_PULL_GIT_COMMITS = 33; - private static final int METHODID_SYNC_WORKSPACE_REFS = 34; - private static final int METHODID_FETCH_WORKSPACE_BRANCHES = 35; - private static final int METHODID_DELETE_BRANCH = 36; - private static final int METHODID_CHECKOUT_WORKSPACE_BRANCH = 37; - private static final int METHODID_FETCH_CURRENT_WORKSPACE_BRANCH = 38; - private static final int METHODID_PUSH_GIT_COMMITS = 39; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 40; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 41; - private static final int METHODID_FETCH_WORKSPACE_HISTORY = 42; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 43; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 44; - private static final int METHODID_FETCH_FILE_DIFF = 45; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 46; - private static final int METHODID_SEARCH_FILES = 47; - private static final int METHODID_MAKE_DIRECTORY = 48; - private static final int METHODID_REMOVE_DIRECTORY = 49; - private static final int METHODID_MOVE_DIRECTORY = 50; - private static final int METHODID_READ_FILE = 51; - private static final int METHODID_REMOVE_FILE = 52; - private static final int METHODID_MOVE_FILE = 53; - private static final int METHODID_WRITE_FILE = 54; - private static final int METHODID_LIST_RELEASE_CONFIGS = 55; - private static final int METHODID_GET_RELEASE_CONFIG = 56; - private static final int METHODID_CREATE_RELEASE_CONFIG = 57; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 58; - private static final int METHODID_DELETE_RELEASE_CONFIG = 59; - private static final int METHODID_LIST_COMPILATION_RESULTS = 60; - private static final int METHODID_GET_COMPILATION_RESULT = 61; - private static final int METHODID_CREATE_COMPILATION_RESULT = 62; - private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 63; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 64; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 65; - private static final int METHODID_GET_WORKFLOW_CONFIG = 66; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 67; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 68; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 69; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 70; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 71; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 72; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 73; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 74; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 75; - private static final int METHODID_GET_CONFIG = 76; - private static final int METHODID_UPDATE_CONFIG = 77; - private static final int METHODID_GET_IAM_POLICY = 78; - private static final int METHODID_SET_IAM_POLICY = 79; - private static final int METHODID_TEST_IAM_PERMISSIONS = 80; + private static final int METHODID_CREATE_WORKSPACE_LONG_RUNNING = 31; + private static final int METHODID_DELETE_WORKSPACE = 32; + private static final int METHODID_INSTALL_NPM_PACKAGES = 33; + private static final int METHODID_PULL_GIT_COMMITS = 34; + private static final int METHODID_SYNC_WORKSPACE_REFS = 35; + private static final int METHODID_FETCH_WORKSPACE_BRANCHES = 36; + private static final int METHODID_DELETE_BRANCH = 37; + private static final int METHODID_CHECKOUT_WORKSPACE_BRANCH = 38; + private static final int METHODID_FETCH_CURRENT_WORKSPACE_BRANCH = 39; + private static final int METHODID_PUSH_GIT_COMMITS = 40; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 41; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 42; + private static final int METHODID_FETCH_WORKSPACE_HISTORY = 43; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 44; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 45; + private static final int METHODID_FETCH_FILE_DIFF = 46; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 47; + private static final int METHODID_SEARCH_FILES = 48; + private static final int METHODID_MAKE_DIRECTORY = 49; + private static final int METHODID_REMOVE_DIRECTORY = 50; + private static final int METHODID_MOVE_DIRECTORY = 51; + private static final int METHODID_READ_FILE = 52; + private static final int METHODID_REMOVE_FILE = 53; + private static final int METHODID_MOVE_FILE = 54; + private static final int METHODID_WRITE_FILE = 55; + private static final int METHODID_LIST_RELEASE_CONFIGS = 56; + private static final int METHODID_GET_RELEASE_CONFIG = 57; + private static final int METHODID_CREATE_RELEASE_CONFIG = 58; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 59; + private static final int METHODID_DELETE_RELEASE_CONFIG = 60; + private static final int METHODID_LIST_COMPILATION_RESULTS = 61; + private static final int METHODID_GET_COMPILATION_RESULT = 62; + private static final int METHODID_CREATE_COMPILATION_RESULT = 63; + private static final int METHODID_CREATE_COMPILATION_RESULT_LONG_RUNNING = 64; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 65; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 66; + private static final int METHODID_GET_WORKFLOW_CONFIG = 67; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 68; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 69; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 70; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 71; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 72; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 73; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 74; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 75; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 76; + private static final int METHODID_GET_CONFIG = 77; + private static final int METHODID_UPDATE_CONFIG = 78; + private static final int METHODID_GET_IAM_POLICY = 79; + private static final int METHODID_SET_IAM_POLICY = 80; + private static final int METHODID_TEST_IAM_PERMISSIONS = 81; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10368,6 +10489,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_WORKSPACE_LONG_RUNNING: + serviceImpl.createWorkspaceLongRunning( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_WORKSPACE: serviceImpl.deleteWorkspace( (com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest) request, @@ -10904,6 +11030,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, com.google.cloud.dataform.v1beta1.Workspace>( service, METHODID_CREATE_WORKSPACE))) + .addMethod( + getCreateWorkspaceLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.longrunning.Operation>( + service, METHODID_CREATE_WORKSPACE_LONG_RUNNING))) .addMethod( getDeleteWorkspaceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11323,6 +11456,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListWorkspacesMethod()) .addMethod(getGetWorkspaceMethod()) .addMethod(getCreateWorkspaceMethod()) + .addMethod(getCreateWorkspaceLongRunningMethod()) .addMethod(getDeleteWorkspaceMethod()) .addMethod(getInstallNpmPackagesMethod()) .addMethod(getPullGitCommitsMethod()) diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java new file mode 100644 index 000000000000..967ecab5f32f --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadata.java @@ -0,0 +1,1622 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1; + +/** + * + * + *
+ * Represents the metadata of the `CreateWorkspaceLongRunning` operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1.CreateWorkspaceMetadata} + */ +@com.google.protobuf.Generated +public final class CreateWorkspaceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1.CreateWorkspaceMetadata) + CreateWorkspaceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateWorkspaceMetadata"); + } + + // Use CreateWorkspaceMetadata.newBuilder() to construct. + private CreateWorkspaceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateWorkspaceMetadata() { + id_ = ""; + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.Builder.class); + } + + /** + * + * + *
+   * State of the LRO.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1.CreateWorkspaceMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + FINISHED(3), + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + public static final int FINISHED_VALUE = 3; + + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return RUNNING; + case 3: + return FINISHED; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1.CreateWorkspaceMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1.CreateWorkspaceMetadata.State) + } + + private int requestCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_WORKSPACE_REQUEST(4), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 4: + return CREATE_WORKSPACE_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int CREATE_WORKSPACE_REQUEST_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, target_); + } + if (state_ + != com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, target_); + } + if (state_ + != com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (requestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1.CreateWorkspaceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1.CreateWorkspaceMetadata other = + (com.google.cloud.dataform.v1.CreateWorkspaceMetadata) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 4: + if (!getCreateWorkspaceRequest().equals(other.getCreateWorkspaceRequest())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (requestCase_) { + case 4: + hash = (37 * hash) + CREATE_WORKSPACE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateWorkspaceRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dataform.v1.CreateWorkspaceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the metadata of the `CreateWorkspaceLongRunning` operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1.CreateWorkspaceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1.CreateWorkspaceMetadata) + com.google.cloud.dataform.v1.CreateWorkspaceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1.CreateWorkspaceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (createWorkspaceRequestBuilder_ != null) { + createWorkspaceRequestBuilder_.clear(); + } + id_ = ""; + target_ = ""; + state_ = 0; + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1.DataformProto + .internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1.CreateWorkspaceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata build() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata buildPartial() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata result = + new com.google.cloud.dataform.v1.CreateWorkspaceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1.CreateWorkspaceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.cloud.dataform.v1.CreateWorkspaceMetadata result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 4 && createWorkspaceRequestBuilder_ != null) { + result.request_ = createWorkspaceRequestBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1.CreateWorkspaceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1.CreateWorkspaceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1.CreateWorkspaceMetadata other) { + if (other == com.google.cloud.dataform.v1.CreateWorkspaceMetadata.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getRequestCase()) { + case CREATE_WORKSPACE_REQUEST: + { + mergeCreateWorkspaceRequest(other.getCreateWorkspaceRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder> + createWorkspaceRequestBuilder_; + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return createWorkspaceRequestBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder builderForValue) { + if (createWorkspaceRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateWorkspaceRequest( + com.google.cloud.dataform.v1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4 + && request_ + != com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance()) { + request_ = + com.google.cloud.dataform.v1.CreateWorkspaceRequest.newBuilder( + (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + createWorkspaceRequestBuilder_.mergeFrom(value); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + createWorkspaceRequestBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder + getCreateWorkspaceRequestBuilder() { + return internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if ((requestCase_ == 4) && (createWorkspaceRequestBuilder_ != null)) { + return createWorkspaceRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder> + internalGetCreateWorkspaceRequestFieldBuilder() { + if (createWorkspaceRequestBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = com.google.cloud.dataform.v1.CreateWorkspaceRequest.getDefaultInstance(); + } + createWorkspaceRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder>( + (com.google.cloud.dataform.v1.CreateWorkspaceRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged(); + return createWorkspaceRequestBuilder_; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1.CreateWorkspaceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1.CreateWorkspaceMetadata) + private static final com.google.cloud.dataform.v1.CreateWorkspaceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1.CreateWorkspaceMetadata(); + } + + public static com.google.cloud.dataform.v1.CreateWorkspaceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java new file mode 100644 index 000000000000..129b414372d3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/CreateWorkspaceMetadataOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1; + +@com.google.protobuf.Generated +public interface CreateWorkspaceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1.CreateWorkspaceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + boolean hasCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + com.google.cloud.dataform.v1.CreateWorkspaceRequest getCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1.CreateWorkspaceRequestOrBuilder getCreateWorkspaceRequestOrBuilder(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.State getState(); + + com.google.cloud.dataform.v1.CreateWorkspaceMetadata.RequestCase getRequestCase(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java index 90b6e2d155ae..664431b15bb4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/java/com/google/cloud/dataform/v1/DataformProto.java @@ -196,6 +196,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1_CreateWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1_CreateWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1_CreateWorkspaceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1_DeleteWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1010,7 +1014,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dataform.googleapis.com/Repository\022<\n" + "\tworkspace\030\002" + " \001(\0132#.google.cloud.dataform.v1.WorkspaceB\004\342A\001\002\022\032\n" - + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"R\n" + + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"\331\002\n" + + "\027CreateWorkspaceMetadata\022Z\n" + + "\030create_workspace_request\030\004 \001(" + + "\01320.google.cloud.dataform.v1.CreateWorkspaceRequestB\004\342A\001\003H\000\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + + "\006target\030\002 \001(\tB\004\342A\001\003\022L\n" + + "\005state\030\003 \001(\01627.goo" + + "gle.cloud.dataform.v1.CreateWorkspaceMetadata.StateB\004\342A\001\003\"a\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007CREATED\020\001\022\013\n" + + "\007RUNNING\020\002\022\014\n" + + "\010FINISHED\020\003\022\r\n" + + "\tSUCCEEDED\020\004\022\n\n" + + "\006FAILED\020\005B\t\n" + + "\007request\"R\n" + "\026DeleteWorkspaceRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"?\n" @@ -1033,12 +1052,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\370\002\n" + "\034FetchFileGitStatusesResponse\022n\n" - + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.d" - + "ataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange\032\347\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132L.google.cloud.dataform.v1.F" + + "etchFileGitStatusesResponse.UncommittedFileChange\032\347\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022g\n" - + "\005state\030\002 \001(\0162R.google.cloud.dataform.v1.FetchFileGitStat" - + "usesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + + "\005state\030\002 \001(\0162R.google.cloud." + + "dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -1055,8 +1074,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035CommitWorkspaceChangesRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022<\n" - + "\006author\030\004 \001(\0132&" - + ".google.cloud.dataform.v1.CommitAuthorB\004\342A\001\002\022\034\n" + + "\006author\030\004" + + " \001(\0132&.google.cloud.dataform.v1.CommitAuthorB\004\342A\001\002\022\034\n" + "\016commit_message\030\002 \001(\tB\004\342A\001\001\022\023\n" + "\005paths\030\003 \003(\tB\004\342A\001\001\" \n" + "\036CommitWorkspaceChangesResponse\"\202\001\n" @@ -1078,8 +1097,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004path\030\002 \001(\tB\004\342A\001\001\022\027\n" + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\022C\n" - + "\004view\030\005 \001(\0162/.goog" - + "le.cloud.dataform.v1.DirectoryContentsViewB\004\342A\001\001\"~\n" + + "\004view\030\005" + + " \001(\0162/.google.cloud.dataform.v1.DirectoryContentsViewB\004\342A\001\001\"~\n" + "\036QueryDirectoryContentsResponse\022C\n" + "\021directory_entries\030\001" + " \003(\0132(.google.cloud.dataform.v1.DirectoryEntry\022\027\n" @@ -1087,8 +1106,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" + "\tdirectory\030\002 \001(\tH\000\022C\n" - + "\010metadata\030\003" - + " \001(\01321.google.cloud.dataform.v1.FilesystemEntryMetadataB\007\n" + + "\010metadata\030\003 \001(\01321" + + ".google.cloud.dataform.v1.FilesystemEntryMetadataB\007\n" + "\005entry\"j\n" + "\027FilesystemEntryMetadata\022\030\n\n" + "size_bytes\030\001 \001(\003B\004\342A\001\003\0225\n" @@ -1097,7 +1116,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022SearchFilesRequest\022=\n" + "\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" + + "\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"t\n" + "\023SearchFilesResponse\022>\n" @@ -1105,8 +1125,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017next_page_token\030\002 \001(\tB\004\342A\001\001\"\231\001\n" + "\014SearchResult\022:\n" + "\004file\030\001 \001(\0132*.google.cloud.dataform.v1.FileSearchResultH\000\022D\n" - + "\tdirectory\030\002 \001(\0132/.google" - + ".cloud.dataform.v1.DirectorySearchResultH\000B\007\n" + + "\tdirectory\030\002" + + " \001(\0132/.google.cloud.dataform.v1.DirectorySearchResultH\000B\007\n" + "\005entry\" \n" + "\020FileSearchResult\022\014\n" + "\004path\030\001 \001(\t\"%\n" @@ -1161,12 +1181,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ReleaseConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\033\n\r" + "git_commitish\030\002 \001(\tB\004\342A\001\002\022V\n" - + "\027code_compilation_config\030\003 \001(\0132/.goo" - + "gle.cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\001\022\033\n\r" + + "\027code_compilation_config\030\003" + + " \001(\0132/.google.cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\001\022\033\n" + + "\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022n\n" - + " recent_scheduled_release_records\030\005 \003(\0132>.google.cloud" - + ".dataform.v1.ReleaseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + + " recent_scheduled_release_records\030\005 \003(\0132>.google.cloud.dataform.v1" + + ".ReleaseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + "\032release_compilation_result\030\006 \001(\tB2\342A\001\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\022$\n" @@ -1178,9 +1199,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014release_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{pr" - + "oject}/locations/{location}/repositories" - + "/{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/locat" + + "ions/{location}/repositories/{repository" + + "}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\213\001\n" + "\031ListReleaseConfigsRequest\022;\n" @@ -1217,31 +1238,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB.\342A\001\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022V\n" - + "\027code_compilation_config\030\004 \001" - + "(\0132/.google.cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\005\022%\n" + + "\027code_compilation_config\030\004 \001(\0132/.google." + + "cloud.dataform.v1.CodeCompilationConfigB\004\342A\001\005\022%\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\004\342A\001\003\022#\n" + "\025dataform_core_version\030\005 \001(\tB\004\342A\001\003\022^\n" - + "\022compilation_errors\030\006 \003(" - + "\0132<.google.cloud.dataform.v1.CompilationResult.CompilationErrorB\004\342A\001\003\022R\n" + + "\022compilation_errors\030\006 \003(\0132<.google.c" + + "loud.dataform.v1.CompilationResult.CompilationErrorB\004\342A\001\003\022R\n" + "\025data_encryption_state\030\t" + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\004\342A\001\003\0225\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\013 \001(\tB\004\342A\001\003H\001\210\001\001\022Z\n" - + "\031private_resource_metadata\030\014 \001(" - + "\01321.google.cloud.dataform.v1.PrivateResourceMetadataB\004\342A\001\003\022g\n" + + "\031private_resource_metadata\030\014 \001(\01321.google.c" + + "loud.dataform.v1.PrivateResourceMetadataB\004\342A\001\003\022g\n" + " gcs_repository_snapshot_metadata\030\r" - + " \001(\01327.google.cloud.data" - + "form.v1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\221\001\n" + + " \001(\01327.google.cloud.dataform.v1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\221\001\n" + "\020CompilationError\022\025\n" + "\007message\030\001 \001(\tB\004\342A\001\003\022\023\n" + "\005stack\030\002 \001(\tB\004\342A\001\003\022\022\n" + "\004path\030\003 \001(\tB\004\342A\001\003\022=\n\r" + "action_target\030\004 \001(\0132" + " .google.cloud.dataform.v1.TargetB\004\342A\001\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iprojects/{project}/locations/{locatio" - + "n}/repositories/{repository}/compilation" - + "Results/{compilation_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022iprojects/" + + "{project}/locations/{location}/repositories/{repository}/compilationResults/{com" + + "pilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\371\004\n" + "\025CodeCompilationConfig\022\036\n" @@ -1249,15 +1269,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\004\342A\001\001\022\036\n" + "\020default_location\030\010 \001(\tB\004\342A\001\001\022\036\n" + "\020assertion_schema\030\003 \001(\tB\004\342A\001\001\022M\n" - + "\004vars\030\004 \003(\01329.google.cloud" - + ".dataform.v1.CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + + "\004vars\030\004 \003(\01329.google.cloud.dataform.v1" + + ".CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + "\017database_suffix\030\005 \001(\tB\004\342A\001\001\022\033\n\r" + "schema_suffix\030\006 \001(\tB\004\342A\001\001\022\032\n" + "\014table_prefix\030\007 \001(\tB\004\342A\001\001\022+\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\004\342A\001\001\022`\n" - + " default_notebook_runtime_options\030\t \001(\01320.google.cloud" - + ".dataform.v1.NotebookRuntimeOptionsB\004\342A\001\001\022G\n" + + " default_notebook_runtime_options\030\t" + + " \001(\01320.google.cloud.dataform.v1.NotebookRuntimeOptionsB\004\342A\001\001\022G\n" + "\017pipeline_config\030\014" + " \001(\0132(.google.cloud.dataform.v1.PipelineConfigB\004\342A\001\001\022\"\n" + "\017lineage_enabled\030\016 \001(\010B\004\342A\001\003H\000\210\001\001\032+\n" @@ -1273,50 +1293,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027repository_snapshot_uri\030\001 \001(\tB\004\342A\001\001\"\310\002\n" + "\026NotebookRuntimeOptions\022!\n" + "\021gcs_output_bucket\030\001 \001(\tB\004\342A\001\001H\000\022o\n" - + "#gcs_repository_snapshot_destination\030\003" - + " \001(\0132:.google.cloud.dataform.v1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + + "#gcs_repository_snapshot_destination\030\003 \001(\0132:.goo" + + "gle.cloud.dataform.v1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + "%ai_platform_notebook_runtime_template\030\002 \001(\tB:\342A\001\001\372A3\n" + "1aiplatform.googleapis.com/NotebookRuntimeTemplateB\020\n" + "\016execution_sinkB\035\n" + "\033repository_snapshot_storage\"\314\001\n" - + "\016PipelineConfig\022R\n\r" - + "pipeline_type\030\001 \001(\01625.googl" - + "e.cloud.dataform.v1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + + "\016PipelineConfig\022R\n" + + "\r" + + "pipeline_type\030\001 \001(\01625.google.cloud.data" + + "form.v1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + "\004path\030\002 \001(\tB\004\342A\001\002\"R\n" + "\014PipelineType\022\035\n" + "\031PIPELINE_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010DATAFORM\020\001\022\007\n" + "\003SQL\020\003\022\014\n" + "\010NOTEBOOK\020\004\"\275\001\n" - + "\035ListCompilationResultsRequest\022;\n" + + "\035ListCompil", + "ationResultsRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\230\001\n" + "\036ListCompilationResultsResponse\022H\n" - + "\023compilation_results\030\001" - + " \003(\0132+.google.cloud.dataform.v1.CompilationResult\022\027\n" + + "\023compilation_results\030\001 \003(" + + "\0132+.google.cloud.dataform.v1.CompilationResult\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"_\n" - + "\033GetCompilati", - "onResultRequest\022@\n" + + "\033GetCompilationResultRequest\022@\n" + "\004name\030\001 \001(\tB2\342A\001\002\372A+\n" + ")dataform.googleapis.com/CompilationResult\"\254\001\n" + "\036CreateCompilationResultRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022M\n" - + "\022compilation_result\030\002" - + " \001(\0132+.google.cloud.dataform.v1.CompilationResultB\004\342A\001\002\"\355\002\n" + + "\022compilation_result\030\002 \001(\0132+.goog" + + "le.cloud.dataform.v1.CompilationResultB\004\342A\001\002\"\355\002\n" + "\037CreateCompilationResultMetadata\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + "\006target\030\002 \001(\tB\004\342A\001\003\022T\n" - + "\005state\030\003 \001(\0162?.google.clo" - + "ud.dataform.v1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022i\n" - + "!create_compilation_result_request\030\004 \001(\01328.google.cloud.dat" - + "aform.v1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + + "\005state\030\003 \001(\0162?.google.cloud.dataform." + + "v1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022i\n" + + "!create_compilation_result_request\030\004" + + " \001(\01328.google.cloud.dataform.v1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007CREATED\020\001\022\013\n" @@ -1330,10 +1350,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\003 \001(\tB\004\342A\001\001\"\340\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022N\n" - + "\007columns\030\002 \003(" - + "\0132=.google.cloud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" - + "\017bigquery_labels\030\003" - + " \003(\0132@.google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 \003(\0132=.google.c" + + "loud.dataform.v1.RelationDescriptor.ColumnDescriptor\022Y\n" + + "\017bigquery_labels\030\003 \003(\0132@." + + "google.cloud.dataform.v1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" @@ -1342,20 +1362,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\306 \n" + "\027CompilationResultAction\022N\n" - + "\010relation\030\004 \001(\0132:.google.cloud.dat" - + "aform.v1.CompilationResultAction.RelationH\000\022R\n\n" - + "operations\030\005 \001(\0132<.google.cloud.d" - + "ataform.v1.CompilationResultAction.OperationsH\000\022P\n" - + "\tassertion\030\006 \001(\0132;.google.clou" - + "d.dataform.v1.CompilationResultAction.AssertionH\000\022T\n" - + "\013declaration\030\007 \001(\0132=.google." - + "cloud.dataform.v1.CompilationResultAction.DeclarationH\000\022N\n" - + "\010notebook\030\010 \001(\0132:.goog" - + "le.cloud.dataform.v1.CompilationResultAction.NotebookH\000\022]\n" - + "\020data_preparation\030\t \001(" - + "\0132A.google.cloud.dataform.v1.CompilationResultAction.DataPreparationH\000\022`\n" - + "\022bigquery_unit_test\030\013 \001(\0132B.google.cloud.datafo" - + "rm.v1.CompilationResultAction.BigQueryUnitTestH\000\0220\n" + + "\010relation\030\004" + + " \001(\0132:.google.cloud.dataform.v1.CompilationResultAction.RelationH\000\022R\n\n" + + "operations\030\005" + + " \001(\0132<.google.cloud.dataform.v1.CompilationResultAction.OperationsH\000\022P\n" + + "\tassertion\030\006" + + " \001(\0132;.google.cloud.dataform.v1.CompilationResultAction.AssertionH\000\022T\n" + + "\013declaration\030\007 \001(\0132=.google.cloud.datafo" + + "rm.v1.CompilationResultAction.DeclarationH\000\022N\n" + + "\010notebook\030\010 \001(\0132:.google.cloud.dat" + + "aform.v1.CompilationResultAction.NotebookH\000\022]\n" + + "\020data_preparation\030\t \001(\0132A.google.c" + + "loud.dataform.v1.CompilationResultAction.DataPreparationH\000\022`\n" + + "\022bigquery_unit_test\030\013" + + " \001(\0132B.google.cloud.dataform.v1.CompilationResultAction.BigQueryUnitTestH\000\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022:\n" + "\020canonical_target\030\002 \001(\0132 .google.cloud.dataform.v1.Target\022\021\n" + "\tfile_path\030\003 \001(\t\022$\n" @@ -1366,28 +1386,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" + "\023relation_descriptor\030\004" - + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n" - + "\r" - + "relation_type\030\005 \001(\0162G.google.cloud.data" - + "form.v1.CompilationResultAction.Relation.RelationType\022\024\n" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022^\n\r" + + "relation_type\030\005 \001(\0162G.google.cloud.dataform.v1.Comp" + + "ilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022s\n" - + "\030incremental_table_config\030\t \001(\0132Q.google.cloud.dataform.v1.CompilationRes" - + "ultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132Q.google.clou" + + "d.dataform.v1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022m\n" - + "\022additional_options\030\016 \003(\0132Q.google.cloud.dataform.v1.CompilationResu" - + "ltAction.Relation.AdditionalOptionsEntry\022\030\n\n" + + "\022additional_options\030\016 \003(\0132Q.google.cloud" + + ".dataform.v1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\030\n\n" + "connection\030\017 \001(\tB\004\342A\001\001\022b\n" - + "\014table_format\030\020 \001(\0162F.google.cloud.dataform.v1.Comp" - + "ilationResultAction.Relation.TableFormatB\004\342A\001\001\022`\n" - + "\013file_format\030\021 \001(\0162E.google.clo" - + "ud.dataform.v1.CompilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + + "\014table_format\030\020 \001(\0162F.g" + + "oogle.cloud.dataform.v1.CompilationResultAction.Relation.TableFormatB\004\342A\001\001\022`\n" + + "\013file_format\030\021 \001(\0162E.google.cloud.dataform." + + "v1.CompilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + "\013storage_uri\030\022 \001(\tB\004\342A\001\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" @@ -1410,16 +1429,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007ICEBERG\020\001\"6\n\n" + "FileFormat\022\033\n" + "\027FILE_FORMAT_UNSPECIFIED\020\000\022\013\n" - + "\007PARQUET\020\001\032\332\001\n" - + "\n" + + "\007PARQUET\020\001\032\332\001\n\n" + "Operations\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022I\n" - + "\023relation_descriptor\030\006" - + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\022\017\n" - + "\007queries\030\004 \003(\t\022\022\n" - + "\n" + + "\023relation_descriptor\030\006 \001" + + "(\0132,.google.cloud.dataform.v1.RelationDescriptor\022\017\n" + + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\203\002\n" + "\tAssertion\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\0227\n\r" @@ -1427,11 +1444,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022I\n" - + "\023relation_descriptor\030\006 \001(\0132,.goog" - + "le.cloud.dataform.v1.RelationDescriptor\032X\n" + + "\023relation_descriptor\030\006" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032X\n" + "\013Declaration\022I\n" - + "\023relation_descriptor\030\001 " - + "\001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032z\n" + + "\023relation_descriptor\030\001" + + " \001(\0132,.google.cloud.dataform.v1.RelationDescriptor\032z\n" + "\010Notebook\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\020\n" @@ -1439,17 +1456,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\247\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022g\n" - + "\014contents_sql\030\006 \001(\0132O.google.cloud.dataform.v1.CompilationR" - + "esultAction.DataPreparation.SqlDefinitionH\000\022<\n" + + "\014contents_sql\030\006 \001(\0132O.google.cl" + + "oud.dataform.v1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022<\n" + "\022dependency_targets\030\001 \003(\0132 .google.cloud.dataform.v1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\004 \003(\t\032\315\001\n\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022a\n" - + "\013error_table\030\002 \001(\0132L.google" - + ".cloud.dataform.v1.CompilationResultAction.DataPreparation.ErrorTable\022J\n" - + "\004load\030\003 " - + "\001(\0132<.google.cloud.dataform.v1.CompilationResultAction.LoadConfig\032V\n\n" + + "\013error_table\030\002 \001(\0132L.google.cloud.dataf" + + "orm.v1.CompilationResultAction.DataPreparation.ErrorTable\022J\n" + + "\004load\030\003 \001(\0132<.google" + + ".cloud.dataform.v1.CompilationResultAction.LoadConfig\032V\n\n" + "ErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" @@ -1462,14 +1479,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "test_query\030\005 \001(\t\022\035\n" + "\025expected_output_query\030\006 \001(\t\032\360\002\n\n" + "LoadConfig\022S\n" - + "\007replace\030\001 \001(\0132@.google.clo" - + "ud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" - + "\006append\030\002 \001(\0132@.google" - + ".cloud.dataform.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" - + "\007maximum\030\003 \001(\0132E.g" - + "oogle.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000\022W\n" - + "\006unique\030\004 \001(\0132E.google.cloud.dataform.v1.Compila" - + "tionResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132@.google.cloud.dataform." + + "v1.CompilationResultAction.SimpleLoadModeH\000\022R\n" + + "\006append\030\002 \001(\0132@.google.cloud.dataf" + + "orm.v1.CompilationResultAction.SimpleLoadModeH\000\022X\n" + + "\007maximum\030\003 \001(\0132E.google.cloud." + + "dataform.v1.CompilationResultAction.IncrementalLoadModeH\000\022W\n" + + "\006unique\030\004 \001(\0132E.goog" + + "le.cloud.dataform.v1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1483,8 +1500,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"\227\001\n" + "%QueryCompilationResultActionsResponse\022U\n" - + "\032compilation_result_actions\030\001 \003" - + "(\01321.google.cloud.dataform.v1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01321.google." + + "cloud.dataform.v1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\270\007\n" + "\016WorkflowConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022F\n" @@ -1494,8 +1511,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\004\342A\001\001\022\033\n\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022s\n" - + "\"recent_scheduled_execution_records\030\005" - + " \003(\0132A.google.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + + "\"recent_scheduled_execution_records\030\005 \003(\0132A.googl" + + "e.cloud.dataform.v1.WorkflowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\0225\n" + "\013create_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" @@ -1509,9 +1526,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{location}/r" - + "epositories/{repository}/workflowConfigs" - + "/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{pro" + + "ject}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_c" + + "onfig}*\017workflowConfigs2\016workflowConfigB\024\n" + "\022_internal_metadata\"\341\007\n" + "\020InvocationConfig\022@\n" + "\020included_targets\030\001 \003(\0132" @@ -1522,14 +1539,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(fully_refresh_incremental_tables_enabled\030\005" + " \001(\010B\004\342A\001\001\022\035\n" + "\017service_account\030\006 \001(\tB\004\342A\001\001\022j\n" - + "\024end_user_auth_config\030\007 \001(\0132F.google.cloud.dataform.v1.InvocationCo" - + "nfig.EndUserAuthenticationConfigB\004\342A\001\001\022[\n" - + "\016query_priority\030\t \001(\01628.google.cloud.da" - + "taform.v1.InvocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + + "\024end_user_auth_config\030\007 \001(\0132F.google.cl" + + "oud.dataform.v1.InvocationConfig.EndUserAuthenticationConfigB\004\342A\001\001\022[\n" + + "\016query_priority\030\t \001(\01628.google.cloud.dataform.v1.In" + + "vocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + "\030concurrent_actions_limit\030\n" + " \001(\005B\004\342A\001\001H\001\210\001\001\022V\n" - + "\016execution_mode\030\020 \001(\016" - + "28.google.cloud.dataform.v1.InvocationConfig.ExecutionModeB\004\342A\001\001\032z\n" + + "\016execution_mode\030\020 \001(\01628.google.cl" + + "oud.dataform.v1.InvocationConfig.ExecutionModeB\004\342A\001\001\032z\n" + "\033EndUserAuthenticationConfig\022\030\n\n" + "user_email\030\002 \001(\tB\004\342A\001\003\022A\n" + "\014oauth_config\030\004" @@ -1561,14 +1578,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CreateWorkflowConfigRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022G\n" - + "\017workflow_config\030\002" - + " \001(\0132(.google.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\022 \n" + + "\017workflow_config\030\002 \001(\0132(.go" + + "ogle.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\022 \n" + "\022workflow_config_id\030\003 \001(\tB\004\342A\001\002\"\235\001\n" + "\033UpdateWorkflowConfigRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022G\n" - + "\017workflow_config\030\002 \001(" - + "\0132(.google.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\"\\\n" + + "\017workflow_config\030\002" + + " \001(\0132(.google.cloud.dataform.v1.WorkflowConfigB\004\342A\001\002\"\\\n" + "\033DeleteWorkflowConfigRequest\022=\n" + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + "&dataform.googleapis.com/WorkflowConfig\"\347\010\n" @@ -1578,21 +1595,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017workflow_config\030\006 \001(\tB/\342A\001\005\372A(\n" + "&dataform.googleapis.com/WorkflowConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022K\n" - + "\021invocation_config\030\003" - + " \001(\0132*.google.cloud.dataform.v1.InvocationConfigB\004\342A\001\005\022G\n" - + "\005state\030\004 \001(\01622.g" - + "oogle.cloud.dataform.v1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + + "\021invocation_config\030\003 \001(\0132" + + "*.google.cloud.dataform.v1.InvocationConfigB\004\342A\001\005\022G\n" + + "\005state\030\004 \001(\01622.google.cloud." + + "dataform.v1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022W\n" + "\033resolved_compilation_result\030\007 \001(\tB2\342A\001\003\372A+\n" + ")dataform.googleapis.com/CompilationResult\022R\n" - + "\025data_encryption_state\030\010 \001(\0132-.google." - + "cloud.dataform.v1.DataEncryptionStateB\004\342A\001\003\022$\n" + + "\025data_encryption_state\030\010" + + " \001(\0132-.google.cloud.dataform.v1.DataEncryptionStateB\004\342A\001\003\022$\n" + "\021internal_metadata\030\t \001(\tB\004\342A\001\003H\001\210\001\001\022Z\n" + "\031private_resource_metadata\030\n" + " \001(\01321.google.cloud.dataform.v1.PrivateResourceMetadataB\004\342A\001\003\022G\n" - + "\017pipeline_config\030\013 \001(\0132(" - + ".google.cloud.dataform.v1.PipelineConfigB\004\342A\001\003\"d\n" + + "\017pipeline_config\030\013" + + " \001(\0132(.google.cloud.dataform.v1.PipelineConfigB\004\342A\001\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1600,9 +1617,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022" - + "kprojects/{project}/locations/{location}/repositories/{repository}/workflowInvoc" - + "ations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{p" + + "roject}/locations/{location}/repositories/{repository}/workflowInvocations/{work" + + "flow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\276\001\n" + "\036ListWorkflowInvocationsRequest\022;\n" @@ -1613,8 +1630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\233\001\n" + "\037ListWorkflowInvocationsResponse\022J\n" - + "\024workflow_invocations\030\001" - + " \003(\0132,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + + "\024workflow_invocations\030\001 \003(\013" + + "2,.google.cloud.dataform.v1.WorkflowInvocation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"a\n" + "\034GetWorkflowInvocationRequest\022A\n" @@ -1623,8 +1640,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037CreateWorkflowInvocationRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022O\n" - + "\023workflow_invocation\030\002" - + " \001(\0132,.google.cloud.dataform.v1.WorkflowInvocationB\004\342A\001\002\"d\n" + + "\023workflow_invocation\030\002 \001(\0132,." + + "google.cloud.dataform.v1.WorkflowInvocationB\004\342A\001\002\"d\n" + "\037DeleteWorkflowInvocationRequest\022A\n" + "\004name\030\001 \001(\tB3\342A\001\002\372A,\n" + "*dataform.googleapis.com/WorkflowInvocation\"d\n" @@ -1633,21 +1650,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\310\023\n" + "\030WorkflowInvocationAction\022b\n" - + "\017bigquery_action\030\006 \001(\0132A.go" - + "ogle.cloud.dataform.v1.WorkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022b\n" - + "\017notebook_action\030\010 \001(\0132A.google.cloud.dataform." - + "v1.WorkflowInvocationAction.NotebookActionB\004\342A\001\003H\000\022q\n" - + "\027data_preparation_action\030\t \001(\0132H.google.cloud.dataform.v1.WorkflowI" - + "nvocationAction.DataPreparationActionB\004\342A\001\003H\000\022t\n" - + "\031bigquery_unit_test_action\030\014 \001(\013" - + "2I.google.cloud.dataform.v1.WorkflowInvo" - + "cationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\0226\n" + + "\017bigquery_action\030\006 \001(\0132A.google.cloud.d" + + "ataform.v1.WorkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022b\n" + + "\017notebook_action\030\010 \001(\0132A.google.cloud.dataform.v1.WorkflowI" + + "nvocationAction.NotebookActionB\004\342A\001\003H\000\022q\n" + + "\027data_preparation_action\030\t \001(\0132H.google" + + ".cloud.dataform.v1.WorkflowInvocationAction.DataPreparationActionB\004\342A\001\003H\000\022t\n" + + "\031bigquery_unit_test_action\030\014 \001(\0132I.google.cl" + + "oud.dataform.v1.WorkflowInvocationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\0226\n" + "\006target\030\001 \001(\0132" + " .google.cloud.dataform.v1.TargetB\004\342A\001\003\022@\n" + "\020canonical_target\030\002 \001(\0132" + " .google.cloud.dataform.v1.TargetB\004\342A\001\003\022M\n" - + "\005state\030\004 \001(\01628.google.cloud.data" - + "form.v1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + + "\005state\030\004" + + " \001(\01628.google.cloud.dataform.v1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + "\016failure_reason\030\007 \001(\tB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022$\n" @@ -1662,28 +1678,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tfile_path\030\003 \001(\tB\004\342A\001\003\032\204\t\n" + "\025DataPreparationAction\022\035\n\r" + "contents_yaml\030\002 \001(\tB\004\342A\001\003H\000\022t\n" - + "\014contents_sql\030\006 \001(\0132\\.google.cloud.dataform.v1.WorkflowIn" - + "vocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + + "\014contents_sql\030\006 \001(\0132\\.google.cloud.dataform.v1.WorkflowInvocationActi" + + "on.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + "generated_sql\030\003 \001(\tB\004\342A\001\003\022\024\n" + "\006job_id\030\004 \001(\tB\004\342A\001\003\032\204\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022n\n" - + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.Wor" - + "kflowInvocationAction.DataPreparationAction.ActionErrorTable\022n\n" - + "\013load_config\030\003 \001(\0132Y.google.cloud.dataform.v1.WorkflowInv" - + "ocationAction.DataPreparationAction.ActionLoadConfig\032\\\n" + + "\013error_table\030\002 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvocat" + + "ionAction.DataPreparationAction.ActionErrorTable\022n\n" + + "\013load_config\030\003 \001(\0132Y.google.cloud.dataform.v1.WorkflowInvocationActio" + + "n.DataPreparationAction.ActionLoadConfig\032\\\n" + "\020ActionErrorTable\0220\n" + "\006target\030\001 \001(\0132 .google.cloud.dataform.v1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\352\003\n" + "\020ActionLoadConfig\022p\n" - + "\007replace\030\001 \001(\0132].google.cloud.dataform.v1.WorkflowInvocationAction.Dat" - + "aPreparationAction.ActionSimpleLoadModeH\000\022o\n" - + "\006append\030\002 \001(\0132].google.cloud.datafor" - + "m.v1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" - + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.W" - + "orkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" - + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.Wor" - + "kflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132].google.cloud.dataform.v1." + + "WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022o\n" + + "\006append\030\002 \001(\0132].google.cloud.dataform.v1.Workflo" + + "wInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022u\n" + + "\007maximum\030\003 \001(\0132b.google.cloud.dataform.v1.WorkflowInvoc" + + "ationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022t\n" + + "\006unique\030\004 \001(\0132b.google.cloud.dataform.v1.WorkflowInvocat" + + "ionAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1713,16 +1729,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\232\001\n" + "&QueryWorkflowInvocationActionsResponse\022W\n" - + "\033workflow_invocation_actions\030\001" - + " \003(\01322.google.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" + + "\033workflow_invocation_actions\030\001 \003(\01322.g" + + "oogle.cloud.dataform.v1.WorkflowInvocationAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\002\n" + "\006Config\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022H\n" + "\024default_kms_key_name\030\002 \001(\tB*\342A\001\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022.projects/{pro" - + "ject}/locations/{location}/config*\007configs2\006configB\024\n" + + "\036dataform.googleapis.com/Config\022.projects/{project}/locati" + + "ons/{location}/config*\007configs2\006configB\024\n" + "\022_internal_metadata\"I\n" + "\020GetConfigRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" @@ -1743,8 +1759,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\010 \001(\tB\004\342A\001\003H\001\210\001\001:n\352Ak\n" - + "\036dataform.googleapis.com/Folder\0228proje" - + "cts/{project}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\036dataform.googleapis.com/Folder\0228projects/{project" + + "}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\211\001\n" + "\023CreateFolderRequest\022:\n" @@ -1782,8 +1798,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022M\n" - + "\005state\030\004" - + " \001(\01628.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + + "\005state\030\004 \001(\016" + + "28.google.cloud.dataform.v1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + "\020percent_complete\030\005 \001(\005B\004\342A\001\003\"[\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -1799,11 +1815,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\243\002\n" + "\033QueryFolderContentsResponse\022Z\n" - + "\007entries\030\001 \003(\0132I.go" - + "ogle.cloud.dataform.v1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132I.google.cloud.d" + + "ataform.v1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\216\001\n" + "\023FolderContentsEntry\0222\n" - + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + + "\006folder\030\001 ", + "\001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" + "repository\030\002 \001(\0132$.google.cloud.dataform.v1.RepositoryH\000B\007\n" + "\005entry\"\275\001\n" + "\034QueryUserRootContentsRequest\022<\n" @@ -1814,9 +1831,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\243\002\n" + "\035QueryUserRootContentsResponse\022Z\n" - + "\007entries\030\001 ", - "\003(\0132I.google.cloud.dataform.v1.QueryUser" - + "RootContentsResponse.RootContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132I.google" + + ".cloud.dataform.v1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\214\001\n" + "\021RootContentsEntry\0222\n" + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" @@ -1832,8 +1848,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021internal_metadata\030\005 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\006 \001(" + "\tB\004\342A\001\003H\001\210\001\001:\204\001\352A\200\001\n" - + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{projec" - + "t}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{project}/locations" + + "/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + "teamFolderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\226\001\n" @@ -1861,8 +1877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\263\002\n" + "\037QueryTeamFolderContentsResponse\022b\n" - + "\007entries\030\001 \003(\0132Q.google.cloud.dataform.v1.QueryTeam" - + "FolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132Q.google" + + ".cloud.dataform.v1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\222\001\n" + "\027TeamFolderContentsEntry\0222\n" + "\006folder\030\001 \001(\0132 .google.cloud.dataform.v1.FolderH\000\022:\n\n" @@ -1876,8 +1892,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\361\001\n" + "\031SearchTeamFoldersResponse\022[\n" - + "\007results\030\001 \003(\0132J.google.cloud.dataform." - + "v1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\007results\030\001 \003(\0132J.google.cloud.dataform.v1.SearchTea" + + "mFoldersResponse.TeamFolderSearchResult\022\027\n" + "\017next_page_token\030\002 \001(\t\032^\n" + "\026TeamFolderSearchResult\022;\n" + "\013team_folder\030\002 \001(\0132$.google.cloud.dataform.v1.TeamFolderH\000B\007\n" @@ -1903,8 +1919,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022E\n" - + "\005state\030\004 \001(\0162" - + "6.google.cloud.dataform.v1.MoveRepositoryMetadata.State\022\030\n" + + "\005state\030\004 \001(\01626.google.clo" + + "ud.dataform.v1.MoveRepositoryMetadata.State\022\030\n" + "\020percent_complete\030\005 \001(\005\"Y\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -1915,375 +1931,388 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DirectoryContentsView\022\'\n" + "#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n" + "\035DIRECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n" - + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\254\200\001\n" + + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\310\202\001\n" + "\010Dataform\022\245\001\n\r" - + "GetTeamFolder\022..google.cloud.dataform.v1.GetTeamFolderRequest\032$.googl" - + "e.cloud.dataform.v1.TeamFolder\">\332A\004name\202" - + "\323\344\223\0021\022//v1/{name=projects/*/locations/*/teamFolders/*}\022\306\001\n" - + "\020CreateTeamFolder\0221.google.cloud.dataform.v1.CreateTeamFolderR" - + "equest\032$.google.cloud.dataform.v1.TeamFo" - + "lder\"Y\332A\022parent,team_folder\202\323\344\223\002>\"//v1/{" - + "parent=projects/*/locations/*}/teamFolders:\013team_folder\022\327\001\n" - + "\020UpdateTeamFolder\0221.google.cloud.dataform.v1.UpdateTeamFolder" - + "Request\032$.google.cloud.dataform.v1.TeamF" - + "older\"j\332A\027team_folder,update_mask\202\323\344\223\002J2" - + ";/v1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\013team_folder\022\235\001\n" - + "\020DeleteTeamFolder\0221.google.cloud.dataform.v" - + "1.DeleteTeamFolderRequest\032\026.google.proto" - + "buf.Empty\">\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/teamFolders/*}\022\365\001\n" - + "\024DeleteTeamFolderTree\0225.google.cloud.datafo" - + "rm.v1.DeleteTeamFolderTreeRequest\032\035.google.longrunning.Operation\"\206\001\312A1\n" + + "GetTeamFolder\022..google.cloud.dataform.v1." + + "GetTeamFolderRequest\032$.google.cloud.data" + + "form.v1.TeamFolder\">\332A\004name\202\323\344\223\0021\022//v1/{" + + "name=projects/*/locations/*/teamFolders/*}\022\306\001\n" + + "\020CreateTeamFolder\0221.google.cloud.dataform.v1.CreateTeamFolderRequest\032$.goo" + + "gle.cloud.dataform.v1.TeamFolder\"Y\332A\022par" + + "ent,team_folder\202\323\344\223\002>\"//v1/{parent=proje" + + "cts/*/locations/*}/teamFolders:\013team_folder\022\327\001\n" + + "\020UpdateTeamFolder\0221.google.cloud.dataform.v1.UpdateTeamFolderRequest\032$.go" + + "ogle.cloud.dataform.v1.TeamFolder\"j\332A\027te" + + "am_folder,update_mask\202\323\344\223\002J2;/v1/{team_f" + + "older.name=projects/*/locations/*/teamFolders/*}:\013team_folder\022\235\001\n" + + "\020DeleteTeamFolder\0221.google.cloud.dataform.v1.DeleteTeam" + + "FolderRequest\032\026.google.protobuf.Empty\">\332" + + "A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/teamFolders/*}\022\365\001\n" + + "\024DeleteTeamFolderTree\0225.google.cloud.dataform.v1.Delete" + + "TeamFolderTreeRequest\032\035.google.longrunning.Operation\"\206\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323\344\223\002?\":/v1/{name=projects/*" - + "/locations/*/teamFolders/*}:deleteTree:\001*\022\352\001\n" - + "\027QueryTeamFolderContents\0228.google.cloud.dataform.v1.QueryTeamFolderContents" - + "Request\0329.google.cloud.dataform.v1.Query" - + "TeamFolderContentsResponse\"Z\332A\013team_fold" - + "er\202\323\344\223\002F\022D/v1/{team_folder=projects/*/lo" - + "cations/*/teamFolders/*}:queryContents\022\276\001\n" - + "\021SearchTeamFolders\0222.google.cloud.data" - + "form.v1.SearchTeamFoldersRequest\0323.google.cloud.dataform.v1.SearchTeamFoldersRes" - + "ponse\"@\202\323\344\223\002:\0228/v1/{location=projects/*/locations/*}/teamFolders:search\022\225\001\n" - + "\tGetFolder\022*.google.cloud.dataform.v1.GetFolderRequest\032" - + " .google.cloud.dataform.v1.Fol" - + "der\":\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/folders/*}\022\254\001\n" + + "name,force" + + "\202\323\344\223\002?\":/v1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\001*\022\352\001\n" + + "\027QueryTeamFolderContents\0228.google.cloud.datafor" + + "m.v1.QueryTeamFolderContentsRequest\0329.google.cloud.dataform.v1.QueryTeamFolderCo" + + "ntentsResponse\"Z\332A\013team_folder\202\323\344\223\002F\022D/v" + + "1/{team_folder=projects/*/locations/*/teamFolders/*}:queryContents\022\276\001\n" + + "\021SearchTeamFolders\0222.google.cloud.dataform.v1.Sear" + + "chTeamFoldersRequest\0323.google.cloud.data" + + "form.v1.SearchTeamFoldersResponse\"@\202\323\344\223\002" + + ":\0228/v1/{location=projects/*/locations/*}/teamFolders:search\022\225\001\n" + + "\tGetFolder\022*.google.cloud.dataform.v1.GetFolderRequest\032 ." + + "google.cloud.dataform.v1.Folder\":\332A\004name" + + "\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/folders/*}\022\254\001\n" + "\014CreateFolder\022-.google.cloud.dataform.v1.CreateFolderRequest\032" + " .google.cloud.dataform.v1.Folder\"K\332A\r" - + "parent,folder\202\323\344\223\0025\"+/v1/{parent=p" - + "rojects/*/locations/*}/folders:\006folder\022\270\001\n" + + "parent" + + ",folder\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/folders:\006folder\022\270\001\n" + "\014UpdateFolder\022-.google.cloud.dataform.v1.UpdateFolderRequest\032" - + " .google.cloud.dataform.v1.Folder\"W\332A\022folder,update_mask\202" - + "\323\344\223\002<22/v1/{folder.name=projects/*/locations/*/folders/*}:\006folder\022\221\001\n" - + "\014DeleteFolder\022-.google.cloud.dataform.v1.DeleteFold" - + "erRequest\032\026.google.protobuf.Empty\":\332A\004na" - + "me\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/folders/*}\022\351\001\n" - + "\020DeleteFolderTree\0221.google.cloud.dataform.v1.DeleteFolderTreeRe" - + "quest\032\035.google.longrunning.Operation\"\202\001\312A1\n" + + " .google.cloud.dataform.v1.Fo" + + "lder\"W\332A\022folder,update_mask\202\323\344\223\002<22/v1/{" + + "folder.name=projects/*/locations/*/folders/*}:\006folder\022\221\001\n" + + "\014DeleteFolder\022-.google.cloud.dataform.v1.DeleteFolderRequest\032\026." + + "google.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v" + + "1/{name=projects/*/locations/*/folders/*}\022\351\001\n" + + "\020DeleteFolderTree\0221.google.cloud.da" + + "taform.v1.DeleteFolderTreeRequest\032\035.google.longrunning.Operation\"\202\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323\344\223\002;\"6/v1/{nam" - + "e=projects/*/locations/*/folders/*}:deleteTree:\001*\022\326\001\n" - + "\023QueryFolderContents\0224.google.cloud.dataform.v1.QueryFolderContents" - + "Request\0325.google.cloud.dataform.v1.Query" - + "FolderContentsResponse\"R\332A\006folder\202\323\344\223\002C\022" - + "A/v1/{folder=projects/*/locations/*/folders/*}:queryFolderContents\022\330\001\n" - + "\025QueryUserRootContents\0226.google.cloud.dataform.v1." - + "QueryUserRootContentsRequest\0327.google.cloud.dataform.v1.QueryUserRootContentsRes" - + "ponse\"N\332A\010location\202\323\344\223\002=\022;/v1/{location=" - + "projects/*/locations/*}:queryUserRootContents\022\351\001\n\n" - + "MoveFolder\022+.google.cloud.data" - + "form.v1.MoveFolderRequest\032\035.google.longrunning.Operation\"\216\001\312A+\n" - + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destina" - + "tion_containing_folder\202\323\344\223\0025\"0/v1/{name=" - + "projects/*/locations/*/folders/*}:move:\001*\022\274\001\n" - + "\020ListRepositories\0221.google.cloud.dataform.v1.ListRepositoriesRequest\0322.goog" - + "le.cloud.dataform.v1.ListRepositoriesRes" - + "ponse\"A\332A\006parent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/repositories\022\246\001\n\r" - + "GetRepository\022..google.cloud.dataform.v1.Ge" - + "tRepositoryRequest\032$.google.cloud.datafo" - + "rm.v1.Repository\"?\332A\004name\202\323\344\223\0022\0220/v1/{na" - + "me=projects/*/locations/*/repositories/*}\022\323\001\n" - + "\020CreateRepository\0221.google.cloud.dataform.v1.CreateRepositoryRequest\032$.goog" - + "le.cloud.dataform.v1.Repository\"f\332A\037pare" - + "nt,repository,repository_id\202\323\344\223\002>\"0/v1/{" - + "parent=projects/*/locations/*}/repositories:\n" + + "name,force\202\323\344\223\002;\"6/v1/{name=projects/*" + + "/locations/*/folders/*}:deleteTree:\001*\022\326\001\n" + + "\023QueryFolderContents\0224.google.cloud.dat" + + "aform.v1.QueryFolderContentsRequest\0325.google.cloud.dataform.v1.QueryFolderConten" + + "tsResponse\"R\332A\006folder\202\323\344\223\002C\022A/v1/{folder" + + "=projects/*/locations/*/folders/*}:queryFolderContents\022\330\001\n" + + "\025QueryUserRootContents\0226.google.cloud.dataform.v1.QueryUserRoo" + + "tContentsRequest\0327.google.cloud.dataform" + + ".v1.QueryUserRootContentsResponse\"N\332A\010lo" + + "cation\202\323\344\223\002=\022;/v1/{location=projects/*/locations/*}:queryUserRootContents\022\351\001\n\n" + + "MoveFolder\022+.google.cloud.dataform.v1.Move" + + "FolderRequest\032\035.google.longrunning.Operation\"\216\001\312A+\n" + + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destination_contain" + + "ing_folder\202\323\344\223\0025\"0/v1/{name=projects/*/locations/*/folders/*}:move:\001*\022\274\001\n" + + "\020ListRepositories\0221.google.cloud.dataform.v1.Li" + + "stRepositoriesRequest\0322.google.cloud.dat" + + "aform.v1.ListRepositoriesResponse\"A\332A\006pa" + + "rent\202\323\344\223\0022\0220/v1/{parent=projects/*/locations/*}/repositories\022\246\001\n\r" + + "GetRepository\022..google.cloud.dataform.v1.GetRepositoryR" + + "equest\032$.google.cloud.dataform.v1.Reposi" + + "tory\"?\332A\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/repositories/*}\022\323\001\n" + + "\020CreateRepository\0221.google.cloud.dataform.v1.Cr" + + "eateRepositoryRequest\032$.google.cloud.dat" + + "aform.v1.Repository\"f\332A\037parent,repositor" + + "y,repository_id\202\323\344\223\002>\"0/v1/{parent=projects/*/locations/*}/repositories:\n" + "repository\022\325\001\n" - + "\020UpdateRepository\0221.google.cloud.dataform.v1.UpdateRepository" - + "Request\032$.google.cloud.dataform.v1.Repos" - + "itory\"h\332A\026repository,update_mask\202\323\344\223\002I2;" - + "/v1/{repository.name=projects/*/locations/*/repositories/*}:\n" + + "\020UpdateRepository\0221.google.cloud.dataform.v1.UpdateRepositoryRequest\032$.go" + + "ogle.cloud.dataform.v1.Repository\"h\332A\026re" + + "pository,update_mask\202\323\344\223\002I2;/v1/{reposit" + + "ory.name=projects/*/locations/*/repositories/*}:\n" + "repository\022\236\001\n" - + "\020DeleteRepository\0221.google.cloud.dataform.v1." - + "DeleteRepositoryRequest\032\026.google.protobu" - + "f.Empty\"?\332A\004name\202\323\344\223\0022*0/v1/{name=projects/*/locations/*/repositories/*}\022\372\001\n" - + "\016MoveRepository\022/.google.cloud.dataform.v1.M" - + "oveRepositoryRequest\032\035.google.longrunning.Operation\"\227\001\312A/\n" - + "\025google.protobuf.Empty\022\026MoveRepositoryMetadata\332A\"name,destinat" - + "ion_containing_folder\202\323\344\223\002:\"5/v1/{name=p" - + "rojects/*/locations/*/repositories/*}:move:\001*\022\322\001\n" - + "\027CommitRepositoryChanges\0228.google.cloud.dataform.v1.CommitRepositoryCha" - + "ngesRequest\0329.google.cloud.dataform.v1.C" - + "ommitRepositoryChangesResponse\"B\202\323\344\223\002<\"7" - + "/v1/{name=projects/*/locations/*/repositories/*}:commit:\001*\022\302\001\n" - + "\022ReadRepositoryFile\0223.google.cloud.dataform.v1.ReadReposit" - + "oryFileRequest\0324.google.cloud.dataform.v" - + "1.ReadRepositoryFileResponse\"A\202\323\344\223\002;\0229/v" - + "1/{name=projects/*/locations/*/repositories/*}:readFile\022\372\001\n" - + " QueryRepositoryDirectoryContents\022A.google.cloud.dataform.v1." - + "QueryRepositoryDirectoryContentsRequest\032B.google.cloud.dataform.v1.QueryReposito" - + "ryDirectoryContentsResponse\"O\202\323\344\223\002I\022G/v1" - + "/{name=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\322\001\n" - + "\026FetchRepositoryHistory\0227.google.cloud.dataform." - + "v1.FetchRepositoryHistoryRequest\0328.google.cloud.dataform.v1.FetchRepositoryHisto" - + "ryResponse\"E\202\323\344\223\002?\022=/v1/{name=projects/*" - + "/locations/*/repositories/*}:fetchHistory\022\202\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022C.google.cloud.dataform.v1.ComputeRepos" - + "itoryAccessTokenStatusRequest\032D.google.cloud.dataform.v1.ComputeRepositoryAccess" - + "TokenStatusResponse\"Q\202\323\344\223\002K\022I/v1/{name=p" - + "rojects/*/locations/*/repositories/*}:computeAccessTokenStatus\022\320\001\n" - + "\023FetchRemoteBranches\0224.google.cloud.dataform.v1.FetchR" - + "emoteBranchesRequest\0325.google.cloud.data" - + "form.v1.FetchRemoteBranchesResponse\"L\202\323\344" - + "\223\002F\022D/v1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\022\303\001\n" - + "\016ListWorkspaces\022/.google.cloud.dataform.v1." - + "ListWorkspacesRequest\0320.google.cloud.dat" - + "aform.v1.ListWorkspacesResponse\"N\332A\006pare" - + "nt\202\323\344\223\002?\022=/v1/{parent=projects/*/locations/*/repositories/*}/workspaces\022\260\001\n" - + "\014GetWorkspace\022-.google.cloud.dataform.v1.GetW" - + "orkspaceRequest\032#.google.cloud.dataform." - + "v1.Workspace\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}\022\332\001\n" - + "\017CreateWorkspace\0220.google.cloud.dataform.v1.CreateWorkspaceRequest" - + "\032#.google.cloud.dataform.v1.Workspace\"p\332" - + "A\035parent,workspace,workspace_id\202\323\344\223\002J\"=/" - + "v1/{parent=projects/*/locations/*/repositories/*}/workspaces:\tworkspace\022\251\001\n" - + "\017DeleteWorkspace\0220.google.cloud.dataform.v1.D" - + "eleteWorkspaceRequest\032\026.google.protobuf." - + "Empty\"L\332A\004name\202\323\344\223\002?*=/v1/{name=projects" - + "/*/locations/*/repositories/*/workspaces/*}\022\341\001\n" - + "\022InstallNpmPackages\0223.google.cloud.dataform.v1.InstallNpmPackagesRequest\032" - + "4.google.cloud.dataform.v1.InstallNpmPac" - + "kagesResponse\"`\202\323\344\223\002Z\"U/v1/{workspace=pr" - + "ojects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\302\001\n" - + "\016PullGitCommits\022/.google.cloud.dataform.v1.Pu" - + "llGitCommitsRequest\0320.google.cloud.dataf" - + "orm.v1.PullGitCommitsResponse\"M\202\323\344\223\002G\"B/" - + "v1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\001*\022\302\001\n" - + "\016PushGitCommits\022/.google.cloud.dataform.v1.PushG" - + "itCommitsRequest\0320.google.cloud.dataform" - + ".v1.PushGitCommitsResponse\"M\202\323\344\223\002G\"B/v1/" - + "{name=projects/*/locations/*/repositories/*/workspaces/*}:push:\001*\022\341\001\n" - + "\024FetchFileGitStatuses\0225.google.cloud.dataform.v1.Fe" - + "tchFileGitStatusesRequest\0326.google.cloud.dataform.v1.FetchFileGitStatusesRespons" - + "e\"Z\202\323\344\223\002T\022R/v1/{name=projects/*/location" - + "s/*/repositories/*/workspaces/*}:fetchFileGitStatuses\022\335\001\n" - + "\023FetchGitAheadBehind\0224.google.cloud.dataform.v1.FetchGitAheadBe" - + "hindRequest\0325.google.cloud.dataform.v1.F" - + "etchGitAheadBehindResponse\"Y\202\323\344\223\002S\022Q/v1/" - + "{name=projects/*/locations/*/repositorie" - + "s/*/workspaces/*}:fetchGitAheadBehind\022\334\001\n" - + "\026CommitWorkspaceChanges\0227.google.cloud.dataform.v1.CommitWorkspaceChangesReques" - + "t\0328.google.cloud.dataform.v1.CommitWorks" - + "paceChangesResponse\"O\202\323\344\223\002I\"D/v1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}:commit:\001*\022\330\001\n" - + "\025ResetWorkspaceChanges\0226.google.cloud.dataform.v1.ResetW" - + "orkspaceChangesRequest\0327.google.cloud.dataform.v1.ResetWorkspaceChangesResponse\"" - + "N\202\323\344\223\002H\"C/v1/{name=projects/*/locations/" - + "*/repositories/*/workspaces/*}:reset:\001*\022\312\001\n\r" - + "FetchFileDiff\022..google.cloud.dataform.v1.FetchFileDiffRequest\032/.google.cloud" - + ".dataform.v1.FetchFileDiffResponse\"X\202\323\344\223" - + "\002R\022P/v1/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:fetchFileDiff\022\356\001\n" - + "\026QueryDirectoryContents\0227.google.cloud.dataform.v1.QueryDirectoryContent" - + "sRequest\0328.google.cloud.dataform.v1.Quer" - + "yDirectoryContentsResponse\"a\202\323\344\223\002[\022Y/v1/" - + "{workspace=projects/*/locations/*/reposi" - + "tories/*/workspaces/*}:queryDirectoryContents\022\302\001\n" - + "\013SearchFiles\022,.google.cloud.dataform.v1.SearchFilesRequest\032-.google.clo" - + "ud.dataform.v1.SearchFilesResponse\"V\202\323\344\223" - + "\002P\022N/v1/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:searchFiles\022\315\001\n\r" - + "MakeDirectory\022..google.cloud.dataform.v1.MakeDirectoryRequest\032/.google.cl" - + "oud.dataform.v1.MakeDirectoryResponse\"[\202" - + "\323\344\223\002U\"P/v1/{workspace=projects/*/locatio" - + "ns/*/repositories/*/workspaces/*}:makeDirectory:\001*\022\325\001\n" - + "\017RemoveDirectory\0220.google.cloud.dataform.v1.RemoveDirectoryRequest" - + "\0321.google.cloud.dataform.v1.RemoveDirect" - + "oryResponse\"]\202\323\344\223\002W\"R/v1/{workspace=proj" - + "ects/*/locations/*/repositories/*/workspaces/*}:removeDirectory:\001*\022\315\001\n\r" - + "MoveDirectory\022..google.cloud.dataform.v1.MoveDire" - + "ctoryRequest\032/.google.cloud.dataform.v1." - + "MoveDirectoryResponse\"[\202\323\344\223\002U\"P/v1/{work" - + "space=projects/*/locations/*/repositories/*/workspaces/*}:moveDirectory:\001*\022\266\001\n" - + "\010ReadFile\022).google.cloud.dataform.v1.ReadF" - + "ileRequest\032*.google.cloud.dataform.v1.Re" - + "adFileResponse\"S\202\323\344\223\002M\022K/v1/{workspace=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}:readFile\022\301\001\n\n" - + "RemoveFile\022+.google.cloud.dataform.v1.RemoveFileRequest\032" - + ",.google.cloud.dataform.v1.RemoveFileRes" - + "ponse\"X\202\323\344\223\002R\"M/v1/{workspace=projects/*" - + "/locations/*/repositories/*/workspaces/*}:removeFile:\001*\022\271\001\n" - + "\010MoveFile\022).google.cloud.dataform.v1.MoveFileRequest\032*.google" - + ".cloud.dataform.v1.MoveFileResponse\"V\202\323\344" - + "\223\002P\"K/v1/{workspace=projects/*/locations" - + "/*/repositories/*/workspaces/*}:moveFile:\001*\022\275\001\n" - + "\tWriteFile\022*.google.cloud.dataform.v1.WriteFileRequest\032+.google.cloud.dat" - + "aform.v1.WriteFileResponse\"W\202\323\344\223\002Q\"L/v1/" - + "{workspace=projects/*/locations/*/repositories/*/workspaces/*}:writeFile:\001*\022\323\001\n" - + "\022ListReleaseConfigs\0223.google.cloud.datafo" - + "rm.v1.ListReleaseConfigsRequest\0324.google.cloud.dataform.v1.ListReleaseConfigsRes" - + "ponse\"R\332A\006parent\202\323\344\223\002C\022A/v1/{parent=proj" - + "ects/*/locations/*/repositories/*}/releaseConfigs\022\300\001\n" - + "\020GetReleaseConfig\0221.google.cloud.dataform.v1.GetReleaseConfigReques" - + "t\032\'.google.cloud.dataform.v1.ReleaseConf" - + "ig\"P\332A\004name\202\323\344\223\002C\022A/v1/{name=projects/*/" - + "locations/*/repositories/*/releaseConfigs/*}\022\372\001\n" - + "\023CreateReleaseConfig\0224.google.cloud.dataform.v1.CreateReleaseConfigReque" - + "st\032\'.google.cloud.dataform.v1.ReleaseCon" - + "fig\"\203\001\332A\'parent,release_config,release_c" - + "onfig_id\202\323\344\223\002S\"A/v1/{parent=projects/*/l" - + "ocations/*/repositories/*}/releaseConfigs:\016release_config\022\374\001\n" - + "\023UpdateReleaseConfig\0224.google.cloud.dataform.v1.UpdateRelea" - + "seConfigRequest\032\'.google.cloud.dataform." - + "v1.ReleaseConfig\"\205\001\332A\032release_config,upd" - + "ate_mask\202\323\344\223\002b2P/v1/{release_config.name" - + "=projects/*/locations/*/repositories/*/releaseConfigs/*}:\016release_config\022\265\001\n" - + "\023DeleteReleaseConfig\0224.google.cloud.dataform" - + ".v1.DeleteReleaseConfigRequest\032\026.google." - + "protobuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v1/{name" - + "=projects/*/locations/*/repositories/*/releaseConfigs/*}\022\343\001\n" - + "\026ListCompilationResults\0227.google.cloud.dataform.v1.ListCompi" - + "lationResultsRequest\0328.google.cloud.dataform.v1.ListCompilationResultsResponse\"V" - + "\332A\006parent\202\323\344\223\002G\022E/v1/{parent=projects/*/" - + "locations/*/repositories/*}/compilationResults\022\320\001\n" - + "\024GetCompilationResult\0225.google.cloud.dataform.v1.GetCompilationResultR" - + "equest\032+.google.cloud.dataform.v1.Compil" - + "ationResult\"T\332A\004name\202\323\344\223\002G\022E/v1/{name=pr" - + "ojects/*/locations/*/repositories/*/compilationResults/*}\022\377\001\n" - + "\027CreateCompilationResult\0228.google.cloud.dataform.v1.CreateC" - + "ompilationResultRequest\032+.google.cloud.d" - + "ataform.v1.CompilationResult\"}\332A\031parent," - + "compilation_result\202\323\344\223\002[\"E/v1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/compilationResults:\022compilation_result\022\306\002\n" - + "\"CreateCompilationResultLongRunning\0228.google.cloud.dataform.v1.CreateCompilationR" - + "esultRequest\032\035.google.longrunning.Operation\"\306\001\312A4\n" - + "\021CompilationResult\022\037CreateCompilationResultMetadata\332A\031parent,compilati" - + "on_result\202\323\344\223\002m\"W/v1/{parent=projects/*/" - + "locations/*/repositories/*}/compilationR" - + "esults:createLongRunning:\022compilation_result\022\365\001\n" - + "\035QueryCompilationResultActions\022>.google.cloud.dataform.v1.QueryCompilati" - + "onResultActionsRequest\032?.google.cloud.dataform.v1.QueryCompilationResultActionsR" - + "esponse\"S\202\323\344\223\002M\022K/v1/{name=projects/*/lo" - + "cations/*/repositories/*/compilationResults/*}:query\022\327\001\n" - + "\023ListWorkflowConfigs\0224.google.cloud.dataform.v1.ListWorkflowConf" - + "igsRequest\0325.google.cloud.dataform.v1.Li" - + "stWorkflowConfigsResponse\"S\332A\006parent\202\323\344\223" - + "\002D\022B/v1/{parent=projects/*/locations/*/repositories/*}/workflowConfigs\022\304\001\n" - + "\021GetWorkflowConfig\0222.google.cloud.dataform.v1." - + "GetWorkflowConfigRequest\032(.google.cloud." - + "dataform.v1.WorkflowConfig\"Q\332A\004name\202\323\344\223\002" - + "D\022B/v1/{name=projects/*/locations/*/repositories/*/workflowConfigs/*}\022\201\002\n" - + "\024CreateWorkflowConfig\0225.google.cloud.dataform.v" - + "1.CreateWorkflowConfigRequest\032(.google.c" - + "loud.dataform.v1.WorkflowConfig\"\207\001\332A)par" - + "ent,workflow_config,workflow_config_id\202\323" - + "\344\223\002U\"B/v1/{parent=projects/*/locations/*" - + "/repositories/*}/workflowConfigs:\017workflow_config\022\203\002\n" - + "\024UpdateWorkflowConfig\0225.google.cloud.dataform.v1.UpdateWorkflowConf" - + "igRequest\032(.google.cloud.dataform.v1.Wor" - + "kflowConfig\"\211\001\332A\033workflow_config,update_", - "mask\202\323\344\223\002e2R/v1/{workflow_config.name=pr" - + "ojects/*/locations/*/repositories/*/work" - + "flowConfigs/*}:\017workflow_config\022\270\001\n\024Dele" - + "teWorkflowConfig\0225.google.cloud.dataform" - + ".v1.DeleteWorkflowConfigRequest\032\026.google" - + ".protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "workflowConfigs/*}\022\347\001\n\027ListWorkflowInvoc" - + "ations\0228.google.cloud.dataform.v1.ListWo" - + "rkflowInvocationsRequest\0329.google.cloud." - + "dataform.v1.ListWorkflowInvocationsRespo" - + "nse\"W\332A\006parent\202\323\344\223\002H\022F/v1/{parent=projec" - + "ts/*/locations/*/repositories/*}/workflo" - + "wInvocations\022\324\001\n\025GetWorkflowInvocation\0226" - + ".google.cloud.dataform.v1.GetWorkflowInv" - + "ocationRequest\032,.google.cloud.dataform.v" - + "1.WorkflowInvocation\"U\332A\004name\202\323\344\223\002H\022F/v1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/workflowInvocations/*}\022\206\002\n\030CreateWo" - + "rkflowInvocation\0229.google.cloud.dataform" - + ".v1.CreateWorkflowInvocationRequest\032,.go" - + "ogle.cloud.dataform.v1.WorkflowInvocatio" - + "n\"\200\001\332A\032parent,workflow_invocation\202\323\344\223\002]\"" - + "F/v1/{parent=projects/*/locations/*/repo" - + "sitories/*}/workflowInvocations:\023workflo" - + "w_invocation\022\304\001\n\030DeleteWorkflowInvocatio" - + "n\0229.google.cloud.dataform.v1.DeleteWorkf" - + "lowInvocationRequest\032\026.google.protobuf.E" - + "mpty\"U\332A\004name\202\323\344\223\002H*F/v1/{name=projects/" - + "*/locations/*/repositories/*/workflowInv" - + "ocations/*}\022\353\001\n\030CancelWorkflowInvocation" - + "\0229.google.cloud.dataform.v1.CancelWorkfl" - + "owInvocationRequest\032:.google.cloud.dataf" - + "orm.v1.CancelWorkflowInvocationResponse\"" - + "X\202\323\344\223\002R\"M/v1/{name=projects/*/locations/" - + "*/repositories/*/workflowInvocations/*}:" - + "cancel:\001*\022\371\001\n\036QueryWorkflowInvocationAct" - + "ions\022?.google.cloud.dataform.v1.QueryWor" - + "kflowInvocationActionsRequest\032@.google.c" - + "loud.dataform.v1.QueryWorkflowInvocation" - + "ActionsResponse\"T\202\323\344\223\002N\022L/v1/{name=proje" - + "cts/*/locations/*/repositories/*/workflo" - + "wInvocations/*}:query\022\222\001\n\tGetConfig\022*.go" - + "ogle.cloud.dataform.v1.GetConfigRequest\032" - + " .google.cloud.dataform.v1.Config\"7\332A\004na" - + "me\202\323\344\223\002*\022(/v1/{name=projects/*/locations" - + "/*/config}\022\265\001\n\014UpdateConfig\022-.google.clo" - + "ud.dataform.v1.UpdateConfigRequest\032 .goo" - + "gle.cloud.dataform.v1.Config\"T\332A\022config," - + "update_mask\202\323\344\223\00292//v1/{config.name=proj" - + "ects/*/locations/*/config}:\006config\022\367\002\n\014G" - + "etIamPolicy\022\".google.iam.v1.GetIamPolicy" - + "Request\032\025.google.iam.v1.Policy\"\253\002\332A\010reso" - + "urce\202\323\344\223\002\231\002\022A/v1/{resource=projects/*/lo" - + "cations/*/repositories/*}:getIamPolicyZP" - + "\022N/v1/{resource=projects/*/locations/*/r" - + "epositories/*/workspaces/*}:getIamPolicy" - + "Z>\022.google.cloud.dataform.v1.QueryCompilationResult" + + "ActionsRequest\032?.google.cloud.dataform.v1.QueryCompilationResultActionsResponse\"" + + "S\202\323\344\223\002M\022K/v1/{name=projects/*/locations/" + + "*/repositories/*/compilationResults/*}:query\022\327\001\n" + + "\023ListWorkflowConfigs\0224.google.cloud.dataform.v1.ListWorkflowConfigsReque" + + "st\0325.google.cloud.dataform.v1.ListWorkfl" + + "owConfigsResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1/" + + "{parent=projects/*/locations/*/repositor", + "ies/*}/workflowConfigs\022\304\001\n\021GetWorkflowCo" + + "nfig\0222.google.cloud.dataform.v1.GetWorkf" + + "lowConfigRequest\032(.google.cloud.dataform" + + ".v1.WorkflowConfig\"Q\332A\004name\202\323\344\223\002D\022B/v1/{" + + "name=projects/*/locations/*/repositories" + + "/*/workflowConfigs/*}\022\201\002\n\024CreateWorkflow" + + "Config\0225.google.cloud.dataform.v1.Create" + + "WorkflowConfigRequest\032(.google.cloud.dat" + + "aform.v1.WorkflowConfig\"\207\001\332A)parent,work" + + "flow_config,workflow_config_id\202\323\344\223\002U\"B/v" + + "1/{parent=projects/*/locations/*/reposit" + + "ories/*}/workflowConfigs:\017workflow_confi" + + "g\022\203\002\n\024UpdateWorkflowConfig\0225.google.clou" + + "d.dataform.v1.UpdateWorkflowConfigReques" + + "t\032(.google.cloud.dataform.v1.WorkflowCon" + + "fig\"\211\001\332A\033workflow_config,update_mask\202\323\344\223" + + "\002e2R/v1/{workflow_config.name=projects/*" + + "/locations/*/repositories/*/workflowConf" + + "igs/*}:\017workflow_config\022\270\001\n\024DeleteWorkfl" + + "owConfig\0225.google.cloud.dataform.v1.Dele" + + "teWorkflowConfigRequest\032\026.google.protobu" + + "f.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{name=projec" + + "ts/*/locations/*/repositories/*/workflow" + + "Configs/*}\022\347\001\n\027ListWorkflowInvocations\0228" + + ".google.cloud.dataform.v1.ListWorkflowIn" + + "vocationsRequest\0329.google.cloud.dataform" + + ".v1.ListWorkflowInvocationsResponse\"W\332A\006" + + "parent\202\323\344\223\002H\022F/v1/{parent=projects/*/loc" + + "ations/*/repositories/*}/workflowInvocat" + + "ions\022\324\001\n\025GetWorkflowInvocation\0226.google." + + "cloud.dataform.v1.GetWorkflowInvocationR" + + "equest\032,.google.cloud.dataform.v1.Workfl" + + "owInvocation\"U\332A\004name\202\323\344\223\002H\022F/v1/{name=p" + + "rojects/*/locations/*/repositories/*/wor" + + "kflowInvocations/*}\022\206\002\n\030CreateWorkflowIn" + + "vocation\0229.google.cloud.dataform.v1.Crea" + + "teWorkflowInvocationRequest\032,.google.clo" + + "ud.dataform.v1.WorkflowInvocation\"\200\001\332A\032p" + + "arent,workflow_invocation\202\323\344\223\002]\"F/v1/{pa" + + "rent=projects/*/locations/*/repositories" + + "/*}/workflowInvocations:\023workflow_invoca" + + "tion\022\304\001\n\030DeleteWorkflowInvocation\0229.goog" + + "le.cloud.dataform.v1.DeleteWorkflowInvoc" + + "ationRequest\032\026.google.protobuf.Empty\"U\332A" + + "\004name\202\323\344\223\002H*F/v1/{name=projects/*/locati" + + "ons/*/repositories/*/workflowInvocations" + + "/*}\022\353\001\n\030CancelWorkflowInvocation\0229.googl" + + "e.cloud.dataform.v1.CancelWorkflowInvoca" + + "tionRequest\032:.google.cloud.dataform.v1.C" + + "ancelWorkflowInvocationResponse\"X\202\323\344\223\002R\"" + + "M/v1/{name=projects/*/locations/*/reposi" + + "tories/*/workflowInvocations/*}:cancel:\001" + + "*\022\371\001\n\036QueryWorkflowInvocationActions\022?.g" + + "oogle.cloud.dataform.v1.QueryWorkflowInv" + + "ocationActionsRequest\032@.google.cloud.dat" + + "aform.v1.QueryWorkflowInvocationActionsR" + + "esponse\"T\202\323\344\223\002N\022L/v1/{name=projects/*/lo" + + "cations/*/repositories/*/workflowInvocat" + + "ions/*}:query\022\222\001\n\tGetConfig\022*.google.clo" + + "ud.dataform.v1.GetConfigRequest\032 .google" + + ".cloud.dataform.v1.Config\"7\332A\004name\202\323\344\223\002*" + + "\022(/v1/{name=projects/*/locations/*/confi" + + "g}\022\265\001\n\014UpdateConfig\022-.google.cloud.dataf" + + "orm.v1.UpdateConfigRequest\032 .google.clou" + + "d.dataform.v1.Config\"T\332A\022config,update_m" + + "ask\202\323\344\223\00292//v1/{config.name=projects/*/l" + + "ocations/*/config}:\006config\022\367\002\n\014GetIamPol" + + "icy\022\".google.iam.v1.GetIamPolicyRequest\032" + + "\025.google.iam.v1.Policy\"\253\002\332A\010resource\202\323\344\223" + + "\002\231\002\022A/v1/{resource=projects/*/locations/" + + "*/repositories/*}:getIamPolicyZP\022N/v1/{r" + + "esource=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:getIamPolicyZ>\022 * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -342,7 +342,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The tokenStatus. */ @java.lang.Deprecated @@ -1915,7 +1915,7 @@ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -1937,7 +1937,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is deprecated. - * See google/cloud/dataform/v1/dataform.proto;l=926 + * See google/cloud/dataform/v1/dataform.proto;l=940 * @return The tokenStatus. */ @java.lang.Override @@ -3329,7 +3329,7 @@ public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -3351,7 +3351,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -3376,7 +3376,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @return The tokenStatus. */ @java.lang.Override @@ -3404,7 +3404,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -3433,7 +3433,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1/dataform.proto;l=926 + * deprecated. See google/cloud/dataform/v1/dataform.proto;l=940 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto index f626cad9b4dd..8ce71d1fe196 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1/src/main/proto/google/cloud/dataform/v1/dataform.proto @@ -369,6 +369,20 @@ service Dataform { option (google.api.method_signature) = "parent,workspace,workspace_id"; } + // Creates a new Workspace in a given Repository asynchronously. + rpc CreateWorkspaceLongRunning(CreateWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning" + body: "workspace" + }; + option (google.api.method_signature) = "parent,workspace,workspace_id"; + option (google.longrunning.operation_info) = { + response_type: "Workspace" + metadata_type: "CreateWorkspaceMetadata" + }; + } + // Deletes a single Workspace. rpc DeleteWorkspace(DeleteWorkspaceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -1518,6 +1532,46 @@ message CreateWorkspaceRequest { string workspace_id = 3 [(google.api.field_behavior) = REQUIRED]; } +// Represents the metadata of the `CreateWorkspaceLongRunning` operation. +message CreateWorkspaceMetadata { + // State of the LRO. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The LRO has been created. + CREATED = 1; + + // The LRO is in progress. + RUNNING = 2; + + // The RPC call has finished. + FINISHED = 3; + + // The LRO has succeeded. + SUCCEEDED = 4; + + // The LRO has failed. + FAILED = 5; + } + + // The unwrapped request. + oneof request { + // Output only. The CreateWorkspace requested. + CreateWorkspaceRequest create_workspace_request = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The ID of the LRO. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the LRO. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `DeleteWorkspace` request message. message DeleteWorkspaceRequest { // Required. The workspace resource's name. diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java index b19823b4f34a..d57731580c02 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java @@ -208,7 +208,7 @@ public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The folderId. */ @java.lang.Override @@ -238,7 +238,7 @@ public java.lang.String getFolderId() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The bytes for folderId. */ @java.lang.Override @@ -986,7 +986,7 @@ public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The folderId. */ @java.lang.Deprecated @@ -1015,7 +1015,7 @@ public java.lang.String getFolderId() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The bytes for folderId. */ @java.lang.Deprecated @@ -1044,7 +1044,7 @@ public com.google.protobuf.ByteString getFolderIdBytes() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @param value The folderId to set. * @return This builder for chaining. */ @@ -1072,7 +1072,7 @@ public Builder setFolderId(java.lang.String value) { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1096,7 +1096,7 @@ public Builder clearFolderId() { * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @param value The bytes for folderId to set. * @return This builder for chaining. */ diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java index 0315e8e72b3b..e03f3c0d39a0 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateFolderRequestOrBuilder * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The folderId. */ @java.lang.Deprecated @@ -133,7 +133,7 @@ public interface CreateFolderRequestOrBuilder * string folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See - * google/cloud/dataform/v1beta1/dataform.proto;l=4105 + * google/cloud/dataform/v1beta1/dataform.proto;l=4159 * @return The bytes for folderId. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java index 25903c7edf84..b0ef428c67ce 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java @@ -208,7 +208,7 @@ public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuil * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The teamFolderId. */ @java.lang.Override @@ -238,7 +238,7 @@ public java.lang.String getTeamFolderId() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The bytes for teamFolderId. */ @java.lang.Override @@ -988,7 +988,7 @@ public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuil * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The teamFolderId. */ @java.lang.Deprecated @@ -1017,7 +1017,7 @@ public java.lang.String getTeamFolderId() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The bytes for teamFolderId. */ @java.lang.Deprecated @@ -1046,7 +1046,7 @@ public com.google.protobuf.ByteString getTeamFolderIdBytes() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @param value The teamFolderId to set. * @return This builder for chaining. */ @@ -1074,7 +1074,7 @@ public Builder setTeamFolderId(java.lang.String value) { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1098,7 +1098,7 @@ public Builder clearTeamFolderId() { * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @param value The bytes for teamFolderId to set. * @return This builder for chaining. */ diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java index 98b528ae30af..e0bde33df3cf 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateTeamFolderRequestOrBuilder * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The teamFolderId. */ @java.lang.Deprecated @@ -133,7 +133,7 @@ public interface CreateTeamFolderRequestOrBuilder * string team_folder_id = 3 [deprecated = true]; * * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. - * See google/cloud/dataform/v1beta1/dataform.proto;l=4417 + * See google/cloud/dataform/v1beta1/dataform.proto;l=4471 * @return The bytes for teamFolderId. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java new file mode 100644 index 000000000000..eec06002285b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadata.java @@ -0,0 +1,1624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
+ * Represents the metadata of the `CreateWorkspaceLongRunning` operation.
+ * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkspaceMetadata} + */ +@com.google.protobuf.Generated +public final class CreateWorkspaceMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + CreateWorkspaceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateWorkspaceMetadata"); + } + + // Use CreateWorkspaceMetadata.newBuilder() to construct. + private CreateWorkspaceMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateWorkspaceMetadata() { + id_ = ""; + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.Builder.class); + } + + /** + * + * + *
+   * State of the LRO.
+   * 
+ * + * Protobuf enum {@code google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + RUNNING(2), + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + FINISHED(3), + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + SUCCEEDED(4), + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + FAILED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * The state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The LRO has been created.
+     * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + + /** + * + * + *
+     * The LRO is in progress.
+     * 
+ * + * RUNNING = 2; + */ + public static final int RUNNING_VALUE = 2; + + /** + * + * + *
+     * The RPC call has finished.
+     * 
+ * + * FINISHED = 3; + */ + public static final int FINISHED_VALUE = 3; + + /** + * + * + *
+     * The LRO has succeeded.
+     * 
+ * + * SUCCEEDED = 4; + */ + public static final int SUCCEEDED_VALUE = 4; + + /** + * + * + *
+     * The LRO has failed.
+     * 
+ * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return RUNNING; + case 3: + return FINISHED; + case 4: + return SUCCEEDED; + case 5: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State) + } + + private int requestCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_WORKSPACE_REQUEST(4), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 4: + return CREATE_WORKSPACE_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int CREATE_WORKSPACE_REQUEST_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (requestCase_ == 4) { + output.writeMessage(4, (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (requestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata other = + (com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 4: + if (!getCreateWorkspaceRequest().equals(other.getCreateWorkspaceRequest())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + switch (requestCase_) { + case 4: + hash = (37 * hash) + CREATE_WORKSPACE_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateWorkspaceRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the metadata of the `CreateWorkspaceLongRunning` operation.
+   * 
+ * + * Protobuf type {@code google.cloud.dataform.v1beta1.CreateWorkspaceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.class, + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (createWorkspaceRequestBuilder_ != null) { + createWorkspaceRequestBuilder_.clear(); + } + id_ = ""; + target_ = ""; + state_ = 0; + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata build() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result = + new com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 4 && createWorkspaceRequestBuilder_ != null) { + result.request_ = createWorkspaceRequestBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getRequestCase()) { + case CREATE_WORKSPACE_REQUEST: + { + mergeCreateWorkspaceRequest(other.getCreateWorkspaceRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(), + extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder> + createWorkspaceRequestBuilder_; + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + @java.lang.Override + public boolean hasCreateWorkspaceRequest() { + return requestCase_ == 4; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return createWorkspaceRequestBuilder_.getMessage(); + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateWorkspaceRequest( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder builderForValue) { + if (createWorkspaceRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createWorkspaceRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateWorkspaceRequest( + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest value) { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4 + && request_ + != com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance()) { + request_ = + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.newBuilder( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + createWorkspaceRequestBuilder_.mergeFrom(value); + } else { + createWorkspaceRequestBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateWorkspaceRequest() { + if (createWorkspaceRequestBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + createWorkspaceRequestBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder + getCreateWorkspaceRequestBuilder() { + return internalGetCreateWorkspaceRequestFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder() { + if ((requestCase_ == 4) && (createWorkspaceRequestBuilder_ != null)) { + return createWorkspaceRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_; + } + return com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Output only. The CreateWorkspace requested.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder> + internalGetCreateWorkspaceRequestFieldBuilder() { + if (createWorkspaceRequestBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.getDefaultInstance(); + } + createWorkspaceRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest.Builder, + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder>( + (com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged(); + return createWorkspaceRequestBuilder_; + } + + private java.lang.Object id_ = ""; + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the LRO.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State getState() { + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State result = + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the LRO.
+     * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + private static final com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java new file mode 100644 index 000000000000..c3763be5fdf3 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateWorkspaceMetadataOrBuilder.java @@ -0,0 +1,156 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateWorkspaceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.CreateWorkspaceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createWorkspaceRequest field is set. + */ + boolean hasCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createWorkspaceRequest. + */ + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest getCreateWorkspaceRequest(); + + /** + * + * + *
+   * Output only. The CreateWorkspace requested.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceRequest create_workspace_request = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dataform.v1beta1.CreateWorkspaceRequestOrBuilder + getCreateWorkspaceRequestOrBuilder(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The ID of the LRO.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the LRO.
+   * 
+ * + * + * .google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.State getState(); + + com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata.RequestCase getRequestCase(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java index 1018db6079ce..7d39b4d82007 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java @@ -204,6 +204,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1106,7 +1110,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dataform.googleapis.com/Repository\022A\n" + "\tworkspace\030\002" + " \001(\0132(.google.cloud.dataform.v1beta1.WorkspaceB\004\342A\001\002\022\032\n" - + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"R\n" + + "\014workspace_id\030\003 \001(\tB\004\342A\001\002\"\343\002\n" + + "\027CreateWorkspaceMetadata\022_\n" + + "\030create_workspace_request\030\004 \001(\01325.go" + + "ogle.cloud.dataform.v1beta1.CreateWorkspaceRequestB\004\342A\001\003H\000\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + + "\006target\030\002 \001(\tB\004\342A\001\003\022Q\n" + + "\005state\030\003 \001(\0162<.goog" + + "le.cloud.dataform.v1beta1.CreateWorkspaceMetadata.StateB\004\342A\001\003\"a\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007CREATED\020\001\022\013\n" + + "\007RUNNING\020\002\022\014\n" + + "\010FINISHED\020\003\022\r\n" + + "\tSUCCEEDED\020\004\022\n\n" + + "\006FAILED\020\005B\t\n" + + "\007request\"R\n" + "\026DeleteWorkspaceRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"?\n" @@ -1124,7 +1143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\024\n" + "\006branch\030\002 \001(\tB\004\342A\001\002\022\"\n" - + "\024create_if_not_exists\030\003 \001(\010B\004\342A\001\001\022\033\n\r" + + "\024create_if_not_exists\030\003 \001(\010B\004\342A\001\001\022\033\n" + + "\r" + "source_branch\030\004 \001(\tB\004\342A\001\001\"\214\001\n" + "\030SyncWorkspaceRefsRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" @@ -1147,12 +1167,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\202\003\n" + "\034FetchFileGitStatusesResponse\022s\n" - + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.cloud.dataform.v1beta1.Fetch" - + "FileGitStatusesResponse.UncommittedFileChange\032\354\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.cloud.dataform.v1beta1.FetchFi" + + "leGitStatusesResponse.UncommittedFileChange\032\354\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022l\n" - + "\005state\030\002 \001(\0162W.google.cloud.data" - + "form.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + + "\005state\030\002 \001(\0162W.google.cloud.datafo" + + "rm.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\004\342A\001\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -1210,8 +1230,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" + "\tdirectory\030\002 \001(\tH\000\022H\n" - + "\010metadata\030\003 \001(\013" - + "26.google.cloud.dataform.v1beta1.FilesystemEntryMetadataB\007\n" + + "\010metadata\030\003 \001(\01326" + + ".google.cloud.dataform.v1beta1.FilesystemEntryMetadataB\007\n" + "\005entry\"j\n" + "\027FilesystemEntryMetadata\022\030\n\n" + "size_bytes\030\001 \001(\003B\004\342A\001\003\0225\n" @@ -1230,8 +1250,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014SearchResult\022?\n" + "\004file\030\001" + " \001(\0132/.google.cloud.dataform.v1beta1.FileSearchResultH\000\022I\n" - + "\tdirectory\030\002 \001(\01324.g" - + "oogle.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + + "\tdirectory\030\002 \001(\01324.goo" + + "gle.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + "\005entry\" \n" + "\020FileSearchResult\022\014\n" + "\004path\030\001 \001(\t\"%\n" @@ -1280,8 +1300,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031InstallNpmPackagesRequest\022=\n" + "\tworkspace\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022L\n" - + "\017pipeline_config\030\003 \001(\0132-.google.clou" - + "d.dataform.v1beta1.PipelineConfigB\004\342A\001\001\"\034\n" + + "\017pipeline_config\030\003" + + " \001(\0132-.google.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\001\"\034\n" + "\032InstallNpmPackagesResponse\"\373\006\n\r" + "ReleaseConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\033\n\r" @@ -1290,8 +1310,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\004\342A\001\001\022\033\n\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022s\n" - + " recent_scheduled_release_records\030\005 \003(\0132C.google.cloud.dataform.v1beta1.Re" - + "leaseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + + " recent_scheduled_release_records\030\005 " + + "\003(\0132C.google.cloud.dataform.v1beta1.Rele" + + "aseConfig.ScheduledReleaseRecordB\004\342A\001\003\022V\n" + "\032release_compilation_result\030\006 \001(\tB2\342A\001\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\022$\n" @@ -1303,19 +1324,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014release_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/location" - + "s/{location}/repositories/{repository}/r" - + "eleaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/locations/" + + "{location}/repositories/{repository}/rel" + + "easeConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\213\001\n" + "\031ListReleaseConfigsRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" + + "\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\221\001\n" + "\032ListReleaseConfigsResponse\022E\n" - + "\017release_configs\030\001 \003(" - + "\0132,.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + + "\017release_configs\030\001 \003(\0132" + + ",.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"W\n" + "\027GetReleaseConfigRequest\022<\n" @@ -1342,39 +1364,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB.\342A\001\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022[\n" - + "\027code_compilation_config\030\004 \001" - + "(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\004\342A\001\005\022%\n" + + "\027code_compilation_config\030\004 \001(\013" + + "24.google.cloud.dataform.v1beta1.CodeCompilationConfigB\004\342A\001\005\022%\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\004\342A\001\003\022#\n" + "\025dataform_core_version\030\005 \001(\tB\004\342A\001\003\022c\n" - + "\022compilation_errors\030\006 \003(\0132A.google.cloud.dataform.v1beta1.C" - + "ompilationResult.CompilationErrorB\004\342A\001\003\022W\n" - + "\025data_encryption_state\030\t \001(\01322.google." - + "cloud.dataform.v1beta1.DataEncryptionStateB\004\342A\001\003\0225\n" + + "\022compilation_errors\030\006" + + " \003(\0132A.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\004\342A\001\003\022W\n" + + "\025data_encryption_state\030\t \001(\01322.google.cl" + + "oud.dataform.v1beta1.DataEncryptionStateB\004\342A\001\003\0225\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\013 \001(\tB\004\342A\001\003H\001\210\001\001\022_\n" - + "\031private_resource_metadata\030\014 \001(\01326.google.cloud.dataform" - + ".v1beta1.PrivateResourceMetadataB\004\342A\001\003\022l\n" + + "\031private_resource_metadata\030\014" + + " \001(\01326.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\004\342A\001\003\022l\n" + " gcs_repository_snapshot_metadata\030\r" - + " \001(\013" - + "2<.google.cloud.dataform.v1beta1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\226\001\n" + + " \001(\0132<" + + ".google.cloud.dataform.v1beta1.GcsRepositorySnapshotMetadataB\004\342A\001\003\032\226\001\n" + "\020CompilationError\022\025\n" + "\007message\030\001 \001(\tB\004\342A\001\003\022\023\n" + "\005stack\030\002 \001(\tB\004\342A\001\003\022\022\n" + "\004path\030\003 \001(\tB\004\342A\001\003\022B\n\r" + "action_target\030\004" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iproject" - + "s/{project}/locations/{location}/repositories/{repository}/compilationResults/{c" - + "ompilation_result}*\022compilationResults2\021compilationResultB\010\n" + + ")dataform.googleapis.com/CompilationResult\022iprojects/", + "{project}/locations/{location}/repositories/{repository}/compilationResults/{com" + + "pilation_result}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\254\004\n" + "\025WorkflowTriggerConfig\022W\n" - + "\tcondition\030\001 \001(\0162>.google.cloud.dataform.v" - + "1beta1.WorkflowTriggerConfig.ConditionB\004\342A\001\001\022O\n" - + "\021workflow_triggers\030\002 \003(\0132..google" - + ".cloud.dataform.v1beta1.WorkflowTriggerB", - "\004\342A\001\002\022?\n" + + "\tcondition\030\001 \001(\0162>.google.cloud.dataform.v1b" + + "eta1.WorkflowTriggerConfig.ConditionB\004\342A\001\001\022O\n" + + "\021workflow_triggers\030\002 \003(\0132..google.c" + + "loud.dataform.v1beta1.WorkflowTriggerB\004\342A\001\002\022?\n" + "\026min_execution_duration\030\003" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022:\n" + "\021max_wait_duration\030\004" @@ -1404,15 +1425,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\004\342A\001\001\022\036\n" + "\020default_location\030\010 \001(\tB\004\342A\001\001\022\036\n" + "\020assertion_schema\030\003 \001(\tB\004\342A\001\001\022R\n" - + "\004vars\030\004 \003(\0132>.go" - + "ogle.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + + "\004vars\030\004 \003(\0132>.goog" + + "le.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\004\342A\001\001\022\035\n" + "\017database_suffix\030\005 \001(\tB\004\342A\001\001\022\033\n\r" + "schema_suffix\030\006 \001(\tB\004\342A\001\001\022\032\n" + "\014table_prefix\030\007 \001(\tB\004\342A\001\001\022+\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\004\342A\001\001\022e\n" - + " default_notebook_runtime_options\030\t \001(\013" - + "25.google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\004\342A\001\001\022L\n" + + " default_notebook_runtime_options\030\t \001(\01325" + + ".google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\004\342A\001\001\022L\n" + "\017pipeline_config\030\014" + " \001(\0132-.google.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\001\022\"\n" + "\017lineage_enabled\030\016 \001(\010B\004\342A\001\003H\000\210\001\001\032+\n" @@ -1428,15 +1449,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027repository_snapshot_uri\030\001 \001(\tB\004\342A\001\001\"\315\002\n" + "\026NotebookRuntimeOptions\022!\n" + "\021gcs_output_bucket\030\001 \001(\tB\004\342A\001\001H\000\022t\n" - + "#gcs_repository_snapshot_destination\030\003 \001(\0132?.google" - + ".cloud.dataform.v1beta1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + + "#gcs_repository_snapshot_destination\030\003 \001(\0132?.google.c" + + "loud.dataform.v1beta1.GcsRepositorySnapshotDestinationB\004\342A\001\001H\001\022i\n" + "%ai_platform_notebook_runtime_template\030\002 \001(\tB:\342A\001\001\372A3\n" + "1aiplatform.googleapis.com/NotebookRuntimeTemplateB\020\n" + "\016execution_sinkB\035\n" + "\033repository_snapshot_storage\"\321\001\n" - + "\016PipelineConfig\022W\n\r" - + "pipeline_type\030\001 \001(\0162:.google.cloud.da" - + "taform.v1beta1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + + "\016PipelineConfig\022W\n" + + "\r" + + "pipeline_type\030\001 \001(\0162:.google.cloud.data" + + "form.v1beta1.PipelineConfig.PipelineTypeB\004\342A\001\002\022\022\n" + "\004path\030\002 \001(\tB\004\342A\001\002\"R\n" + "\014PipelineType\022\035\n" + "\031PIPELINE_TYPE_UNSPECIFIED\020\000\022\014\n" @@ -1461,15 +1483,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CreateCompilationResultRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022R\n" - + "\022compilation_result\030\002" - + " \001(\01320.google.cloud.dataform.v1beta1.CompilationResultB\004\342A\001\002\"\367\002\n" + + "\022compilation_result\030\002 " + + "\001(\01320.google.cloud.dataform.v1beta1.CompilationResultB\004\342A\001\002\"\367\002\n" + "\037CreateCompilationResultMetadata\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\003\022\024\n" + "\006target\030\002 \001(\tB\004\342A\001\003\022Y\n" - + "\005state\030\003 \001(\0162D.googl" - + "e.cloud.dataform.v1beta1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022n\n" - + "!create_compilation_result_request\030\004 \001(\0132=.google" - + ".cloud.dataform.v1beta1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + + "\005state\030\003 \001(\0162D.google." + + "cloud.dataform.v1beta1.CreateCompilationResultMetadata.StateB\004\342A\001\003\022n\n" + + "!create_compilation_result_request\030\004 \001(\0132=.google.c" + + "loud.dataform.v1beta1.CreateCompilationResultRequestB\004\342A\001\003\"a\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007CREATED\020\001\022\013\n" @@ -1483,10 +1505,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\003 \001(\tB\004\342A\001\001\"\352\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022S\n" - + "\007columns\030\002 \003(\0132B.google.cloud.dataform" - + ".v1beta1.RelationDescriptor.ColumnDescriptor\022^\n" - + "\017bigquery_labels\030\003 \003(\0132E.google.c" - + "loud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 \003(\0132B.google.cloud.dataform.v" + + "1beta1.RelationDescriptor.ColumnDescriptor\022^\n" + + "\017bigquery_labels\030\003 \003(\0132E.google.clo" + + "ud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" @@ -1497,18 +1519,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CompilationResultAction\022S\n" + "\010relation\030\004" + " \001(\0132?.google.cloud.dataform.v1beta1.CompilationResultAction.RelationH\000\022W\n\n" - + "operations\030\005 \001(\0132A.google.cloud.dataform.v1" - + "beta1.CompilationResultAction.OperationsH\000\022U\n" - + "\tassertion\030\006 \001(\0132@.google.cloud.dat" - + "aform.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" - + "\013declaration\030\007 \001(\0132B.google." - + "cloud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" - + "\010notebook\030\010 \001(\0132?" - + ".google.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" - + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1be" - + "ta1.CompilationResultAction.DataPreparationH\000\022e\n" - + "\022bigquery_unit_test\030\013 \001(\0132G.goog" - + "le.cloud.dataform.v1beta1.CompilationResultAction.BigQueryUnitTestH\000\0225\n" + + "operations\030\005 \001(\0132A.google.cloud.dataform.v1be" + + "ta1.CompilationResultAction.OperationsH\000\022U\n" + + "\tassertion\030\006 \001(\0132@.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" + + "\013declaration\030\007 \001(\0132B.google.cl" + + "oud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" + + "\010notebook\030\010 \001(\0132?.g" + + "oogle.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" + + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1beta" + + "1.CompilationResultAction.DataPreparationH\000\022e\n" + + "\022bigquery_unit_test\030\013 \001(\0132G.google" + + ".cloud.dataform.v1beta1.CompilationResultAction.BigQueryUnitTestH\000\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022?\n" + "\020canonical_target\030\002" + " \001(\0132%.google.cloud.dataform.v1beta1.Target\022\021\n" @@ -1521,28 +1543,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" + "\023relation_descriptor\030\004" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n" - + "\r" - + "relation_type\030\005 \001(\0162L.google.cloud.data" - + "form.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n\r" + + "relation_type\030\005 \001(\0162L.google.cloud.datafo" + + "rm.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022x\n" - + "\030incremental_table_config\030\t \001(\0132V.google.cloud.dataform.v1beta1.Comp" - + "ilationResultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132V.google.cloud.dataform.v1beta1.Compil" + + "ationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022r\n" - + "\022additional_options\030\016 \003(\0132V.google.cloud.dataform.v1beta1." - + "CompilationResultAction.Relation.AdditionalOptionsEntry\022\030\n\n" + + "\022additional_options\030\016 \003(\0132V.google.cloud.dataform.v1beta1.Co" + + "mpilationResultAction.Relation.AdditionalOptionsEntry\022\030\n\n" + "connection\030\017 \001(\tB\004\342A\001\001\022g\n" - + "\014table_format\030\020 \001(\0162K.google.cloud.d" - + "ataform.v1beta1.CompilationResultAction.Relation.TableFormatB\004\342A\001\001\022e\n" - + "\013file_format\030\021 \001(\0162J.google.cloud.dataform.v1beta1." - + "CompilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + + "\014table_format\030\020 \001(\0162K.google.cloud.dat" + + "aform.v1beta1.CompilationResultAction.Relation.TableFormatB\004\342A\001\001\022e\n" + + "\013file_format\030\021 \001(\0162J.google.cloud.dataform.v1beta1.Co" + + "mpilationResultAction.Relation.FileFormatB\004\342A\001\001\022\031\n" + "\013storage_uri\030\022 \001(\tB\004\342A\001\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" @@ -1571,8 +1592,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" - + "\023relation_descriptor\030\006" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022\017\n" + + "\023relation_descriptor\030\006 \001" + + "(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022\017\n" + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\222\002\n" + "\tAssertion\022A\n" @@ -1582,8 +1603,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022N\n" - + "\023relation_descriptor\030\006 \001(\01321" - + ".google.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + + "\023relation_descriptor\030\006 \001(\01321.g" + + "oogle.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + "\013Declaration\022N\n" + "\023relation_descriptor\030\001" + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032\177\n" @@ -1595,18 +1616,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\300\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022l\n" - + "\014contents_sql\030\006 \001(\0132T.google.cloud.data" - + "form.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022A\n" + + "\014contents_sql\030\006 \001(\0132T.google.cloud.datafo" + + "rm.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022A\n" + "\022dependency_targets\030\001" + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\004 \003(\t\032\327\001\n\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022f\n" - + "\013error_table\030\002 \001(\0132Q.google.cloud.dat" - + "aform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" - + "\004load\030\003 \001(\0132A" - + ".google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + + "\013error_table\030\002 \001(\0132Q.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" + + "\004load\030\003 \001(\0132A.g" + + "oogle.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + "ErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" @@ -1620,14 +1641,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "test_query\030\005 \001(\t\022\035\n" + "\025expected_output_query\030\006 \001(\t\032\204\003\n\n" + "LoadConfig\022X\n" - + "\007replace\030\001 \001(\0132E." - + "google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" - + "\006append\030\002 \001(\0132E.google.cloud.dataform.v1beta1.C" - + "ompilationResultAction.SimpleLoadModeH\000\022]\n" - + "\007maximum\030\003 \001(\0132J.google.cloud.dataform" - + ".v1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" - + "\006unique\030\004 \001(\0132J.google." - + "cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132E.go" + + "ogle.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" + + "\006append\030\002" + + " \001(\0132E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022]\n" + + "\007maximum\030\003 \001(\0132J.google.cloud.dataform.v" + + "1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" + + "\006unique\030\004 \001(\0132J.google.cl" + + "oud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1641,8 +1662,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\"\234\001\n" + "%QueryCompilationResultActionsResponse\022Z\n" - + "\032compilation_result_actions\030\001 \003(\01326.googl" - + "e.cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01326.google." + + "cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\237\010\n" + "\016WorkflowConfig\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022F\n" @@ -1652,9 +1673,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.dataform.v1beta1.InvocationConfigB\004\342A\001\001\022\033\n\r" + "cron_schedule\030\004 \001(\tB\004\342A\001\001\022\027\n" + "\ttime_zone\030\007 \001(\tB\004\342A\001\001\022x\n" - + "\"recent_scheduled_execution_records\030\005" - + " \003(\0132F.google.cloud.dataform.v1beta1.Wor" - + "kflowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + + "\"recent_scheduled_execution_records\030\005 \003" + + "(\0132F.google.cloud.dataform.v1beta1.Workf" + + "lowConfig.ScheduledExecutionRecordB\004\342A\001\003\022\026\n" + "\010disabled\030\010 \001(\010B\004\342A\001\001\0225\n" + "\013create_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" @@ -1670,9 +1691,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/loca" - + "tions/{location}/repositories/{repositor" - + "y}/workflowConfigs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locati" + + "ons/{location}/repositories/{repository}" + + "/workflowConfigs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + "\022_internal_metadata\"\372\007\n" + "\020InvocationConfig\022E\n" + "\020included_targets\030\001" @@ -1683,14 +1704,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(fully_refresh_incremental_tables_enabled\030\005" + " \001(\010B\004\342A\001\001\022\035\n" + "\017service_account\030\006 \001(\tB\004\342A\001\001\022o\n" - + "\024end_user_auth_config\030\007 \001(\0132K.google.cloud.d" - + "ataform.v1beta1.InvocationConfig.EndUserAuthenticationConfigB\004\342A\001\001\022`\n" - + "\016query_priority\030\t \001(\0162=.google.cloud.dataform.v1bet" - + "a1.InvocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + + "\024end_user_auth_config\030\007 \001(\0132K.google.cloud.dat" + + "aform.v1beta1.InvocationConfig.EndUserAuthenticationConfigB\004\342A\001\001\022`\n" + + "\016query_priority\030\t \001(\0162=.google.cloud.dataform.v1beta1" + + ".InvocationConfig.QueryPriorityB\004\342A\001\001H\000\210\001\001\022+\n" + "\030concurrent_actions_limit\030\n" + " \001(\005B\004\342A\001\001H\001\210\001\001\022[\n" - + "\016execution_mode\030\020 \001(\0162=.goog" - + "le.cloud.dataform.v1beta1.InvocationConfig.ExecutionModeB\004\342A\001\001\032\177\n" + + "\016execution_mode\030\020 \001(\0162=.google" + + ".cloud.dataform.v1beta1.InvocationConfig.ExecutionModeB\004\342A\001\001\032\177\n" + "\033EndUserAuthenticationConfig\022\030\n\n" + "user_email\030\002 \001(\tB\004\342A\001\003\022F\n" + "\014oauth_config\030\004" @@ -1712,8 +1733,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\224\001\n" + "\033ListWorkflowConfigsResponse\022G\n" - + "\020workflow_configs\030\001 \003(\0132-.goog" - + "le.cloud.dataform.v1beta1.WorkflowConfig\022\027\n" + + "\020workflow_configs\030\001 \003(\0132-.google" + + ".cloud.dataform.v1beta1.WorkflowConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"Y\n" + "\030GetWorkflowConfigRequest\022=\n" @@ -1739,10 +1760,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017workflow_config\030\006 \001(\tB/\342A\001\005\372A(\n" + "&dataform.googleapis.com/WorkflowConfigH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022P\n" - + "\021invocation_config\030\003 \001(\0132/.google.c" - + "loud.dataform.v1beta1.InvocationConfigB\004\342A\001\005\022L\n" - + "\005state\030\004 \001(\01627.google.cloud.dataf" - + "orm.v1beta1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + + "\021invocation_config\030\003 \001(\0132/.google.clo" + + "ud.dataform.v1beta1.InvocationConfigB\004\342A\001\005\022L\n" + + "\005state\030\004 \001(\01627.google.cloud.datafor" + + "m.v1beta1.WorkflowInvocation.StateB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022W\n" + "\033resolved_compilation_result\030\007 \001(\tB2\342A\001\003\372A+\n" @@ -1751,10 +1772,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\004\342A\001\003\022$\n" + "\021internal_metadata\030\t \001(\tB\004\342A\001\003H\001\210\001\001\022_\n" + "\031private_resource_metadata\030\n" - + " \001(\01326.google.c" - + "loud.dataform.v1beta1.PrivateResourceMetadataB\004\342A\001\003\022L\n" - + "\017pipeline_config\030\013 \001(\0132-.g" - + "oogle.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\003\"d\n" + + " \001(\01326.google.clo" + + "ud.dataform.v1beta1.PrivateResourceMetadataB\004\342A\001\003\022L\n" + + "\017pipeline_config\030\013 \001(\0132-.goo" + + "gle.cloud.dataform.v1beta1.PipelineConfigB\004\342A\001\003\"d\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" @@ -1762,16 +1783,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{locati" - + "on}/repositories/{repository}/workflowIn" - + "vocations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{location" + + "}/repositories/{repository}/workflowInvo" + + "cations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\276\001\n" + "\036ListWorkflowInvocationsRequest\022;\n" + "\006parent\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\027\n" - + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\240\001\n" @@ -1796,20 +1816,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\223\024\n" + "\030WorkflowInvocationAction\022g\n" - + "\017bigquery_action\030\006 \001(\0132F.google.cloud.dataform.v1beta1" - + ".WorkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022g\n" - + "\017notebook_action\030\010 \001(\0132F.goog" - + "le.cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookActionB\004\342A\001\003H\000\022v\n" - + "\027data_preparation_action\030\t \001(\0132M.google.clou" - + "d.dataform.v1beta1.WorkflowInvocationAction.DataPreparationActionB\004\342A\001\003H\000\022y\n" - + "\031bigquery_unit_test_action\030\014 \001(\0132N.google.cl" - + "oud.dataform.v1beta1.WorkflowInvocationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\022;\n" + + "\017bigquery_action\030\006 \001(\0132F.google.cloud.dataform.v1beta1.W" + + "orkflowInvocationAction.BigQueryActionB\004\342A\001\003H\000\022g\n" + + "\017notebook_action\030\010 \001(\0132F.google" + + ".cloud.dataform.v1beta1.WorkflowInvocationAction.NotebookActionB\004\342A\001\003H\000\022v\n" + + "\027data_preparation_action\030\t \001(\0132M.google.cloud." + + "dataform.v1beta1.WorkflowInvocationAction.DataPreparationActionB\004\342A\001\003H\000\022y\n" + + "\031bigquery_unit_test_action\030\014 \001(\0132N.google.clou" + + "d.dataform.v1beta1.WorkflowInvocationAction.BigQueryUnitTestActionB\004\342A\001\003H\000\022;\n" + "\006target\030\001" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003\022E\n" - + "\020canonical_target\030\002 " - + "\001(\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003\022R\n" - + "\005state\030\004 \001(\0162=.google.cloud.d" - + "ataform.v1beta1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + + "\020canonical_target\030\002 \001(" + + "\0132%.google.cloud.dataform.v1beta1.TargetB\004\342A\001\003\022R\n" + + "\005state\030\004 \001(\0162=.google.cloud.dat" + + "aform.v1beta1.WorkflowInvocationAction.StateB\004\342A\001\003\022\034\n" + "\016failure_reason\030\007 \001(\tB\004\342A\001\003\0226\n" + "\021invocation_timing\030\005" + " \001(\0132\025.google.type.IntervalB\004\342A\001\003\022$\n" @@ -1822,32 +1842,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010contents\030\001 \001(\tB\004\342A\001\003\022\024\n" + "\006job_id\030\002 \001(\tB\004\342A\001\003\022\027\n" + "\tfile_path\030\003 \001(\tB\004\342A\001\003\032\254\t\n" - + "\025DataPreparationAction\022\035\n" - + "\r" + + "\025DataPreparationAction\022\035\n\r" + "contents_yaml\030\002 \001(\tB\004\342A\001\003H\000\022y\n" - + "\014contents_sql\030\006 \001(\0132a.google.cloud.dataform.v1bet" - + "a1.WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + + "\014contents_sql\030\006 \001(\0132a.google.cloud.dataform.v1beta1" + + ".WorkflowInvocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\033\n\r" + "generated_sql\030\003 \001(\tB\004\342A\001\003\022\024\n" + "\006job_id\030\004 \001(\tB\004\342A\001\003\032\216\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022s\n" - + "\013error_table\030\002 \001(\0132^.google.cloud.da" - + "taform.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\022s\n" - + "\013load_config\030\003 \001(\0132^.google.cloud.dataf" - + "orm.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\032a\n" + + "\013error_table\030\002 \001(\0132^.google.cloud.data" + + "form.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\022s\n" + + "\013load_config\030\003 \001(\0132^.google.cloud.datafor" + + "m.v1beta1.WorkflowInvocationAction.DataPreparationAction.ActionLoadConfig\032a\n" + "\020ActionErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\376\003\n" + "\020ActionLoadConfig\022u\n" - + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1b" - + "eta1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" - + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1bet" - + "a1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" - + "\007maximum\030\003 \001(\0132g.google.cloud.dataform.v1beta" - + "1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" - + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1b" - + "eta1.WorkflowInvocationAction.DataPrepar" - + "ationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1bet" + + "a1.WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" + + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1beta1" + + ".WorkflowInvocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" + + "\007maximum\030\003 \001(\0132g.google.cloud.dataform.v1beta1." + + "WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" + + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1bet" + + "a1.WorkflowInvocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1859,14 +1877,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027expected_results_job_id\030\003 \001(\tB\004\342A\001\003\022)\n" + "\033expected_results_sql_script\030\004 \001(\tB\004\342A\001\003\022#\n" + "\025total_processed_bytes\030\005 \001(\003B\004\342A\001\003\022 \n" - + "\022total_billed_bytes\030\006 \001(\003B\004\342A\001\003\"r\n" + + "\022tota", + "l_billed_bytes\030\006 \001(\003B\004\342A\001\003\"r\n" + "\005State\022\013\n" + "\007PENDING\020\000\022\013\n" + "\007RUNNING\020\001\022\013\n" + "\007SKIPPED\020\002\022\014\n" + "\010DISABLED\020\003\022\r\n" + "\tSUCCEEDED\020\004\022\r\n" - + "\tCANCELLED\020\005\022\n\n" + + "\tCANCELLED\020\005\022\n" + + "\n" + "\006FAILED\020\006\022\n\n" + "\006QUEUED\020\007B\010\n" + "\006actionB\024\n" @@ -1876,8 +1896,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\237\001\n" - + "&QueryWorkflowInvoca", - "tionActionsResponse\022\\\n" + + "&QueryWorkflowInvocationActionsResponse\022\\\n" + "\033workflow_invocation_actions\030\001" + " \003(\01327.google.cloud.dataform.v1beta1.WorkflowInvocationAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\210\002\n" @@ -1886,15 +1905,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024default_kms_key_name\030\002 \001(\tB*\342A\001\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022." - + "projects/{project}/locations/{location}/config*\007configs2\006configB\024\n" + + "\036dataform.googleapis.com/Config\022.pr" + + "ojects/{project}/locations/{location}/config*\007configs2\006configB\024\n" + "\022_internal_metadata\"I\n" + "\020GetConfigRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" + "\036dataform.googleapis.com/Config\"\211\001\n" + "\023UpdateConfigRequest\022;\n" - + "\006config\030\001 \001(\013" - + "2%.google.cloud.dataform.v1beta1.ConfigB\004\342A\001\002\0225\n" + + "\006config\030\001 \001(\0132%" + + ".google.cloud.dataform.v1beta1.ConfigB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"\327\003\n" + "\006Folder\022\022\n" @@ -1908,15 +1927,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022$\n" + "\021internal_metadata\030\007 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\010 \001(\tB\004\342A\001\003H\001\210\001\001:n\352Ak\n" - + "\036dataform.googleapis.com/Folder\0228projects/{project}/location" - + "s/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\036dataform.googleapis.com/Folder\0228projects/{project}/locations/" + + "{location}/folders/{folder}*\007folders2\006folderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\245\001\n" + "\023CreateFolderRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022;\n" - + "\006folder\030\002 \001(\0132%.goo" - + "gle.cloud.dataform.v1beta1.FolderB\004\342A\001\002\022\025\n" + + "\006folder\030\002" + + " \001(\0132%.google.cloud.dataform.v1beta1.FolderB\004\342A\001\002\022\025\n" + "\tfolder_id\030\003 \001(\tB\002\030\001\"\236\001\n" + "\021MoveFolderRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" @@ -1930,8 +1949,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023UpdateFolderRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022;\n" - + "\006folder\030\002 \001(\0132%.goog" - + "le.cloud.dataform.v1beta1.FolderB\004\342A\001\002\"L\n" + + "\006folder\030\002" + + " \001(\0132%.google.cloud.dataform.v1beta1.FolderB\004\342A\001\002\"L\n" + "\023DeleteFolderRequest\0225\n" + "\004name\030\001 \001(\tB\'\342A\001\002\372A \n" + "\036dataform.googleapis.com/Folder\"e\n" @@ -1949,8 +1968,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022R\n" - + "\005state\030\004 \001(\0162=.google.cloud.d" - + "ataform.v1beta1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + + "\005state\030\004 \001(\0162=.google.cloud.dat" + + "aform.v1beta1.DeleteFolderTreeMetadata.StateB\004\342A\001\003\022\036\n" + "\020percent_complete\030\005 \001(\005B\004\342A\001\003\"[\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -1966,12 +1985,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\262\002\n" + "\033QueryFolderContentsResponse\022_\n" - + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1be" - + "ta1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1beta" + + "1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\230\001\n" + "\023FolderContentsEntry\0227\n" - + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n" - + "\n" + + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" + "repository\030\002 \001(\0132).google.cloud.dataform.v1beta1.RepositoryH\000B\007\n" + "\005entry\"\275\001\n" + "\034QueryUserRootContentsRequest\022<\n" @@ -1982,8 +2000,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\262\002\n" + "\035QueryUserRootContentsResponse\022_\n" - + "\007entries\030\001 \003(\0132N.goo" - + "gle.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132N.googl" + + "e.cloud.dataform.v1beta1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\226\001\n" + "\021RootContentsEntry\0227\n" + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" @@ -1999,16 +2017,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021internal_metadata\030\005 \001(\tB\004\342A\001\003H\000\210\001\001\022(\n" + "\025creator_iam_principal\030\006 \001(" + "\tB\004\342A\001\003H\001\210\001\001:\204\001\352A\200\001\n" - + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{" - + "project}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{pr" + + "oject}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + "teamFolderB\024\n" + "\022_internal_metadataB\030\n" + "\026_creator_iam_principal\"\267\001\n" + "\027CreateTeamFolderRequest\022:\n" + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n" + "!locations.googleapis.com/Location\022D\n" - + "\013team_folder\030\002 \001(\0132)." - + "google.cloud.dataform.v1beta1.TeamFolderB\004\342A\001\002\022\032\n" + + "\013team_folder\030\002 \001(\0132).go" + + "ogle.cloud.dataform.v1beta1.TeamFolderB\004\342A\001\002\022\032\n" + "\016team_folder_id\030\003 \001(\tB\002\030\001\"Q\n" + "\024GetTeamFolderRequest\0229\n" + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" @@ -2029,8 +2047,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\302\002\n" + "\037QueryTeamFolderContentsResponse\022g\n" - + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta1." - + "QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta1.Qu" + + "eryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\234\001\n" + "\027TeamFolderContentsEntry\0227\n" + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" @@ -2044,8 +2062,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\005 \001(\tB\004\342A\001\001\"\373\001\n" + "\031SearchTeamFoldersResponse\022`\n" - + "\007results\030\001 \003(\0132O.goo" - + "gle.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\007results\030\001 \003(\0132O.googl" + + "e.cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + "\017next_page_token\030\002 \001(\t\032c\n" + "\026TeamFolderSearchResult\022@\n" + "\013team_folder\030\002" @@ -2072,8 +2090,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + "\006target\030\003 \001(\tB\004\342A\001\003\022J\n" - + "\005state\030\004 \001(\0162;.goog" - + "le.cloud.dataform.v1beta1.MoveRepositoryMetadata.State\022\030\n" + + "\005state\030\004 \001(\0162;.google" + + ".cloud.dataform.v1beta1.MoveRepositoryMetadata.State\022\030\n" + "\020percent_complete\030\005 \001(\005\"Y\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" @@ -2087,8 +2105,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022;\n" + "\006target\030\003 \001(\tB+\342A\001\003\372A$\n" + "\"dataform.googleapis.com/Repository\022]\n" - + "\005state\030\004 \001(\0162H.goo" - + "gle.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.StateB\004\342A\001\003\022\036\n" + + "\005state\030\004 \001(\0162H.googl" + + "e.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.StateB\004\342A\001\003\022\036\n" + "\020percent_complete\030\005 \001(\005B\004\342A\001\003\022#\n" + "\025child_resources_count\030\006 \001(\003B\004\342A\001\003\022-\n" + "\037remaining_child_resources_count\030\007 \001(\003B\004\342A\001\003\"F\n" @@ -2100,8 +2118,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035FetchWorkspaceBranchesRequest\0228\n" + "\004name\030\001 \001(\tB*\342A\001\002\372A#\n" + "!dataform.googleapis.com/Workspace\022_\n" - + "\006filter\030\002 \001(\0162I.google.cloud.dataform.v1bet" - + "a1.FetchWorkspaceBranchesRequest.BranchFilterB\004\342A\001\001\022\027\n" + + "\006filter\030\002 \001(\0162I.google.cloud.dataform.v1beta1" + + ".FetchWorkspaceBranchesRequest.BranchFilterB\004\342A\001\001\022\027\n" + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\"W\n" + "\014BranchFilter\022\035\n" @@ -2124,468 +2142,478 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025DirectoryContentsView\022\'\n" + "#DIRECTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n" + "\035DIRECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n" - + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\370\225\001\n" + + " DIRECTORY_CONTENTS_VIEW_METADATA\020\0022\236\230\001\n" + "\010Dataform\022\264\001\n\r" - + "GetTeamFolder\0223.google.cloud.dataform.v1beta1.GetTeamFolderRequ" - + "est\032).google.cloud.dataform.v1beta1.Team" - + "Folder\"C\332A\004name\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\325\001\n" - + "\020CreateTeamFolder\0226.google.cloud.dataform" - + ".v1beta1.CreateTeamFolderRequest\032).googl" - + "e.cloud.dataform.v1beta1.TeamFolder\"^\332A\022" - + "parent,team_folder\202\323\344\223\002C\"4/v1beta1/{pare" - + "nt=projects/*/locations/*}/teamFolders:\013team_folder\022\346\001\n" - + "\020UpdateTeamFolder\0226.google.cloud.dataform.v1beta1.UpdateTeamFolde" - + "rRequest\032).google.cloud.dataform.v1beta1" - + ".TeamFolder\"o\332A\027team_folder,update_mask\202" - + "\323\344\223\002O2@/v1beta1/{team_folder.name=projec" - + "ts/*/locations/*/teamFolders/*}:\013team_folder\022\247\001\n" - + "\020DeleteTeamFolder\0226.google.cloud.dataform.v1beta1.DeleteTeamFolderReques" - + "t\032\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026" - + "*4/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\377\001\n" - + "\024DeleteTeamFolderTree\022:.google.cloud.dataform.v1beta1.DeleteTe" - + "amFolderTreeRequest\032\035.google.longrunning.Operation\"\213\001\312A1\n" + + "GetTeamFolder\0223.google.cloud.dataform.v1beta1.GetTeamFolderReques" + + "t\032).google.cloud.dataform.v1beta1.TeamFo" + + "lder\"C\332A\004name\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\325\001\n" + + "\020CreateTeamFolder\0226.google.cloud.dataform.v" + + "1beta1.CreateTeamFolderRequest\032).google." + + "cloud.dataform.v1beta1.TeamFolder\"^\332A\022pa" + + "rent,team_folder\202\323\344\223\002C\"4/v1beta1/{parent" + + "=projects/*/locations/*}/teamFolders:\013team_folder\022\346\001\n" + + "\020UpdateTeamFolder\0226.google.cloud.dataform.v1beta1.UpdateTeamFolderR" + + "equest\032).google.cloud.dataform.v1beta1.T" + + "eamFolder\"o\332A\027team_folder,update_mask\202\323\344" + + "\223\002O2@/v1beta1/{team_folder.name=projects" + + "/*/locations/*/teamFolders/*}:\013team_folder\022\247\001\n" + + "\020DeleteTeamFolder\0226.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest\032" + + "\026.google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4" + + "/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\377\001\n" + + "\024DeleteTeamFolderTree\022:.google.cloud.dataform.v1beta1.DeleteTeam" + + "FolderTreeRequest\032\035.google.longrunning.Operation\"\213\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323" - + "\344\223\002D\"?/v1beta1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\001*\022\371\001\n" - + "\027QueryTeamFolderContents\022=.google.cloud.data" - + "form.v1beta1.QueryTeamFolderContentsRequest\032>.google.cloud.dataform.v1beta1.Quer" - + "yTeamFolderContentsResponse\"_\332A\013team_fol" - + "der\202\323\344\223\002K\022I/v1beta1/{team_folder=project" - + "s/*/locations/*/teamFolders/*}:queryContents\022\315\001\n" - + "\021SearchTeamFolders\0227.google.cloud.dataform.v1beta1.SearchTeamFoldersRequ" - + "est\0328.google.cloud.dataform.v1beta1.Sear" - + "chTeamFoldersResponse\"E\202\323\344\223\002?\022=/v1beta1/" - + "{location=projects/*/locations/*}/teamFolders:search\022\244\001\n" - + "\tGetFolder\022/.google.cloud.dataform.v1beta1.GetFolderRequest\032%.go" - + "ogle.cloud.dataform.v1beta1.Folder\"?\332A\004n" - + "ame\202\323\344\223\0022\0220/v1beta1/{name=projects/*/locations/*/folders/*}\022\273\001\n" - + "\014CreateFolder\0222.google.cloud.dataform.v1beta1.CreateFolde" - + "rRequest\032%.google.cloud.dataform.v1beta1.Folder\"P\332A\r" - + "parent,folder\202\323\344\223\002:\"0/v1beta" - + "1/{parent=projects/*/locations/*}/folders:\006folder\022\307\001\n" - + "\014UpdateFolder\0222.google.cloud.dataform.v1beta1.UpdateFolderRequest\032%" - + ".google.cloud.dataform.v1beta1.Folder\"\\\332" - + "A\022folder,update_mask\202\323\344\223\002A27/v1beta1/{fo" - + "lder.name=projects/*/locations/*/folders/*}:\006folder\022\233\001\n" - + "\014DeleteFolder\0222.google.cloud.dataform.v1beta1.DeleteFolderRequest" - + "\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*" - + "0/v1beta1/{name=projects/*/locations/*/folders/*}\022\363\001\n" - + "\020DeleteFolderTree\0226.google.cloud.dataform.v1beta1.DeleteFolderTreeR" - + "equest\032\035.google.longrunning.Operation\"\207\001\312A1\n" + + "name,force\202\323\344\223" + + "\002D\"?/v1beta1/{name=projects/*/locations/*/teamFolders/*}:deleteTree:\001*\022\371\001\n" + + "\027QueryTeamFolderContents\022=.google.cloud.datafo" + + "rm.v1beta1.QueryTeamFolderContentsRequest\032>.google.cloud.dataform.v1beta1.QueryT" + + "eamFolderContentsResponse\"_\332A\013team_folde" + + "r\202\323\344\223\002K\022I/v1beta1/{team_folder=projects/" + + "*/locations/*/teamFolders/*}:queryContents\022\315\001\n" + + "\021SearchTeamFolders\0227.google.cloud.dataform.v1beta1.SearchTeamFoldersReques" + + "t\0328.google.cloud.dataform.v1beta1.Search" + + "TeamFoldersResponse\"E\202\323\344\223\002?\022=/v1beta1/{l" + + "ocation=projects/*/locations/*}/teamFolders:search\022\244\001\n" + + "\tGetFolder\022/.google.cloud.dataform.v1beta1.GetFolderRequest\032%.goog" + + "le.cloud.dataform.v1beta1.Folder\"?\332A\004nam" + + "e\202\323\344\223\0022\0220/v1beta1/{name=projects/*/locations/*/folders/*}\022\273\001\n" + + "\014CreateFolder\0222.google.cloud.dataform.v1beta1.CreateFolderR" + + "equest\032%.google.cloud.dataform.v1beta1.Folder\"P\332A\r" + + "parent,folder\202\323\344\223\002:\"0/v1beta1/" + + "{parent=projects/*/locations/*}/folders:\006folder\022\307\001\n" + + "\014UpdateFolder\0222.google.cloud.dataform.v1beta1.UpdateFolderRequest\032%.g" + + "oogle.cloud.dataform.v1beta1.Folder\"\\\332A\022" + + "folder,update_mask\202\323\344\223\002A27/v1beta1/{fold" + + "er.name=projects/*/locations/*/folders/*}:\006folder\022\233\001\n" + + "\014DeleteFolder\0222.google.cloud.dataform.v1beta1.DeleteFolderRequest\032\026" + + ".google.protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/" + + "v1beta1/{name=projects/*/locations/*/folders/*}\022\363\001\n" + + "\020DeleteFolderTree\0226.google.cloud.dataform.v1beta1.DeleteFolderTreeReq" + + "uest\032\035.google.longrunning.Operation\"\207\001\312A1\n" + "\025google.protobuf.Empty\022\030DeleteFolderTreeMetadata\332A\n" - + "name,force\202\323\344\223\002@\";/v1beta" - + "1/{name=projects/*/locations/*/folders/*}:deleteTree:\001*\022\345\001\n" - + "\023QueryFolderContents\0229.google.cloud.dataform.v1beta1.QueryFol" - + "derContentsRequest\032:.google.cloud.dataform.v1beta1.QueryFolderContentsResponse\"W" - + "\332A\006folder\202\323\344\223\002H\022F/v1beta1/{folder=projec" - + "ts/*/locations/*/folders/*}:queryFolderContents\022\347\001\n" - + "\025QueryUserRootContents\022;.google.cloud.dataform.v1beta1.QueryUserRootC" - + "ontentsRequest\032<.google.cloud.dataform.v" - + "1beta1.QueryUserRootContentsResponse\"S\332A" - + "\010location\202\323\344\223\002B\022@/v1beta1/{location=proj" - + "ects/*/locations/*}:queryUserRootContents\022\363\001\n\n" - + "MoveFolder\0220.google.cloud.dataform" - + ".v1beta1.MoveFolderRequest\032\035.google.longrunning.Operation\"\223\001\312A+\n" - + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destin" - + "ation_containing_folder\202\323\344\223\002:\"5/v1beta1/" - + "{name=projects/*/locations/*/folders/*}:move:\001*\022\313\001\n" - + "\020ListRepositories\0226.google.cloud.dataform.v1beta1.ListRepositoriesReq" - + "uest\0327.google.cloud.dataform.v1beta1.Lis" - + "tRepositoriesResponse\"F\332A\006parent\202\323\344\223\0027\0225" - + "/v1beta1/{parent=projects/*/locations/*}/repositories\022\265\001\n\r" - + "GetRepository\0223.google.cloud.dataform.v1beta1.GetRepositoryReq" - + "uest\032).google.cloud.dataform.v1beta1.Rep" - + "ository\"D\332A\004name\202\323\344\223\0027\0225/v1beta1/{name=p" - + "rojects/*/locations/*/repositories/*}\022\342\001\n" - + "\020CreateRepository\0226.google.cloud.datafo" - + "rm.v1beta1.CreateRepositoryRequest\032).goo" - + "gle.cloud.dataform.v1beta1.Repository\"k\332" - + "A\037parent,repository,repository_id\202\323\344\223\002C\"" - + "5/v1beta1/{parent=projects/*/locations/*}/repositories:\n" + + "name,force\202\323\344\223\002@\";/v1beta1/" + + "{name=projects/*/locations/*/folders/*}:deleteTree:\001*\022\345\001\n" + + "\023QueryFolderContents\0229.google.cloud.dataform.v1beta1.QueryFolde" + + "rContentsRequest\032:.google.cloud.dataform" + + ".v1beta1.QueryFolderContentsResponse\"W\332A" + + "\006folder\202\323\344\223\002H\022F/v1beta1/{folder=projects" + + "/*/locations/*/folders/*}:queryFolderContents\022\347\001\n" + + "\025QueryUserRootContents\022;.google.cloud.dataform.v1beta1.QueryUserRootCon" + + "tentsRequest\032<.google.cloud.dataform.v1b" + + "eta1.QueryUserRootContentsResponse\"S\332A\010l" + + "ocation\202\323\344\223\002B\022@/v1beta1/{location=projec" + + "ts/*/locations/*}:queryUserRootContents\022\363\001\n\n" + + "MoveFolder\0220.google.cloud.dataform.v" + + "1beta1.MoveFolderRequest\032\035.google.longrunning.Operation\"\223\001\312A+\n" + + "\025google.protobuf.Empty\022\022MoveFolderMetadata\332A\"name,destinat" + + "ion_containing_folder\202\323\344\223\002:\"5/v1beta1/{n" + + "ame=projects/*/locations/*/folders/*}:move:\001*\022\313\001\n" + + "\020ListRepositories\0226.google.cloud.dataform.v1beta1.ListRepositoriesReque" + + "st\0327.google.cloud.dataform.v1beta1.ListR" + + "epositoriesResponse\"F\332A\006parent\202\323\344\223\0027\0225/v" + + "1beta1/{parent=projects/*/locations/*}/repositories\022\265\001\n\r" + + "GetRepository\0223.google.cloud.dataform.v1beta1.GetRepositoryReque" + + "st\032).google.cloud.dataform.v1beta1.Repos" + + "itory\"D\332A\004name\202\323\344\223\0027\0225/v1beta1/{name=projects/*/locations/*/repositories/*}\022\342\001\n" + + "\020CreateRepository\0226.google.cloud.dataform" + + ".v1beta1.CreateRepositoryRequest\032).googl" + + "e.cloud.dataform.v1beta1.Repository\"k\332A\037" + + "parent,repository,repository_id\202\323\344\223\002C\"5/" + + "v1beta1/{parent=projects/*/locations/*}/repositories:\n" + "repository\022\344\001\n" - + "\020UpdateRepository\0226.google.cloud.dataform.v1beta1." - + "UpdateRepositoryRequest\032).google.cloud.d" - + "ataform.v1beta1.Repository\"m\332A\026repositor" - + "y,update_mask\202\323\344\223\002N2@/v1beta1/{repositor" - + "y.name=projects/*/locations/*/repositories/*}:\n" + + "\020UpdateRepository\0226.google.cloud.dataform.v1beta1.Up" + + "dateRepositoryRequest\032).google.cloud.dat" + + "aform.v1beta1.Repository\"m\332A\026repository," + + "update_mask\202\323\344\223\002N2@/v1beta1/{repository." + + "name=projects/*/locations/*/repositories/*}:\n" + "repository\022\250\001\n" - + "\020DeleteRepository\0226.google.cloud.dataform.v1beta1.DeleteRep" - + "ositoryRequest\032\026.google.protobuf.Empty\"D" - + "\332A\004name\202\323\344\223\0027*5/v1beta1/{name=projects/*/locations/*/repositories/*}\022\256\002\n" - + "\033DeleteRepositoryLongRunning\022A.google.cloud.data" - + "form.v1beta1.DeleteRepositoryLongRunning" - + "Request\032\035.google.longrunning.Operation\"\254\001\312AJ\n" + + "\020DeleteRepository\0226.google.cloud.dataform.v1beta1.DeleteRepos" + + "itoryRequest\032\026.google.protobuf.Empty\"D\332A" + + "\004name\202\323\344\223\0027*5/v1beta1/{name=projects/*/locations/*/repositories/*}\022\256\002\n" + + "\033DeleteRepositoryLongRunning\022A.google.cloud.datafo" + + "rm.v1beta1.DeleteRepositoryLongRunningRe" + + "quest\032\035.google.longrunning.Operation\"\254\001\312AJ\n" + "#DeleteRepositoryLongRunningResponse\022#DeleteRepositoryLongRunningMetadata\332A\n" - + "name,force\202\323\344\223\002L\"G/v1beta1/{name=projec" - + "ts/*/locations/*/repositories/*}:deleteLongRunning:\001*\022\204\002\n" - + "\016MoveRepository\0224.google.cloud.dataform.v1beta1.MoveRepositoryR" - + "equest\032\035.google.longrunning.Operation\"\234\001\312A/\n" - + "\025google.protobuf.Empty\022\026MoveReposito" - + "ryMetadata\332A\"name,destination_containing" - + "_folder\202\323\344\223\002?\":/v1beta1/{name=projects/*/locations/*/repositories/*}:move:\001*\022\341\001\n" - + "\027CommitRepositoryChanges\022=.google.cloud.dataform.v1beta1.CommitRepositoryChanges" - + "Request\032>.google.cloud.dataform.v1beta1." - + "CommitRepositoryChangesResponse\"G\202\323\344\223\002A\"" - + "/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile\022\211\002\n" - + " QueryRepositoryDirectoryContents\022F.google.cloud.dataform.v1beta1.QueryRepositor" - + "yDirectoryContentsRequest\032G.google.cloud.dataform.v1beta1.QueryRepositoryDirecto" - + "ryContentsResponse\"T\202\323\344\223\002N\022L/v1beta1/{na" - + "me=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\341\001\n" - + "\026FetchRepositoryHistory\022<.google.cloud.dataform.v1be" - + "ta1.FetchRepositoryHistoryRequest\032=.google.cloud.dataform.v1beta1.FetchRepositor" - + "yHistoryResponse\"J\202\323\344\223\002D\022B/v1beta1/{name" - + "=projects/*/locations/*/repositories/*}:fetchHistory\022\221\002\n" - + "\"ComputeRepositoryAccessTokenStatus\022H.google.cloud.dataform.v1be" - + "ta1.ComputeRepositoryAccessTokenStatusRequest\032I.google.cloud.dataform.v1beta1.Co" - + "mputeRepositoryAccessTokenStatusResponse" - + "\"V\202\323\344\223\002P\022N/v1beta1/{name=projects/*/loca" - + "tions/*/repositories/*}:computeAccessTokenStatus\022\337\001\n" - + "\023FetchRemoteBranches\0229.google.cloud.dataform.v1beta1.FetchRemoteBran" - + "chesRequest\032:.google.cloud.dataform.v1be" - + "ta1.FetchRemoteBranchesResponse\"Q\202\323\344\223\002K\022" - + "I/v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\022\322\001\n" - + "\016ListWorkspaces\0224.google.cloud.dataform.v1" - + "beta1.ListWorkspacesRequest\0325.google.cloud.dataform.v1beta1.ListWorkspacesRespon" - + "se\"S\332A\006parent\202\323\344\223\002D\022B/v1beta1/{parent=pr" - + "ojects/*/locations/*/repositories/*}/workspaces\022\277\001\n" - + "\014GetWorkspace\0222.google.cloud.dataform.v1beta1.GetWorkspaceRequest\032(.g" - + "oogle.cloud.dataform.v1beta1.Workspace\"Q" - + "\332A\004name\202\323\344\223\002D\022B/v1beta1/{name=projects/*" - + "/locations/*/repositories/*/workspaces/*}\022\351\001\n" - + "\017CreateWorkspace\0225.google.cloud.dataform.v1beta1.CreateWorkspaceRequest\032(.g" - + "oogle.cloud.dataform.v1beta1.Workspace\"u" - + "\332A\035parent,workspace,workspace_id\202\323\344\223\002O\"B" - + "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:" + + "name,force\202\323\344\223\002L\"G/v1beta1/{name=projects" + + "/*/locations/*/repositories/*}:deleteLongRunning:\001*\022\204\002\n" + + "\016MoveRepository\0224.google.cloud.dataform.v1beta1.MoveRepositoryReq" + + "uest\032\035.google.longrunning.Operation\"\234\001\312A/\n" + + "\025google.protobuf.Empty\022\026MoveRepository" + + "Metadata\332A\"name,destination_containing_f" + + "older\202\323\344\223\002?\":/v1beta1/{name=projects/*/locations/*/repositories/*}:move:\001*\022\341\001\n" + + "\027CommitRepositoryChanges\022=.google.cloud.da" + + "taform.v1beta1.CommitRepositoryChangesRequest\032>.google.cloud.dataform.v1beta1.Co" + + "mmitRepositoryChangesResponse\"G\202\323\344\223\002A\"/v1beta1/{name=projects/*/locations/*/repositories/*}:readFile\022\211\002\n" + + " QueryRepositoryDirectoryContents\022F.google.cloud.dataform.v1beta1.QueryRepositoryD" + + "irectoryContentsRequest\032G.google.cloud.dataform.v1beta1.QueryRepositoryDirectory" + + "ContentsResponse\"T\202\323\344\223\002N\022L/v1beta1/{name" + + "=projects/*/locations/*/repositories/*}:queryDirectoryContents\022\341\001\n" + + "\026FetchRepositoryHistory\022<.google.cloud.dataform.v1beta" + + "1.FetchRepositoryHistoryRequest\032=.google.cloud.dataform.v1beta1.FetchRepositoryH" + + "istoryResponse\"J\202\323\344\223\002D\022B/v1beta1/{name=p" + + "rojects/*/locations/*/repositories/*}:fetchHistory\022\221\002\n" + + "\"ComputeRepositoryAccessTokenStatus\022H.google.cloud.dataform.v1beta" + + "1.ComputeRepositoryAccessTokenStatusRequest\032I.google.cloud.dataform.v1beta1.Comp" + + "uteRepositoryAccessTokenStatusResponse\"V" + + "\202\323\344\223\002P\022N/v1beta1/{name=projects/*/locati" + + "ons/*/repositories/*}:computeAccessTokenStatus\022\337\001\n" + + "\023FetchRemoteBranches\0229.google.cloud.dataform.v1beta1.FetchRemoteBranch" + + "esRequest\032:.google.cloud.dataform.v1beta" + + "1.FetchRemoteBranchesResponse\"Q\202\323\344\223\002K\022I/" + + "v1beta1/{name=projects/*/locations/*/repositories/*}:fetchRemoteBranches\022\322\001\n" + + "\016ListWorkspaces\0224.google.cloud.dataform.v1be" + + "ta1.ListWorkspacesRequest\0325.google.cloud.dataform.v1beta1.ListWorkspacesResponse" + + "\"S\332A\006parent\202\323\344\223\002D\022B/v1beta1/{parent=proj" + + "ects/*/locations/*/repositories/*}/workspaces\022\277\001\n" + + "\014GetWorkspace\0222.google.cloud.dataform.v1beta1.GetWorkspaceRequest\032(.goo" + + "gle.cloud.dataform.v1beta1.Workspace\"Q\332A" + + "\004name\202\323\344\223\002D\022B/v1beta1/{name=projects/*/l" + + "ocations/*/repositories/*/workspaces/*}\022\351\001\n" + + "\017CreateWorkspace\0225.google.cloud.dataform.v1beta1.CreateWorkspaceRequest\032(.goo" + + "gle.cloud.dataform.v1beta1.Workspace\"u\332A" + + "\035parent,workspace,workspace_id\202\323\344\223\002O\"B/v" + + "1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:" + + "\tworkspace\022\243\002\n" + + "\032CreateWorkspaceLongRunning\0225.google.clou" + + "d.dataform.v1beta1.CreateWorkspaceRequest\032\035.google.longrunning.Operation\"\256\001\312A$\n" + + "\tWorkspace\022\027CreateWorkspaceMetadata\332A\035par" + + "ent,workspace,workspace_id\202\323\344\223\002a\"T/v1bet" + + "a1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning:" + "\tworkspace\022\263\001\n" - + "\017DeleteWorkspace\0225.google.cloud.datafor" - + "m.v1beta1.DeleteWorkspaceRequest\032\026.googl" - + "e.protobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1beta" - + "1/{name=projects/*/locations/*/repositories/*/workspaces/*}\022\360\001\n" - + "\022InstallNpmPackages\0228.google.cloud.dataform.v1beta1.Insta" - + "llNpmPackagesRequest\0329.google.cloud.dataform.v1beta1.InstallNpmPackagesResponse\"" - + "e\202\323\344\223\002_\"Z/v1beta1/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\321\001\n" - + "\016PullGitCommits\0224.google.cloud.dataform.v1beta1.PullGi" - + "tCommitsRequest\0325.google.cloud.dataform." - + "v1beta1.PullGitCommitsResponse\"R\202\323\344\223\002L\"G" - + "/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}:pull:\001*\022\347\001\n" - + "\021SyncWorkspaceRefs\0227.google.cloud.dataform" - + ".v1beta1.SyncWorkspaceRefsRequest\0328.google.cloud.dataform.v1beta1.SyncWorkspaceR" - + "efsResponse\"_\202\323\344\223\002Y\"T/v1beta1/{name=proj" - + "ects/*/locations/*/repositories/*/workspaces/*}:syncWorkspaceRefs:\001*\022\357\001\n" - + "\026FetchWorkspaceBranches\022<.google.cloud.dataform." - + "v1beta1.FetchWorkspaceBranchesRequest\032=.google.cloud.dataform.v1beta1.FetchWorks" - + "paceBranchesResponse\"X\202\323\344\223\002R\022P/v1beta1/{" - + "name=projects/*/locations/*/repositories/*/workspaces/*}:fetchBranches\022\323\001\n" - + "\014DeleteBranch\0222.google.cloud.dataform.v1beta1." - + "DeleteBranchRequest\0323.google.cloud.dataf" - + "orm.v1beta1.DeleteBranchResponse\"Z\202\323\344\223\002T" - + "\"O/v1beta1/{name=projects/*/locations/*/" - + "repositories/*/workspaces/*}:deleteBranch:\001*\022\310\001\n" - + "\027CheckoutWorkspaceBranch\022=.google.cloud.dataform.v1beta1.CheckoutWorkspa" - + "ceBranchRequest\032\026.google.protobuf.Empty\"" - + "V\202\323\344\223\002P\"K/v1beta1/{name=projects/*/locat" - + "ions/*/repositories/*/workspaces/*}:checkout:\001*\022\203\002\n" - + "\033FetchCurrentWorkspaceBranch\022A.google.cloud.dataform.v1beta1.FetchCur" - + "rentWorkspaceBranchRequest\032B.google.cloud.dataform.v1beta1.FetchCurrentWorkspace" - + "BranchResponse\"]\202\323\344\223\002W\022U/v1beta1/{name=p" - + "rojects/*/locations/*/repositories/*/workspaces/*}:fetchCurrentBranch\022\321\001\n" - + "\016PushGitCommits\0224.google.cloud.dataform.v1beta1" - + ".PushGitCommitsRequest\0325.google.cloud.da", - "taform.v1beta1.PushGitCommitsResponse\"R\202" - + "\323\344\223\002L\"G/v1beta1/{name=projects/*/locatio" - + "ns/*/repositories/*/workspaces/*}:push:\001" - + "*\022\360\001\n\024FetchFileGitStatuses\022:.google.clou" - + "d.dataform.v1beta1.FetchFileGitStatusesR" - + "equest\032;.google.cloud.dataform.v1beta1.F" - + "etchFileGitStatusesResponse\"_\202\323\344\223\002Y\022W/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:fetchFileGitStat" - + "uses\022\354\001\n\023FetchGitAheadBehind\0229.google.cl" - + "oud.dataform.v1beta1.FetchGitAheadBehind" - + "Request\032:.google.cloud.dataform.v1beta1." - + "FetchGitAheadBehindResponse\"^\202\323\344\223\002X\022V/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:fetchGitAheadBeh" - + "ind\022\353\001\n\025FetchWorkspaceHistory\022;.google.c" - + "loud.dataform.v1beta1.FetchWorkspaceHist" - + "oryRequest\032<.google.cloud.dataform.v1bet" - + "a1.FetchWorkspaceHistoryResponse\"W\202\323\344\223\002Q" - + "\022O/v1beta1/{name=projects/*/locations/*/" - + "repositories/*/workspaces/*}:fetchHistor" - + "y\022\353\001\n\026CommitWorkspaceChanges\022<.google.cl" - + "oud.dataform.v1beta1.CommitWorkspaceChan" - + "gesRequest\032=.google.cloud.dataform.v1bet" - + "a1.CommitWorkspaceChangesResponse\"T\202\323\344\223\002" - + "N\"I/v1beta1/{name=projects/*/locations/*" - + "/repositories/*/workspaces/*}:commit:\001*\022" - + "\347\001\n\025ResetWorkspaceChanges\022;.google.cloud" - + ".dataform.v1beta1.ResetWorkspaceChangesR" - + "equest\032<.google.cloud.dataform.v1beta1.R" - + "esetWorkspaceChangesResponse\"S\202\323\344\223\002M\"H/v" - + "1beta1/{name=projects/*/locations/*/repo" - + "sitories/*/workspaces/*}:reset:\001*\022\331\001\n\rFe" - + "tchFileDiff\0223.google.cloud.dataform.v1be" - + "ta1.FetchFileDiffRequest\0324.google.cloud." - + "dataform.v1beta1.FetchFileDiffResponse\"]" - + "\202\323\344\223\002W\022U/v1beta1/{workspace=projects/*/l" - + "ocations/*/repositories/*/workspaces/*}:" - + "fetchFileDiff\022\375\001\n\026QueryDirectoryContents" - + "\022<.google.cloud.dataform.v1beta1.QueryDi" - + "rectoryContentsRequest\032=.google.cloud.da" - + "taform.v1beta1.QueryDirectoryContentsRes" - + "ponse\"f\202\323\344\223\002`\022^/v1beta1/{workspace=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}:queryDirectoryContents\022\321\001\n\013Search" - + "Files\0221.google.cloud.dataform.v1beta1.Se" - + "archFilesRequest\0322.google.cloud.dataform" - + ".v1beta1.SearchFilesResponse\"[\202\323\344\223\002U\022S/v" - + "1beta1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:searchFile" - + "s\022\334\001\n\rMakeDirectory\0223.google.cloud.dataf" - + "orm.v1beta1.MakeDirectoryRequest\0324.googl" - + "e.cloud.dataform.v1beta1.MakeDirectoryRe" - + "sponse\"`\202\323\344\223\002Z\"U/v1beta1/{workspace=proj" + + "\017DeleteWorkspace\0225.google.cloud.dataform.v1beta1.DeleteWorkspaceReq" + + "uest\032\026.google.protobuf.Empty\"Q\332A\004name\202\323\344" + + "\223\002D*B/v1beta1/{name=projects/*/locations/*/repositories/*/workspaces/*}\022\360\001\n" + + "\022InstallNpmPackages\0228.google.cloud.dataform.v" + + "1beta1.InstallNpmPackagesRequest\0329.google.cloud.dataform.v1beta1.InstallNpmPacka" + + "gesResponse\"e\202\323\344\223\002_\"Z/v1beta1/{workspace" + + "=projects/*/locations/*/repositories/*/workspaces/*}:installNpmPackages:\001*\022\321\001\n" + + "\016PullGitCommits\0224.google.cloud.dataform.v1" + + "beta1.PullGitCommitsRequest\0325.google.cloud.dataform.v1beta1.PullGitCommitsRespon" + + "se\"R\202\323\344\223\002L\"G/v1beta1/{name=projects/*/lo" + + "cations/*/repositories/*/workspaces/*}:pull:\001*\022\347\001\n" + + "\021SyncWorkspaceRefs\0227.google.cloud.dataform.v1beta1.SyncWorkspaceRefsRe" + + "quest\0328.google.cloud.dataform.v1beta1.Sy" + + "ncWorkspaceRefsResponse\"_\202\323\344\223\002Y\"T/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:syncWorkspaceRefs:\001*\022\357\001\n" + + "\026FetchWorkspaceBranches\022<.google.cloud.dataform.v1beta1.FetchWorkspaceBranch" + + "esRequest\032=.google.cloud.dataform.v1beta" + + "1.FetchWorkspaceBranchesResponse\"X\202\323\344\223\002R" + + "\022P/v1beta1/{name=projects/*/locations/*/" + + "repositories/*/workspaces/*}:fetchBranches\022\323\001\n" + + "\014DeleteBranch\0222.google.cloud.dataform.v1beta1.DeleteBranchRequest\0323.google" + + ".cloud.dataform.v1beta1.DeleteBranchResp", + "onse\"Z\202\323\344\223\002T\"O/v1beta1/{name=projects/*/" + + "locations/*/repositories/*/workspaces/*}" + + ":deleteBranch:\001*\022\310\001\n\027CheckoutWorkspaceBr" + + "anch\022=.google.cloud.dataform.v1beta1.Che" + + "ckoutWorkspaceBranchRequest\032\026.google.pro" + + "tobuf.Empty\"V\202\323\344\223\002P\"K/v1beta1/{name=proj" + "ects/*/locations/*/repositories/*/worksp" - + "aces/*}:makeDirectory:\001*\022\344\001\n\017RemoveDirec" - + "tory\0225.google.cloud.dataform.v1beta1.Rem" - + "oveDirectoryRequest\0326.google.cloud.dataf" - + "orm.v1beta1.RemoveDirectoryResponse\"b\202\323\344" - + "\223\002\\\"W/v1beta1/{workspace=projects/*/loca" - + "tions/*/repositories/*/workspaces/*}:rem" - + "oveDirectory:\001*\022\334\001\n\rMoveDirectory\0223.goog" - + "le.cloud.dataform.v1beta1.MoveDirectoryR" - + "equest\0324.google.cloud.dataform.v1beta1.M" - + "oveDirectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{" - + "workspace=projects/*/locations/*/reposit" - + "ories/*/workspaces/*}:moveDirectory:\001*\022\305" - + "\001\n\010ReadFile\022..google.cloud.dataform.v1be" - + "ta1.ReadFileRequest\032/.google.cloud.dataf" - + "orm.v1beta1.ReadFileResponse\"X\202\323\344\223\002R\022P/v" - + "1beta1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:readFile\022\320" - + "\001\n\nRemoveFile\0220.google.cloud.dataform.v1" - + "beta1.RemoveFileRequest\0321.google.cloud.d" - + "ataform.v1beta1.RemoveFileResponse\"]\202\323\344\223" - + "\002W\"R/v1beta1/{workspace=projects/*/locat" - + "ions/*/repositories/*/workspaces/*}:remo" - + "veFile:\001*\022\310\001\n\010MoveFile\022..google.cloud.da" - + "taform.v1beta1.MoveFileRequest\032/.google." - + "cloud.dataform.v1beta1.MoveFileResponse\"" - + "[\202\323\344\223\002U\"P/v1beta1/{workspace=projects/*/" + + "aces/*}:checkout:\001*\022\203\002\n\033FetchCurrentWork" + + "spaceBranch\022A.google.cloud.dataform.v1be" + + "ta1.FetchCurrentWorkspaceBranchRequest\032B" + + ".google.cloud.dataform.v1beta1.FetchCurr" + + "entWorkspaceBranchResponse\"]\202\323\344\223\002W\022U/v1b" + + "eta1/{name=projects/*/locations/*/reposi" + + "tories/*/workspaces/*}:fetchCurrentBranc" + + "h\022\321\001\n\016PushGitCommits\0224.google.cloud.data" + + "form.v1beta1.PushGitCommitsRequest\0325.goo" + + "gle.cloud.dataform.v1beta1.PushGitCommit" + + "sResponse\"R\202\323\344\223\002L\"G/v1beta1/{name=projec" + + "ts/*/locations/*/repositories/*/workspac" + + "es/*}:push:\001*\022\360\001\n\024FetchFileGitStatuses\022:" + + ".google.cloud.dataform.v1beta1.FetchFile" + + "GitStatusesRequest\032;.google.cloud.datafo" + + "rm.v1beta1.FetchFileGitStatusesResponse\"" + + "_\202\323\344\223\002Y\022W/v1beta1/{name=projects/*/locat" + + "ions/*/repositories/*/workspaces/*}:fetc" + + "hFileGitStatuses\022\354\001\n\023FetchGitAheadBehind" + + "\0229.google.cloud.dataform.v1beta1.FetchGi" + + "tAheadBehindRequest\032:.google.cloud.dataf" + + "orm.v1beta1.FetchGitAheadBehindResponse\"" + + "^\202\323\344\223\002X\022V/v1beta1/{name=projects/*/locat" + + "ions/*/repositories/*/workspaces/*}:fetc" + + "hGitAheadBehind\022\353\001\n\025FetchWorkspaceHistor" + + "y\022;.google.cloud.dataform.v1beta1.FetchW" + + "orkspaceHistoryRequest\032<.google.cloud.da" + + "taform.v1beta1.FetchWorkspaceHistoryResp" + + "onse\"W\202\323\344\223\002Q\022O/v1beta1/{name=projects/*/" + "locations/*/repositories/*/workspaces/*}" - + ":moveFile:\001*\022\314\001\n\tWriteFile\022/.google.clou" - + "d.dataform.v1beta1.WriteFileRequest\0320.go" - + "ogle.cloud.dataform.v1beta1.WriteFileRes" - + "ponse\"\\\202\323\344\223\002V\"Q/v1beta1/{workspace=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}:writeFile:\001*\022\342\001\n\022ListReleaseConfi" - + "gs\0228.google.cloud.dataform.v1beta1.ListR" - + "eleaseConfigsRequest\0329.google.cloud.data" - + "form.v1beta1.ListReleaseConfigsResponse\"" - + "W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{parent=proje" - + "cts/*/locations/*/repositories/*}/releas" - + "eConfigs\022\317\001\n\020GetReleaseConfig\0226.google.c" - + "loud.dataform.v1beta1.GetReleaseConfigRe" - + "quest\032,.google.cloud.dataform.v1beta1.Re" - + "leaseConfig\"U\332A\004name\202\323\344\223\002H\022F/v1beta1/{na" - + "me=projects/*/locations/*/repositories/*" - + "/releaseConfigs/*}\022\211\002\n\023CreateReleaseConf" - + "ig\0229.google.cloud.dataform.v1beta1.Creat" - + "eReleaseConfigRequest\032,.google.cloud.dat" - + "aform.v1beta1.ReleaseConfig\"\210\001\332A\'parent," - + "release_config,release_config_id\202\323\344\223\002X\"F" - + "/v1beta1/{parent=projects/*/locations/*/" - + "repositories/*}/releaseConfigs:\016release_" - + "config\022\213\002\n\023UpdateReleaseConfig\0229.google." - + "cloud.dataform.v1beta1.UpdateReleaseConf" - + "igRequest\032,.google.cloud.dataform.v1beta" - + "1.ReleaseConfig\"\212\001\332A\032release_config,upda" - + "te_mask\202\323\344\223\002g2U/v1beta1/{release_config." - + "name=projects/*/locations/*/repositories" - + "/*/releaseConfigs/*}:\016release_config\022\277\001\n" - + "\023DeleteReleaseConfig\0229.google.cloud.data" - + "form.v1beta1.DeleteReleaseConfigRequest\032" - + "\026.google.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F" - + "/v1beta1/{name=projects/*/locations/*/re" - + "positories/*/releaseConfigs/*}\022\362\001\n\026ListC" - + "ompilationResults\022<.google.cloud.datafor" - + "m.v1beta1.ListCompilationResultsRequest\032" - + "=.google.cloud.dataform.v1beta1.ListComp" - + "ilationResultsResponse\"[\332A\006parent\202\323\344\223\002L\022" - + "J/v1beta1/{parent=projects/*/locations/*" - + "/repositories/*}/compilationResults\022\337\001\n\024" - + "GetCompilationResult\022:.google.cloud.data" - + "form.v1beta1.GetCompilationResultRequest" - + "\0320.google.cloud.dataform.v1beta1.Compila" - + "tionResult\"Y\332A\004name\202\323\344\223\002L\022J/v1beta1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "compilationResults/*}\022\217\002\n\027CreateCompilat" - + "ionResult\022=.google.cloud.dataform.v1beta" - + "1.CreateCompilationResultRequest\0320.googl" - + "e.cloud.dataform.v1beta1.CompilationResu" - + "lt\"\202\001\332A\031parent,compilation_result\202\323\344\223\002`\"" - + "J/v1beta1/{parent=projects/*/locations/*" - + "/repositories/*}/compilationResults:\022com" - + "pilation_result\022\320\002\n\"CreateCompilationRes" - + "ultLongRunning\022=.google.cloud.dataform.v" - + "1beta1.CreateCompilationResultRequest\032\035." - + "google.longrunning.Operation\"\313\001\312A4\n\021Comp" - + "ilationResult\022\037CreateCompilationResultMe" - + "tadata\332A\031parent,compilation_result\202\323\344\223\002r" - + "\"\\/v1beta1/{parent=projects/*/locations/" - + "*/repositories/*}/compilationResults:cre" - + "ateLongRunning:\022compilation_result\022\204\002\n\035Q" - + "ueryCompilationResultActions\022C.google.cl" - + "oud.dataform.v1beta1.QueryCompilationRes" - + "ultActionsRequest\032D.google.cloud.datafor" - + "m.v1beta1.QueryCompilationResultActionsR" - + "esponse\"X\202\323\344\223\002R\022P/v1beta1/{name=projects" - + "/*/locations/*/repositories/*/compilatio" - + "nResults/*}:query\022\346\001\n\023ListWorkflowConfig" - + "s\0229.google.cloud.dataform.v1beta1.ListWo" - + "rkflowConfigsRequest\032:.google.cloud.data" - + "form.v1beta1.ListWorkflowConfigsResponse" - + "\"X\332A\006parent\202\323\344\223\002I\022G/v1beta1/{parent=proj" - + "ects/*/locations/*/repositories/*}/workf" - + "lowConfigs\022\323\001\n\021GetWorkflowConfig\0227.googl" - + "e.cloud.dataform.v1beta1.GetWorkflowConf" - + "igRequest\032-.google.cloud.dataform.v1beta" - + "1.WorkflowConfig\"V\332A\004name\202\323\344\223\002I\022G/v1beta" - + "1/{name=projects/*/locations/*/repositor" - + "ies/*/workflowConfigs/*}\022\220\002\n\024CreateWorkf" - + "lowConfig\022:.google.cloud.dataform.v1beta" - + "1.CreateWorkflowConfigRequest\032-.google.c" - + "loud.dataform.v1beta1.WorkflowConfig\"\214\001\332" - + "A)parent,workflow_config,workflow_config" - + "_id\202\323\344\223\002Z\"G/v1beta1/{parent=projects/*/l" - + "ocations/*/repositories/*}/workflowConfi" - + "gs:\017workflow_config\022\222\002\n\024UpdateWorkflowCo" - + "nfig\022:.google.cloud.dataform.v1beta1.Upd" - + "ateWorkflowConfigRequest\032-.google.cloud." - + "dataform.v1beta1.WorkflowConfig\"\216\001\332A\033wor" - + "kflow_config,update_mask\202\323\344\223\002j2W/v1beta1" - + "/{workflow_config.name=projects/*/locati" - + "ons/*/repositories/*/workflowConfigs/*}:" - + "\017workflow_config\022\302\001\n\024DeleteWorkflowConfi" - + "g\022:.google.cloud.dataform.v1beta1.Delete" - + "WorkflowConfigRequest\032\026.google.protobuf." - + "Empty\"V\332A\004name\202\323\344\223\002I*G/v1beta1/{name=pro" - + "jects/*/locations/*/repositories/*/workf" - + "lowConfigs/*}\022\366\001\n\027ListWorkflowInvocation" - + "s\022=.google.cloud.dataform.v1beta1.ListWo" - + "rkflowInvocationsRequest\032>.google.cloud." - + "dataform.v1beta1.ListWorkflowInvocations" - + "Response\"\\\332A\006parent\202\323\344\223\002M\022K/v1beta1/{par" - + "ent=projects/*/locations/*/repositories/" - + "*}/workflowInvocations\022\343\001\n\025GetWorkflowIn" - + "vocation\022;.google.cloud.dataform.v1beta1" - + ".GetWorkflowInvocationRequest\0321.google.c" - + "loud.dataform.v1beta1.WorkflowInvocation" - + "\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1/{name=projects" - + "/*/locations/*/repositories/*/workflowIn" - + "vocations/*}\022\225\002\n\030CreateWorkflowInvocatio" - + "n\022>.google.cloud.dataform.v1beta1.Create" - + "WorkflowInvocationRequest\0321.google.cloud" - + ".dataform.v1beta1.WorkflowInvocation\"\205\001\332" - + "A\032parent,workflow_invocation\202\323\344\223\002b\"K/v1b" - + "eta1/{parent=projects/*/locations/*/repo" - + "sitories/*}/workflowInvocations:\023workflo" - + "w_invocation\022\316\001\n\030DeleteWorkflowInvocatio" - + "n\022>.google.cloud.dataform.v1beta1.Delete" - + "WorkflowInvocationRequest\032\026.google.proto" - + "buf.Empty\"Z\332A\004name\202\323\344\223\002M*K/v1beta1/{name" + + ":fetchHistory\022\353\001\n\026CommitWorkspaceChanges" + + "\022<.google.cloud.dataform.v1beta1.CommitW" + + "orkspaceChangesRequest\032=.google.cloud.da" + + "taform.v1beta1.CommitWorkspaceChangesRes" + + "ponse\"T\202\323\344\223\002N\"I/v1beta1/{name=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:commit:\001*\022\347\001\n\025ResetWorkspaceChanges\022;." + + "google.cloud.dataform.v1beta1.ResetWorks" + + "paceChangesRequest\032<.google.cloud.datafo" + + "rm.v1beta1.ResetWorkspaceChangesResponse" + + "\"S\202\323\344\223\002M\"H/v1beta1/{name=projects/*/loca" + + "tions/*/repositories/*/workspaces/*}:res" + + "et:\001*\022\331\001\n\rFetchFileDiff\0223.google.cloud.d" + + "ataform.v1beta1.FetchFileDiffRequest\0324.g" + + "oogle.cloud.dataform.v1beta1.FetchFileDi" + + "ffResponse\"]\202\323\344\223\002W\022U/v1beta1/{workspace=" + + "projects/*/locations/*/repositories/*/wo" + + "rkspaces/*}:fetchFileDiff\022\375\001\n\026QueryDirec" + + "toryContents\022<.google.cloud.dataform.v1b" + + "eta1.QueryDirectoryContentsRequest\032=.goo" + + "gle.cloud.dataform.v1beta1.QueryDirector" + + "yContentsResponse\"f\202\323\344\223\002`\022^/v1beta1/{wor" + + "kspace=projects/*/locations/*/repositori" + + "es/*/workspaces/*}:queryDirectoryContent" + + "s\022\321\001\n\013SearchFiles\0221.google.cloud.datafor" + + "m.v1beta1.SearchFilesRequest\0322.google.cl" + + "oud.dataform.v1beta1.SearchFilesResponse" + + "\"[\202\323\344\223\002U\022S/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:searchFiles\022\334\001\n\rMakeDirectory\0223.google" + + ".cloud.dataform.v1beta1.MakeDirectoryReq" + + "uest\0324.google.cloud.dataform.v1beta1.Mak" + + "eDirectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{wo" + + "rkspace=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:makeDirectory:\001*\022\344\001\n" + + "\017RemoveDirectory\0225.google.cloud.dataform" + + ".v1beta1.RemoveDirectoryRequest\0326.google" + + ".cloud.dataform.v1beta1.RemoveDirectoryR" + + "esponse\"b\202\323\344\223\002\\\"W/v1beta1/{workspace=pro" + + "jects/*/locations/*/repositories/*/works" + + "paces/*}:removeDirectory:\001*\022\334\001\n\rMoveDire" + + "ctory\0223.google.cloud.dataform.v1beta1.Mo" + + "veDirectoryRequest\0324.google.cloud.datafo" + + "rm.v1beta1.MoveDirectoryResponse\"`\202\323\344\223\002Z" + + "\"U/v1beta1/{workspace=projects/*/locatio" + + "ns/*/repositories/*/workspaces/*}:moveDi" + + "rectory:\001*\022\305\001\n\010ReadFile\022..google.cloud.d" + + "ataform.v1beta1.ReadFileRequest\032/.google" + + ".cloud.dataform.v1beta1.ReadFileResponse" + + "\"X\202\323\344\223\002R\022P/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:readFile\022\320\001\n\nRemoveFile\0220.google.cloud" + + ".dataform.v1beta1.RemoveFileRequest\0321.go" + + "ogle.cloud.dataform.v1beta1.RemoveFileRe" + + "sponse\"]\202\323\344\223\002W\"R/v1beta1/{workspace=proj" + + "ects/*/locations/*/repositories/*/worksp" + + "aces/*}:removeFile:\001*\022\310\001\n\010MoveFile\022..goo" + + "gle.cloud.dataform.v1beta1.MoveFileReque" + + "st\032/.google.cloud.dataform.v1beta1.MoveF" + + "ileResponse\"[\202\323\344\223\002U\"P/v1beta1/{workspace" + "=projects/*/locations/*/repositories/*/w" - + "orkflowInvocations/*}\022\372\001\n\030CancelWorkflow" - + "Invocation\022>.google.cloud.dataform.v1bet" - + "a1.CancelWorkflowInvocationRequest\032?.goo" - + "gle.cloud.dataform.v1beta1.CancelWorkflo" - + "wInvocationResponse\"]\202\323\344\223\002W\"R/v1beta1/{n" + + "orkspaces/*}:moveFile:\001*\022\314\001\n\tWriteFile\022/" + + ".google.cloud.dataform.v1beta1.WriteFile" + + "Request\0320.google.cloud.dataform.v1beta1." + + "WriteFileResponse\"\\\202\323\344\223\002V\"Q/v1beta1/{wor" + + "kspace=projects/*/locations/*/repositori" + + "es/*/workspaces/*}:writeFile:\001*\022\342\001\n\022List" + + "ReleaseConfigs\0228.google.cloud.dataform.v" + + "1beta1.ListReleaseConfigsRequest\0329.googl" + + "e.cloud.dataform.v1beta1.ListReleaseConf" + + "igsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta1/{" + + "parent=projects/*/locations/*/repositori" + + "es/*}/releaseConfigs\022\317\001\n\020GetReleaseConfi" + + "g\0226.google.cloud.dataform.v1beta1.GetRel" + + "easeConfigRequest\032,.google.cloud.datafor" + + "m.v1beta1.ReleaseConfig\"U\332A\004name\202\323\344\223\002H\022F" + + "/v1beta1/{name=projects/*/locations/*/re" + + "positories/*/releaseConfigs/*}\022\211\002\n\023Creat" + + "eReleaseConfig\0229.google.cloud.dataform.v" + + "1beta1.CreateReleaseConfigRequest\032,.goog" + + "le.cloud.dataform.v1beta1.ReleaseConfig\"" + + "\210\001\332A\'parent,release_config,release_confi" + + "g_id\202\323\344\223\002X\"F/v1beta1/{parent=projects/*/" + + "locations/*/repositories/*}/releaseConfi" + + "gs:\016release_config\022\213\002\n\023UpdateReleaseConf" + + "ig\0229.google.cloud.dataform.v1beta1.Updat" + + "eReleaseConfigRequest\032,.google.cloud.dat" + + "aform.v1beta1.ReleaseConfig\"\212\001\332A\032release" + + "_config,update_mask\202\323\344\223\002g2U/v1beta1/{rel" + + "ease_config.name=projects/*/locations/*/" + + "repositories/*/releaseConfigs/*}:\016releas" + + "e_config\022\277\001\n\023DeleteReleaseConfig\0229.googl" + + "e.cloud.dataform.v1beta1.DeleteReleaseCo" + + "nfigRequest\032\026.google.protobuf.Empty\"U\332A\004" + + "name\202\323\344\223\002H*F/v1beta1/{name=projects/*/lo" + + "cations/*/repositories/*/releaseConfigs/" + + "*}\022\362\001\n\026ListCompilationResults\022<.google.c" + + "loud.dataform.v1beta1.ListCompilationRes" + + "ultsRequest\032=.google.cloud.dataform.v1be" + + "ta1.ListCompilationResultsResponse\"[\332A\006p" + + "arent\202\323\344\223\002L\022J/v1beta1/{parent=projects/*" + + "/locations/*/repositories/*}/compilation" + + "Results\022\337\001\n\024GetCompilationResult\022:.googl" + + "e.cloud.dataform.v1beta1.GetCompilationR" + + "esultRequest\0320.google.cloud.dataform.v1b" + + "eta1.CompilationResult\"Y\332A\004name\202\323\344\223\002L\022J/" + + "v1beta1/{name=projects/*/locations/*/rep" + + "ositories/*/compilationResults/*}\022\217\002\n\027Cr" + + "eateCompilationResult\022=.google.cloud.dat" + + "aform.v1beta1.CreateCompilationResultReq" + + "uest\0320.google.cloud.dataform.v1beta1.Com" + + "pilationResult\"\202\001\332A\031parent,compilation_r" + + "esult\202\323\344\223\002`\"J/v1beta1/{parent=projects/*" + + "/locations/*/repositories/*}/compilation" + + "Results:\022compilation_result\022\320\002\n\"CreateCo" + + "mpilationResultLongRunning\022=.google.clou" + + "d.dataform.v1beta1.CreateCompilationResu" + + "ltRequest\032\035.google.longrunning.Operation" + + "\"\313\001\312A4\n\021CompilationResult\022\037CreateCompila" + + "tionResultMetadata\332A\031parent,compilation_" + + "result\202\323\344\223\002r\"\\/v1beta1/{parent=projects/" + + "*/locations/*/repositories/*}/compilatio" + + "nResults:createLongRunning:\022compilation_" + + "result\022\204\002\n\035QueryCompilationResultActions" + + "\022C.google.cloud.dataform.v1beta1.QueryCo" + + "mpilationResultActionsRequest\032D.google.c" + + "loud.dataform.v1beta1.QueryCompilationRe" + + "sultActionsResponse\"X\202\323\344\223\002R\022P/v1beta1/{n" + "ame=projects/*/locations/*/repositories/" - + "*/workflowInvocations/*}:cancel:\001*\022\210\002\n\036Q" - + "ueryWorkflowInvocationActions\022D.google.c" - + "loud.dataform.v1beta1.QueryWorkflowInvoc" - + "ationActionsRequest\032E.google.cloud.dataf" - + "orm.v1beta1.QueryWorkflowInvocationActio" - + "nsResponse\"Y\202\323\344\223\002S\022Q/v1beta1/{name=proje" + + "*/compilationResults/*}:query\022\346\001\n\023ListWo" + + "rkflowConfigs\0229.google.cloud.dataform.v1" + + "beta1.ListWorkflowConfigsRequest\032:.googl" + + "e.cloud.dataform.v1beta1.ListWorkflowCon" + + "figsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1beta1/" + + "{parent=projects/*/locations/*/repositor" + + "ies/*}/workflowConfigs\022\323\001\n\021GetWorkflowCo" + + "nfig\0227.google.cloud.dataform.v1beta1.Get" + + "WorkflowConfigRequest\032-.google.cloud.dat" + + "aform.v1beta1.WorkflowConfig\"V\332A\004name\202\323\344" + + "\223\002I\022G/v1beta1/{name=projects/*/locations" + + "/*/repositories/*/workflowConfigs/*}\022\220\002\n" + + "\024CreateWorkflowConfig\022:.google.cloud.dat" + + "aform.v1beta1.CreateWorkflowConfigReques" + + "t\032-.google.cloud.dataform.v1beta1.Workfl" + + "owConfig\"\214\001\332A)parent,workflow_config,wor" + + "kflow_config_id\202\323\344\223\002Z\"G/v1beta1/{parent=" + + "projects/*/locations/*/repositories/*}/w" + + "orkflowConfigs:\017workflow_config\022\222\002\n\024Upda" + + "teWorkflowConfig\022:.google.cloud.dataform" + + ".v1beta1.UpdateWorkflowConfigRequest\032-.g" + + "oogle.cloud.dataform.v1beta1.WorkflowCon" + + "fig\"\216\001\332A\033workflow_config,update_mask\202\323\344\223" + + "\002j2W/v1beta1/{workflow_config.name=proje" + "cts/*/locations/*/repositories/*/workflo" - + "wInvocations/*}:query\022\241\001\n\tGetConfig\022/.go" - + "ogle.cloud.dataform.v1beta1.GetConfigReq" - + "uest\032%.google.cloud.dataform.v1beta1.Con" - + "fig\"<\332A\004name\202\323\344\223\002/\022-/v1beta1/{name=proje" - + "cts/*/locations/*/config}\022\304\001\n\014UpdateConf" - + "ig\0222.google.cloud.dataform.v1beta1.Updat" - + "eConfigRequest\032%.google.cloud.dataform.v" - + "1beta1.Config\"Y\332A\022config,update_mask\202\323\344\223" - + "\002>24/v1beta1/{config.name=projects/*/loc" - + "ations/*/config}:\006config\022\213\003\n\014GetIamPolic" - + "y\022\".google.iam.v1.GetIamPolicyRequest\032\025." - + "google.iam.v1.Policy\"\277\002\332A\010resource\202\323\344\223\002\255" - + "\002\022F/v1beta1/{resource=projects/*/locatio" - + "ns/*/repositories/*}:getIamPolicyZU\022S/v1" - + "beta1/{resource=projects/*/locations/*/r" - + "epositories/*/workspaces/*}:getIamPolicy" - + "ZC\022A/v1beta1/{resource=projects/*/locati" - + "ons/*/folders/*}:getIamPolicyZG\022E/v1beta" - + "1/{resource=projects/*/locations/*/teamF" - + "olders/*}:getIamPolicy\022\214\003\n\014SetIamPolicy\022" - + "\".google.iam.v1.SetIamPolicyRequest\032\025.go" - + "ogle.iam.v1.Policy\"\300\002\202\323\344\223\002\271\002\"F/v1beta1/{" - + "resource=projects/*/locations/*/reposito" - + "ries/*}:setIamPolicy:\001*ZX\"S/v1beta1/{res" - + "ource=projects/*/locations/*/repositorie" - + "s/*/workspaces/*}:setIamPolicy:\001*ZF\"A/v1" - + "beta1/{resource=projects/*/locations/*/f" - + "olders/*}:setIamPolicy:\001*ZJ\"E/v1beta1/{r" - + "esource=projects/*/locations/*/teamFolde" - + "rs/*}:setIamPolicy:\001*\022\304\003\n\022TestIamPermiss" - + "ions\022(.google.iam.v1.TestIamPermissionsR" - + "equest\032).google.iam.v1.TestIamPermission" - + "sResponse\"\330\002\202\323\344\223\002\321\002\"L/v1beta1/{resource=" - + "projects/*/locations/*/repositories/*}:t" - + "estIamPermissions:\001*Z^\"Y/v1beta1/{resour" - + "ce=projects/*/locations/*/repositories/*" - + "/workspaces/*}:testIamPermissions:\001*ZL\"G" - + "/v1beta1/{resource=projects/*/locations/" - + "*/folders/*}:testIamPermissions:\001*ZP\"K/v" - + "1beta1/{resource=projects/*/locations/*/" - + "teamFolders/*}:testIamPermissions:\001*\032t\312A" - + "\027dataform.googleapis.com\322AWhttps://www.g" - + "oogleapis.com/auth/bigquery,https://www." - + "googleapis.com/auth/cloud-platformB\237\t\n!c" - + "om.google.cloud.dataform.v1beta1B\rDatafo" - + "rmProtoP\001Z=cloud.google.com/go/dataform/" - + "apiv1beta1/dataformpb;dataformpb\252\002\035Googl" - + "e.Cloud.Dataform.V1Beta1\312\002\035Google\\Cloud\\" - + "Dataform\\V1beta1\352\002 Google::Cloud::Datafo" - + "rm::V1beta1\352Ad\n*secretmanager.googleapis" - + ".com/SecretVersion\0226projects/{project}/s" - + "ecrets/{secret}/versions/{version}\352Ax\n!c" - + "loudkms.googleapis.com/CryptoKey\022Sprojec" - + "ts/{project}/locations/{location}/keyRin" - + "gs/{key_ring}/cryptoKeys/{crypto_key}\352A\246" - + "\001\n(cloudkms.googleapis.com/CryptoKeyVers" - + "ion\022zprojects/{project}/locations/{locat" - + "ion}/keyRings/{key_ring}/cryptoKeys/{cry" - + "pto_key}/cryptoKeyVersions/{crypto_key_v" - + "ersion}\352A\221\001\n1aiplatform.googleapis.com/N" - + "otebookRuntimeTemplate\022\\projects/{projec" - + "t}/locations/{location}/notebookRuntimeT" - + "emplates/{notebook_runtime_template}\352A~\n" - + "!dataplex.googleapis.com/EntryLink\022Yproj" - + "ects/{project}/locations/{location}/entr" - + "yGroups/{entry_group}/entryLinks/{entry_" - + "link}\352A\236\001\n1developerconnect.googleapis.c" - + "om/GitRepositoryLink\022iprojects/{project}" - + "/locations/{location}/connections/{conne" - + "ction}/gitRepositoryLinks/{git_repositor" - + "y_link}\352A\201\001\n0developerconnect.googleapis" - + ".com/AccountConnector\022Mprojects/{project" - + "}/locations/{location}/accountConnectors" - + "/{account_connector}b\006proto3" + + "wConfigs/*}:\017workflow_config\022\302\001\n\024DeleteW" + + "orkflowConfig\022:.google.cloud.dataform.v1" + + "beta1.DeleteWorkflowConfigRequest\032\026.goog" + + "le.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1bet" + + "a1/{name=projects/*/locations/*/reposito" + + "ries/*/workflowConfigs/*}\022\366\001\n\027ListWorkfl" + + "owInvocations\022=.google.cloud.dataform.v1" + + "beta1.ListWorkflowInvocationsRequest\032>.g" + + "oogle.cloud.dataform.v1beta1.ListWorkflo" + + "wInvocationsResponse\"\\\332A\006parent\202\323\344\223\002M\022K/" + + "v1beta1/{parent=projects/*/locations/*/r" + + "epositories/*}/workflowInvocations\022\343\001\n\025G" + + "etWorkflowInvocation\022;.google.cloud.data" + + "form.v1beta1.GetWorkflowInvocationReques" + + "t\0321.google.cloud.dataform.v1beta1.Workfl" + + "owInvocation\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1/{n" + + "ame=projects/*/locations/*/repositories/" + + "*/workflowInvocations/*}\022\225\002\n\030CreateWorkf" + + "lowInvocation\022>.google.cloud.dataform.v1" + + "beta1.CreateWorkflowInvocationRequest\0321." + + "google.cloud.dataform.v1beta1.WorkflowIn" + + "vocation\"\205\001\332A\032parent,workflow_invocation" + + "\202\323\344\223\002b\"K/v1beta1/{parent=projects/*/loca" + + "tions/*/repositories/*}/workflowInvocati" + + "ons:\023workflow_invocation\022\316\001\n\030DeleteWorkf" + + "lowInvocation\022>.google.cloud.dataform.v1" + + "beta1.DeleteWorkflowInvocationRequest\032\026." + + "google.protobuf.Empty\"Z\332A\004name\202\323\344\223\002M*K/v" + + "1beta1/{name=projects/*/locations/*/repo" + + "sitories/*/workflowInvocations/*}\022\372\001\n\030Ca" + + "ncelWorkflowInvocation\022>.google.cloud.da" + + "taform.v1beta1.CancelWorkflowInvocationR" + + "equest\032?.google.cloud.dataform.v1beta1.C" + + "ancelWorkflowInvocationResponse\"]\202\323\344\223\002W\"" + + "R/v1beta1/{name=projects/*/locations/*/r" + + "epositories/*/workflowInvocations/*}:can" + + "cel:\001*\022\210\002\n\036QueryWorkflowInvocationAction" + + "s\022D.google.cloud.dataform.v1beta1.QueryW" + + "orkflowInvocationActionsRequest\032E.google" + + ".cloud.dataform.v1beta1.QueryWorkflowInv" + + "ocationActionsResponse\"Y\202\323\344\223\002S\022Q/v1beta1" + + "/{name=projects/*/locations/*/repositori" + + "es/*/workflowInvocations/*}:query\022\241\001\n\tGe" + + "tConfig\022/.google.cloud.dataform.v1beta1." + + "GetConfigRequest\032%.google.cloud.dataform" + + ".v1beta1.Config\"<\332A\004name\202\323\344\223\002/\022-/v1beta1" + + "/{name=projects/*/locations/*/config}\022\304\001" + + "\n\014UpdateConfig\0222.google.cloud.dataform.v" + + "1beta1.UpdateConfigRequest\032%.google.clou" + + "d.dataform.v1beta1.Config\"Y\332A\022config,upd" + + "ate_mask\202\323\344\223\002>24/v1beta1/{config.name=pr" + + "ojects/*/locations/*/config}:\006config\022\213\003\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"\277\002\332A\010re" + + "source\202\323\344\223\002\255\002\022F/v1beta1/{resource=projec" + + "ts/*/locations/*/repositories/*}:getIamP" + + "olicyZU\022S/v1beta1/{resource=projects/*/l" + + "ocations/*/repositories/*/workspaces/*}:" + + "getIamPolicyZC\022A/v1beta1/{resource=proje" + + "cts/*/locations/*/folders/*}:getIamPolic" + + "yZG\022E/v1beta1/{resource=projects/*/locat" + + "ions/*/teamFolders/*}:getIamPolicy\022\214\003\n\014S" + + "etIamPolicy\022\".google.iam.v1.SetIamPolicy" + + "Request\032\025.google.iam.v1.Policy\"\300\002\202\323\344\223\002\271\002" + + "\"F/v1beta1/{resource=projects/*/location" + + "s/*/repositories/*}:setIamPolicy:\001*ZX\"S/" + + "v1beta1/{resource=projects/*/locations/*" + + "/repositories/*/workspaces/*}:setIamPoli" + + "cy:\001*ZF\"A/v1beta1/{resource=projects/*/l" + + "ocations/*/folders/*}:setIamPolicy:\001*ZJ\"" + + "E/v1beta1/{resource=projects/*/locations" + + "/*/teamFolders/*}:setIamPolicy:\001*\022\304\003\n\022Te" + + "stIamPermissions\022(.google.iam.v1.TestIam" + + "PermissionsRequest\032).google.iam.v1.TestI" + + "amPermissionsResponse\"\330\002\202\323\344\223\002\321\002\"L/v1beta" + + "1/{resource=projects/*/locations/*/repos" + + "itories/*}:testIamPermissions:\001*Z^\"Y/v1b" + + "eta1/{resource=projects/*/locations/*/re" + + "positories/*/workspaces/*}:testIamPermis" + + "sions:\001*ZL\"G/v1beta1/{resource=projects/" + + "*/locations/*/folders/*}:testIamPermissi" + + "ons:\001*ZP\"K/v1beta1/{resource=projects/*/" + + "locations/*/teamFolders/*}:testIamPermis" + + "sions:\001*\032t\312A\027dataform.googleapis.com\322AWh" + + "ttps://www.googleapis.com/auth/bigquery," + + "https://www.googleapis.com/auth/cloud-pl" + + "atformB\237\t\n!com.google.cloud.dataform.v1b" + + "eta1B\rDataformProtoP\001Z=cloud.google.com/" + + "go/dataform/apiv1beta1/dataformpb;datafo" + + "rmpb\252\002\035Google.Cloud.Dataform.V1Beta1\312\002\035G" + + "oogle\\Cloud\\Dataform\\V1beta1\352\002 Google::C" + + "loud::Dataform::V1beta1\352Ad\n*secretmanage" + + "r.googleapis.com/SecretVersion\0226projects" + + "/{project}/secrets/{secret}/versions/{ve" + + "rsion}\352Ax\n!cloudkms.googleapis.com/Crypt" + + "oKey\022Sprojects/{project}/locations/{loca" + + "tion}/keyRings/{key_ring}/cryptoKeys/{cr" + + "ypto_key}\352A\246\001\n(cloudkms.googleapis.com/C" + + "ryptoKeyVersion\022zprojects/{project}/loca" + + "tions/{location}/keyRings/{key_ring}/cry" + + "ptoKeys/{crypto_key}/cryptoKeyVersions/{" + + "crypto_key_version}\352A\221\001\n1aiplatform.goog" + + "leapis.com/NotebookRuntimeTemplate\022\\proj" + + "ects/{project}/locations/{location}/note" + + "bookRuntimeTemplates/{notebook_runtime_t" + + "emplate}\352A~\n!dataplex.googleapis.com/Ent" + + "ryLink\022Yprojects/{project}/locations/{lo" + + "cation}/entryGroups/{entry_group}/entryL" + + "inks/{entry_link}\352A\236\001\n1developerconnect." + + "googleapis.com/GitRepositoryLink\022iprojec" + + "ts/{project}/locations/{location}/connec" + + "tions/{connection}/gitRepositoryLinks/{g" + + "it_repository_link}\352A\201\001\n0developerconnec" + + "t.googleapis.com/AccountConnector\022Mproje" + + "cts/{project}/locations/{location}/accou" + + "ntConnectors/{account_connector}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2965,8 +2993,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "Workspace", "WorkspaceId", }); - internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor = getDescriptor().getMessageType(32); + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceMetadata_descriptor, + new java.lang.String[] { + "CreateWorkspaceRequest", "Id", "Target", "State", "Request", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = + getDescriptor().getMessageType(33); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor, @@ -2974,7 +3010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor, @@ -2982,7 +3018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor, @@ -2990,13 +3026,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", "Author", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_CheckoutWorkspaceBranchRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataform_v1beta1_CheckoutWorkspaceBranchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CheckoutWorkspaceBranchRequest_descriptor, @@ -3004,7 +3040,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Branch", "CreateIfNotExists", "SourceBranch", }); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsRequest_descriptor, @@ -3012,13 +3048,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranchName", "Deepen", }); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SyncWorkspaceRefsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_DeleteBranchRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataform_v1beta1_DeleteBranchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteBranchRequest_descriptor, @@ -3026,13 +3062,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Branch", "Force", }); internal_static_google_cloud_dataform_v1beta1_DeleteBranchResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataform_v1beta1_DeleteBranchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteBranchResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(42); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor, @@ -3040,13 +3076,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(43); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(44); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor, @@ -3054,7 +3090,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(45); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor, @@ -3071,7 +3107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "State", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(46); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor, @@ -3079,7 +3115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(47); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor, @@ -3087,7 +3123,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitsAhead", "CommitsBehind", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryRequest_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(48); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryRequest_descriptor, @@ -3095,7 +3131,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryResponse_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(49); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceHistoryResponse_descriptor, @@ -3103,7 +3139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commits", "NextPageToken", "ReachesShallowBoundary", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(50); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor, @@ -3111,13 +3147,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Author", "CommitMessage", "Paths", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(51); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(52); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor, @@ -3125,13 +3161,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Paths", "Clean", }); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(53); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(54); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor, @@ -3139,7 +3175,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(55); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor, @@ -3147,7 +3183,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FormattedDiff", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(56); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor, @@ -3155,7 +3191,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "PageSize", "PageToken", "View", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(57); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor, @@ -3163,7 +3199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DirectoryEntries", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(58); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor, @@ -3171,7 +3207,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Metadata", "Entry", }); internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(59); internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor, @@ -3179,7 +3215,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeBytes", "UpdateTime", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(60); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor, @@ -3187,7 +3223,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(61); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor, @@ -3195,7 +3231,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchResults", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(62); internal_static_google_cloud_dataform_v1beta1_SearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor, @@ -3203,7 +3239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Entry", }); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(63); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor, @@ -3211,7 +3247,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(64); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor, @@ -3219,7 +3255,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor = - getDescriptor().getMessageType(64); + getDescriptor().getMessageType(65); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor, @@ -3227,13 +3263,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor = - getDescriptor().getMessageType(65); + getDescriptor().getMessageType(66); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(66); + getDescriptor().getMessageType(67); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor, @@ -3241,13 +3277,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(67); + getDescriptor().getMessageType(68); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(68); + getDescriptor().getMessageType(69); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor, @@ -3255,13 +3291,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(69); + getDescriptor().getMessageType(70); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor = - getDescriptor().getMessageType(70); + getDescriptor().getMessageType(71); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor, @@ -3269,7 +3305,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Revision", }); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor = - getDescriptor().getMessageType(71); + getDescriptor().getMessageType(72); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor, @@ -3277,7 +3313,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileContents", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor = - getDescriptor().getMessageType(72); + getDescriptor().getMessageType(73); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor, @@ -3285,13 +3321,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor = - getDescriptor().getMessageType(73); + getDescriptor().getMessageType(74); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor = - getDescriptor().getMessageType(74); + getDescriptor().getMessageType(75); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor, @@ -3299,13 +3335,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor = - getDescriptor().getMessageType(75); + getDescriptor().getMessageType(76); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor = - getDescriptor().getMessageType(76); + getDescriptor().getMessageType(77); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor, @@ -3313,13 +3349,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Contents", }); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor = - getDescriptor().getMessageType(77); + getDescriptor().getMessageType(78); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor = - getDescriptor().getMessageType(78); + getDescriptor().getMessageType(79); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor, @@ -3327,13 +3363,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "PipelineConfig", }); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor = - getDescriptor().getMessageType(79); + getDescriptor().getMessageType(80); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor = - getDescriptor().getMessageType(80); + getDescriptor().getMessageType(81); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor, @@ -3357,7 +3393,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResult", "ErrorStatus", "ReleaseTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor = - getDescriptor().getMessageType(81); + getDescriptor().getMessageType(82); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor, @@ -3365,7 +3401,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor = - getDescriptor().getMessageType(82); + getDescriptor().getMessageType(83); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor, @@ -3373,7 +3409,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReleaseConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(83); + getDescriptor().getMessageType(84); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor, @@ -3381,7 +3417,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(84); + getDescriptor().getMessageType(85); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor, @@ -3389,7 +3425,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseConfig", "ReleaseConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(85); + getDescriptor().getMessageType(86); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor, @@ -3397,7 +3433,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "ReleaseConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(86); + getDescriptor().getMessageType(87); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor, @@ -3405,7 +3441,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor = - getDescriptor().getMessageType(87); + getDescriptor().getMessageType(88); internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor, @@ -3434,7 +3470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Stack", "Path", "ActionTarget", }); internal_static_google_cloud_dataform_v1beta1_WorkflowTriggerConfig_descriptor = - getDescriptor().getMessageType(88); + getDescriptor().getMessageType(89); internal_static_google_cloud_dataform_v1beta1_WorkflowTriggerConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowTriggerConfig_descriptor, @@ -3447,7 +3483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastSuccessfulEvaluationTime", }); internal_static_google_cloud_dataform_v1beta1_TriggerEvaluationRecord_descriptor = - getDescriptor().getMessageType(89); + getDescriptor().getMessageType(90); internal_static_google_cloud_dataform_v1beta1_TriggerEvaluationRecord_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TriggerEvaluationRecord_descriptor, @@ -3455,7 +3491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationTime", "Status", }); internal_static_google_cloud_dataform_v1beta1_WorkflowTrigger_descriptor = - getDescriptor().getMessageType(90); + getDescriptor().getMessageType(91); internal_static_google_cloud_dataform_v1beta1_WorkflowTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowTrigger_descriptor, @@ -3463,7 +3499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableUpdateTrigger", "Trigger", }); internal_static_google_cloud_dataform_v1beta1_TableUpdateTrigger_descriptor = - getDescriptor().getMessageType(91); + getDescriptor().getMessageType(92); internal_static_google_cloud_dataform_v1beta1_TableUpdateTrigger_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TableUpdateTrigger_descriptor, @@ -3471,7 +3507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Table", "TriggerUpdateTime", }); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor = - getDescriptor().getMessageType(92); + getDescriptor().getMessageType(93); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor, @@ -3499,7 +3535,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotMetadata_descriptor = - getDescriptor().getMessageType(93); + getDescriptor().getMessageType(94); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotMetadata_descriptor, @@ -3507,7 +3543,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RepositorySnapshotUri", "Crc32CChecksum", "Generation", }); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotDestination_descriptor = - getDescriptor().getMessageType(94); + getDescriptor().getMessageType(95); internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotDestination_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GcsRepositorySnapshotDestination_descriptor, @@ -3515,7 +3551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RepositorySnapshotUri", }); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor = - getDescriptor().getMessageType(95); + getDescriptor().getMessageType(96); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor, @@ -3527,7 +3563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RepositorySnapshotStorage", }); internal_static_google_cloud_dataform_v1beta1_PipelineConfig_descriptor = - getDescriptor().getMessageType(96); + getDescriptor().getMessageType(97); internal_static_google_cloud_dataform_v1beta1_PipelineConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PipelineConfig_descriptor, @@ -3535,7 +3571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PipelineType", "Path", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor = - getDescriptor().getMessageType(97); + getDescriptor().getMessageType(98); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor, @@ -3543,7 +3579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor = - getDescriptor().getMessageType(98); + getDescriptor().getMessageType(99); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor, @@ -3551,7 +3587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResults", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor = - getDescriptor().getMessageType(99); + getDescriptor().getMessageType(100); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor, @@ -3559,7 +3595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor = - getDescriptor().getMessageType(100); + getDescriptor().getMessageType(101); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor, @@ -3567,7 +3603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CompilationResult", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultMetadata_descriptor = - getDescriptor().getMessageType(101); + getDescriptor().getMessageType(102); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultMetadata_descriptor, @@ -3575,7 +3611,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Target", "State", "CreateCompilationResultRequest", }); internal_static_google_cloud_dataform_v1beta1_Target_descriptor = - getDescriptor().getMessageType(102); + getDescriptor().getMessageType(103); internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Target_descriptor, @@ -3583,7 +3619,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Name", }); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor = - getDescriptor().getMessageType(103); + getDescriptor().getMessageType(104); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor, @@ -3609,7 +3645,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor = - getDescriptor().getMessageType(104); + getDescriptor().getMessageType(105); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor, @@ -3784,7 +3820,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Column", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor = - getDescriptor().getMessageType(105); + getDescriptor().getMessageType(106); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor, @@ -3792,7 +3828,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor = - getDescriptor().getMessageType(106); + getDescriptor().getMessageType(107); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor, @@ -3800,7 +3836,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResultActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor = - getDescriptor().getMessageType(107); + getDescriptor().getMessageType(108); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor, @@ -3826,7 +3862,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocation", "ErrorStatus", "ExecutionTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor = - getDescriptor().getMessageType(108); + getDescriptor().getMessageType(109); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor, @@ -3851,7 +3887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserEmail", "OauthConfig", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor = - getDescriptor().getMessageType(109); + getDescriptor().getMessageType(110); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor, @@ -3859,7 +3895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor = - getDescriptor().getMessageType(110); + getDescriptor().getMessageType(111); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor, @@ -3867,7 +3903,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(111); + getDescriptor().getMessageType(112); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor, @@ -3875,7 +3911,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(112); + getDescriptor().getMessageType(113); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor, @@ -3883,7 +3919,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowConfig", "WorkflowConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(113); + getDescriptor().getMessageType(114); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor, @@ -3891,7 +3927,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "WorkflowConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(114); + getDescriptor().getMessageType(115); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor, @@ -3899,7 +3935,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = - getDescriptor().getMessageType(115); + getDescriptor().getMessageType(116); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, @@ -3918,7 +3954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationSource", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor = - getDescriptor().getMessageType(116); + getDescriptor().getMessageType(117); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor, @@ -3926,7 +3962,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor = - getDescriptor().getMessageType(117); + getDescriptor().getMessageType(118); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor, @@ -3934,7 +3970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(118); + getDescriptor().getMessageType(119); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor, @@ -3942,7 +3978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(119); + getDescriptor().getMessageType(120); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor, @@ -3950,7 +3986,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowInvocation", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(120); + getDescriptor().getMessageType(121); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor, @@ -3958,7 +3994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(121); + getDescriptor().getMessageType(122); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor, @@ -3966,13 +4002,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor = - getDescriptor().getMessageType(122); + getDescriptor().getMessageType(123); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor = - getDescriptor().getMessageType(123); + getDescriptor().getMessageType(124); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor, @@ -4074,7 +4110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalBilledBytes", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor = - getDescriptor().getMessageType(124); + getDescriptor().getMessageType(125); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor, @@ -4082,7 +4118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor = - getDescriptor().getMessageType(125); + getDescriptor().getMessageType(126); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor, @@ -4090,7 +4126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocationActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_Config_descriptor = - getDescriptor().getMessageType(126); + getDescriptor().getMessageType(127); internal_static_google_cloud_dataform_v1beta1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Config_descriptor, @@ -4098,7 +4134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DefaultKmsKeyName", "InternalMetadata", }); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor = - getDescriptor().getMessageType(127); + getDescriptor().getMessageType(128); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor, @@ -4106,7 +4142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor = - getDescriptor().getMessageType(128); + getDescriptor().getMessageType(129); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor, @@ -4114,7 +4150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "UpdateMask", }); internal_static_google_cloud_dataform_v1beta1_Folder_descriptor = - getDescriptor().getMessageType(129); + getDescriptor().getMessageType(130); internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Folder_descriptor, @@ -4129,7 +4165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorIamPrincipal", }); internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor = - getDescriptor().getMessageType(130); + getDescriptor().getMessageType(131); internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor, @@ -4137,7 +4173,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Folder", "FolderId", }); internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor = - getDescriptor().getMessageType(131); + getDescriptor().getMessageType(132); internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor, @@ -4145,7 +4181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DestinationContainingFolder", }); internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor = - getDescriptor().getMessageType(132); + getDescriptor().getMessageType(133); internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor, @@ -4153,7 +4189,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor = - getDescriptor().getMessageType(133); + getDescriptor().getMessageType(134); internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor, @@ -4161,7 +4197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Folder", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor = - getDescriptor().getMessageType(134); + getDescriptor().getMessageType(135); internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor, @@ -4169,7 +4205,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor = - getDescriptor().getMessageType(135); + getDescriptor().getMessageType(136); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor, @@ -4177,7 +4213,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor = - getDescriptor().getMessageType(136); + getDescriptor().getMessageType(137); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor, @@ -4185,7 +4221,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor = - getDescriptor().getMessageType(137); + getDescriptor().getMessageType(138); internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor, @@ -4193,7 +4229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor = - getDescriptor().getMessageType(138); + getDescriptor().getMessageType(139); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor, @@ -4201,7 +4237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor = - getDescriptor().getMessageType(139); + getDescriptor().getMessageType(140); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor, @@ -4218,7 +4254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor = - getDescriptor().getMessageType(140); + getDescriptor().getMessageType(141); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor, @@ -4226,7 +4262,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor = - getDescriptor().getMessageType(141); + getDescriptor().getMessageType(142); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor, @@ -4243,7 +4279,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor = - getDescriptor().getMessageType(142); + getDescriptor().getMessageType(143); internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor, @@ -4256,7 +4292,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorIamPrincipal", }); internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor = - getDescriptor().getMessageType(143); + getDescriptor().getMessageType(144); internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor, @@ -4264,7 +4300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TeamFolder", "TeamFolderId", }); internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor = - getDescriptor().getMessageType(144); + getDescriptor().getMessageType(145); internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor, @@ -4272,7 +4308,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor = - getDescriptor().getMessageType(145); + getDescriptor().getMessageType(146); internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor, @@ -4280,7 +4316,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "TeamFolder", }); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor = - getDescriptor().getMessageType(146); + getDescriptor().getMessageType(147); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor, @@ -4288,7 +4324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor = - getDescriptor().getMessageType(147); + getDescriptor().getMessageType(148); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor, @@ -4296,7 +4332,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TeamFolder", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor = - getDescriptor().getMessageType(148); + getDescriptor().getMessageType(149); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor, @@ -4313,7 +4349,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor = - getDescriptor().getMessageType(149); + getDescriptor().getMessageType(150); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor, @@ -4321,7 +4357,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor = - getDescriptor().getMessageType(150); + getDescriptor().getMessageType(151); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor, @@ -4338,7 +4374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TeamFolder", "Entry", }); internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor = - getDescriptor().getMessageType(151); + getDescriptor().getMessageType(152); internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor, @@ -4346,7 +4382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor = - getDescriptor().getMessageType(152); + getDescriptor().getMessageType(153); internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor, @@ -4354,7 +4390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor = - getDescriptor().getMessageType(153); + getDescriptor().getMessageType(154); internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor, @@ -4368,7 +4404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RemainingChildResourcesCount", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesRequest_descriptor = - getDescriptor().getMessageType(154); + getDescriptor().getMessageType(155); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesRequest_descriptor, @@ -4376,7 +4412,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Filter", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_BranchMetadata_descriptor = - getDescriptor().getMessageType(155); + getDescriptor().getMessageType(156); internal_static_google_cloud_dataform_v1beta1_BranchMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_BranchMetadata_descriptor, @@ -4384,7 +4420,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BranchName", "LastCommit", }); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesResponse_descriptor = - getDescriptor().getMessageType(156); + getDescriptor().getMessageType(157); internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchWorkspaceBranchesResponse_descriptor, @@ -4392,7 +4428,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branches", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchRequest_descriptor = - getDescriptor().getMessageType(157); + getDescriptor().getMessageType(158); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchRequest_descriptor, @@ -4400,7 +4436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchResponse_descriptor = - getDescriptor().getMessageType(158); + getDescriptor().getMessageType(159); internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchCurrentWorkspaceBranchResponse_descriptor, diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java index 455ed2ad6d68..30a75239c007 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java @@ -375,7 +375,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -395,7 +395,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The tokenStatus. */ @java.lang.Deprecated @@ -2062,7 +2062,7 @@ public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -2085,7 +2085,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The tokenStatus. */ @java.lang.Override @@ -3669,7 +3669,7 @@ public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -3692,7 +3692,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @@ -3718,7 +3718,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return The tokenStatus. */ @java.lang.Override @@ -3748,7 +3748,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -3778,7 +3778,7 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1002 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=1016 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto index 83732afbd728..386fff57a40c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto @@ -384,6 +384,20 @@ service Dataform { option (google.api.method_signature) = "parent,workspace,workspace_id"; } + // Creates a new Workspace in a given Repository asynchronously. + rpc CreateWorkspaceLongRunning(CreateWorkspaceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/repositories/*}/workspaces:createLongRunning" + body: "workspace" + }; + option (google.api.method_signature) = "parent,workspace,workspace_id"; + option (google.longrunning.operation_info) = { + response_type: "Workspace" + metadata_type: "CreateWorkspaceMetadata" + }; + } + // Deletes a single Workspace. rpc DeleteWorkspace(DeleteWorkspaceRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -1658,6 +1672,46 @@ message CreateWorkspaceRequest { string workspace_id = 3 [(google.api.field_behavior) = REQUIRED]; } +// Represents the metadata of the `CreateWorkspaceLongRunning` operation. +message CreateWorkspaceMetadata { + // State of the LRO. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The LRO has been created. + CREATED = 1; + + // The LRO is in progress. + RUNNING = 2; + + // The RPC call has finished. + FINISHED = 3; + + // The LRO has succeeded. + SUCCEEDED = 4; + + // The LRO has failed. + FAILED = 5; + } + + // The unwrapped request. + oneof request { + // Output only. The CreateWorkspace requested. + CreateWorkspaceRequest create_workspace_request = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. The ID of the LRO. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the LRO. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `DeleteWorkspace` request message. message DeleteWorkspaceRequest { // Required. The workspace resource's name. diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..48a2d07df183 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunning(); + } + + public static void asyncCreateWorkspaceLongRunning() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + ApiFuture future = + dataformClient.createWorkspaceLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java new file mode 100644 index 000000000000..342ebe5c6b94 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1.CreateWorkspaceMetadata; +import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class AsyncCreateWorkspaceLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunningLRO(); + } + + public static void asyncCreateWorkspaceLongRunningLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + OperationFuture future = + dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request); + // Do something. + Workspace response = future.get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..bc11a42e4b46 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_sync] +import com.google.cloud.dataform.v1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class SyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunning(); + } + + public static void syncCreateWorkspaceLongRunning() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + Workspace response = dataformClient.createWorkspaceLongRunningAsync(request).get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java new file mode 100644 index 000000000000..07ad9099437b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningRepositorynameWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningRepositorynameWorkspaceString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java new file mode 100644 index 000000000000..c0628b12ddc8 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1.samples; + +// [START dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] +import com.google.cloud.dataform.v1.DataformClient; +import com.google.cloud.dataform.v1.RepositoryName; +import com.google.cloud.dataform.v1.Workspace; + +public class SyncCreateWorkspaceLongRunningStringWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningStringWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningStringWorkspaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..5e5b016ed366 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunning.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; +import com.google.longrunning.Operation; + +public class AsyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunning(); + } + + public static void asyncCreateWorkspaceLongRunning() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + ApiFuture future = + dataformClient.createWorkspaceLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java new file mode 100644 index 000000000000..ff935164a02c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/AsyncCreateWorkspaceLongRunningLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceMetadata; +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class AsyncCreateWorkspaceLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncCreateWorkspaceLongRunningLRO(); + } + + public static void asyncCreateWorkspaceLongRunningLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + OperationFuture future = + dataformClient.createWorkspaceLongRunningOperationCallable().futureCall(request); + // Do something. + Workspace response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java new file mode 100644 index 000000000000..f41c03f6dd4b --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunning.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_sync] +import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class SyncCreateWorkspaceLongRunning { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunning(); + } + + public static void syncCreateWorkspaceLongRunning() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + CreateWorkspaceRequest request = + CreateWorkspaceRequest.newBuilder() + .setParent(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setWorkspace(Workspace.newBuilder().build()) + .setWorkspaceId("workspaceId466560144") + .build(); + Workspace response = dataformClient.createWorkspaceLongRunningAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java new file mode 100644 index 000000000000..32b81708a710 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class SyncCreateWorkspaceLongRunningRepositorynameWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningRepositorynameWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningRepositorynameWorkspaceString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_RepositorynameWorkspaceString_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java new file mode 100644 index 000000000000..a2ac40229a37 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/createworkspacelongrunning/SyncCreateWorkspaceLongRunningStringWorkspaceString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.cloud.dataform.v1beta1.Workspace; + +public class SyncCreateWorkspaceLongRunningStringWorkspaceString { + + public static void main(String[] args) throws Exception { + syncCreateWorkspaceLongRunningStringWorkspaceString(); + } + + public static void syncCreateWorkspaceLongRunningStringWorkspaceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String parent = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + Workspace workspace = Workspace.newBuilder().build(); + String workspaceId = "workspaceId466560144"; + Workspace response = + dataformClient.createWorkspaceLongRunningAsync(parent, workspace, workspaceId).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_CreateWorkspaceLongRunning_StringWorkspaceString_sync] diff --git a/java-datalineage/README.md b/java-datalineage/README.md index a6a2d9c8eeba..7a92c551543c 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.94.0 + 0.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datalineage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.94.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.95.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datamanager/README.md b/java-datamanager/README.md index ec512cff2aef..13f316b48507 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.23.0 + 0.24.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.23.0' +implementation 'com.google.api-ads:data-manager:0.24.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.23.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.24.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.23.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.24.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataplex/README.md b/java-dataplex/README.md index eb31cb16a514..ab81ff41ecde 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataplex' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.100.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index 99e5611c9959..4286a828f664 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc-metastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.103.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc-metastore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc-metastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 7f9b92376da3..f3921c031646 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.99.0 + 4.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.99.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dataproc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastore/README.md b/java-datastore/README.md index 0dfde09b4f74..b0e0059245f3 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastore - 3.10.0 + 3.11.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:3.10.0' +implementation 'com.google.cloud:google-cloud-datastore:3.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.11.0" ``` ## Authentication @@ -473,7 +473,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastore/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-datastream/README.md b/java-datastream/README.md index c02f68952e47..2a894446ddff 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.101.0' +implementation 'com.google.cloud:google-cloud-datastream:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastream/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datastream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-deploy/README.md b/java-deploy/README.md index ed8c47c7fdb1..3a053961082f 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-deploy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.100.0' +implementation 'com.google.cloud:google-cloud-deploy:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-deploy/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-deploy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-designcenter/README.md b/java-designcenter/README.md index f534aca4f202..0cebecc83a49 100644 --- a/java-designcenter/README.md +++ b/java-designcenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-designcenter - 0.2.0 + 0.3.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-designcenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-designcenter:0.2.0' +implementation 'com.google.cloud:google-cloud-designcenter:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-designcenter" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-designcenter" % "0.3.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-designcenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-designcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-designcenter/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-designcenter/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index d27555e83784..77dca94e6931 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.59.0 + 0.60.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developerconnect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.59.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.60.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developerconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-developerknowledge/README.md b/java-developerknowledge/README.md index e3d82c6f7b86..4e0398e36377 100644 --- a/java-developerknowledge/README.md +++ b/java-developerknowledge/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developer-knowledge - 0.10.0 + 0.11.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developer-knowledge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developer-knowledge:0.10.0' +implementation 'com.google.cloud:google-cloud-developer-knowledge:0.11.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.10.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.11.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-developer-knowledge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.11.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 594f0178477d..fd4fce339c41 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.42.0 + 0.43.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-devicestreaming' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.42.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.43.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 9a3231552394..611c7fad8fca 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.113.0 + 0.114.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow-cx' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.113.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.114.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.113.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.114.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow-cx.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.113.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.114.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 8818ee7fe13b..9572589d43fa 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.108.0 + 4.109.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.108.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.109.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.108.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.109.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dialogflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.108.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.109.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 1f347902444b..82bed1574bc8 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.98.0 + 0.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-discoveryengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.98.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java index 480d2b71a4ee..17f8d3cb472d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceClient.java @@ -303,6 +303,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * Project response = projectServiceClient.provisionProjectAsync(request).get(); * } @@ -339,6 +341,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * OperationFuture future = * projectServiceClient.provisionProjectOperationCallable().futureCall(request); @@ -375,6 +379,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * ApiFuture future = * projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java index 9196ba76b750..d12e93513407 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java @@ -304,6 +304,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * Project response = projectServiceClient.provisionProjectAsync(request).get(); * } @@ -340,6 +342,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * OperationFuture future = * projectServiceClient.provisionProjectOperationCallable().futureCall(request); @@ -376,6 +380,8 @@ public final OperationFuture provisionProject * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + * .setIdpConfig(IdpConfig.newBuilder().build()) + * .setPreProvisionMode(true) * .build(); * ApiFuture future = * projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java index 30664ec1dd1f..f472517ddd61 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java @@ -82,6 +82,7 @@ public class HttpJsonProjectServiceStub extends ProjectServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1beta/{name=projects/*/locations/*}:provision") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json index ea828c56e486..e24195ab5c74 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1/reflect-config.json @@ -8144,6 +8144,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$ProvisionIntent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1.ProvisionProjectRequest$SaasParams", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json index 02a94bb126a6..4dac05a79a23 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/resources/META-INF/native-image/com.google.cloud.discoveryengine.v1beta/reflect-config.json @@ -8171,6 +8171,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$ProvisionIntent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$SaasParams", "queryAllDeclaredConstructors": true, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java index aa8d9e327df6..36fc572d4e25 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProjectServiceProto.java @@ -61,43 +61,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n5google/cloud/discoveryengine/v1/projec" - + "t_service.proto\022\037google.cloud.discoverye" + "\n" + + "5google/cloud/discoveryengine/v1/project_service.proto\022\037google.cloud.discoverye" + "ngine.v1\032\034google/api/annotations.proto\032\027" + "google/api/client.proto\032\037google/api/fiel" + "d_behavior.proto\032\031google/api/resource.pr" - + "oto\032-google/cloud/discoveryengine/v1/pro" - + "ject.proto\032#google/longrunning/operation" - + "s.proto\"\305\002\n\027ProvisionProjectRequest\022=\n\004n" - + "ame\030\001 \001(\tB/\342A\001\002\372A(\n&discoveryengine.goog" - + "leapis.com/Project\022#\n\025accept_data_use_te" - + "rms\030\002 \001(\010B\004\342A\001\002\022$\n\026data_use_terms_versio" - + "n\030\003 \001(\tB\004\342A\001\002\022^\n\013saas_params\030\004 \001(\0132C.goo" - + "gle.cloud.discoveryengine.v1.ProvisionPr" - + "ojectRequest.SaasParamsB\004\342A\001\001\032@\n\nSaasPar" - + "ams\022\034\n\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n\006is_" - + "biz\030\002 \001(\010B\004\342A\001\001\"\032\n\030ProvisionProjectMetad" - + "ata2\234\004\n\016ProjectService\022\267\002\n\020ProvisionProj" - + "ect\0228.google.cloud.discoveryengine.v1.Pr" - + "ovisionProjectRequest\032\035.google.longrunni" - + "ng.Operation\"\311\001\312Ac\n\'google.cloud.discove" - + "ryengine.v1.Project\0228google.cloud.discov" - + "eryengine.v1.ProvisionProjectMetadata\332A\004" - + "name\202\323\344\223\002V\"\037/v1/{name=projects/*}:provis" - + "ion:\001*Z0\"+/v1/{name=projects/*/locations" - + "/*}:provision:\001*\032\317\001\312A\036discoveryengine.go" - + "ogleapis.com\322A\252\001https://www.googleapis.c" - + "om/auth/cloud-platform,https://www.googl" - + "eapis.com/auth/discoveryengine.readwrite" - + ",https://www.googleapis.com/auth/discove" - + "ryengine.serving.readwriteB\206\002\n#com.googl" - + "e.cloud.discoveryengine.v1B\023ProjectServi" - + "ceProtoP\001ZMcloud.google.com/go/discovery" - + "engine/apiv1/discoveryenginepb;discovery" - + "enginepb\242\002\017DISCOVERYENGINE\252\002\037Google.Clou" - + "d.DiscoveryEngine.V1\312\002\037Google\\Cloud\\Disc" - + "overyEngine\\V1\352\002\"Google::Cloud::Discover" - + "yEngine::V1b\006proto3" + + "oto\032,google/cloud/discoveryengine/v1/common.proto\032-google/cloud/discoveryengine/" + + "v1/project.proto\032#google/longrunning/operations.proto\"\204\005\n" + + "\027ProvisionProjectRequest\022=\n" + + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" + + "&discoveryengine.googleapis.com/Project\022#\n" + + "\025accept_data_use_terms\030\002 \001(\010B\004\342A\001\002\022$\n" + + "\026data_use_terms_version\030\003 \001(\tB\004\342A\001\002\022^\n" + + "\013saas_params\030\004 \001(\013" + + "2C.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsB\004\342A\001\001\022h\n" + + "\020provision_intent\030\005 \001(\0162H.google.cloud.dis" + + "coveryengine.v1.ProvisionProjectRequest.ProvisionIntentB\004\342A\001\001\022D\n\n" + + "idp_config\030\006 \001(" + + "\0132*.google.cloud.discoveryengine.v1.IdpConfigB\004\342A\001\001\022 \n" + + "\022pre_provision_mode\030\010 \001(\010B\004\342A\001\001\032@\n\n" + + "SaasParams\022\034\n" + + "\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n" + + "\006is_biz\030\002 \001(\010B\004\342A\001\001\"k\n" + + "\017ProvisionIntent\022 \n" + + "\034PROVISION_INTENT_UNSPECIFIED\020\000\022\031\n" + + "\025PROVISION_INTENT_SOBI\020\001\022\033\n" + + "\027PROVISION_INTENT_LEGACY\020\002\"\032\n" + + "\030ProvisionProjectMetadata2\234\004\n" + + "\016ProjectService\022\267\002\n" + + "\020ProvisionProject\0228.google.cloud.discoveryengine." + + "v1.ProvisionProjectRequest\032\035.google.longrunning.Operation\"\311\001\312Ac\n" + + "\'google.cloud.discoveryengine.v1.Project\0228google.cloud.d" + + "iscoveryengine.v1.ProvisionProjectMetada" + + "ta\332A\004name\202\323\344\223\002V\"\037/v1/{name=projects/*}:p" + + "rovision:\001*Z0\"+/v1/{name=projects/*/loca" + + "tions/*}:provision:\001*\032\317\001\312A\036discoveryengi" + + "ne.googleapis.com\322A\252\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.read" + + "write,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\206\002\n" + + "#com.google.cloud.discoveryengine.v1B\023Project" + + "ServiceProtoP\001ZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;disc" + + "overyenginepb\242\002\017DISCOVERYENGINE\252\002\037Google" + + ".Cloud.DiscoveryEngine.V1\312\002\037Google\\Cloud" + + "\\DiscoveryEngine\\V1\352\002\"Google::Cloud::DiscoveryEngine::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -107,6 +113,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(), com.google.cloud.discoveryengine.v1.ProjectProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), }); @@ -116,7 +123,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor, new java.lang.String[] { - "Name", "AcceptDataUseTerms", "DataUseTermsVersion", "SaasParams", + "Name", + "AcceptDataUseTerms", + "DataUseTermsVersion", + "SaasParams", + "ProvisionIntent", + "IdpConfig", + "PreProvisionMode", }); internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_SaasParams_descriptor = internal_static_google_cloud_discoveryengine_v1_ProvisionProjectRequest_descriptor @@ -138,6 +151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1.CommonProto.getDescriptor(); com.google.cloud.discoveryengine.v1.ProjectProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java index 7ff40d84fdf6..6fc76e54b832 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequest.java @@ -56,6 +56,7 @@ private ProvisionProjectRequest(com.google.protobuf.GeneratedMessage.Builder private ProvisionProjectRequest() { name_ = ""; dataUseTermsVersion_ = ""; + provisionIntent_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -73,6 +74,181 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.Builder.class); } + /** + * + * + *
+   * Which experience the caller is provisioning.
+   * 
+ * + * Protobuf enum {@code google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent} + */ + public enum ProvisionIntent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + PROVISION_INTENT_UNSPECIFIED(0), + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + PROVISION_INTENT_SOBI(1), + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + PROVISION_INTENT_LEGACY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProvisionIntent"); + } + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + public static final int PROVISION_INTENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + public static final int PROVISION_INTENT_SOBI_VALUE = 1; + + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + public static final int PROVISION_INTENT_LEGACY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProvisionIntent valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProvisionIntent forNumber(int value) { + switch (value) { + case 0: + return PROVISION_INTENT_UNSPECIFIED; + case 1: + return PROVISION_INTENT_SOBI; + case 2: + return PROVISION_INTENT_LEGACY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProvisionIntent findValueByNumber(int number) { + return ProvisionIntent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionIntent[] VALUES = values(); + + public static ProvisionIntent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProvisionIntent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent) + } + public interface SaasParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams) @@ -922,6 +1098,148 @@ public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParams ge : saasParams_; } + public static final int PROVISION_INTENT_FIELD_NUMBER = 5; + private int provisionIntent_ = 0; + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.UNRECOGNIZED + : result; + } + + public static final int IDP_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1.IdpConfig idpConfig_; + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + public static final int PRE_PROVISION_MODE_FIELD_NUMBER = 8; + private boolean preProvisionMode_ = false; + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -948,6 +1266,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + output.writeBool(8, preProvisionMode_); + } getUnknownFields().writeTo(output); } @@ -969,6 +1299,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, preProvisionMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -992,6 +1334,12 @@ public boolean equals(final java.lang.Object obj) { if (hasSaasParams()) { if (!getSaasParams().equals(other.getSaasParams())) return false; } + if (provisionIntent_ != other.provisionIntent_) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (getPreProvisionMode() != other.getPreProvisionMode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1013,6 +1361,14 @@ public int hashCode() { hash = (37 * hash) + SAAS_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getSaasParams().hashCode(); } + hash = (37 * hash) + PROVISION_INTENT_FIELD_NUMBER; + hash = (53 * hash) + provisionIntent_; + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (37 * hash) + PRE_PROVISION_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreProvisionMode()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1158,6 +1514,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSaasParamsFieldBuilder(); + internalGetIdpConfigFieldBuilder(); } } @@ -1173,6 +1530,13 @@ public Builder clear() { saasParamsBuilder_.dispose(); saasParamsBuilder_ = null; } + provisionIntent_ = 0; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + preProvisionMode_ = false; return this; } @@ -1223,6 +1587,16 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1.ProvisionProjectR result.saasParams_ = saasParamsBuilder_ == null ? saasParams_ : saasParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.provisionIntent_ = provisionIntent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.preProvisionMode_ = preProvisionMode_; + } result.bitField0_ |= to_bitField0_; } @@ -1255,6 +1629,15 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1.ProvisionProjectReq if (other.hasSaasParams()) { mergeSaasParams(other.getSaasParams()); } + if (other.provisionIntent_ != 0) { + setProvisionIntentValue(other.getProvisionIntentValue()); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + if (other.getPreProvisionMode() != false) { + setPreProvisionMode(other.getPreProvisionMode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1306,6 +1689,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + provisionIntent_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + preProvisionMode_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1871,6 +2273,441 @@ public Builder clearSaasParams() { return saasParamsBuilder_; } + private int provisionIntent_ = 0; + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntentValue(int value) { + provisionIntent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntent( + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + provisionIntent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionIntent() { + bitField0_ = (bitField0_ & ~0x00000010); + provisionIntent_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder> + idpConfigBuilder_; + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && idpConfig_ != null + && idpConfig_ != com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder> + internalGetIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1.IdpConfig, + com.google.cloud.discoveryengine.v1.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + private boolean preProvisionMode_; + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preProvisionMode to set. + * @return This builder for chaining. + */ + public Builder setPreProvisionMode(boolean value) { + + preProvisionMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreProvisionMode() { + bitField0_ = (bitField0_ & ~0x00000040); + preProvisionMode_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1.ProvisionProjectRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java index dd3d7a45d60c..3193f168cdbc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/java/com/google/cloud/discoveryengine/v1/ProvisionProjectRequestOrBuilder.java @@ -152,4 +152,109 @@ public interface ProvisionProjectRequestOrBuilder */ com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.SaasParamsOrBuilder getSaasParamsOrBuilder(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + int getProvisionIntentValue(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + com.google.cloud.discoveryengine.v1.ProvisionProjectRequest.ProvisionIntent getProvisionIntent(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1.IdpConfig getIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1.IdpConfigOrBuilder getIdpConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + boolean getPreProvisionMode(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto index 20ded2ab3182..0302691651dd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/src/main/proto/google/cloud/discoveryengine/v1/project_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1/common.proto"; import "google/cloud/discoveryengine/v1/project.proto"; import "google/longrunning/operations.proto"; @@ -81,6 +82,19 @@ message ProvisionProjectRequest { bool is_biz = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Which experience the caller is provisioning. + enum ProvisionIntent { + // Unspecified. + PROVISION_INTENT_UNSPECIFIED = 0; + + // The caller is provisioning for the new Gemini Enterprise experience. + PROVISION_INTENT_SOBI = 1; + + // The caller is provisioning for the classic Gemini Enterprise + // experience. + PROVISION_INTENT_LEGACY = 2; + } + // Required. Full resource name of a // [Project][google.cloud.discoveryengine.v1.Project], such as // `projects/{project_id_or_number}`. @@ -105,6 +119,29 @@ message ProvisionProjectRequest { // Optional. Parameters for Agentspace. SaasParams saas_params = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The caller states whether the provisioning is for the new or the + // classic Gemini Enterprise experience. + ProvisionIntent provision_intent = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The identity provider for this location. When provided, the + // location's [AclConfig][google.cloud.discoveryengine.v1.AclConfig] is + // set from it as part of provisioning. + IdpConfig idp_config = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Runs only the common project-level pre-provisioning steps + // (service agents, agent identity pools, project-scoped extension bindings, + // App Hub registry, Sobi agent default identity, and Sobi default Model Armor + // template) without reading or writing the Customer, Collection, or UserStore + // tables, CapabilityConfig, tenant project, default engine, or trial licenses + // when `true`. + // + // Assumes no customer exists yet. Customer-level or non-SOBI fields + // (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`, + // `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with + // `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty + // response. + bool pre_provision_mode = 8 [(google.api.field_behavior) = OPTIONAL]; } // Metadata associated with a project provision operation. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java index df34b2aa5528..dd7028004175 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java @@ -61,39 +61,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "9google/cloud/discoveryengine/v1beta/project_service.proto\022#google.cloud.discov" + "\n9google/cloud/discoveryengine/v1beta/pr" + + "oject_service.proto\022#google.cloud.discov" + "eryengine.v1beta\032\034google/api/annotations" + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\031google/api/res" - + "ource.proto\0321google/cloud/discoveryengin" - + "e/v1beta/project.proto\032#google/longrunning/operations.proto\"\311\002\n" - + "\027ProvisionProjectRequest\022=\n" - + "\004name\030\001 \001(\tB/\342A\001\002\372A(\n" - + "&discoveryengine.googleapis.com/Project\022#\n" - + "\025accept_data_use_terms\030\002 \001(\010B\004\342A\001\002\022$\n" - + "\026data_use_terms_version\030\003 \001(\tB\004\342A\001\002\022b\n" - + "\013saas_params\030\004 \001(\0132G.google.cloud.discoveryengine.v1" - + "beta.ProvisionProjectRequest.SaasParamsB\004\342A\001\001\032@\n\n" - + "SaasParams\022\034\n" - + "\016accept_biz_qos\030\001 \001(\010B\004\342A\001\001\022\024\n" - + "\006is_biz\030\002 \001(\010B\004\342A\001\001\"\032\n" - + "\030ProvisionProjectMetadata2\372\003\n" - + "\016ProjectService\022\225\002\n" - + "\020ProvisionProject\022<.google.cloud.disco" - + "veryengine.v1beta.ProvisionProjectRequest\032\035.google.longrunning.Operation\"\243\001\312Ak\n" - + "+google.cloud.discoveryengine.v1beta.Project\022 private ProvisionProjectRequest() { name_ = ""; dataUseTermsVersion_ = ""; + provisionIntent_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -73,6 +74,182 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.Builder.class); } + /** + * + * + *
+   * Which experience the caller is provisioning.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent} + */ + public enum ProvisionIntent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + PROVISION_INTENT_UNSPECIFIED(0), + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + PROVISION_INTENT_SOBI(1), + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + PROVISION_INTENT_LEGACY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ProvisionIntent"); + } + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * PROVISION_INTENT_UNSPECIFIED = 0; + */ + public static final int PROVISION_INTENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The caller is provisioning for the new Gemini Enterprise experience.
+     * 
+ * + * PROVISION_INTENT_SOBI = 1; + */ + public static final int PROVISION_INTENT_SOBI_VALUE = 1; + + /** + * + * + *
+     * The caller is provisioning for the classic Gemini Enterprise
+     * experience.
+     * 
+ * + * PROVISION_INTENT_LEGACY = 2; + */ + public static final int PROVISION_INTENT_LEGACY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ProvisionIntent valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ProvisionIntent forNumber(int value) { + switch (value) { + case 0: + return PROVISION_INTENT_UNSPECIFIED; + case 1: + return PROVISION_INTENT_SOBI; + case 2: + return PROVISION_INTENT_LEGACY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProvisionIntent findValueByNumber(int number) { + return ProvisionIntent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionIntent[] VALUES = values(); + + public static ProvisionIntent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ProvisionIntent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent) + } + public interface SaasParamsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) @@ -930,6 +1107,149 @@ public boolean hasSaasParams() { : saasParams_; } + public static final int PROVISION_INTENT_FIELD_NUMBER = 5; + private int provisionIntent_ = 0; + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .UNRECOGNIZED + : result; + } + + public static final int IDP_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.IdpConfig idpConfig_; + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + public static final int PRE_PROVISION_MODE_FIELD_NUMBER = 8; + private boolean preProvisionMode_ = false; + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -956,6 +1276,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + output.writeBool(8, preProvisionMode_); + } getUnknownFields().writeTo(output); } @@ -977,6 +1309,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSaasParams()); } + if (provisionIntent_ + != com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .PROVISION_INTENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, provisionIntent_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getIdpConfig()); + } + if (preProvisionMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, preProvisionMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1000,6 +1344,12 @@ public boolean equals(final java.lang.Object obj) { if (hasSaasParams()) { if (!getSaasParams().equals(other.getSaasParams())) return false; } + if (provisionIntent_ != other.provisionIntent_) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (getPreProvisionMode() != other.getPreProvisionMode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1021,6 +1371,14 @@ public int hashCode() { hash = (37 * hash) + SAAS_PARAMS_FIELD_NUMBER; hash = (53 * hash) + getSaasParams().hashCode(); } + hash = (37 * hash) + PROVISION_INTENT_FIELD_NUMBER; + hash = (53 * hash) + provisionIntent_; + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (37 * hash) + PRE_PROVISION_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPreProvisionMode()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1166,6 +1524,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetSaasParamsFieldBuilder(); + internalGetIdpConfigFieldBuilder(); } } @@ -1181,6 +1540,13 @@ public Builder clear() { saasParamsBuilder_.dispose(); saasParamsBuilder_ = null; } + provisionIntent_ = 0; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + preProvisionMode_ = false; return this; } @@ -1233,6 +1599,16 @@ private void buildPartial0( result.saasParams_ = saasParamsBuilder_ == null ? saasParams_ : saasParamsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.provisionIntent_ = provisionIntent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.preProvisionMode_ = preProvisionMode_; + } result.bitField0_ |= to_bitField0_; } @@ -1267,6 +1643,15 @@ public Builder mergeFrom( if (other.hasSaasParams()) { mergeSaasParams(other.getSaasParams()); } + if (other.provisionIntent_ != 0) { + setProvisionIntentValue(other.getProvisionIntentValue()); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + if (other.getPreProvisionMode() != false) { + setPreProvisionMode(other.getPreProvisionMode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1318,6 +1703,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + provisionIntent_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 64: + { + preProvisionMode_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1884,6 +2288,443 @@ public Builder clearSaasParams() { return saasParamsBuilder_; } + private int provisionIntent_ = 0; + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + @java.lang.Override + public int getProvisionIntentValue() { + return provisionIntent_; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntentValue(int value) { + provisionIntent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent() { + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent result = + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent.forNumber( + provisionIntent_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionIntent to set. + * @return This builder for chaining. + */ + public Builder setProvisionIntent( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + provisionIntent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The caller states whether the provisioning is for the new or the
+     * classic Gemini Enterprise experience.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionIntent() { + bitField0_ = (bitField0_ & ~0x00000010); + provisionIntent_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder> + idpConfigBuilder_; + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1beta.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1beta.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && idpConfig_ != null + && idpConfig_ + != com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + + /** + * + * + *
+     * Optional. The identity provider for this location. When provided, the
+     * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+     * set from it as part of provisioning.
+     * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder> + internalGetIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + private boolean preProvisionMode_; + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + @java.lang.Override + public boolean getPreProvisionMode() { + return preProvisionMode_; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preProvisionMode to set. + * @return This builder for chaining. + */ + public Builder setPreProvisionMode(boolean value) { + + preProvisionMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Runs only the common project-level pre-provisioning steps
+     * (service agents, agent identity pools, project-scoped extension bindings,
+     * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+     * template) without reading or writing the Customer, Collection, or UserStore
+     * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+     * when `true`.
+     *
+     * Assumes no customer exists yet. Customer-level or non-SOBI fields
+     * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+     * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+     * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+     * response.
+     * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreProvisionMode() { + bitField0_ = (bitField0_ & ~0x00000040); + preProvisionMode_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java index 8e97767fe992..16fb34797217 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java @@ -152,4 +152,110 @@ public interface ProvisionProjectRequestOrBuilder */ com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder getSaasParamsOrBuilder(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionIntent. + */ + int getProvisionIntentValue(); + + /** + * + * + *
+   * Optional. The caller states whether the provisioning is for the new or the
+   * classic Gemini Enterprise experience.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent provision_intent = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionIntent. + */ + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.ProvisionIntent + getProvisionIntent(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig(); + + /** + * + * + *
+   * Optional. The identity provider for this location. When provided, the
+   * location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is
+   * set from it as part of provisioning.
+   * 
+ * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Runs only the common project-level pre-provisioning steps
+   * (service agents, agent identity pools, project-scoped extension bindings,
+   * App Hub registry, Sobi agent default identity, and Sobi default Model Armor
+   * template) without reading or writing the Customer, Collection, or UserStore
+   * tables, CapabilityConfig, tenant project, default engine, or trial licenses
+   * when `true`.
+   *
+   * Assumes no customer exists yet. Customer-level or non-SOBI fields
+   * (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`,
+   * `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with
+   * `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty
+   * response.
+   * 
+ * + * bool pre_provision_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preProvisionMode. + */ + boolean getPreProvisionMode(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto index 3a504a551fad..89f24f421dcb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/common.proto"; import "google/cloud/discoveryengine/v1beta/project.proto"; import "google/longrunning/operations.proto"; @@ -52,6 +53,10 @@ service ProjectService { option (google.api.http) = { post: "/v1beta/{name=projects/*}:provision" body: "*" + additional_bindings { + post: "/v1beta/{name=projects/*/locations/*}:provision" + body: "*" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -77,6 +82,19 @@ message ProvisionProjectRequest { bool is_biz = 2 [(google.api.field_behavior) = OPTIONAL]; } + // Which experience the caller is provisioning. + enum ProvisionIntent { + // Unspecified. + PROVISION_INTENT_UNSPECIFIED = 0; + + // The caller is provisioning for the new Gemini Enterprise experience. + PROVISION_INTENT_SOBI = 1; + + // The caller is provisioning for the classic Gemini Enterprise + // experience. + PROVISION_INTENT_LEGACY = 2; + } + // Required. Full resource name of a // [Project][google.cloud.discoveryengine.v1beta.Project], such as // `projects/{project_id_or_number}`. @@ -101,6 +119,29 @@ message ProvisionProjectRequest { // Optional. Parameters for Agentspace. SaasParams saas_params = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The caller states whether the provisioning is for the new or the + // classic Gemini Enterprise experience. + ProvisionIntent provision_intent = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The identity provider for this location. When provided, the + // location's [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig] is + // set from it as part of provisioning. + IdpConfig idp_config = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Runs only the common project-level pre-provisioning steps + // (service agents, agent identity pools, project-scoped extension bindings, + // App Hub registry, Sobi agent default identity, and Sobi default Model Armor + // template) without reading or writing the Customer, Collection, or UserStore + // tables, CapabilityConfig, tenant project, default engine, or trial licenses + // when `true`. + // + // Assumes no customer exists yet. Customer-level or non-SOBI fields + // (`accept_data_use_terms`, `data_use_terms_version`, `saas_params`, + // `idp_config`, and `PROVISION_INTENT_LEGACY`) are rejected with + // `INVALID_ARGUMENT`, and the returned completed `Operation` has an empty + // response. + bool pre_provision_mode = 8 [(google.api.field_behavior) = OPTIONAL]; } // Metadata associated with a project provision operation. diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java index 5565c063ddd3..6aa3e3d5b8f1 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProject.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1_generated_ProjectService_ProvisionProject_async] import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1.IdpConfig; import com.google.cloud.discoveryengine.v1.ProjectName; import com.google.cloud.discoveryengine.v1.ProjectServiceClient; import com.google.cloud.discoveryengine.v1.ProvisionProjectRequest; @@ -42,6 +43,8 @@ public static void asyncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); ApiFuture future = projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java index 4a6bb2944220..296ed1d269a5 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/AsyncProvisionProjectLRO.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1_generated_ProjectService_ProvisionProject_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1.IdpConfig; import com.google.cloud.discoveryengine.v1.Project; import com.google.cloud.discoveryengine.v1.ProjectName; import com.google.cloud.discoveryengine.v1.ProjectServiceClient; @@ -43,6 +44,8 @@ public static void asyncProvisionProjectLRO() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); OperationFuture future = projectServiceClient.provisionProjectOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java index 467bdfa91692..12368948c285 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1/projectservice/provisionproject/SyncProvisionProject.java @@ -17,6 +17,7 @@ package com.google.cloud.discoveryengine.v1.samples; // [START discoveryengine_v1_generated_ProjectService_ProvisionProject_sync] +import com.google.cloud.discoveryengine.v1.IdpConfig; import com.google.cloud.discoveryengine.v1.Project; import com.google.cloud.discoveryengine.v1.ProjectName; import com.google.cloud.discoveryengine.v1.ProjectServiceClient; @@ -41,6 +42,8 @@ public static void syncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); Project response = projectServiceClient.provisionProjectAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java index 8d2dbc486fd6..ad2563ec10a2 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1beta_generated_ProjectService_ProvisionProject_async] import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.IdpConfig; import com.google.cloud.discoveryengine.v1beta.ProjectName; import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; import com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest; @@ -42,6 +43,8 @@ public static void asyncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); ApiFuture future = projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java index 289c6e39437d..62bc19754f9b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java @@ -18,6 +18,7 @@ // [START discoveryengine_v1beta_generated_ProjectService_ProvisionProject_LRO_async] import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.IdpConfig; import com.google.cloud.discoveryengine.v1beta.Project; import com.google.cloud.discoveryengine.v1beta.ProjectName; import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; @@ -43,6 +44,8 @@ public static void asyncProvisionProjectLRO() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); OperationFuture future = projectServiceClient.provisionProjectOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java index 59f70629eea0..b25de688a6f3 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java @@ -17,6 +17,7 @@ package com.google.cloud.discoveryengine.v1beta.samples; // [START discoveryengine_v1beta_generated_ProjectService_ProvisionProject_sync] +import com.google.cloud.discoveryengine.v1beta.IdpConfig; import com.google.cloud.discoveryengine.v1beta.Project; import com.google.cloud.discoveryengine.v1beta.ProjectName; import com.google.cloud.discoveryengine.v1beta.ProjectServiceClient; @@ -41,6 +42,8 @@ public static void syncProvisionProject() throws Exception { .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .setPreProvisionMode(true) .build(); Project response = projectServiceClient.provisionProjectAsync(request).get(); } diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index fc5e05c6023f..51fc92e7497a 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-distributedcloudedge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.99.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-distributedcloudedge/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dlp/README.md b/java-dlp/README.md index f796ec2ef6f8..7df0a92e3bb8 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.106.0 + 3.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dlp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.106.0' +implementation 'com.google.cloud:google-cloud-dlp:3.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dlp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.107.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-dms/README.md b/java-dms/README.md index b427ab582826..d816a7d7e71d 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.101.0' +implementation 'com.google.cloud:google-cloud-dms:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dms/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-document-ai/README.md b/java-document-ai/README.md index af98dcf50fda..a76699402330 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.106.0 + 2.107.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-document-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.106.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.107.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-document-ai/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-document-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.107.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-domains/README.md b/java-domains/README.md index 34ee3f0f0f3a..2b90f4c5e502 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-domains' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.99.0' +implementation 'com.google.cloud:google-cloud-domains:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-domains.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index d4c7fc1addec..e81e054fb40d 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.70.0 + 0.71.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-edgenetwork' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.70.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.71.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-edgenetwork.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 71bd0b11bd19..d7009e631463 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.98.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-enterpriseknowledgegraph.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.99.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 830beb5a7f20..e11e326b9d81 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.223.0-beta + 0.224.0-beta ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-errorreporting' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.223.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.224.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.223.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.224.0-beta" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-errorreporting/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-errorreporting.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.223.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.224.0-beta [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index d1eab1111d07..91e58f84427d 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-essential-contacts' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.102.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-essential-contacts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-essential-contacts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 98f7be065fee..e2296aa9281e 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-eventarc-publishing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.102.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc-publishing/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc-publishing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 5831c269a71f..74809abdd17e 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-eventarc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.102.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-eventarc.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-filestore/README.md b/java-filestore/README.md index 8605aec43c76..a9d0181c746e 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.103.0 + 1.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-filestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.103.0' +implementation 'com.google.cloud:google-cloud-filestore:1.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-filestore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-filestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-financialservices/README.md b/java-financialservices/README.md index 9c9f5656bdae..65e937f7c82d 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.43.0 + 0.44.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-financialservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.43.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.44.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-firestore/README.md b/java-firestore/README.md index 5e2c944fd7f7..7c2d696def38 100644 --- a/java-firestore/README.md +++ b/java-firestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-firestore - 3.52.0 + 3.53.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-firestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-firestore:3.52.0' +implementation 'com.google.cloud:google-cloud-firestore:3.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.53.0" ``` ## Authentication @@ -197,7 +197,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-firestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.53.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ftp/README.md b/java-ftp/README.md index a912d2f890df..80e8a1c440ff 100644 --- a/java-ftp/README.md +++ b/java-ftp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ftp - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ftp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ftp:0.7.0' +implementation 'com.google.cloud:google-cloud-ftp:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ftp" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ftp" % "0.8.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ftp/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ftp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ftp/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ftp/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-functions/README.md b/java-functions/README.md index d9167c6c1855..bc11854ae8ba 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-functions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.104.0' +implementation 'com.google.cloud:google-cloud-functions:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-functions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-functions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index a90ccfe13e17..43ce1c46fd7e 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.57.0 + 0.58.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gdchardwaremanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.57.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.57.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.58.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gdchardwaremanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.58.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 9f494c4623b7..7304e376c860 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.30.0 + 0.31.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-geminidataanalytics' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.30.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.30.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.31.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index 3c36240861cd..96982d258be6 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-backup' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.101.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-backup/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-backup.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index 394496df6e90..750b1b77d61b 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.103.0 + 0.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gke-connect-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.103.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-connect-gateway/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-connect-gateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 2079d0039319..095ac831e4e3 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-multi-cloud' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.101.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gke-multi-cloud.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkehub/README.md b/java-gkehub/README.md index edee32b2009f..6e37ab3df0f8 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gkehub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.102.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkehub/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkehub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gkerecommender/README.md b/java-gkerecommender/README.md index 0eeb951576cd..9a1b0e605378 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 0.22.0 + 0.23.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gkerecommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkerecommender:0.22.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.23.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gkerecommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-grafeas/README.md b/java-grafeas/README.md index dab5e906e921..71fab33476e7 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.103.0 + 2.104.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.103.0' +implementation 'io.grafeas:grafeas:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.103.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.104.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/grafeas/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/io.grafeas/grafeas.svg -[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index a4273fce9e68..3bce8ff537d6 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gsuite-addons' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.102.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gsuite-addons/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-gsuite-addons.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-health/README.md b/java-health/README.md index 8db1f43be2c4..b4e2dff4a353 100644 --- a/java-health/README.md +++ b/java-health/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-health - 0.11.0 + 0.12.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-health' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-health:0.11.0' +implementation 'com.google.cloud:google-cloud-health:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.11.0" +libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.12.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-health.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index cf6ab270ae27..b032167ab8a3 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 0.22.0 + 0.23.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-hypercomputecluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.22.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.23.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-hypercomputecluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.23.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 6f629945fbb5..71765b145055 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.97.0 + 3.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.97.0' +implementation 'com.google.cloud:google-iam-admin:3.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.97.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-iam-admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iam-policy/README.md b/java-iam-policy/README.md index edea210fdfbd..a21166bf0fa5 100644 --- a/java-iam-policy/README.md +++ b/java-iam-policy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-policy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.99.0' +implementation 'com.google.cloud:google-iam-policy:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-iam-policy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 70b0c07d81f7..c3a81e77c2d7 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iamcredentials' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.102.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iamcredentials/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iamcredentials.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iap/README.md b/java-iap/README.md index 020bdbff6a64..30f51d151f2a 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.58.0 + 0.59.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iap' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.58.0' +implementation 'com.google.cloud:google-cloud-iap:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.59.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iap.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-ids/README.md b/java-ids/README.md index 4854cfb1cfa7..e5311b6adb56 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-ids' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.101.0' +implementation 'com.google.cloud:google-cloud-ids:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ids/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-ids.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index b85ad2a7d63c..0540f9e5491c 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.79.0 + 0.80.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-infra-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.79.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.80.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.79.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.80.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-infra-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-infra-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.79.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/0.80.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-iot/README.md b/java-iot/README.md index 01890d616d76..0daa5f41c418 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iot' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.102.0' +implementation 'com.google.cloud:google-cloud-iot:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iot/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-iot.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kms/README.md b/java-kms/README.md index aff761df8f27..5c22a33683a4 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.105.0 + 2.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-kms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.105.0' +implementation 'com.google.cloud:google-cloud-kms:2.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kms.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index 50ebe0bc4b46..5635ba56c7e6 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.91.0 + 0.92.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-kmsinventory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.91.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.92.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-kmsinventory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-language/README.md b/java-language/README.md index 2d8c35444cbb..d792cb360af1 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-language' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.103.0' +implementation 'com.google.cloud:google-cloud-language:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.104.0" ``` ## Authentication @@ -214,7 +214,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-language/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-language.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index d64de9eda643..f0597c8df6e5 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.35.0 + 0.36.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-licensemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.35.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.36.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.36.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 790eae9078de..9e5d8b97b794 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-life-sciences' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.104.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-life-sciences/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-life-sciences.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-locationfinder/README.md b/java-locationfinder/README.md index 33c3e5d39216..06a4e6fb033c 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.27.0 + 0.28.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-locationfinder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.27.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.28.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.28.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-logging/README.md b/java-logging/README.md index 0b63e6560186..9b9c1059767f 100644 --- a/java-logging/README.md +++ b/java-logging/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-logging - 3.43.0 + 3.44.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-logging' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-logging:3.43.0' +implementation 'com.google.cloud:google-cloud-logging:3.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.44.0" ``` ## Authentication @@ -440,7 +440,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-logging.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-lustre/README.md b/java-lustre/README.md index f77caac8d68a..f8e1d72cbaa4 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.42.0 + 0.43.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-lustre' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.42.0' +implementation 'com.google.cloud:google-cloud-lustre:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.43.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maintenance/README.md b/java-maintenance/README.md index 1bee6c2e3226..037901a63ff9 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.36.0 + 0.37.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-maintenance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.36.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.37.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.36.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.37.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.36.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.37.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index d0c4f35ca1e4..4a488e7afd56 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-managed-identities' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.100.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managed-identities/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managed-identities.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index 66e1fa17a28e..e07293c2437b 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-managedkafka' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.58.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-managedkafka.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 48369f270a3d..208180d568a0 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-addressvalidation - 0.96.0 + 0.97.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.96.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.96.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.97.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-addressvalidation/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-addressvalidation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-area-insights/README.md b/java-maps-area-insights/README.md index 0ecf5edb81ef..08f36a3a4819 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-area-insights - 0.53.0 + 0.54.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.53.0' +implementation 'com.google.maps:google-maps-area-insights:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.53.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.54.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index 820ee8e3ed50..bc1db21f9b25 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine-delivery - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.49.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.49.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.50.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index 659b991451df..ac88019b27f0 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine - 0.49.0 + 0.50.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.49.0' +implementation 'com.google.maps:google-maps-fleetengine:0.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.49.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.50.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.50.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-geocode/README.md b/java-maps-geocode/README.md index bc17ecdb7396..0ca4f25b15c7 100644 --- a/java-maps-geocode/README.md +++ b/java-maps-geocode/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-geocode - 0.14.0 + 0.15.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-geocode:0.14.0' +implementation 'com.google.maps:google-maps-geocode:0.15.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.14.0" +libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.15.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-geocode.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.14.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.15.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-isochrones/README.md b/java-maps-isochrones/README.md index 21fd28c13ca5..fac83d4a70dc 100644 --- a/java-maps-isochrones/README.md +++ b/java-maps-isochrones/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-isochrones - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-isochrones:0.8.0' +implementation 'com.google.maps:google-maps-isochrones:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.9.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-isochrones/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-isochrones.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapmanagement/README.md b/java-maps-mapmanagement/README.md index b63a1a32e453..b2ffdc4c15c5 100644 --- a/java-maps-mapmanagement/README.md +++ b/java-maps-mapmanagement/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapmanagement - 0.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapmanagement:0.11.0' +implementation 'com.google.maps:google-maps-mapmanagement:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.11.0" +libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.12.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapmanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index c9e07eb072c5..d5fa447a929c 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapsplatformdatasets - 0.91.0 + 0.92.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.91.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.91.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.92.0" ``` ## Authentication @@ -156,7 +156,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-mapsplatformdatasets.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.92.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-navconnect/README.md b/java-maps-navconnect/README.md index d0dce0f450a1..d70847b094f2 100644 --- a/java-maps-navconnect/README.md +++ b/java-maps-navconnect/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-navconnect - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-navconnect:0.8.0' +implementation 'com.google.maps:google-maps-navconnect:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.9.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-navconnect/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-navconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-places/README.md b/java-maps-places/README.md index 1ed05fc1e8b0..7b96a7d65dec 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.73.0 + 0.74.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.73.0' +implementation 'com.google.maps:google-maps-places:0.74.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.73.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.74.0" ``` ## Authentication @@ -161,7 +161,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-places/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-places.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.73.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.74.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routeoptimization/README.md b/java-maps-routeoptimization/README.md index 559fe75c514d..607ce6d5bca0 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routeoptimization - 0.60.0 + 0.61.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.60.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.61.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.60.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.61.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routeoptimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.60.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.61.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-routing/README.md b/java-maps-routing/README.md index 87c104ad55cd..791d0602396c 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routing - 1.87.0 + 1.88.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.87.0' +implementation 'com.google.maps:google-maps-routing:1.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.87.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.88.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routing/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-routing.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.88.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-solar/README.md b/java-maps-solar/README.md index 547c07e90b93..a3c715ee50f1 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.61.0 + 0.62.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.61.0' +implementation 'com.google.maps:google-maps-solar:0.62.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.61.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.62.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.maps/google-maps-solar.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.61.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.62.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index cf9115d30afd..60d77f45b283 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.ads-marketingplatform admin - 0.51.0 + 0.52.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.51.0' +implementation 'com.google.ads-marketingplatform:admin:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.51.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.52.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 38a1e7d0981b..12970fab03c1 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.108.0 + 0.109.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-mediatranslation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.108.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.109.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.108.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.109.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-mediatranslation/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-mediatranslation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.108.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.109.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-meet/README.md b/java-meet/README.md index 199ca1375000..b5ee336dd944 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.69.0 + 0.70.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-meet' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.69.0' +implementation 'com.google.cloud:google-cloud-meet:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.70.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-meet/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-meet.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.70.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-memcache/README.md b/java-memcache/README.md index db17ff570d20..08fd9047c459 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-memcache' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.102.0' +implementation 'com.google.cloud:google-cloud-memcache:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memcache/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-memcache.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 5e25d638cde7..4e8b832f965f 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.84.0 + 0.85.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-migrationcenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.84.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.85.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-migrationcenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-migrationcenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.85.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-modelarmor/README.md b/java-modelarmor/README.md index eb798ed23508..25a9d34d0640 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.43.0 + 0.44.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-modelarmor' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.43.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.44.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.44.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index ca28b7d0de97..eb99646a85d5 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-dashboard' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.104.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-dashboard/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-dashboard.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 7cd3d1c6979b..8bd6fc6b2d20 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-metricsscope' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.96.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-metricsscope/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring-metricsscope.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 7e5ce57b8151..390de4b52fe9 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.103.0 + 3.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.103.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-monitoring.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-netapp/README.md b/java-netapp/README.md index 42aab28c641d..87c1ad1e815d 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.81.0 + 0.82.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-netapp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.81.0' +implementation 'com.google.cloud:google-cloud-netapp:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.82.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-netapp/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-netapp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-management/README.md b/java-network-management/README.md index 00a0d6225acf..f87aeb8a5cc3 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.103.0 + 1.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.103.0' +implementation 'com.google.cloud:google-cloud-network-management:1.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-management/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-network-security/README.md b/java-network-security/README.md index 54a5b754e453..d0999a5caf6c 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.105.0 + 0.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-security' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.105.0' +implementation 'com.google.cloud:google-cloud-network-security:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-security/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-security.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 522110cc7284..8489debaeb00 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-networkconnectivity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.101.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkconnectivity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 8f2e3cbd1ba3..8e56194862b1 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.58.0 + 0.59.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-networkservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.58.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.59.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-networkservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-notebooks/README.md b/java-notebooks/README.md index a0ea7b81f94a..fea8fdfb22ab 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-notebooks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.100.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-notebooks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-observability/README.md b/java-observability/README.md index 47c0abb8a611..4fc704ab7cd0 100644 --- a/java-observability/README.md +++ b/java-observability/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-observability - 0.2.0 + 0.3.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-observability' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-observability:0.2.0' +implementation 'com.google.cloud:google-cloud-observability:0.3.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-observability" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-observability" % "0.3.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-observability/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-observability.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-observability/0.2.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-observability/0.3.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-optimization/README.md b/java-optimization/README.md index 357c94cec70c..397875f36dab 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-optimization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.100.0' +implementation 'com.google.cloud:google-cloud-optimization:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-optimization/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-optimization.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index 0a300866f3fd..56fd436ee3c9 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.51.0 + 0.52.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-oracledatabase' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.51.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.52.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.52.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java index 7a3c5b7323ee..ff5281805141 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -1111,6 +1111,25 @@ * * * + *

UpdateOdbDnsZone + *

Updates the `labels` of a single ODB DNS Zone. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateOdbDnsZoneAsync(UpdateOdbDnsZoneRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateOdbDnsZoneAsync(OdbDnsZone odbDnsZone, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateOdbDnsZoneOperationCallable() + *

  • updateOdbDnsZoneCallable() + *

+ * + * + * *

DeleteOdbDnsZone *

Deletes a single ODB DNS Zone. * @@ -10887,6 +10906,140 @@ public final UnaryCallable createOdbDnsZoneC return stub.createOdbDnsZoneCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   OdbDnsZone response =
+   *       oracleDatabaseClient.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get();
+   * }
+   * }
+ * + * @param odbDnsZone Required. The resource being updated. Note only labels can be updated. The + * provided labels will completely replace the existing labels. Any existing label keys that + * are not included in the update request will be deleted. Not providing labels and + * update_mask will not update the labels. To clear all labels, specify `labels` in the + * `update_mask` and omit or leave the `labels` field empty in the update request. + * @param updateMask Optional. A mask specifying which fields in the OdbDnsZone should be updated. + * A field specified in the mask is updated. If a mask isn't provided, the service treats this + * as an implied field mask equivalent to all fields that are populated (have a non-empty + * value). To clear or unset a field, the field must be explicitly specified in the + * `update_mask`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateOdbDnsZoneAsync( + OdbDnsZone odbDnsZone, FieldMask updateMask) { + UpdateOdbDnsZoneRequest request = + UpdateOdbDnsZoneRequest.newBuilder() + .setOdbDnsZone(odbDnsZone) + .setUpdateMask(updateMask) + .build(); + return updateOdbDnsZoneAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   UpdateOdbDnsZoneRequest request =
+   *       UpdateOdbDnsZoneRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setOdbDnsZone(OdbDnsZone.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OdbDnsZone response = oracleDatabaseClient.updateOdbDnsZoneAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateOdbDnsZoneAsync( + UpdateOdbDnsZoneRequest request) { + return updateOdbDnsZoneOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   UpdateOdbDnsZoneRequest request =
+   *       UpdateOdbDnsZoneRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setOdbDnsZone(OdbDnsZone.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   OperationFuture future =
+   *       oracleDatabaseClient.updateOdbDnsZoneOperationCallable().futureCall(request);
+   *   // Do something.
+   *   OdbDnsZone response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateOdbDnsZoneOperationCallable() { + return stub.updateOdbDnsZoneOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the `labels` of a single ODB DNS Zone. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
+   *   UpdateOdbDnsZoneRequest request =
+   *       UpdateOdbDnsZoneRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setOdbDnsZone(OdbDnsZone.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       oracleDatabaseClient.updateOdbDnsZoneCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateOdbDnsZoneCallable() { + return stub.updateOdbDnsZoneCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a single ODB DNS Zone. diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java index 4c31d750c595..a06d919cfe07 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -721,6 +721,17 @@ public UnaryCallSettings createOdbDnsZoneSet return ((OracleDatabaseStubSettings) getStubSettings()).createOdbDnsZoneOperationSettings(); } + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings updateOdbDnsZoneSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateOdbDnsZoneSettings(); + } + + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings + updateOdbDnsZoneOperationSettings() { + return ((OracleDatabaseStubSettings) getStubSettings()).updateOdbDnsZoneOperationSettings(); + } + /** Returns the object with the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings deleteOdbDnsZoneSettings() { return ((OracleDatabaseStubSettings) getStubSettings()).deleteOdbDnsZoneSettings(); @@ -1968,6 +1979,18 @@ public UnaryCallSettings.Builder getOdbDnsZone return getStubSettingsBuilder().createOdbDnsZoneOperationSettings(); } + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings.Builder + updateOdbDnsZoneSettings() { + return getStubSettingsBuilder().updateOdbDnsZoneSettings(); + } + + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings.Builder + updateOdbDnsZoneOperationSettings() { + return getStubSettingsBuilder().updateOdbDnsZoneOperationSettings(); + } + /** Returns the builder for the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings.Builder deleteOdbDnsZoneSettings() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json index 39df87c80e55..deae04ef3b48 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json @@ -328,6 +328,9 @@ "UpdateGoldengateDeployment": { "methods": ["updateGoldengateDeploymentAsync", "updateGoldengateDeploymentAsync", "updateGoldengateDeploymentOperationCallable", "updateGoldengateDeploymentCallable"] }, + "UpdateOdbDnsZone": { + "methods": ["updateOdbDnsZoneAsync", "updateOdbDnsZoneAsync", "updateOdbDnsZoneOperationCallable", "updateOdbDnsZoneCallable"] + }, "UpdateOdbNetwork": { "methods": ["updateOdbNetworkAsync", "updateOdbNetworkAsync", "updateOdbNetworkOperationCallable", "updateOdbNetworkCallable"] }, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java index 62afafb99ad6..89fc60a98fe7 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java @@ -221,6 +221,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.longrunning.Operation; @@ -901,6 +902,17 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateOdbDnsZoneMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/UpdateOdbDnsZone") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateOdbDnsZoneRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteOdbDnsZoneMethodDescriptor = MethodDescriptor.newBuilder() @@ -1840,6 +1852,9 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { private final UnaryCallable createOdbDnsZoneCallable; private final OperationCallable createOdbDnsZoneOperationCallable; + private final UnaryCallable updateOdbDnsZoneCallable; + private final OperationCallable + updateOdbDnsZoneOperationCallable; private final UnaryCallable deleteOdbDnsZoneCallable; private final OperationCallable deleteOdbDnsZoneOperationCallable; @@ -2738,6 +2753,17 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateOdbDnsZoneTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateOdbDnsZoneMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "odb_dns_zone.name", String.valueOf(request.getOdbDnsZone().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteOdbDnsZoneTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteOdbDnsZoneMethodDescriptor) @@ -3895,6 +3921,15 @@ protected GrpcOracleDatabaseStub( settings.createOdbDnsZoneOperationSettings(), clientContext, operationsStub); + this.updateOdbDnsZoneCallable = + callableFactory.createUnaryCallable( + updateOdbDnsZoneTransportSettings, settings.updateOdbDnsZoneSettings(), clientContext); + this.updateOdbDnsZoneOperationCallable = + callableFactory.createOperationCallable( + updateOdbDnsZoneTransportSettings, + settings.updateOdbDnsZoneOperationSettings(), + clientContext, + operationsStub); this.deleteOdbDnsZoneCallable = callableFactory.createUnaryCallable( deleteOdbDnsZoneTransportSettings, settings.deleteOdbDnsZoneSettings(), clientContext); @@ -4964,6 +4999,17 @@ public UnaryCallable createOdbDnsZoneCallabl return createOdbDnsZoneOperationCallable; } + @Override + public UnaryCallable updateOdbDnsZoneCallable() { + return updateOdbDnsZoneCallable; + } + + @Override + public OperationCallable + updateOdbDnsZoneOperationCallable() { + return updateOdbDnsZoneOperationCallable; + } + @Override public UnaryCallable deleteOdbDnsZoneCallable() { return deleteOdbDnsZoneCallable; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java index b7cb9bebd348..c479ae85577a 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java @@ -229,6 +229,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.common.collect.ImmutableMap; @@ -2370,6 +2371,49 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateOdbDnsZoneMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.oracledatabase.v1.OracleDatabase/UpdateOdbDnsZone") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{odbDnsZone.name=projects/*/locations/*/odbNetworks/*/odbDnsZones/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "odbDnsZone.name", request.getOdbDnsZone().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("odbDnsZone", request.getOdbDnsZone(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateOdbDnsZoneRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor deleteOdbDnsZoneMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -4869,6 +4913,9 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { private final UnaryCallable createOdbDnsZoneCallable; private final OperationCallable createOdbDnsZoneOperationCallable; + private final UnaryCallable updateOdbDnsZoneCallable; + private final OperationCallable + updateOdbDnsZoneOperationCallable; private final UnaryCallable deleteOdbDnsZoneCallable; private final OperationCallable deleteOdbDnsZoneOperationCallable; @@ -5856,6 +5903,18 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateOdbDnsZoneTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateOdbDnsZoneMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "odb_dns_zone.name", String.valueOf(request.getOdbDnsZone().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteOdbDnsZoneTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteOdbDnsZoneMethodDescriptor) @@ -7083,6 +7142,15 @@ protected HttpJsonOracleDatabaseStub( settings.createOdbDnsZoneOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateOdbDnsZoneCallable = + callableFactory.createUnaryCallable( + updateOdbDnsZoneTransportSettings, settings.updateOdbDnsZoneSettings(), clientContext); + this.updateOdbDnsZoneOperationCallable = + callableFactory.createOperationCallable( + updateOdbDnsZoneTransportSettings, + settings.updateOdbDnsZoneOperationSettings(), + clientContext, + httpJsonOperationsStub); this.deleteOdbDnsZoneCallable = callableFactory.createUnaryCallable( deleteOdbDnsZoneTransportSettings, settings.deleteOdbDnsZoneSettings(), clientContext); @@ -7631,6 +7699,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listOdbDnsZonesMethodDescriptor); methodDescriptors.add(getOdbDnsZoneMethodDescriptor); methodDescriptors.add(createOdbDnsZoneMethodDescriptor); + methodDescriptors.add(updateOdbDnsZoneMethodDescriptor); methodDescriptors.add(deleteOdbDnsZoneMethodDescriptor); methodDescriptors.add(listExadbVmClustersMethodDescriptor); methodDescriptors.add(getExadbVmClusterMethodDescriptor); @@ -8266,6 +8335,17 @@ public UnaryCallable createOdbDnsZoneCallabl return createOdbDnsZoneOperationCallable; } + @Override + public UnaryCallable updateOdbDnsZoneCallable() { + return updateOdbDnsZoneCallable; + } + + @Override + public OperationCallable + updateOdbDnsZoneOperationCallable() { + return updateOdbDnsZoneOperationCallable; + } + @Override public UnaryCallable deleteOdbDnsZoneCallable() { return deleteOdbDnsZoneCallable; diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java index 11ce154b1d64..698d96352496 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -216,6 +216,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.longrunning.Operation; @@ -762,6 +763,15 @@ public UnaryCallable createOdbDnsZoneCallabl throw new UnsupportedOperationException("Not implemented: createOdbDnsZoneCallable()"); } + public OperationCallable + updateOdbDnsZoneOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateOdbDnsZoneOperationCallable()"); + } + + public UnaryCallable updateOdbDnsZoneCallable() { + throw new UnsupportedOperationException("Not implemented: updateOdbDnsZoneCallable()"); + } + public OperationCallable deleteOdbDnsZoneOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteOdbDnsZoneOperationCallable()"); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java index a8ebc87829a0..f18a84c21bb3 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -262,6 +262,7 @@ import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateConnectionRequest; import com.google.cloud.oracledatabase.v1.UpdateGoldengateDeploymentRequest; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.UpdateOdbSubnetRequest; import com.google.common.collect.ImmutableList; @@ -560,6 +561,9 @@ public class OracleDatabaseStubSettings extends StubSettings createOdbDnsZoneSettings; private final OperationCallSettings createOdbDnsZoneOperationSettings; + private final UnaryCallSettings updateOdbDnsZoneSettings; + private final OperationCallSettings + updateOdbDnsZoneOperationSettings; private final UnaryCallSettings deleteOdbDnsZoneSettings; private final OperationCallSettings deleteOdbDnsZoneOperationSettings; @@ -3563,6 +3567,17 @@ public UnaryCallSettings createOdbDnsZoneSet return createOdbDnsZoneOperationSettings; } + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings updateOdbDnsZoneSettings() { + return updateOdbDnsZoneSettings; + } + + /** Returns the object with the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings + updateOdbDnsZoneOperationSettings() { + return updateOdbDnsZoneOperationSettings; + } + /** Returns the object with the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings deleteOdbDnsZoneSettings() { return deleteOdbDnsZoneSettings; @@ -4339,6 +4354,8 @@ protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException getOdbDnsZoneSettings = settingsBuilder.getOdbDnsZoneSettings().build(); createOdbDnsZoneSettings = settingsBuilder.createOdbDnsZoneSettings().build(); createOdbDnsZoneOperationSettings = settingsBuilder.createOdbDnsZoneOperationSettings().build(); + updateOdbDnsZoneSettings = settingsBuilder.updateOdbDnsZoneSettings().build(); + updateOdbDnsZoneOperationSettings = settingsBuilder.updateOdbDnsZoneOperationSettings().build(); deleteOdbDnsZoneSettings = settingsBuilder.deleteOdbDnsZoneSettings().build(); deleteOdbDnsZoneOperationSettings = settingsBuilder.deleteOdbDnsZoneOperationSettings().build(); listExadbVmClustersSettings = settingsBuilder.listExadbVmClustersSettings().build(); @@ -4697,6 +4714,11 @@ public static class Builder extends StubSettings.Builder createOdbDnsZoneOperationSettings; + private final UnaryCallSettings.Builder + updateOdbDnsZoneSettings; + private final OperationCallSettings.Builder< + UpdateOdbDnsZoneRequest, OdbDnsZone, OperationMetadata> + updateOdbDnsZoneOperationSettings; private final UnaryCallSettings.Builder deleteOdbDnsZoneSettings; private final OperationCallSettings.Builder @@ -5075,6 +5097,8 @@ protected Builder(@Nullable ClientContext clientContext) { getOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createOdbDnsZoneOperationSettings = OperationCallSettings.newBuilder(); + updateOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOdbDnsZoneOperationSettings = OperationCallSettings.newBuilder(); deleteOdbDnsZoneSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteOdbDnsZoneOperationSettings = OperationCallSettings.newBuilder(); listExadbVmClustersSettings = @@ -5228,6 +5252,7 @@ protected Builder(@Nullable ClientContext clientContext) { listOdbDnsZonesSettings, getOdbDnsZoneSettings, createOdbDnsZoneSettings, + updateOdbDnsZoneSettings, deleteOdbDnsZoneSettings, listExadbVmClustersSettings, getExadbVmClusterSettings, @@ -5406,6 +5431,8 @@ protected Builder(OracleDatabaseStubSettings settings) { getOdbDnsZoneSettings = settings.getOdbDnsZoneSettings.toBuilder(); createOdbDnsZoneSettings = settings.createOdbDnsZoneSettings.toBuilder(); createOdbDnsZoneOperationSettings = settings.createOdbDnsZoneOperationSettings.toBuilder(); + updateOdbDnsZoneSettings = settings.updateOdbDnsZoneSettings.toBuilder(); + updateOdbDnsZoneOperationSettings = settings.updateOdbDnsZoneOperationSettings.toBuilder(); deleteOdbDnsZoneSettings = settings.deleteOdbDnsZoneSettings.toBuilder(); deleteOdbDnsZoneOperationSettings = settings.deleteOdbDnsZoneOperationSettings.toBuilder(); listExadbVmClustersSettings = settings.listExadbVmClustersSettings.toBuilder(); @@ -5580,6 +5607,7 @@ protected Builder(OracleDatabaseStubSettings settings) { listOdbDnsZonesSettings, getOdbDnsZoneSettings, createOdbDnsZoneSettings, + updateOdbDnsZoneSettings, deleteOdbDnsZoneSettings, listExadbVmClustersSettings, getExadbVmClusterSettings, @@ -5923,6 +5951,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .updateOdbDnsZoneSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder .deleteOdbDnsZoneSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -6891,6 +6924,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .updateOdbDnsZoneOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OdbDnsZone.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + builder .deleteOdbDnsZoneOperationSettings() .setInitialCallSettings( @@ -8082,6 +8139,18 @@ public UnaryCallSettings.Builder getOdbDnsZone return createOdbDnsZoneOperationSettings; } + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public UnaryCallSettings.Builder + updateOdbDnsZoneSettings() { + return updateOdbDnsZoneSettings; + } + + /** Returns the builder for the settings used for calls to updateOdbDnsZone. */ + public OperationCallSettings.Builder + updateOdbDnsZoneOperationSettings() { + return updateOdbDnsZoneOperationSettings; + } + /** Returns the builder for the settings used for calls to deleteOdbDnsZone. */ public UnaryCallSettings.Builder deleteOdbDnsZoneSettings() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json index 1c5b86cb0e06..54cee89f6e01 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/resources/META-INF/native-image/com.google.cloud.oracledatabase.v1/reflect-config.json @@ -6767,6 +6767,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.oracledatabase.v1.UpdateOdbNetworkRequest", "queryAllDeclaredConstructors": true, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java index 915f6823edde..8d651bc6fb4a 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java @@ -1198,6 +1198,27 @@ public void createOdbDnsZone( } } + @Override + public void updateOdbDnsZone( + UpdateOdbDnsZoneRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateOdbDnsZone, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteOdbDnsZone( DeleteOdbDnsZoneRequest request, StreamObserver responseObserver) { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java index a6e88cff23c5..fa48fccd527c 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java @@ -6500,6 +6500,78 @@ public void createOdbDnsZoneExceptionTest2() throws Exception { } } + @Test + public void updateOdbDnsZoneTest() throws Exception { + OdbDnsZone expectedResponse = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOdbDnsZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OdbDnsZone odbDnsZone = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + OdbDnsZone actualResponse = client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateOdbDnsZoneExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OdbDnsZone odbDnsZone = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void deleteOdbDnsZoneTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java index 000cecdee4e9..5dc3348ff184 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java @@ -5942,6 +5942,60 @@ public void createOdbDnsZoneExceptionTest2() throws Exception { } } + @Test + public void updateOdbDnsZoneTest() throws Exception { + OdbDnsZone expectedResponse = + OdbDnsZone.newBuilder() + .setName( + OdbDnsZoneName.of("[PROJECT]", "[LOCATION]", "[ODB_NETWORK]", "[ODB_DNS_ZONE]") + .toString()) + .setDomain("domain-1326197564") + .putAllLabels(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOdbDnsZoneTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOracleDatabase.addResponse(resultOperation); + + OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + OdbDnsZone actualResponse = client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOracleDatabase.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateOdbDnsZoneRequest actualRequest = ((UpdateOdbDnsZoneRequest) actualRequests.get(0)); + + Assert.assertEquals(odbDnsZone, actualRequest.getOdbDnsZone()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateOdbDnsZoneExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOracleDatabase.addException(exception); + + try { + OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void deleteOdbDnsZoneTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java index 39c5052d3158..cccce1c42b16 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java @@ -2633,6 +2633,52 @@ private OracleDatabaseGrpc() {} return getCreateOdbDnsZoneMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation> + getUpdateOdbDnsZoneMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOdbDnsZone", + requestType = com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation> + getUpdateOdbDnsZoneMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation> + getUpdateOdbDnsZoneMethod; + if ((getUpdateOdbDnsZoneMethod = OracleDatabaseGrpc.getUpdateOdbDnsZoneMethod) == null) { + synchronized (OracleDatabaseGrpc.class) { + if ((getUpdateOdbDnsZoneMethod = OracleDatabaseGrpc.getUpdateOdbDnsZoneMethod) == null) { + OracleDatabaseGrpc.getUpdateOdbDnsZoneMethod = + getUpdateOdbDnsZoneMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOdbDnsZone")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OracleDatabaseMethodDescriptorSupplier("UpdateOdbDnsZone")) + .build(); + } + } + } + return getUpdateOdbDnsZoneMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.DeleteOdbDnsZoneRequest, com.google.longrunning.Operation> @@ -6212,6 +6258,20 @@ default void createOdbDnsZone( getCreateOdbDnsZoneMethod(), responseObserver); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + default void updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOdbDnsZoneMethod(), responseObserver); + } + /** * * @@ -7923,6 +7983,22 @@ public void createOdbDnsZone( responseObserver); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public void updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOdbDnsZoneMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -9617,6 +9693,20 @@ public com.google.longrunning.Operation createOdbDnsZone( getChannel(), getCreateOdbDnsZoneMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public com.google.longrunning.Operation updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateOdbDnsZoneMethod(), getCallOptions(), request); + } + /** * * @@ -11124,6 +11214,19 @@ public com.google.longrunning.Operation createOdbDnsZone( getChannel(), getCreateOdbDnsZoneMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public com.google.longrunning.Operation updateOdbDnsZone( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOdbDnsZoneMethod(), getCallOptions(), request); + } + /** * * @@ -12625,6 +12728,19 @@ protected OracleDatabaseFutureStub build( getChannel().newCall(getCreateOdbDnsZoneMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates the `labels` of a single ODB DNS Zone.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateOdbDnsZone(com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOdbDnsZoneMethod(), getCallOptions()), request); + } + /** * * @@ -13475,60 +13591,61 @@ protected OracleDatabaseFutureStub build( private static final int METHODID_LIST_ODB_DNS_ZONES = 49; private static final int METHODID_GET_ODB_DNS_ZONE = 50; private static final int METHODID_CREATE_ODB_DNS_ZONE = 51; - private static final int METHODID_DELETE_ODB_DNS_ZONE = 52; - private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 53; - private static final int METHODID_GET_EXADB_VM_CLUSTER = 54; - private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 55; - private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 56; - private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 57; - private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 58; - private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 59; - private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 60; - private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 61; - private static final int METHODID_UPDATE_EXASCALE_DB_STORAGE_VAULT = 62; - private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 63; - private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 64; - private static final int METHODID_LIST_DB_SYSTEM_COMPUTE_PERFORMANCES = 65; - private static final int METHODID_LIST_DATABASES = 66; - private static final int METHODID_GET_DATABASE = 67; - private static final int METHODID_LIST_PLUGGABLE_DATABASES = 68; - private static final int METHODID_GET_PLUGGABLE_DATABASE = 69; - private static final int METHODID_LIST_DB_SYSTEMS = 70; - private static final int METHODID_GET_DB_SYSTEM = 71; - private static final int METHODID_CREATE_DB_SYSTEM = 72; - private static final int METHODID_UPDATE_DB_SYSTEM = 73; - private static final int METHODID_DELETE_DB_SYSTEM = 74; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENTS = 75; - private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT = 76; - private static final int METHODID_CREATE_GOLDENGATE_DEPLOYMENT = 77; - private static final int METHODID_UPDATE_GOLDENGATE_DEPLOYMENT = 78; - private static final int METHODID_DELETE_GOLDENGATE_DEPLOYMENT = 79; - private static final int METHODID_STOP_GOLDENGATE_DEPLOYMENT = 80; - private static final int METHODID_START_GOLDENGATE_DEPLOYMENT = 81; - private static final int METHODID_LIST_GOLDENGATE_CONNECTIONS = 82; - private static final int METHODID_GET_GOLDENGATE_CONNECTION = 83; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 84; - private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION = 85; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 86; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 87; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 88; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 89; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 90; - private static final int METHODID_LIST_DB_VERSIONS = 91; - private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 92; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 93; - private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 94; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 95; - private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 96; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 97; - private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 98; - private static final int METHODID_LIST_DATABASE_CONNECTIONS = 99; - private static final int METHODID_GET_DATABASE_CONNECTION = 100; - private static final int METHODID_CREATE_DATABASE_CONNECTION = 101; - private static final int METHODID_UPDATE_DATABASE_CONNECTION = 102; - private static final int METHODID_DELETE_DATABASE_CONNECTION = 103; - private static final int METHODID_TEST_DATABASE_CONNECTION = 104; - private static final int METHODID_EXECUTE_SQL = 105; + private static final int METHODID_UPDATE_ODB_DNS_ZONE = 52; + private static final int METHODID_DELETE_ODB_DNS_ZONE = 53; + private static final int METHODID_LIST_EXADB_VM_CLUSTERS = 54; + private static final int METHODID_GET_EXADB_VM_CLUSTER = 55; + private static final int METHODID_CREATE_EXADB_VM_CLUSTER = 56; + private static final int METHODID_DELETE_EXADB_VM_CLUSTER = 57; + private static final int METHODID_UPDATE_EXADB_VM_CLUSTER = 58; + private static final int METHODID_REMOVE_VIRTUAL_MACHINE_EXADB_VM_CLUSTER = 59; + private static final int METHODID_LIST_EXASCALE_DB_STORAGE_VAULTS = 60; + private static final int METHODID_GET_EXASCALE_DB_STORAGE_VAULT = 61; + private static final int METHODID_CREATE_EXASCALE_DB_STORAGE_VAULT = 62; + private static final int METHODID_UPDATE_EXASCALE_DB_STORAGE_VAULT = 63; + private static final int METHODID_DELETE_EXASCALE_DB_STORAGE_VAULT = 64; + private static final int METHODID_LIST_DB_SYSTEM_INITIAL_STORAGE_SIZES = 65; + private static final int METHODID_LIST_DB_SYSTEM_COMPUTE_PERFORMANCES = 66; + private static final int METHODID_LIST_DATABASES = 67; + private static final int METHODID_GET_DATABASE = 68; + private static final int METHODID_LIST_PLUGGABLE_DATABASES = 69; + private static final int METHODID_GET_PLUGGABLE_DATABASE = 70; + private static final int METHODID_LIST_DB_SYSTEMS = 71; + private static final int METHODID_GET_DB_SYSTEM = 72; + private static final int METHODID_CREATE_DB_SYSTEM = 73; + private static final int METHODID_UPDATE_DB_SYSTEM = 74; + private static final int METHODID_DELETE_DB_SYSTEM = 75; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENTS = 76; + private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT = 77; + private static final int METHODID_CREATE_GOLDENGATE_DEPLOYMENT = 78; + private static final int METHODID_UPDATE_GOLDENGATE_DEPLOYMENT = 79; + private static final int METHODID_DELETE_GOLDENGATE_DEPLOYMENT = 80; + private static final int METHODID_STOP_GOLDENGATE_DEPLOYMENT = 81; + private static final int METHODID_START_GOLDENGATE_DEPLOYMENT = 82; + private static final int METHODID_LIST_GOLDENGATE_CONNECTIONS = 83; + private static final int METHODID_GET_GOLDENGATE_CONNECTION = 84; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 85; + private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION = 86; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 87; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 88; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 89; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 90; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 91; + private static final int METHODID_LIST_DB_VERSIONS = 92; + private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 93; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 94; + private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 95; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 96; + private static final int METHODID_UPDATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 97; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 98; + private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 99; + private static final int METHODID_LIST_DATABASE_CONNECTIONS = 100; + private static final int METHODID_GET_DATABASE_CONNECTION = 101; + private static final int METHODID_CREATE_DATABASE_CONNECTION = 102; + private static final int METHODID_UPDATE_DATABASE_CONNECTION = 103; + private static final int METHODID_DELETE_DATABASE_CONNECTION = 104; + private static final int METHODID_TEST_DATABASE_CONNECTION = 105; + private static final int METHODID_EXECUTE_SQL = 106; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -13858,6 +13975,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.oracledatabase.v1.CreateOdbDnsZoneRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ODB_DNS_ZONE: + serviceImpl.updateOdbDnsZone( + (com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_ODB_DNS_ZONE: serviceImpl.deleteOdbDnsZone( (com.google.cloud.oracledatabase.v1.DeleteOdbDnsZoneRequest) request, @@ -14562,6 +14684,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.oracledatabase.v1.CreateOdbDnsZoneRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_ODB_DNS_ZONE))) + .addMethod( + getUpdateOdbDnsZoneMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ODB_DNS_ZONE))) .addMethod( getDeleteOdbDnsZoneMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -15035,6 +15163,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListOdbDnsZonesMethod()) .addMethod(getGetOdbDnsZoneMethod()) .addMethod(getCreateOdbDnsZoneMethod()) + .addMethod(getUpdateOdbDnsZoneMethod()) .addMethod(getDeleteOdbDnsZoneMethod()) .addMethod(getListExadbVmClustersMethod()) .addMethod(getGetExadbVmClusterMethod()) diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java index 8417a076dd16..f8223e5836e2 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OdbDnsZoneProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_GetOdbDnsZoneRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_GetOdbDnsZoneRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -80,15 +84,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "1google/cloud/oracledatabase/v1/odb_dns_zone.proto\022\036google.cloud.oracledatabase" + ".v1\032\037google/api/field_behavior.proto\032\033go" - + "ogle/api/field_info.proto\032\031google/api/re" - + "source.proto\032\037google/protobuf/timestamp.proto\"\306\004\n\n" + + "ogle/api/field_info.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\306\004\n\n" + "OdbDnsZone\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\025\n" + "\006domain\030\002 \001(\tB\005\342A\002\002\005\022L\n" - + "\006labels\030\003 \003(\0132" - + "6.google.cloud.oracledatabase.v1.OdbDnsZone.LabelsEntryB\004\342A\001\001\022E\n" - + "\005state\030\004 \001(\01620.g" - + "oogle.cloud.oracledatabase.v1.OdbDnsZone.StateB\004\342A\001\003\0225\n" + + "\006labels\030\003 \003(\01326.goog" + + "le.cloud.oracledatabase.v1.OdbDnsZone.LabelsEntryB\004\342A\001\001\022E\n" + + "\005state\030\004 \001(\01620.google." + + "cloud.oracledatabase.v1.OdbDnsZone.StateB\004\342A\001\003\0225\n" + "\013create_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\032-\n" + "\013LabelsEntry\022\013\n" @@ -96,18 +100,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"j\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\020\n" - + "\014PROVISIONING\020\001\022\r\n" + + "\014PROVISIONING\020\001\022\r" + + "\n" + "\tAVAILABLE\020\002\022\014\n" + "\010INACTIVE\020\003\022\017\n" + "\013TERMINATING\020\004\022\n\n" + "\006FAILED\020\005:\245\001\352A\241\001\n" - + "(oracledatabase.googleapis.com/OdbDnsZone\022\\project" - + "s/{project}/locations/{location}/odbNetw" - + "orks/{odb_network}/odbDnsZones/{odb_dns_zone}*\013odbDnsZones2\n" + + "(oracledatabase.googleapis.com/OdbDnsZone\022\\projects/{pro" + + "ject}/locations/{location}/odbNetworks/{" + + "odb_network}/odbDnsZones/{odb_dns_zone}*\013odbDnsZones2\n" + "odbDnsZone\"\345\001\n" + "\027CreateOdbDnsZoneRequest\022A\n" - + "\006parent\030\001 \001(\tB1\342A\001\002" - + "\372A*\022(oracledatabase.googleapis.com/OdbDnsZone\022\035\n" + + "\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(o" + + "racledatabase.googleapis.com/OdbDnsZone\022\035\n" + "\017odb_dns_zone_id\030\002 \001(\tB\004\342A\001\002\022F\n" + "\014odb_dns_zone\030\003" + " \001(\0132*.google.cloud.oracledatabase.v1.OdbDnsZoneB\004\342A\001\002\022 \n\n" @@ -118,8 +123,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "request_id\030\002 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\274\001\n" + "\026ListOdbDnsZonesRequest\022A\n" - + "\006parent\030\001 \001(\tB1\342A\001\002\372A*" - + "\022(oracledatabase.googleapis.com/OdbDnsZone\022\027\n" + + "\006parent\030\001 \001(" + + "\tB1\342A\001\002\372A*\022(oracledatabase.googleapis.com/OdbDnsZone\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" @@ -130,12 +135,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"W\n" + "\024GetOdbDnsZoneRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" - + "(oracledatabase.googleapis.com/OdbDnsZoneB\351\001\n" - + "\"com.google.cloud.oracledatabase.v1B\017OdbDnsZoneProtoP\001ZJcloud.googl" - + "e.com/go/oracledatabase/apiv1/oracledata" - + "basepb;oracledatabasepb\252\002\036Google.Cloud.O" - + "racleDatabase.V1\312\002\036Google\\Cloud\\OracleDa" - + "tabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "(oracledatabase.googleapis.com/OdbDnsZone\"\272\001\n" + + "\027UpdateOdbDnsZoneRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022F\n" + + "\014odb_dns_zone\030\002" + + " \001(\0132*.google.cloud.oracledatabase.v1.OdbDnsZoneB\004\342A\001\002\022 \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001B\351\001\n" + + "\"com.google.cloud.oracledatabase.v1B\017OdbDnsZ" + + "oneProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledata" + + "basepb\252\002\036Google.Cloud.OracleDatabase.V1\312" + + "\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!Googl" + + "e::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -144,6 +156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.FieldInfoProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_oracledatabase_v1_OdbDnsZone_descriptor = @@ -202,10 +215,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "OdbDnsZone", "RequestId", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java new file mode 100644 index 000000000000..28693b4af65e --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequest.java @@ -0,0 +1,1374 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/oracledatabase/v1/odb_dns_zone.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.oracledatabase.v1; + +/** + * + * + *
+ * The request for `OdbDnsZone.Update`.
+ * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest} + */ +@com.google.protobuf.Generated +public final class UpdateOdbDnsZoneRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + UpdateOdbDnsZoneRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateOdbDnsZoneRequest"); + } + + // Use UpdateOdbDnsZoneRequest.newBuilder() to construct. + private UpdateOdbDnsZoneRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateOdbDnsZoneRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.class, + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int ODB_DNS_ZONE_FIELD_NUMBER = 2; + private com.google.cloud.oracledatabase.v1.OdbDnsZone odbDnsZone_; + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbDnsZone field is set. + */ + @java.lang.Override + public boolean hasOdbDnsZone() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbDnsZone. + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbDnsZone getOdbDnsZone() { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder getOdbDnsZoneOrBuilder() { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getOdbDnsZone()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOdbDnsZone()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest)) { + return super.equals(obj); + } + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest other = + (com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasOdbDnsZone() != other.hasOdbDnsZone()) return false; + if (hasOdbDnsZone()) { + if (!getOdbDnsZone().equals(other.getOdbDnsZone())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasOdbDnsZone()) { + hash = (37 * hash) + ODB_DNS_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getOdbDnsZone().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The request for `OdbDnsZone.Update`.
+   * 
+ * + * Protobuf type {@code google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.class, + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.Builder.class); + } + + // Construct using com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetOdbDnsZoneFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + odbDnsZone_ = null; + if (odbDnsZoneBuilder_ != null) { + odbDnsZoneBuilder_.dispose(); + odbDnsZoneBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.oracledatabase.v1.OdbDnsZoneProto + .internal_static_google_cloud_oracledatabase_v1_UpdateOdbDnsZoneRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest getDefaultInstanceForType() { + return com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest build() { + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest buildPartial() { + com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest result = + new com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.odbDnsZone_ = odbDnsZoneBuilder_ == null ? odbDnsZone_ : odbDnsZoneBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) { + return mergeFrom((com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest other) { + if (other == com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasOdbDnsZone()) { + mergeOdbDnsZone(other.getOdbDnsZone()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetOdbDnsZoneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. A mask specifying which fields in the OdbDnsZone should be
+     * updated. A field specified in the mask is updated. If a mask isn't
+     * provided, the service treats this as an implied field mask equivalent to
+     * all fields that are populated (have a non-empty value). To clear or unset a
+     * field, the field must be explicitly specified in the `update_mask`.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.oracledatabase.v1.OdbDnsZone odbDnsZone_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.OdbDnsZone, + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder, + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder> + odbDnsZoneBuilder_; + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbDnsZone field is set. + */ + public boolean hasOdbDnsZone() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbDnsZone. + */ + public com.google.cloud.oracledatabase.v1.OdbDnsZone getOdbDnsZone() { + if (odbDnsZoneBuilder_ == null) { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } else { + return odbDnsZoneBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbDnsZone(com.google.cloud.oracledatabase.v1.OdbDnsZone value) { + if (odbDnsZoneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + odbDnsZone_ = value; + } else { + odbDnsZoneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOdbDnsZone( + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder builderForValue) { + if (odbDnsZoneBuilder_ == null) { + odbDnsZone_ = builderForValue.build(); + } else { + odbDnsZoneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOdbDnsZone(com.google.cloud.oracledatabase.v1.OdbDnsZone value) { + if (odbDnsZoneBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && odbDnsZone_ != null + && odbDnsZone_ != com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance()) { + getOdbDnsZoneBuilder().mergeFrom(value); + } else { + odbDnsZone_ = value; + } + } else { + odbDnsZoneBuilder_.mergeFrom(value); + } + if (odbDnsZone_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOdbDnsZone() { + bitField0_ = (bitField0_ & ~0x00000002); + odbDnsZone_ = null; + if (odbDnsZoneBuilder_ != null) { + odbDnsZoneBuilder_.dispose(); + odbDnsZoneBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder getOdbDnsZoneBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetOdbDnsZoneFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder getOdbDnsZoneOrBuilder() { + if (odbDnsZoneBuilder_ != null) { + return odbDnsZoneBuilder_.getMessageOrBuilder(); + } else { + return odbDnsZone_ == null + ? com.google.cloud.oracledatabase.v1.OdbDnsZone.getDefaultInstance() + : odbDnsZone_; + } + } + + /** + * + * + *
+     * Required. The resource being updated. Note only labels can be updated.
+     * The provided labels will completely replace the existing labels.
+     * Any existing label keys that are not included in the update request will be
+     * deleted. Not providing labels and update_mask will not update the labels.
+     * To clear all labels, specify `labels` in the `update_mask` and omit or
+     * leave the `labels` field empty in the update request.
+     * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.OdbDnsZone, + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder, + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder> + internalGetOdbDnsZoneFieldBuilder() { + if (odbDnsZoneBuilder_ == null) { + odbDnsZoneBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.oracledatabase.v1.OdbDnsZone, + com.google.cloud.oracledatabase.v1.OdbDnsZone.Builder, + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder>( + getOdbDnsZone(), getParentForChildren(), isClean()); + odbDnsZone_ = null; + } + return odbDnsZoneBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional ID to identify the request. This value is used to
+     * identify duplicate requests. If you make a request with the same request ID
+     * and the original request is still in progress or completed, the server
+     * ignores the second request. This prevents clients from
+     * accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + private static final com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest(); + } + + public static com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOdbDnsZoneRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java new file mode 100644 index 000000000000..c61ef23cb421 --- /dev/null +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/UpdateOdbDnsZoneRequestOrBuilder.java @@ -0,0 +1,182 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/oracledatabase/v1/odb_dns_zone.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.oracledatabase.v1; + +@com.google.protobuf.Generated +public interface UpdateOdbDnsZoneRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. A mask specifying which fields in the OdbDnsZone should be
+   * updated. A field specified in the mask is updated. If a mask isn't
+   * provided, the service treats this as an implied field mask equivalent to
+   * all fields that are populated (have a non-empty value). To clear or unset a
+   * field, the field must be explicitly specified in the `update_mask`.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the odbDnsZone field is set. + */ + boolean hasOdbDnsZone(); + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The odbDnsZone. + */ + com.google.cloud.oracledatabase.v1.OdbDnsZone getOdbDnsZone(); + + /** + * + * + *
+   * Required. The resource being updated. Note only labels can be updated.
+   * The provided labels will completely replace the existing labels.
+   * Any existing label keys that are not included in the update request will be
+   * deleted. Not providing labels and update_mask will not update the labels.
+   * To clear all labels, specify `labels` in the `update_mask` and omit or
+   * leave the `labels` field empty in the update request.
+   * 
+ * + * + * .google.cloud.oracledatabase.v1.OdbDnsZone odb_dns_zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.oracledatabase.v1.OdbDnsZoneOrBuilder getOdbDnsZoneOrBuilder(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional ID to identify the request. This value is used to
+   * identify duplicate requests. If you make a request with the same request ID
+   * and the original request is still in progress or completed, the server
+   * ignores the second request. This prevents clients from
+   * accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java index 46a5ec6f1340..e4dbb77743a9 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java @@ -595,7 +595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",oracledatabase.googleapis.com/CloudVmCluster\"t\n" + "-DisableExadbVmClusterIdentityConnectorRequest\022C\n" + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" - + ",oracledatabase.googleapis.com/ExadbVmCluster2\311\323\001\n" + + ",oracledatabase.googleapis.com/ExadbVmCluster2\326\325\001\n" + "\016OracleDatabase\022\204\002\n" + "\037ListCloudExadataInfrastructures\022F.google." + "cloud.oracledatabase.v1.ListCloudExadataInfrastructuresRequest\032G.google.cloud.or" @@ -901,375 +901,382 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tionMetadata\332A#parent,odb_dns_zone,odb_d" + "ns_zone_id\202\323\344\223\002M\"=/v1/{parent=projects/*" + "/locations/*/odbNetworks/*}/odbDnsZones:" - + "\014odb_dns_zone\022\345\001\n\020DeleteOdbDnsZone\0227.goo" - + "gle.cloud.oracledatabase.v1.DeleteOdbDns" + + "\014odb_dns_zone\022\212\002\n\020UpdateOdbDnsZone\0227.goo" + + "gle.cloud.oracledatabase.v1.UpdateOdbDns" + "ZoneRequest\032\035.google.longrunning.Operati" - + "on\"y\312A*\n\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\002?*=/v1/{name=projec" - + "ts/*/locations/*/odbNetworks/*/odbDnsZon" - + "es/*}\022\324\001\n\023ListExadbVmClusters\022:.google.c" - + "loud.oracledatabase.v1.ListExadbVmCluste" - + "rsRequest\032;.google.cloud.oracledatabase." - + "v1.ListExadbVmClustersResponse\"D\332A\006paren" - + "t\202\323\344\223\0025\0223/v1/{parent=projects/*/location" - + "s/*}/exadbVmClusters\022\301\001\n\021GetExadbVmClust" - + "er\0228.google.cloud.oracledatabase.v1.GetE" - + "xadbVmClusterRequest\032..google.cloud.orac" - + "ledatabase.v1.ExadbVmCluster\"B\332A\004name\202\323\344" - + "\223\0025\0223/v1/{name=projects/*/locations/*/ex" - + "adbVmClusters/*}\022\226\002\n\024CreateExadbVmCluste" - + "r\022;.google.cloud.oracledatabase.v1.Creat" - + "eExadbVmClusterRequest\032\035.google.longrunn" - + "ing.Operation\"\241\001\312A#\n\016ExadbVmCluster\022\021Ope" - + "rationMetadata\332A+parent,exadb_vm_cluster" - + ",exadb_vm_cluster_id\202\323\344\223\002G\"3/v1/{parent=" - + "projects/*/locations/*}/exadbVmClusters:" - + "\020exadb_vm_cluster\022\343\001\n\024DeleteExadbVmClust" - + "er\022;.google.cloud.oracledatabase.v1.Dele" - + "teExadbVmClusterRequest\032\035.google.longrun" - + "ning.Operation\"o\312A*\n\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\0025*3/v1/" - + "{name=projects/*/locations/*/exadbVmClus" - + "ters/*}\022\230\002\n\024UpdateExadbVmCluster\022;.googl" - + "e.cloud.oracledatabase.v1.UpdateExadbVmC" - + "lusterRequest\032\035.google.longrunning.Opera" - + "tion\"\243\001\312A#\n\016ExadbVmCluster\022\021OperationMet" - + "adata\332A\034exadb_vm_cluster,update_mask\202\323\344\223" - + "\002X2D/v1/{exadb_vm_cluster.name=projects/" - + "*/locations/*/exadbVmClusters/*}:\020exadb_" - + "vm_cluster\022\233\002\n\"RemoveVirtualMachineExadb" - + "VmCluster\022I.google.cloud.oracledatabase." - + "v1.RemoveVirtualMachineExadbVmClusterReq" - + "uest\032\035.google.longrunning.Operation\"\212\001\312A" - + "#\n\016ExadbVmCluster\022\021OperationMetadata\332A\016n" - + "ame,hostnames\202\323\344\223\002M\"H/v1/{name=projects/" - + "*/locations/*/exadbVmClusters/*}:removeV" - + "irtualMachine:\001*\022\364\001\n\033ListExascaleDbStora" - + "geVaults\022B.google.cloud.oracledatabase.v" - + "1.ListExascaleDbStorageVaultsRequest\032C.g" - + "oogle.cloud.oracledatabase.v1.ListExasca" - + "leDbStorageVaultsResponse\"L\332A\006parent\202\323\344\223" - + "\002=\022;/v1/{parent=projects/*/locations/*}/" - + "exascaleDbStorageVaults\022\341\001\n\031GetExascaleD" - + "bStorageVault\022@.google.cloud.oracledatab" - + "ase.v1.GetExascaleDbStorageVaultRequest\032" - + "6.google.cloud.oracledatabase.v1.Exascal" - + "eDbStorageVault\"J\332A\004name\202\323\344\223\002=\022;/v1/{nam" - + "e=projects/*/locations/*/exascaleDbStora" - + "geVaults/*}\022\321\002\n\034CreateExascaleDbStorageV" - + "ault\022C.google.cloud.oracledatabase.v1.Cr" - + "eateExascaleDbStorageVaultRequest\032\035.goog" - + "le.longrunning.Operation\"\314\001\312A+\n\026Exascale" - + "DbStorageVault\022\021OperationMetadata\332A=pare" - + "nt,exascale_db_storage_vault,exascale_db" - + "_storage_vault_id\202\323\344\223\002X\";/v1/{parent=pro" - + "jects/*/locations/*}/exascaleDbStorageVa" - + "ults:\031exascale_db_storage_vault\022\323\002\n\034Upda" - + "teExascaleDbStorageVault\022C.google.cloud." - + "oracledatabase.v1.UpdateExascaleDbStorag" - + "eVaultRequest\032\035.google.longrunning.Opera" - + "tion\"\316\001\312A+\n\026ExascaleDbStorageVault\022\021Oper" - + "ationMetadata\332A%exascale_db_storage_vaul" - + "t,update_mask\202\323\344\223\002r2U/v1/{exascale_db_st" - + "orage_vault.name=projects/*/locations/*/" - + "exascaleDbStorageVaults/*}:\031exascale_db_" - + "storage_vault\022\373\001\n\034DeleteExascaleDbStorag" - + "eVault\022C.google.cloud.oracledatabase.v1." - + "DeleteExascaleDbStorageVaultRequest\032\035.go" - + "ogle.longrunning.Operation\"w\312A*\n\025google." - + "protobuf.Empty\022\021OperationMetadata\332A\004name" - + "\202\323\344\223\002=*;/v1/{name=projects/*/locations/*" - + "/exascaleDbStorageVaults/*}\022\204\002\n\037ListDbSy" - + "stemInitialStorageSizes\022F.google.cloud.o" - + "racledatabase.v1.ListDbSystemInitialStor" - + "ageSizesRequest\032G.google.cloud.oracledat" - + "abase.v1.ListDbSystemInitialStorageSizes" - + "Response\"P\332A\006parent\202\323\344\223\002A\022?/v1/{parent=p" - + "rojects/*/locations/*}/dbSystemInitialSt" - + "orageSizes\022\204\002\n\037ListDbSystemComputePerfor" - + "mances\022F.google.cloud.oracledatabase.v1." - + "ListDbSystemComputePerformancesRequest\032G" + + "on\"\235\001\312A\037\n\nOdbDnsZone\022\021OperationMetadata\332" + + "A\030odb_dns_zone,update_mask\202\323\344\223\002Z2J/v1/{o" + + "db_dns_zone.name=projects/*/locations/*/" + + "odbNetworks/*/odbDnsZones/*}:\014odb_dns_zo" + + "ne\022\345\001\n\020DeleteOdbDnsZone\0227.google.cloud.o" + + "racledatabase.v1.DeleteOdbDnsZoneRequest" + + "\032\035.google.longrunning.Operation\"y\312A*\n\025go" + + "ogle.protobuf.Empty\022\021OperationMetadata\332A" + + "\004name\202\323\344\223\002?*=/v1/{name=projects/*/locati" + + "ons/*/odbNetworks/*/odbDnsZones/*}\022\324\001\n\023L" + + "istExadbVmClusters\022:.google.cloud.oracle" + + "database.v1.ListExadbVmClustersRequest\032;" + + ".google.cloud.oracledatabase.v1.ListExad" + + "bVmClustersResponse\"D\332A\006parent\202\323\344\223\0025\0223/v" + + "1/{parent=projects/*/locations/*}/exadbV" + + "mClusters\022\301\001\n\021GetExadbVmCluster\0228.google" + + ".cloud.oracledatabase.v1.GetExadbVmClust" + + "erRequest\032..google.cloud.oracledatabase." + + "v1.ExadbVmCluster\"B\332A\004name\202\323\344\223\0025\0223/v1/{n" + + "ame=projects/*/locations/*/exadbVmCluste" + + "rs/*}\022\226\002\n\024CreateExadbVmCluster\022;.google." + + "cloud.oracledatabase.v1.CreateExadbVmClu" + + "sterRequest\032\035.google.longrunning.Operati" + + "on\"\241\001\312A#\n\016ExadbVmCluster\022\021OperationMetad" + + "ata\332A+parent,exadb_vm_cluster,exadb_vm_c" + + "luster_id\202\323\344\223\002G\"3/v1/{parent=projects/*/" + + "locations/*}/exadbVmClusters:\020exadb_vm_c" + + "luster\022\343\001\n\024DeleteExadbVmCluster\022;.google" + + ".cloud.oracledatabase.v1.DeleteExadbVmCl" + + "usterRequest\032\035.google.longrunning.Operat" + + "ion\"o\312A*\n\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\0025*3/v1/{name=proje" + + "cts/*/locations/*/exadbVmClusters/*}\022\230\002\n" + + "\024UpdateExadbVmCluster\022;.google.cloud.ora" + + "cledatabase.v1.UpdateExadbVmClusterReque" + + "st\032\035.google.longrunning.Operation\"\243\001\312A#\n" + + "\016ExadbVmCluster\022\021OperationMetadata\332A\034exa" + + "db_vm_cluster,update_mask\202\323\344\223\002X2D/v1/{ex" + + "adb_vm_cluster.name=projects/*/locations" + + "/*/exadbVmClusters/*}:\020exadb_vm_cluster\022" + + "\233\002\n\"RemoveVirtualMachineExadbVmCluster\022I" + + ".google.cloud.oracledatabase.v1.RemoveVi" + + "rtualMachineExadbVmClusterRequest\032\035.goog" + + "le.longrunning.Operation\"\212\001\312A#\n\016ExadbVmC" + + "luster\022\021OperationMetadata\332A\016name,hostnam" + + "es\202\323\344\223\002M\"H/v1/{name=projects/*/locations" + + "/*/exadbVmClusters/*}:removeVirtualMachi" + + "ne:\001*\022\364\001\n\033ListExascaleDbStorageVaults\022B." + + "google.cloud.oracledatabase.v1.ListExasc" + + "aleDbStorageVaultsRequest\032C.google.cloud" + + ".oracledatabase.v1.ListExascaleDbStorage" + + "VaultsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1/{pa" + + "rent=projects/*/locations/*}/exascaleDbS" + + "torageVaults\022\341\001\n\031GetExascaleDbStorageVau" + + "lt\022@.google.cloud.oracledatabase.v1.GetE" + + "xascaleDbStorageVaultRequest\0326.google.cl" + + "oud.oracledatabase.v1.ExascaleDbStorageV" + + "ault\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/" + + "*/locations/*/exascaleDbStorageVaults/*}" + + "\022\321\002\n\034CreateExascaleDbStorageVault\022C.goog" + + "le.cloud.oracledatabase.v1.CreateExascal" + + "eDbStorageVaultRequest\032\035.google.longrunn" + + "ing.Operation\"\314\001\312A+\n\026ExascaleDbStorageVa" + + "ult\022\021OperationMetadata\332A=parent,exascale" + + "_db_storage_vault,exascale_db_storage_va" + + "ult_id\202\323\344\223\002X\";/v1/{parent=projects/*/loc" + + "ations/*}/exascaleDbStorageVaults:\031exasc" + + "ale_db_storage_vault\022\323\002\n\034UpdateExascaleD" + + "bStorageVault\022C.google.cloud.oracledatab" + + "ase.v1.UpdateExascaleDbStorageVaultReque" + + "st\032\035.google.longrunning.Operation\"\316\001\312A+\n" + + "\026ExascaleDbStorageVault\022\021OperationMetada" + + "ta\332A%exascale_db_storage_vault,update_ma" + + "sk\202\323\344\223\002r2U/v1/{exascale_db_storage_vault" + + ".name=projects/*/locations/*/exascaleDbS" + + "torageVaults/*}:\031exascale_db_storage_vau" + + "lt\022\373\001\n\034DeleteExascaleDbStorageVault\022C.go" + + "ogle.cloud.oracledatabase.v1.DeleteExasc" + + "aleDbStorageVaultRequest\032\035.google.longru" + + "nning.Operation\"w\312A*\n\025google.protobuf.Em" + + "pty\022\021OperationMetadata\332A\004name\202\323\344\223\002=*;/v1" + + "/{name=projects/*/locations/*/exascaleDb" + + "StorageVaults/*}\022\204\002\n\037ListDbSystemInitial" + + "StorageSizes\022F.google.cloud.oracledataba" + + "se.v1.ListDbSystemInitialStorageSizesReq" + + "uest\032G.google.cloud.oracledatabase.v1.Li" + + "stDbSystemInitialStorageSizesResponse\"P\332" + + "A\006parent\202\323\344\223\002A\022?/v1/{parent=projects/*/l" + + "ocations/*}/dbSystemInitialStorageSizes\022" + + "\204\002\n\037ListDbSystemComputePerformances\022F.go" + + "ogle.cloud.oracledatabase.v1.ListDbSyste" + + "mComputePerformancesRequest\032G.google.clo" + + "ud.oracledatabase.v1.ListDbSystemCompute" + + "PerformancesResponse\"P\332A\006parent\202\323\344\223\002A\022?/" + + "v1/{parent=projects/*/locations/*}/dbSys" + + "temComputePerformances\022\274\001\n\rListDatabases" + + "\0224.google.cloud.oracledatabase.v1.ListDa" + + "tabasesRequest\0325.google.cloud.oracledata" + + "base.v1.ListDatabasesResponse\">\332A\006parent" + + "\202\323\344\223\002/\022-/v1/{parent=projects/*/locations" + + "/*}/databases\022\251\001\n\013GetDatabase\0222.google.c" + + "loud.oracledatabase.v1.GetDatabaseReques" + + "t\032(.google.cloud.oracledatabase.v1.Datab" + + "ase\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*" + + "/locations/*/databases/*}\022\340\001\n\026ListPlugga" + + "bleDatabases\022=.google.cloud.oracledataba" + + "se.v1.ListPluggableDatabasesRequest\032>.go" + + "ogle.cloud.oracledatabase.v1.ListPluggab" + + "leDatabasesResponse\"G\332A\006parent\202\323\344\223\0028\0226/v" + + "1/{parent=projects/*/locations/*}/plugga" + + "bleDatabases\022\315\001\n\024GetPluggableDatabase\022;." + + "google.cloud.oracledatabase.v1.GetPlugga" + + "bleDatabaseRequest\0321.google.cloud.oracle" + + "database.v1.PluggableDatabase\"E\332A\004name\202\323" + + "\344\223\0028\0226/v1/{name=projects/*/locations/*/p" + + "luggableDatabases/*}\022\274\001\n\rListDbSystems\0224" + ".google.cloud.oracledatabase.v1.ListDbSy" - + "stemComputePerformancesResponse\"P\332A\006pare" - + "nt\202\323\344\223\002A\022?/v1/{parent=projects/*/locatio" - + "ns/*}/dbSystemComputePerformances\022\274\001\n\rLi" - + "stDatabases\0224.google.cloud.oracledatabas" - + "e.v1.ListDatabasesRequest\0325.google.cloud" - + ".oracledatabase.v1.ListDatabasesResponse" - + "\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/" - + "*/locations/*}/databases\022\251\001\n\013GetDatabase" - + "\0222.google.cloud.oracledatabase.v1.GetDat" - + "abaseRequest\032(.google.cloud.oracledataba" - + "se.v1.Database\"<\332A\004name\202\323\344\223\002/\022-/v1/{name" - + "=projects/*/locations/*/databases/*}\022\340\001\n" - + "\026ListPluggableDatabases\022=.google.cloud.o" - + "racledatabase.v1.ListPluggableDatabasesR" - + "equest\032>.google.cloud.oracledatabase.v1." - + "ListPluggableDatabasesResponse\"G\332A\006paren" - + "t\202\323\344\223\0028\0226/v1/{parent=projects/*/location" - + "s/*}/pluggableDatabases\022\315\001\n\024GetPluggable" - + "Database\022;.google.cloud.oracledatabase.v" - + "1.GetPluggableDatabaseRequest\0321.google.c" - + "loud.oracledatabase.v1.PluggableDatabase" - + "\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/lo" - + "cations/*/pluggableDatabases/*}\022\274\001\n\rList" - + "DbSystems\0224.google.cloud.oracledatabase." - + "v1.ListDbSystemsRequest\0325.google.cloud.o" - + "racledatabase.v1.ListDbSystemsResponse\">" - + "\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/" - + "locations/*}/dbSystems\022\251\001\n\013GetDbSystem\0222" - + ".google.cloud.oracledatabase.v1.GetDbSys" - + "temRequest\032(.google.cloud.oracledatabase" - + ".v1.DbSystem\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=p" - + "rojects/*/locations/*/dbSystems/*}\022\351\001\n\016C" - + "reateDbSystem\0225.google.cloud.oracledatab" - + "ase.v1.CreateDbSystemRequest\032\035.google.lo" - + "ngrunning.Operation\"\200\001\312A\035\n\010DbSystem\022\021Ope" - + "rationMetadata\332A\035parent,db_system,db_sys" - + "tem_id\202\323\344\223\002:\"-/v1/{parent=projects/*/loc" - + "ations/*}/dbSystems:\tdb_system\022\353\001\n\016Updat" - + "eDbSystem\0225.google.cloud.oracledatabase." - + "v1.UpdateDbSystemRequest\032\035.google.longru" - + "nning.Operation\"\202\001\312A\035\n\010DbSystem\022\021Operati" - + "onMetadata\332A\025db_system,update_mask\202\323\344\223\002D" - + "27/v1/{db_system.name=projects/*/locatio" - + "ns/*/dbSystems/*}:\tdb_system\022\321\001\n\016DeleteD" - + "bSystem\0225.google.cloud.oracledatabase.v1" - + ".DeleteDbSystemRequest\032\035.google.longrunn" - + "ing.Operation\"i\312A*\n\025google.protobuf.Empt" - + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-/v1/{" - + "name=projects/*/locations/*/dbSystems/*}" - + "\022\354\001\n\031ListGoldengateDeployments\022@.google." - + "cloud.oracledatabase.v1.ListGoldengateDe" - + "ploymentsRequest\032A.google.cloud.oracleda" - + "tabase.v1.ListGoldengateDeploymentsRespo" - + "nse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=projec" - + "ts/*/locations/*}/goldengateDeployments\022" - + "\331\001\n\027GetGoldengateDeployment\022>.google.clo" - + "ud.oracledatabase.v1.GetGoldengateDeploy" - + "mentRequest\0324.google.cloud.oracledatabas" - + "e.v1.GoldengateDeployment\"H\332A\004name\202\323\344\223\002;" - + "\0229/v1/{name=projects/*/locations/*/golde" - + "ngateDeployments/*}\022\275\002\n\032CreateGoldengate" - + "Deployment\022A.google.cloud.oracledatabase" - + ".v1.CreateGoldengateDeploymentRequest\032\035." - + "google.longrunning.Operation\"\274\001\312A)\n\024Gold" - + "engateDeployment\022\021OperationMetadata\332A5pa" - + "rent,goldengate_deployment,goldengate_de" - + "ployment_id\202\323\344\223\002R\"9/v1/{parent=projects/" - + "*/locations/*}/goldengateDeployments:\025go" - + "ldengate_deployment\022\277\002\n\032UpdateGoldengate" - + "Deployment\022A.google.cloud.oracledatabase" - + ".v1.UpdateGoldengateDeploymentRequest\032\035." - + "google.longrunning.Operation\"\276\001\312A)\n\024Gold" - + "engateDeployment\022\021OperationMetadata\332A!go" - + "ldengate_deployment,update_mask\202\323\344\223\002h2O/" - + "v1/{goldengate_deployment.name=projects/" - + "*/locations/*/goldengateDeployments/*}:\025" - + "goldengate_deployment\022\365\001\n\032DeleteGoldenga" - + "teDeployment\022A.google.cloud.oracledataba" - + "se.v1.DeleteGoldengateDeploymentRequest\032" - + "\035.google.longrunning.Operation\"u\312A*\n\025goo" - + "gle.protobuf.Empty\022\021OperationMetadata\332A\004" - + "name\202\323\344\223\002;*9/v1/{name=projects/*/locatio" - + "ns/*/goldengateDeployments/*}\022\370\001\n\030StopGo" - + "ldengateDeployment\022?.google.cloud.oracle" - + "database.v1.StopGoldengateDeploymentRequ" - + "est\032\035.google.longrunning.Operation\"|\312A)\n" - + "\024GoldengateDeployment\022\021OperationMetadata" - + "\332A\004name\202\323\344\223\002C\">/v1/{name=projects/*/loca" - + "tions/*/goldengateDeployments/*}:stop:\001*", - "\022\373\001\n\031StartGoldengateDeployment\022@.google." - + "cloud.oracledatabase.v1.StartGoldengateD" - + "eploymentRequest\032\035.google.longrunning.Op" - + "eration\"}\312A)\n\024GoldengateDeployment\022\021Oper" - + "ationMetadata\332A\004name\202\323\344\223\002D\"?/v1/{name=pr" - + "ojects/*/locations/*/goldengateDeploymen" - + "ts/*}:start:\001*\022\354\001\n\031ListGoldengateConnect" - + "ions\022@.google.cloud.oracledatabase.v1.Li" - + "stGoldengateConnectionsRequest\032A.google." - + "cloud.oracledatabase.v1.ListGoldengateCo" - + "nnectionsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/" - + "{parent=projects/*/locations/*}/goldenga" - + "teConnections\022\331\001\n\027GetGoldengateConnectio" - + "n\022>.google.cloud.oracledatabase.v1.GetGo" - + "ldengateConnectionRequest\0324.google.cloud" - + ".oracledatabase.v1.GoldengateConnection\"" - + "H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects/*/loc" - + "ations/*/goldengateConnections/*}\022\275\002\n\032Cr" - + "eateGoldengateConnection\022A.google.cloud." - + "oracledatabase.v1.CreateGoldengateConnec" - + "tionRequest\032\035.google.longrunning.Operati" - + "on\"\274\001\312A)\n\024GoldengateConnection\022\021Operatio" - + "nMetadata\332A5parent,goldengate_connection" - + ",goldengate_connection_id\202\323\344\223\002R\"9/v1/{pa" - + "rent=projects/*/locations/*}/goldengateC" - + "onnections:\025goldengate_connection\022\277\002\n\032Up" - + "dateGoldengateConnection\022A.google.cloud." - + "oracledatabase.v1.UpdateGoldengateConnec" - + "tionRequest\032\035.google.longrunning.Operati" - + "on\"\276\001\312A)\n\024GoldengateConnection\022\021Operatio" - + "nMetadata\332A!goldengate_connection,update" - + "_mask\202\323\344\223\002h2O/v1/{goldengate_connection." - + "name=projects/*/locations/*/goldengateCo" - + "nnections/*}:\025goldengate_connection\022\365\001\n\032" - + "DeleteGoldengateConnection\022A.google.clou" - + "d.oracledatabase.v1.DeleteGoldengateConn" - + "ectionRequest\032\035.google.longrunning.Opera" - + "tion\"u\312A*\n\025google.protobuf.Empty\022\021Operat" - + "ionMetadata\332A\004name\202\323\344\223\002;*9/v1/{name=proj" - + "ects/*/locations/*/goldengateConnections" - + "/*}\022\210\002\n ListGoldengateDeploymentVersions" - + "\022G.google.cloud.oracledatabase.v1.ListGo" - + "ldengateDeploymentVersionsRequest\032H.goog" + + "stemsRequest\0325.google.cloud.oracledataba" + + "se.v1.ListDbSystemsResponse\">\332A\006parent\202\323" + + "\344\223\002/\022-/v1/{parent=projects/*/locations/*" + + "}/dbSystems\022\251\001\n\013GetDbSystem\0222.google.clo" + + "ud.oracledatabase.v1.GetDbSystemRequest\032" + + "(.google.cloud.oracledatabase.v1.DbSyste" + + "m\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/l" + + "ocations/*/dbSystems/*}\022\351\001\n\016CreateDbSyst" + + "em\0225.google.cloud.oracledatabase.v1.Crea" + + "teDbSystemRequest\032\035.google.longrunning.O" + + "peration\"\200\001\312A\035\n\010DbSystem\022\021OperationMetad" + + "ata\332A\035parent,db_system,db_system_id\202\323\344\223\002" + + ":\"-/v1/{parent=projects/*/locations/*}/d" + + "bSystems:\tdb_system\022\353\001\n\016UpdateDbSystem\0225" + + ".google.cloud.oracledatabase.v1.UpdateDb" + + "SystemRequest\032\035.google.longrunning.Opera" + + "tion\"\202\001\312A\035\n\010DbSystem\022\021OperationMetadata\332" + + "A\025db_system,update_mask\202\323\344\223\002D27/v1/{db_s" + + "ystem.name=projects/*/locations/*/dbSyst" + + "ems/*}:\tdb_system\022\321\001\n\016DeleteDbSystem\0225.g" + + "oogle.cloud.oracledatabase.v1.DeleteDbSy" + + "stemRequest\032\035.google.longrunning.Operati" + + "on\"i\312A*\n\025google.protobuf.Empty\022\021Operatio" + + "nMetadata\332A\004name\202\323\344\223\002/*-/v1/{name=projec" + + "ts/*/locations/*/dbSystems/*}\022\354\001\n\031ListGo" + + "ldengateDeployments\022@.google.cloud.oracl" + + "edatabase.v1.ListGoldengateDeploymentsRe" + + "quest\032A.google.cloud.oracledatabase.v1.L" + + "istGoldengateDeploymentsResponse\"J\332A\006par" + + "ent\202\323\344\223\002;\0229/v1/{parent=projects/*/locati" + + "ons/*}/goldengateDeployments\022\331\001\n\027GetGold" + + "engateDeployment\022>.google.cloud.oracleda" + + "tabase.v1.GetGoldengateDeploymentRequest" + + "\0324.google.cloud.oracledatabase.v1.Golden" + + "gateDeployment\"H\332A\004name\202\323\344\223\002;\0229/v1/{name" + + "=projects/*/locations/*/goldengateDeploy" + + "ments/*}\022\275\002\n\032CreateGoldengateDeployment\022" + + "A.google.cloud.oracledatabase.v1.CreateG" + + "oldengateDeploymentRequest\032\035.google.long" + + "running.Operation\"\274\001\312A)\n\024GoldengateDeplo" + + "yment\022\021OperationMetadata\332A5parent,golden" + + "gate_deployment,goldengate_deployment_id" + + "\202\323\344\223\002R\"9/v1/{parent=projects/*/locations" + + "/*}/goldengateDeployments:\025goldengate_de" + + "ployment\022\277\002\n\032UpdateGoldengateDeployment\022" + + "A.google.cloud.oracledatabase.v1.UpdateG" + + "oldengateDeploymentRequest\032\035.google.long" + + "running.Operation\"\276\001\312A)\n\024GoldengateDeplo" + + "yment\022\021OperationMetadata\332A!goldengate_de" + + "ployment,update_mask\202\323\344\223\002h2O/v1/{goldeng" + + "ate_deployment.name=projects/*/locations" + + "/*/goldengateDeployments/*}:\025goldengate_" + + "deployment\022\365\001\n\032DeleteGoldengateDeploymen" + + "t\022A.google.cloud.oracledatabase.v1.Delet" + + "eGoldengateDeploymentRequest\032\035.google.lo" + + "ngrunning.Operation\"u\312A*\n\025google.protobu" + + "f.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002;*" + + "9/v1/{name=projects/*/locations/*/golden", + "gateDeployments/*}\022\370\001\n\030StopGoldengateDep" + + "loyment\022?.google.cloud.oracledatabase.v1" + + ".StopGoldengateDeploymentRequest\032\035.googl" + + "e.longrunning.Operation\"|\312A)\n\024Goldengate" + + "Deployment\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002C\">/v1/{name=projects/*/locations/*/gol" + + "dengateDeployments/*}:stop:\001*\022\373\001\n\031StartG" + + "oldengateDeployment\022@.google.cloud.oracl" + + "edatabase.v1.StartGoldengateDeploymentRe" + + "quest\032\035.google.longrunning.Operation\"}\312A" + + ")\n\024GoldengateDeployment\022\021OperationMetada" + + "ta\332A\004name\202\323\344\223\002D\"?/v1/{name=projects/*/lo" + + "cations/*/goldengateDeployments/*}:start" + + ":\001*\022\354\001\n\031ListGoldengateConnections\022@.goog" + "le.cloud.oracledatabase.v1.ListGoldengat" - + "eDeploymentVersionsResponse\"Q\332A\006parent\202\323" - + "\344\223\002B\022@/v1/{parent=projects/*/locations/*" - + "}/goldengateDeploymentVersions\022\374\001\n\035ListG" - + "oldengateDeploymentTypes\022D.google.cloud." - + "oracledatabase.v1.ListGoldengateDeployme" - + "ntTypesRequest\032E.google.cloud.oracledata" - + "base.v1.ListGoldengateDeploymentTypesRes" - + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj" - + "ects/*/locations/*}/goldengateDeployment" - + "Types\022\230\002\n$ListGoldengateDeploymentEnviro" - + "nments\022K.google.cloud.oracledatabase.v1." - + "ListGoldengateDeploymentEnvironmentsRequ" - + "est\032L.google.cloud.oracledatabase.v1.Lis" - + "tGoldengateDeploymentEnvironmentsRespons" - + "e\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=projects" - + "/*/locations/*}/goldengateDeploymentEnvi" - + "ronments\022\374\001\n\035ListGoldengateConnectionTyp" - + "es\022D.google.cloud.oracledatabase.v1.List" - + "GoldengateConnectionTypesRequest\032E.googl" + + "eConnectionsRequest\032A.google.cloud.oracl" + + "edatabase.v1.ListGoldengateConnectionsRe" + + "sponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent=pro" + + "jects/*/locations/*}/goldengateConnectio" + + "ns\022\331\001\n\027GetGoldengateConnection\022>.google." + + "cloud.oracledatabase.v1.GetGoldengateCon" + + "nectionRequest\0324.google.cloud.oracledata" + + "base.v1.GoldengateConnection\"H\332A\004name\202\323\344" + + "\223\002;\0229/v1/{name=projects/*/locations/*/go" + + "ldengateConnections/*}\022\275\002\n\032CreateGoldeng" + + "ateConnection\022A.google.cloud.oracledatab" + + "ase.v1.CreateGoldengateConnectionRequest" + + "\032\035.google.longrunning.Operation\"\274\001\312A)\n\024G" + + "oldengateConnection\022\021OperationMetadata\332A" + + "5parent,goldengate_connection,goldengate" + + "_connection_id\202\323\344\223\002R\"9/v1/{parent=projec" + + "ts/*/locations/*}/goldengateConnections:" + + "\025goldengate_connection\022\277\002\n\032UpdateGoldeng" + + "ateConnection\022A.google.cloud.oracledatab" + + "ase.v1.UpdateGoldengateConnectionRequest" + + "\032\035.google.longrunning.Operation\"\276\001\312A)\n\024G" + + "oldengateConnection\022\021OperationMetadata\332A" + + "!goldengate_connection,update_mask\202\323\344\223\002h" + + "2O/v1/{goldengate_connection.name=projec" + + "ts/*/locations/*/goldengateConnections/*" + + "}:\025goldengate_connection\022\365\001\n\032DeleteGolde" + + "ngateConnection\022A.google.cloud.oracledat" + + "abase.v1.DeleteGoldengateConnectionReque" + + "st\032\035.google.longrunning.Operation\"u\312A*\n\025" + + "google.protobuf.Empty\022\021OperationMetadata" + + "\332A\004name\202\323\344\223\002;*9/v1/{name=projects/*/loca" + + "tions/*/goldengateConnections/*}\022\210\002\n Lis" + + "tGoldengateDeploymentVersions\022G.google.c" + + "loud.oracledatabase.v1.ListGoldengateDep" + + "loymentVersionsRequest\032H.google.cloud.or" + + "acledatabase.v1.ListGoldengateDeployment" + + "VersionsResponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{" + + "parent=projects/*/locations/*}/goldengat" + + "eDeploymentVersions\022\374\001\n\035ListGoldengateDe" + + "ploymentTypes\022D.google.cloud.oracledatab" + + "ase.v1.ListGoldengateDeploymentTypesRequ" + + "est\032E.google.cloud.oracledatabase.v1.Lis" + + "tGoldengateDeploymentTypesResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1/{parent=projects/*/loca" + + "tions/*}/goldengateDeploymentTypes\022\230\002\n$L" + + "istGoldengateDeploymentEnvironments\022K.go" + + "ogle.cloud.oracledatabase.v1.ListGoldeng" + + "ateDeploymentEnvironmentsRequest\032L.googl" + "e.cloud.oracledatabase.v1.ListGoldengate" - + "ConnectionTypesResponse\"N\332A\006parent\202\323\344\223\002?" - + "\022=/v1/{parent=projects/*/locations/*}/go" - + "ldengateConnectionTypes\022\300\001\n\016ListDbVersio" - + "ns\0225.google.cloud.oracledatabase.v1.List" - + "DbVersionsRequest\0326.google.cloud.oracled" - + "atabase.v1.ListDbVersionsResponse\"?\332A\006pa" - + "rent\202\323\344\223\0020\022./v1/{parent=projects/*/locat" - + "ions/*}/dbVersions\022\354\001\n\031ListDatabaseChara" - + "cterSets\022@.google.cloud.oracledatabase.v" - + "1.ListDatabaseCharacterSetsRequest\032A.goo" - + "gle.cloud.oracledatabase.v1.ListDatabase" - + "CharacterSetsResponse\"J\332A\006parent\202\323\344\223\002;\0229" - + "/v1/{parent=projects/*/locations/*}/data" - + "baseCharacterSets\022\224\002\n#ListGoldengateConn" - + "ectionAssignments\022J.google.cloud.oracled" - + "atabase.v1.ListGoldengateConnectionAssig" - + "nmentsRequest\032K.google.cloud.oracledatab" - + "ase.v1.ListGoldengateConnectionAssignmen" - + "tsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent" - + "=projects/*/locations/*}/goldengateConne" - + "ctionAssignments\022\201\002\n!GetGoldengateConnec" - + "tionAssignment\022H.google.cloud.oracledata" - + "base.v1.GetGoldengateConnectionAssignmen" - + "tRequest\032>.google.cloud.oracledatabase.v" - + "1.GoldengateConnectionAssignment\"R\332A\004nam" - + "e\202\323\344\223\002E\022C/v1/{name=projects/*/locations/" - + "*/goldengateConnectionAssignments/*}\022\206\003\n" - + "$CreateGoldengateConnectionAssignment\022K." - + "google.cloud.oracledatabase.v1.CreateGol" - + "dengateConnectionAssignmentRequest\032\035.goo" - + "gle.longrunning.Operation\"\361\001\312A3\n\036Goldeng" - + "ateConnectionAssignment\022\021OperationMetada" - + "ta\332AKparent,goldengate_connection_assign" - + "ment,goldengate_connection_assignment_id" - + "\202\323\344\223\002g\"C/v1/{parent=projects/*/locations" - + "/*}/goldengateConnectionAssignments: gol" - + "dengate_connection_assignment\022\211\003\n$Update" - + "GoldengateConnectionAssignment\022K.google." - + "cloud.oracledatabase.v1.UpdateGoldengate" - + "ConnectionAssignmentRequest\032\035.google.lon" - + "grunning.Operation\"\364\001\312A3\n\036GoldengateConn" - + "ectionAssignment\022\021OperationMetadata\332A,go" - + "ldengate_connection_assignment,update_ma" - + "sk\202\323\344\223\002\210\0012d/v1/{goldengate_connection_as" - + "signment.name=projects/*/locations/*/gol" - + "dengateConnectionAssignments/*}: goldeng" - + "ate_connection_assignment\022\223\002\n$DeleteGold" + + "DeploymentEnvironmentsResponse\"U\332A\006paren" + + "t\202\323\344\223\002F\022D/v1/{parent=projects/*/location" + + "s/*}/goldengateDeploymentEnvironments\022\374\001" + + "\n\035ListGoldengateConnectionTypes\022D.google" + + ".cloud.oracledatabase.v1.ListGoldengateC" + + "onnectionTypesRequest\032E.google.cloud.ora" + + "cledatabase.v1.ListGoldengateConnectionT" + + "ypesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{pare" + + "nt=projects/*/locations/*}/goldengateCon" + + "nectionTypes\022\300\001\n\016ListDbVersions\0225.google" + + ".cloud.oracledatabase.v1.ListDbVersionsR" + + "equest\0326.google.cloud.oracledatabase.v1." + + "ListDbVersionsResponse\"?\332A\006parent\202\323\344\223\0020\022" + + "./v1/{parent=projects/*/locations/*}/dbV" + + "ersions\022\354\001\n\031ListDatabaseCharacterSets\022@." + + "google.cloud.oracledatabase.v1.ListDatab" + + "aseCharacterSetsRequest\032A.google.cloud.o" + + "racledatabase.v1.ListDatabaseCharacterSe" + + "tsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{parent" + + "=projects/*/locations/*}/databaseCharact" + + "erSets\022\224\002\n#ListGoldengateConnectionAssig" + + "nments\022J.google.cloud.oracledatabase.v1." + + "ListGoldengateConnectionAssignmentsReque" + + "st\032K.google.cloud.oracledatabase.v1.List" + + "GoldengateConnectionAssignmentsResponse\"" + + "T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=projects/*" + + "/locations/*}/goldengateConnectionAssign" + + "ments\022\201\002\n!GetGoldengateConnectionAssignm" + + "ent\022H.google.cloud.oracledatabase.v1.Get" + + "GoldengateConnectionAssignmentRequest\032>." + + "google.cloud.oracledatabase.v1.Goldengat" + + "eConnectionAssignment\"R\332A\004name\202\323\344\223\002E\022C/v" + + "1/{name=projects/*/locations/*/goldengat" + + "eConnectionAssignments/*}\022\206\003\n$CreateGold" + "engateConnectionAssignment\022K.google.clou" - + "d.oracledatabase.v1.DeleteGoldengateConn" + + "d.oracledatabase.v1.CreateGoldengateConn" + "ectionAssignmentRequest\032\035.google.longrun" - + "ning.Operation\"\177\312A*\n\025google.protobuf.Emp" - + "ty\022\021OperationMetadata\332A\004name\202\323\344\223\002E*C/v1/" - + "{name=projects/*/locations/*/goldengateC" - + "onnectionAssignments/*}\022\227\002\n\"TestGoldenga" - + "teConnectionAssignment\022I.google.cloud.or" - + "acledatabase.v1.TestGoldengateConnection" - + "AssignmentRequest\032J.google.cloud.oracled" - + "atabase.v1.TestGoldengateConnectionAssig" - + "nmentResponse\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=" - + "projects/*/locations/*/goldengateConnect" - + "ionAssignments/*}:test:\001*\022\344\001\n\027ListDataba" - + "seConnections\022>.google.cloud.oracledatab" - + "ase.v1.ListDatabaseConnectionsRequest\032?." - + "google.cloud.oracledatabase.v1.ListDatab" - + "aseConnectionsResponse\"H\332A\006parent\202\323\344\223\0029\022" - + "7/v1/{parent=projects/*/locations/*}/dat" - + "abaseConnections\022\321\001\n\025GetDatabaseConnecti" - + "on\022<.google.cloud.oracledatabase.v1.GetD" - + "atabaseConnectionRequest\0322.google.cloud." - + "oracledatabase.v1.DatabaseConnection\"F\332A" - + "\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locati" - + "ons/*/databaseConnections/*}\022\257\002\n\030CreateD" - + "atabaseConnection\022?.google.cloud.oracled" - + "atabase.v1.CreateDatabaseConnectionReque" - + "st\032\035.google.longrunning.Operation\"\262\001\312A\'\n" - + "\022DatabaseConnection\022\021OperationMetadata\332A" - + "1parent,database_connection,database_con" - + "nection_id\202\323\344\223\002N\"7/v1/{parent=projects/*" - + "/locations/*}/databaseConnections:\023datab" - + "ase_connection\022\261\002\n\030UpdateDatabaseConnect" - + "ion\022?.google.cloud.oracledatabase.v1.Upd" - + "ateDatabaseConnectionRequest\032\035.google.lo" - + "ngrunning.Operation\"\264\001\312A\'\n\022DatabaseConne" - + "ction\022\021OperationMetadata\332A\037database_conn" - + "ection,update_mask\202\323\344\223\002b2K/v1/{database_" - + "connection.name=projects/*/locations/*/d" - + "atabaseConnections/*}:\023database_connecti" - + "on\022\357\001\n\030DeleteDatabaseConnection\022?.google" - + ".cloud.oracledatabase.v1.DeleteDatabaseC" - + "onnectionRequest\032\035.google.longrunning.Op" - + "eration\"s\312A*\n\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0029*7/v1/{name=p" - + "rojects/*/locations/*/databaseConnection" - + "s/*}\022\347\001\n\026TestDatabaseConnection\022=.google" - + ".cloud.oracledatabase.v1.TestDatabaseCon" - + "nectionRequest\032>.google.cloud.oracledata" - + "base.v1.TestDatabaseConnectionResponse\"N" - + "\332A\004name\202\323\344\223\002A\".google.cloud.oracledatabase.v1.List" + + "DatabaseConnectionsRequest\032?.google.clou" + + "d.oracledatabase.v1.ListDatabaseConnecti" + + "onsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{paren" + + "t=projects/*/locations/*}/databaseConnec" + + "tions\022\321\001\n\025GetDatabaseConnection\022<.google" + + ".cloud.oracledatabase.v1.GetDatabaseConn" + + "ectionRequest\0322.google.cloud.oracledatab" + + "ase.v1.DatabaseConnection\"F\332A\004name\202\323\344\223\0029" + + "\0227/v1/{name=projects/*/locations/*/datab" + + "aseConnections/*}\022\257\002\n\030CreateDatabaseConn" + + "ection\022?.google.cloud.oracledatabase.v1." + + "CreateDatabaseConnectionRequest\032\035.google" + + ".longrunning.Operation\"\262\001\312A\'\n\022DatabaseCo" + + "nnection\022\021OperationMetadata\332A1parent,dat" + + "abase_connection,database_connection_id\202" + + "\323\344\223\002N\"7/v1/{parent=projects/*/locations/" + + "*}/databaseConnections:\023database_connect" + + "ion\022\261\002\n\030UpdateDatabaseConnection\022?.googl" + + "e.cloud.oracledatabase.v1.UpdateDatabase" + + "ConnectionRequest\032\035.google.longrunning.O" + + "peration\"\264\001\312A\'\n\022DatabaseConnection\022\021Oper" + + "ationMetadata\332A\037database_connection,upda" + + "te_mask\202\323\344\223\002b2K/v1/{database_connection." + + "name=projects/*/locations/*/databaseConn" + + "ections/*}:\023database_connection\022\357\001\n\030Dele" + + "teDatabaseConnection\022?.google.cloud.orac" + + "ledatabase.v1.DeleteDatabaseConnectionRe" + + "quest\032\035.google.longrunning.Operation\"s\312A" + + "*\n\025google.protobuf.Empty\022\021OperationMetad" + + "ata\332A\004name\202\323\344\223\0029*7/v1/{name=projects/*/l" + + "ocations/*/databaseConnections/*}\022\347\001\n\026Te" + + "stDatabaseConnection\022=.google.cloud.orac" + + "ledatabase.v1.TestDatabaseConnectionRequ" + + "est\032>.google.cloud.oracledatabase.v1.Tes" + + "tDatabaseConnectionResponse\"N\332A\004name\202\323\344\223" + + "\002A\" future = + oracleDatabaseClient.updateOdbDnsZoneCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java new file mode 100644 index 000000000000..7348d38044ec --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/AsyncUpdateOdbDnsZoneLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.oracledatabase.v1.OdbDnsZone; +import com.google.cloud.oracledatabase.v1.OperationMetadata; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOdbDnsZoneLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateOdbDnsZoneLRO(); + } + + public static void asyncUpdateOdbDnsZoneLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateOdbDnsZoneRequest request = + UpdateOdbDnsZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOdbDnsZone(OdbDnsZone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + oracleDatabaseClient.updateOdbDnsZoneOperationCallable().futureCall(request); + // Do something. + OdbDnsZone response = future.get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java new file mode 100644 index 000000000000..dd40c35a174a --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZone.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_sync] +import com.google.cloud.oracledatabase.v1.OdbDnsZone; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.oracledatabase.v1.UpdateOdbDnsZoneRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOdbDnsZone { + + public static void main(String[] args) throws Exception { + syncUpdateOdbDnsZone(); + } + + public static void syncUpdateOdbDnsZone() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + UpdateOdbDnsZoneRequest request = + UpdateOdbDnsZoneRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setOdbDnsZone(OdbDnsZone.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OdbDnsZone response = oracleDatabaseClient.updateOdbDnsZoneAsync(request).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java new file mode 100644 index 000000000000..277190f1fe74 --- /dev/null +++ b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/updateodbdnszone/SyncUpdateOdbDnsZoneOdbdnszoneFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.oracledatabase.v1.samples; + +// [START oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_OdbdnszoneFieldmask_sync] +import com.google.cloud.oracledatabase.v1.OdbDnsZone; +import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOdbDnsZoneOdbdnszoneFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateOdbDnsZoneOdbdnszoneFieldmask(); + } + + public static void syncUpdateOdbDnsZoneOdbdnszoneFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + OdbDnsZone odbDnsZone = OdbDnsZone.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + OdbDnsZone response = + oracleDatabaseClient.updateOdbDnsZoneAsync(odbDnsZone, updateMask).get(); + } + } +} +// [END oracledatabase_v1_generated_OracleDatabase_UpdateOdbDnsZone_OdbdnszoneFieldmask_sync] diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 100a1dc333c2..5884c90d2a00 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orchestration-airflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.102.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-orchestration-airflow/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orchestration-airflow.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index fde001eef2d0..5952a2eed2e1 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orgpolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.102.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-orgpolicy.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-config/README.md b/java-os-config/README.md index e7504cdd4b96..ff43bece03bc 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-config' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.104.0' +implementation 'com.google.cloud:google-cloud-os-config:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-config/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-config.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-os-login/README.md b/java-os-login/README.md index 11a50e7ac95c..4b45991198c1 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-login' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.101.0' +implementation 'com.google.cloud:google-cloud-os-login:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-login/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-os-login.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 49d1f2c76e82..20e0051fbb86 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.65.0 + 0.66.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parallelstore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.65.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.66.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.65.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.66.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.65.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.66.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-parametermanager/README.md b/java-parametermanager/README.md index c803a19cbe51..d6c2d1667a08 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.46.0 + 0.47.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parametermanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.46.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.46.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.47.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.47.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index b7de4ad29ced..3f64d4590ae4 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.133.0 + 0.134.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-phishingprotection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.133.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.134.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.133.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.134.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-phishingprotection/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-phishingprotection.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.133.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.134.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index ab59fec8e240..be01f968992d 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-policy-troubleshooter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.101.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policy-troubleshooter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index e96997ec433c..aabac6d95a79 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.81.0 + 0.82.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-policysimulator' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.81.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.82.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policysimulator/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-policysimulator.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.82.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 0217249e7523..b439e2ab3e12 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-private-catalog' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.104.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-private-catalog/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-private-catalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 684a0051c6e6..ed3b7ad2cec6 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.56.0 + 0.57.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-privilegedaccessmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.56.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.57.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.57.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-productregistry/README.md b/java-productregistry/README.md index c61db22a1bea..456741dc54b9 100644 --- a/java-productregistry/README.md +++ b/java-productregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-productregistry - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-productregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-productregistry:0.8.0' +implementation 'com.google.cloud:google-cloud-productregistry:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-productregistry/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-productregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.9.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-profiler/README.md b/java-profiler/README.md index a935af7575f3..1c72489a1c33 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-profiler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.102.0' +implementation 'com.google.cloud:google-cloud-profiler:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-profiler/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-profiler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-publicca/README.md b/java-publicca/README.md index 53b07d4a03fd..c35893719c4d 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-publicca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.99.0' +implementation 'com.google.cloud:google-cloud-publicca:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-publicca/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-publicca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-pubsub/README.md b/java-pubsub/README.md index ae38ceda2668..3b3595f69780 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.160.0 + 1.161.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.160.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.161.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.160.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.161.0" ``` ## Authentication @@ -398,7 +398,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.160.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.161.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 67eb10f86046..bb6225e3367e 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.85.0 + 0.86.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-rapidmigrationassessment' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.85.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.86.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-rapidmigrationassessment/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-rapidmigrationassessment.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.86.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 7f999bb17e21..f72972f6c32a 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.99.0 + 3.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recaptchaenterprise' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.99.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recaptchaenterprise/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recaptchaenterprise.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.100.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index a427e5042fbc..b8bd55a8c658 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.109.0 + 0.110.0 ``` @@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-recommendations-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.109.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.110.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.109.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.110.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommendations-ai/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommendations-ai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.109.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.110.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-recommender/README.md b/java-recommender/README.md index 36026b2a0138..0b8f4f801cea 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.104.0' +implementation 'com.google.cloud:google-cloud-recommender:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommender/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-recommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index 64ce52a1012f..61ea7ef2b2d1 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.74.0 + 0.75.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-redis-cluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.74.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.75.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.74.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.75.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis-cluster/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis-cluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.74.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.75.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-redis/README.md b/java-redis/README.md index c2f2e27a545e..35aaa58d9100 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.105.0 + 2.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-redis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.105.0' +implementation 'com.google.cloud:google-cloud-redis:2.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-redis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 25a6c4b57a6e..f0ad53792e8f 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.104.0 + 1.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-resourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.104.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.105.0" ``` ## Authentication @@ -323,7 +323,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-resourcemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-resourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-retail/README.md b/java-retail/README.md index da68076d1282..108ec5cdd337 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-retail' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.104.0' +implementation 'com.google.cloud:google-cloud-retail:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-retail/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-retail.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-run/README.md b/java-run/README.md index 9ffd2b28e88f..382aa782c203 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-run' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.102.0' +implementation 'com.google.cloud:google-cloud-run:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-run/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index 6de8f7f3e577..dc88eb9c41b0 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.32.0 + 0.33.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-saasservicemgmt' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.32.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.33.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.33.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-scheduler/README.md b/java-scheduler/README.md index 915e7dacc0e4..642eb008bb0f 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-scheduler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.102.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-scheduler/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-scheduler.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index d2819c02e23d..97e5601c13d3 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-secretmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.102.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-secretmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-secretmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java new file mode 100644 index 000000000000..63dff0ae86a8 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClient.java @@ -0,0 +1,1625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStub; +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Secret Operations Service + * + *

Manages backups of secrets. Implements a REST model with the following objects: + * + *

    + *
  • [Backup][google.cloud.secretmanager.v1.Backup] + *
+ * + *

Note: `SecretOperationsService` is a regional service and must be called using regional + * endpoints (`secretmanager.{location}.rep.googleapis.com`). + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create()) {
+ *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+ *   Backup response = secretOperationsServiceClient.getBackup(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the SecretOperationsServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

ListBackups

Lists Backups in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listBackups(ListBackupsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listBackups(LocationName parent) + *

  • listBackups(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listBackupsPagedCallable() + *

  • listBackupsCallable() + *

+ *

GetBackup

Gets details of a single Backup.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getBackup(GetBackupRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getBackup(BackupName name) + *

  • getBackup(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getBackupCallable() + *

+ *

CreateBackup

Creates a new Backup in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createBackupAsync(CreateBackupRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • createBackupAsync(LocationName parent, Backup backup, String backupId) + *

  • createBackupAsync(String parent, Backup backup, String backupId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createBackupOperationCallable() + *

  • createBackupCallable() + *

+ *

UpdateBackup

Updates the parameters of a single Backup.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateBackupAsync(UpdateBackupRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • updateBackupAsync(Backup backup, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateBackupOperationCallable() + *

  • updateBackupCallable() + *

+ *

DeleteBackup

Deletes a single Backup.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteBackupAsync(DeleteBackupRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • deleteBackupAsync(BackupName name) + *

  • deleteBackupAsync(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteBackupOperationCallable() + *

  • deleteBackupCallable() + *

+ *

RestoreBackup

Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration process, and the result of the LRO is the newly created Secret.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • restoreBackupAsync(RestoreBackupRequest request) + *

+ *

Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

+ *
    + *
  • restoreBackupAsync(BackupName name, LocationName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(BackupName name, ProjectName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(BackupName name, String destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(String name, LocationName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(String name, ProjectName destinationSecretParent, String destinationSecretId) + *

  • restoreBackupAsync(String name, String destinationSecretParent, String destinationSecretId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • restoreBackupOperationCallable() + *

  • restoreBackupCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

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 parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of + * SecretOperationsServiceSettings to create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     SecretOperationsServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create(secretOperationsServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     SecretOperationsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create(secretOperationsServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     SecretOperationsServiceSettings.newHttpJsonBuilder().build();
+ * SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create(secretOperationsServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class SecretOperationsServiceClient implements BackgroundResource { + private final @Nullable SecretOperationsServiceSettings settings; + private final SecretOperationsServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of SecretOperationsServiceClient with default settings. */ + public static final SecretOperationsServiceClient create() throws IOException { + return create(SecretOperationsServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of SecretOperationsServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SecretOperationsServiceClient create(SecretOperationsServiceSettings settings) + throws IOException { + return new SecretOperationsServiceClient(settings); + } + + /** + * Constructs an instance of SecretOperationsServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SecretOperationsServiceSettings). + */ + public static final SecretOperationsServiceClient create(SecretOperationsServiceStub stub) { + return new SecretOperationsServiceClient(stub); + } + + /** + * Constructs an instance of SecretOperationsServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected SecretOperationsServiceClient(SecretOperationsServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((SecretOperationsServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected SecretOperationsServiceClient(SecretOperationsServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final @Nullable SecretOperationsServiceSettings getSettings() { + return settings; + } + + public SecretOperationsServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location associated with the + * [Backups][google.cloud.secretmanager.v1.Backup], in the format + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(@Nullable LocationName parent) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location associated with the + * [Backups][google.cloud.secretmanager.v1.Backup], in the format + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(String parent) { + ListBackupsRequest request = ListBackupsRequest.newBuilder().setParent(parent).build(); + return listBackups(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Backup element : secretOperationsServiceClient.listBackups(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBackupsPagedResponse listBackups(ListBackupsRequest request) { + return listBackupsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.listBackupsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Backup element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listBackupsPagedCallable() { + return stub.listBackupsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Backups in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   ListBackupsRequest request =
+   *       ListBackupsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListBackupsResponse response =
+   *         secretOperationsServiceClient.listBackupsCallable().call(request);
+   *     for (Backup element : response.getBackupsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listBackupsCallable() { + return stub.listBackupsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   Backup response = secretOperationsServiceClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup], + * in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(@Nullable BackupName name) { + GetBackupRequest request = + GetBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   Backup response = secretOperationsServiceClient.getBackup(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup], + * in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(String name) { + GetBackupRequest request = GetBackupRequest.newBuilder().setName(name).build(); + return getBackup(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   Backup response = secretOperationsServiceClient.getBackup(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Backup getBackup(GetBackupRequest request) { + return getBackupCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   GetBackupRequest request =
+   *       GetBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.getBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getBackupCallable() { + return stub.getBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   Backup backup = Backup.newBuilder().build();
+   *   String backupId = "backupId2121930365";
+   *   Backup response =
+   *       secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location where the + * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the format + * `projects/{project}/locations/{location}`. + * @param backup Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to create. + * @param backupId Required. The ID to use for the backup, which will become the final component + * of the backup's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + @Nullable LocationName parent, Backup backup, String backupId) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBackup(backup) + .setBackupId(backupId) + .build(); + return createBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   Backup backup = Backup.newBuilder().build();
+   *   String backupId = "backupId2121930365";
+   *   Backup response =
+   *       secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the location where the + * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the format + * `projects/{project}/locations/{location}`. + * @param backup Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to create. + * @param backupId Required. The ID to use for the backup, which will become the final component + * of the backup's resource name. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + String parent, Backup backup, String backupId) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(parent) + .setBackup(backup) + .setBackupId(backupId) + .build(); + return createBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   Backup response = secretOperationsServiceClient.createBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBackupAsync( + CreateBackupRequest request) { + return createBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.createBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + createBackupOperationCallable() { + return stub.createBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Backup in a given project and location. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   CreateBackupRequest request =
+   *       CreateBackupRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.createBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createBackupCallable() { + return stub.createBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   Backup backup = Backup.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Backup response = secretOperationsServiceClient.updateBackupAsync(backup, updateMask).get();
+   * }
+   * }
+ * + * @param backup Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with + * updated fields. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update. The fields specified + * in the `update_mask` are relative to the resource, not the full request. A field will be + * overwritten if it is in the mask. If the user does not provide a mask then all fields + * present in the request will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBackupAsync( + Backup backup, FieldMask updateMask) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder().setBackup(backup).setUpdateMask(updateMask).build(); + return updateBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   Backup response = secretOperationsServiceClient.updateBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBackupAsync( + UpdateBackupRequest request) { + return updateBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.updateBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateBackupOperationCallable() { + return stub.updateBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   UpdateBackupRequest request =
+   *       UpdateBackupRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setBackup(Backup.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.updateBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateBackupCallable() { + return stub.updateBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   secretOperationsServiceClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to delete, in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync( + @Nullable BackupName name) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   secretOperationsServiceClient.deleteBackupAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to delete, in the format `projects/{project}/locations/{location}/backups/{backup}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync(String name) { + DeleteBackupRequest request = DeleteBackupRequest.newBuilder().setName(name).build(); + return deleteBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   secretOperationsServiceClient.deleteBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteBackupAsync( + DeleteBackupRequest request) { + return deleteBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.deleteBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final OperationCallable + deleteBackupOperationCallable() { + return stub.deleteBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Backup. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   DeleteBackupRequest request =
+   *       DeleteBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setEtag("etag3123477")
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.deleteBackupCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteBackupCallable() { + return stub.deleteBackupCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + @Nullable BackupName name, + @Nullable LocationName destinationSecretParent, + String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   ProjectName destinationSecretParent = ProjectName.of("[PROJECT]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + @Nullable BackupName name, + @Nullable ProjectName destinationSecretParent, + String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+   *   String destinationSecretParent = ProjectName.of("[PROJECT]").toString();
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + @Nullable BackupName name, String destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setDestinationSecretParent(destinationSecretParent) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + String name, @Nullable LocationName destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   ProjectName destinationSecretParent = ProjectName.of("[PROJECT]");
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + String name, @Nullable ProjectName destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name) + .setDestinationSecretParent( + destinationSecretParent == null ? null : destinationSecretParent.toString()) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString();
+   *   String destinationSecretParent = ProjectName.of("[PROJECT]").toString();
+   *   String destinationSecretId = "destinationSecretId171779609";
+   *   Secret response =
+   *       secretOperationsServiceClient
+   *           .restoreBackupAsync(name, destinationSecretParent, destinationSecretId)
+   *           .get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] + * to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}` + * @param destinationSecretParent Required. Parent of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - + * `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` + * (for global secrets) + * @param destinationSecretId Required. ID of the new + * [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. This must be + * unique within the project. + *

A secret ID is a string with a maximum length of 255 characters and can contain + * uppercase and lowercase letters, numerals, and the hyphen (`-`) and underscore (`_`) + * characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + String name, String destinationSecretParent, String destinationSecretId) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(name) + .setDestinationSecretParent(destinationSecretParent) + .setDestinationSecretId(destinationSecretId) + .build(); + return restoreBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   RestoreBackupRequest request =
+   *       RestoreBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDestinationSecretId("destinationSecretId171779609")
+   *           .setKmsKeyName(
+   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
+   *                   .toString())
+   *           .build();
+   *   Secret response = secretOperationsServiceClient.restoreBackupAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture restoreBackupAsync( + RestoreBackupRequest request) { + return restoreBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   RestoreBackupRequest request =
+   *       RestoreBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDestinationSecretId("destinationSecretId171779609")
+   *           .setKmsKeyName(
+   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
+   *                   .toString())
+   *           .build();
+   *   OperationFuture future =
+   *       secretOperationsServiceClient.restoreBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Secret response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + restoreBackupOperationCallable() { + return stub.restoreBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the restoration + * process, and the result of the LRO is the newly created Secret. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SecretOperationsServiceClient secretOperationsServiceClient =
+   *     SecretOperationsServiceClient.create()) {
+   *   RestoreBackupRequest request =
+   *       RestoreBackupRequest.newBuilder()
+   *           .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString())
+   *           .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString())
+   *           .setDestinationSecretId("destinationSecretId171779609")
+   *           .setKmsKeyName(
+   *               CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       secretOperationsServiceClient.restoreBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable restoreBackupCallable() { + return stub.restoreBackupCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListBackupsPagedResponse + extends AbstractPagedListResponse< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBackupsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListBackupsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListBackupsPagedResponse(ListBackupsPage page) { + super(page, ListBackupsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBackupsPage + extends AbstractPage { + + private ListBackupsPage( + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { + super(context, response); + } + + private static ListBackupsPage createEmptyPage() { + return new ListBackupsPage(null, null); + } + + @Override + protected ListBackupsPage createPage( + @Nullable PageContext context, + @Nullable ListBackupsResponse response) { + return new ListBackupsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBackupsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBackupsRequest, + ListBackupsResponse, + Backup, + ListBackupsPage, + ListBackupsFixedSizeCollection> { + + private ListBackupsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBackupsFixedSizeCollection createEmptyCollection() { + return new ListBackupsFixedSizeCollection(null, 0); + } + + @Override + protected ListBackupsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListBackupsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java new file mode 100644 index 000000000000..5e0202816dbf --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceSettings.java @@ -0,0 +1,358 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SecretOperationsServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (secretmanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBackup: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceSettings.newBuilder();
+ * secretOperationsServiceSettingsBuilder
+ *     .getBackupSettings()
+ *     .setRetrySettings(
+ *         secretOperationsServiceSettingsBuilder
+ *             .getBackupSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * SecretOperationsServiceSettings secretOperationsServiceSettings =
+ *     secretOperationsServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createBackup: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * secretOperationsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +public class SecretOperationsServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listBackups. */ + public PagedCallSettings + listBackupsSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).listBackupsSettings(); + } + + /** Returns the object with the settings used for calls to getBackup. */ + public UnaryCallSettings getBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).getBackupSettings(); + } + + /** Returns the object with the settings used for calls to createBackup. */ + public UnaryCallSettings createBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).createBackupSettings(); + } + + /** Returns the object with the settings used for calls to createBackup. */ + public OperationCallSettings + createBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .createBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public UnaryCallSettings updateBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).updateBackupSettings(); + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public OperationCallSettings + updateBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .updateBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public UnaryCallSettings deleteBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).deleteBackupSettings(); + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public OperationCallSettings + deleteBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .deleteBackupOperationSettings(); + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public UnaryCallSettings restoreBackupSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()).restoreBackupSettings(); + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public OperationCallSettings + restoreBackupOperationSettings() { + return ((SecretOperationsServiceStubSettings) getStubSettings()) + .restoreBackupOperationSettings(); + } + + public static final SecretOperationsServiceSettings create( + SecretOperationsServiceStubSettings stub) throws IOException { + return new SecretOperationsServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return SecretOperationsServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return SecretOperationsServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return SecretOperationsServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SecretOperationsServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for SecretOperationsServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(SecretOperationsServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(SecretOperationsServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(SecretOperationsServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(SecretOperationsServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(SecretOperationsServiceStubSettings.newHttpJsonBuilder()); + } + + public SecretOperationsServiceStubSettings.Builder getStubSettingsBuilder() { + return ((SecretOperationsServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listBackups. */ + public PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings() { + return getStubSettingsBuilder().listBackupsSettings(); + } + + /** Returns the builder for the settings used for calls to getBackup. */ + public UnaryCallSettings.Builder getBackupSettings() { + return getStubSettingsBuilder().getBackupSettings(); + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public UnaryCallSettings.Builder createBackupSettings() { + return getStubSettingsBuilder().createBackupSettings(); + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public OperationCallSettings.Builder + createBackupOperationSettings() { + return getStubSettingsBuilder().createBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public UnaryCallSettings.Builder updateBackupSettings() { + return getStubSettingsBuilder().updateBackupSettings(); + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public OperationCallSettings.Builder + updateBackupOperationSettings() { + return getStubSettingsBuilder().updateBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public UnaryCallSettings.Builder deleteBackupSettings() { + return getStubSettingsBuilder().deleteBackupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public OperationCallSettings.Builder + deleteBackupOperationSettings() { + return getStubSettingsBuilder().deleteBackupOperationSettings(); + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public UnaryCallSettings.Builder restoreBackupSettings() { + return getStubSettingsBuilder().restoreBackupSettings(); + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public OperationCallSettings.Builder + restoreBackupOperationSettings() { + return getStubSettingsBuilder().restoreBackupOperationSettings(); + } + + @Override + public SecretOperationsServiceSettings build() throws IOException { + return new SecretOperationsServiceSettings(this); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json index bf49bafdf61e..e1c507531f65 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/gapic_metadata.json @@ -5,6 +5,33 @@ "protoPackage": "google.cloud.secretmanager.v1", "libraryPackage": "com.google.cloud.secretmanager.v1", "services": { + "SecretOperationsService": { + "clients": { + "grpc": { + "libraryClient": "SecretOperationsServiceClient", + "rpcs": { + "CreateBackup": { + "methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"] + }, + "DeleteBackup": { + "methods": ["deleteBackupAsync", "deleteBackupAsync", "deleteBackupAsync", "deleteBackupOperationCallable", "deleteBackupCallable"] + }, + "GetBackup": { + "methods": ["getBackup", "getBackup", "getBackup", "getBackupCallable"] + }, + "ListBackups": { + "methods": ["listBackups", "listBackups", "listBackups", "listBackupsPagedCallable", "listBackupsCallable"] + }, + "RestoreBackup": { + "methods": ["restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupAsync", "restoreBackupOperationCallable", "restoreBackupCallable"] + }, + "UpdateBackup": { + "methods": ["updateBackupAsync", "updateBackupAsync", "updateBackupOperationCallable", "updateBackupCallable"] + } + } + } + } + }, "SecretManagerService": { "clients": { "grpc": { diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java index d9387970760c..ddbbbf96440b 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/package-info.java @@ -19,6 +19,34 @@ * *

The interfaces provided are listed below, along with usage samples. * + *

======================= SecretOperationsServiceClient ======================= + * + *

Service Description: Secret Operations Service + * + *

Manages backups of secrets. Implements a REST model with the following objects: + * + *

    + *
  • [Backup][google.cloud.secretmanager.v1.Backup] + *
+ * + *

Note: `SecretOperationsService` is a regional service and must be called using regional + * endpoints (`secretmanager.{location}.rep.googleapis.com`). + * + *

Sample for SecretOperationsServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SecretOperationsServiceClient secretOperationsServiceClient =
+ *     SecretOperationsServiceClient.create()) {
+ *   BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]");
+ *   Backup response = secretOperationsServiceClient.getBackup(name);
+ * }
+ * }
+ * *

======================= SecretManagerServiceClient ======================= * *

Service Description: Secret Manager Service diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java new file mode 100644 index 000000000000..006206585d74 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcSecretOperationsServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java new file mode 100644 index 000000000000..8a2bc57db2bb --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/GrpcSecretOperationsServiceStub.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcSecretOperationsServiceStub extends SecretOperationsServiceStub { + private static final MethodDescriptor + listBackupsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/ListBackups") + .setRequestMarshaller(ProtoUtils.marshaller(ListBackupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBackupsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.secretmanager.v1.SecretOperationsService/GetBackup") + .setRequestMarshaller(ProtoUtils.marshaller(GetBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Backup.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/CreateBackup") + .setRequestMarshaller(ProtoUtils.marshaller(CreateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/UpdateBackup") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/DeleteBackup") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + restoreBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/RestoreBackup") + .setRequestMarshaller( + ProtoUtils.marshaller(RestoreBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable listBackupsCallable; + private final UnaryCallable + listBackupsPagedCallable; + private final UnaryCallable getBackupCallable; + private final UnaryCallable createBackupCallable; + private final OperationCallable + createBackupOperationCallable; + private final UnaryCallable updateBackupCallable; + private final OperationCallable + updateBackupOperationCallable; + private final UnaryCallable deleteBackupCallable; + private final OperationCallable + deleteBackupOperationCallable; + private final UnaryCallable restoreBackupCallable; + private final OperationCallable + restoreBackupOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcSecretOperationsServiceStub create( + SecretOperationsServiceStubSettings settings) throws IOException { + return new GrpcSecretOperationsServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcSecretOperationsServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcSecretOperationsServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcSecretOperationsServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcSecretOperationsServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcSecretOperationsServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listBackupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBackupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backup.name", String.valueOf(request.getBackup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings restoreBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(restoreBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.listBackupsCallable = + callableFactory.createUnaryCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.listBackupsPagedCallable = + callableFactory.createPagedCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.getBackupCallable = + callableFactory.createUnaryCallable( + getBackupTransportSettings, settings.getBackupSettings(), clientContext); + this.createBackupCallable = + callableFactory.createUnaryCallable( + createBackupTransportSettings, settings.createBackupSettings(), clientContext); + this.createBackupOperationCallable = + callableFactory.createOperationCallable( + createBackupTransportSettings, + settings.createBackupOperationSettings(), + clientContext, + operationsStub); + this.updateBackupCallable = + callableFactory.createUnaryCallable( + updateBackupTransportSettings, settings.updateBackupSettings(), clientContext); + this.updateBackupOperationCallable = + callableFactory.createOperationCallable( + updateBackupTransportSettings, + settings.updateBackupOperationSettings(), + clientContext, + operationsStub); + this.deleteBackupCallable = + callableFactory.createUnaryCallable( + deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext); + this.deleteBackupOperationCallable = + callableFactory.createOperationCallable( + deleteBackupTransportSettings, + settings.deleteBackupOperationSettings(), + clientContext, + operationsStub); + this.restoreBackupCallable = + callableFactory.createUnaryCallable( + restoreBackupTransportSettings, settings.restoreBackupSettings(), clientContext); + this.restoreBackupOperationCallable = + callableFactory.createOperationCallable( + restoreBackupTransportSettings, + settings.restoreBackupOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listBackupsCallable() { + return listBackupsCallable; + } + + @Override + public UnaryCallable listBackupsPagedCallable() { + return listBackupsPagedCallable; + } + + @Override + public UnaryCallable getBackupCallable() { + return getBackupCallable; + } + + @Override + public UnaryCallable createBackupCallable() { + return createBackupCallable; + } + + @Override + public OperationCallable + createBackupOperationCallable() { + return createBackupOperationCallable; + } + + @Override + public UnaryCallable updateBackupCallable() { + return updateBackupCallable; + } + + @Override + public OperationCallable + updateBackupOperationCallable() { + return updateBackupOperationCallable; + } + + @Override + public UnaryCallable deleteBackupCallable() { + return deleteBackupCallable; + } + + @Override + public OperationCallable + deleteBackupOperationCallable() { + return deleteBackupOperationCallable; + } + + @Override + public UnaryCallable restoreBackupCallable() { + return restoreBackupCallable; + } + + @Override + public OperationCallable + restoreBackupOperationCallable() { + return restoreBackupOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java new file mode 100644 index 000000000000..967d82526ca5 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonSecretOperationsServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java new file mode 100644 index 000000000000..670edfe8e32d --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/HttpJsonSecretOperationsServiceStub.java @@ -0,0 +1,631 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the SecretOperationsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonSecretOperationsServiceStub extends SecretOperationsServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Secret.getDescriptor()) + .add(Backup.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listBackupsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/ListBackups") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/backups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBackupsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.secretmanager.v1.SecretOperationsService/GetBackup") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/backups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Backup.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/CreateBackup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/backups", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "backupId", request.getBackupId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/UpdateBackup") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{backup.name=projects/*/locations/*/backups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "backup.name", request.getBackup().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("backup", request.getBackup(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/DeleteBackup") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/backups/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + restoreBackupMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.secretmanager.v1.SecretOperationsService/RestoreBackup") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/backups/*}:restore", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (RestoreBackupRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable listBackupsCallable; + private final UnaryCallable + listBackupsPagedCallable; + private final UnaryCallable getBackupCallable; + private final UnaryCallable createBackupCallable; + private final OperationCallable + createBackupOperationCallable; + private final UnaryCallable updateBackupCallable; + private final OperationCallable + updateBackupOperationCallable; + private final UnaryCallable deleteBackupCallable; + private final OperationCallable + deleteBackupOperationCallable; + private final UnaryCallable restoreBackupCallable; + private final OperationCallable + restoreBackupOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSecretOperationsServiceStub create( + SecretOperationsServiceStubSettings settings) throws IOException { + return new HttpJsonSecretOperationsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSecretOperationsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSecretOperationsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonSecretOperationsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSecretOperationsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSecretOperationsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonSecretOperationsServiceStub( + SecretOperationsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings listBackupsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBackupsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("backup.name", String.valueOf(request.getBackup().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings restoreBackupTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(restoreBackupMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.listBackupsCallable = + callableFactory.createUnaryCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.listBackupsPagedCallable = + callableFactory.createPagedCallable( + listBackupsTransportSettings, settings.listBackupsSettings(), clientContext); + this.getBackupCallable = + callableFactory.createUnaryCallable( + getBackupTransportSettings, settings.getBackupSettings(), clientContext); + this.createBackupCallable = + callableFactory.createUnaryCallable( + createBackupTransportSettings, settings.createBackupSettings(), clientContext); + this.createBackupOperationCallable = + callableFactory.createOperationCallable( + createBackupTransportSettings, + settings.createBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateBackupCallable = + callableFactory.createUnaryCallable( + updateBackupTransportSettings, settings.updateBackupSettings(), clientContext); + this.updateBackupOperationCallable = + callableFactory.createOperationCallable( + updateBackupTransportSettings, + settings.updateBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteBackupCallable = + callableFactory.createUnaryCallable( + deleteBackupTransportSettings, settings.deleteBackupSettings(), clientContext); + this.deleteBackupOperationCallable = + callableFactory.createOperationCallable( + deleteBackupTransportSettings, + settings.deleteBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.restoreBackupCallable = + callableFactory.createUnaryCallable( + restoreBackupTransportSettings, settings.restoreBackupSettings(), clientContext); + this.restoreBackupOperationCallable = + callableFactory.createOperationCallable( + restoreBackupTransportSettings, + settings.restoreBackupOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listBackupsMethodDescriptor); + methodDescriptors.add(getBackupMethodDescriptor); + methodDescriptors.add(createBackupMethodDescriptor); + methodDescriptors.add(updateBackupMethodDescriptor); + methodDescriptors.add(deleteBackupMethodDescriptor); + methodDescriptors.add(restoreBackupMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listBackupsCallable() { + return listBackupsCallable; + } + + @Override + public UnaryCallable listBackupsPagedCallable() { + return listBackupsPagedCallable; + } + + @Override + public UnaryCallable getBackupCallable() { + return getBackupCallable; + } + + @Override + public UnaryCallable createBackupCallable() { + return createBackupCallable; + } + + @Override + public OperationCallable + createBackupOperationCallable() { + return createBackupOperationCallable; + } + + @Override + public UnaryCallable updateBackupCallable() { + return updateBackupCallable; + } + + @Override + public OperationCallable + updateBackupOperationCallable() { + return updateBackupOperationCallable; + } + + @Override + public UnaryCallable deleteBackupCallable() { + return deleteBackupCallable; + } + + @Override + public OperationCallable + deleteBackupOperationCallable() { + return deleteBackupOperationCallable; + } + + @Override + public UnaryCallable restoreBackupCallable() { + return restoreBackupCallable; + } + + @Override + public OperationCallable + restoreBackupOperationCallable() { + return restoreBackupOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java new file mode 100644 index 000000000000..f0be8fb91c97 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStub.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the SecretOperationsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class SecretOperationsServiceStub implements BackgroundResource { + + public @Nullable OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub + getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable listBackupsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBackupsPagedCallable()"); + } + + public UnaryCallable listBackupsCallable() { + throw new UnsupportedOperationException("Not implemented: listBackupsCallable()"); + } + + public UnaryCallable getBackupCallable() { + throw new UnsupportedOperationException("Not implemented: getBackupCallable()"); + } + + public OperationCallable + createBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()"); + } + + public UnaryCallable createBackupCallable() { + throw new UnsupportedOperationException("Not implemented: createBackupCallable()"); + } + + public OperationCallable + updateBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateBackupOperationCallable()"); + } + + public UnaryCallable updateBackupCallable() { + throw new UnsupportedOperationException("Not implemented: updateBackupCallable()"); + } + + public OperationCallable + deleteBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBackupOperationCallable()"); + } + + public UnaryCallable deleteBackupCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBackupCallable()"); + } + + public OperationCallable + restoreBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: restoreBackupOperationCallable()"); + } + + public UnaryCallable restoreBackupCallable() { + throw new UnsupportedOperationException("Not implemented: restoreBackupCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java new file mode 100644 index 000000000000..11494ba87b21 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/SecretOperationsServiceStubSettings.java @@ -0,0 +1,745 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link SecretOperationsServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (secretmanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getBackup: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceStubSettings.newBuilder();
+ * secretOperationsServiceSettingsBuilder
+ *     .getBackupSettings()
+ *     .setRetrySettings(
+ *         secretOperationsServiceSettingsBuilder
+ *             .getBackupSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * SecretOperationsServiceStubSettings secretOperationsServiceSettings =
+ *     secretOperationsServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createBackup: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder =
+ *     SecretOperationsServiceStubSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * secretOperationsServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class SecretOperationsServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final PagedCallSettings + listBackupsSettings; + private final UnaryCallSettings getBackupSettings; + private final UnaryCallSettings createBackupSettings; + private final OperationCallSettings + createBackupOperationSettings; + private final UnaryCallSettings updateBackupSettings; + private final OperationCallSettings + updateBackupOperationSettings; + private final UnaryCallSettings deleteBackupSettings; + private final OperationCallSettings + deleteBackupOperationSettings; + private final UnaryCallSettings restoreBackupSettings; + private final OperationCallSettings + restoreBackupOperationSettings; + + private static final PagedListDescriptor + LIST_BACKUPS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBackupsRequest injectToken(ListBackupsRequest payload, String token) { + return ListBackupsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBackupsRequest injectPageSize(ListBackupsRequest payload, int pageSize) { + return ListBackupsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBackupsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBackupsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBackupsResponse payload) { + return payload.getBackupsList(); + } + }; + + private static final PagedListResponseFactory< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + LIST_BACKUPS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBackupsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BACKUPS_PAGE_STR_DESC, request, context); + return ListBackupsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listBackups. */ + public PagedCallSettings + listBackupsSettings() { + return listBackupsSettings; + } + + /** Returns the object with the settings used for calls to getBackup. */ + public UnaryCallSettings getBackupSettings() { + return getBackupSettings; + } + + /** Returns the object with the settings used for calls to createBackup. */ + public UnaryCallSettings createBackupSettings() { + return createBackupSettings; + } + + /** Returns the object with the settings used for calls to createBackup. */ + public OperationCallSettings + createBackupOperationSettings() { + return createBackupOperationSettings; + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public UnaryCallSettings updateBackupSettings() { + return updateBackupSettings; + } + + /** Returns the object with the settings used for calls to updateBackup. */ + public OperationCallSettings + updateBackupOperationSettings() { + return updateBackupOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public UnaryCallSettings deleteBackupSettings() { + return deleteBackupSettings; + } + + /** Returns the object with the settings used for calls to deleteBackup. */ + public OperationCallSettings + deleteBackupOperationSettings() { + return deleteBackupOperationSettings; + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public UnaryCallSettings restoreBackupSettings() { + return restoreBackupSettings; + } + + /** Returns the object with the settings used for calls to restoreBackup. */ + public OperationCallSettings + restoreBackupOperationSettings() { + return restoreBackupOperationSettings; + } + + public SecretOperationsServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcSecretOperationsServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSecretOperationsServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "secretmanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "secretmanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "secretmanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecretOperationsServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(SecretOperationsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SecretOperationsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected SecretOperationsServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listBackupsSettings = settingsBuilder.listBackupsSettings().build(); + getBackupSettings = settingsBuilder.getBackupSettings().build(); + createBackupSettings = settingsBuilder.createBackupSettings().build(); + createBackupOperationSettings = settingsBuilder.createBackupOperationSettings().build(); + updateBackupSettings = settingsBuilder.updateBackupSettings().build(); + updateBackupOperationSettings = settingsBuilder.updateBackupOperationSettings().build(); + deleteBackupSettings = settingsBuilder.deleteBackupSettings().build(); + deleteBackupOperationSettings = settingsBuilder.deleteBackupOperationSettings().build(); + restoreBackupSettings = settingsBuilder.restoreBackupSettings().build(); + restoreBackupOperationSettings = settingsBuilder.restoreBackupOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-secretmanager") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for SecretOperationsServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings; + private final UnaryCallSettings.Builder getBackupSettings; + private final UnaryCallSettings.Builder createBackupSettings; + private final OperationCallSettings.Builder + createBackupOperationSettings; + private final UnaryCallSettings.Builder updateBackupSettings; + private final OperationCallSettings.Builder + updateBackupOperationSettings; + private final UnaryCallSettings.Builder deleteBackupSettings; + private final OperationCallSettings.Builder + deleteBackupOperationSettings; + private final UnaryCallSettings.Builder restoreBackupSettings; + private final OperationCallSettings.Builder + restoreBackupOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_0_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); + getBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBackupOperationSettings = OperationCallSettings.newBuilder(); + updateBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBackupOperationSettings = OperationCallSettings.newBuilder(); + deleteBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBackupOperationSettings = OperationCallSettings.newBuilder(); + restoreBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + restoreBackupOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBackupsSettings, + getBackupSettings, + createBackupSettings, + updateBackupSettings, + deleteBackupSettings, + restoreBackupSettings); + initDefaults(this); + } + + protected Builder(SecretOperationsServiceStubSettings settings) { + super(settings); + + listBackupsSettings = settings.listBackupsSettings.toBuilder(); + getBackupSettings = settings.getBackupSettings.toBuilder(); + createBackupSettings = settings.createBackupSettings.toBuilder(); + createBackupOperationSettings = settings.createBackupOperationSettings.toBuilder(); + updateBackupSettings = settings.updateBackupSettings.toBuilder(); + updateBackupOperationSettings = settings.updateBackupOperationSettings.toBuilder(); + deleteBackupSettings = settings.deleteBackupSettings.toBuilder(); + deleteBackupOperationSettings = settings.deleteBackupOperationSettings.toBuilder(); + restoreBackupSettings = settings.restoreBackupSettings.toBuilder(); + restoreBackupOperationSettings = settings.restoreBackupOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listBackupsSettings, + getBackupSettings, + createBackupSettings, + updateBackupSettings, + deleteBackupSettings, + restoreBackupSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listBackupsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .restoreBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .restoreBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Secret.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listBackups. */ + public PagedCallSettings.Builder< + ListBackupsRequest, ListBackupsResponse, ListBackupsPagedResponse> + listBackupsSettings() { + return listBackupsSettings; + } + + /** Returns the builder for the settings used for calls to getBackup. */ + public UnaryCallSettings.Builder getBackupSettings() { + return getBackupSettings; + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public UnaryCallSettings.Builder createBackupSettings() { + return createBackupSettings; + } + + /** Returns the builder for the settings used for calls to createBackup. */ + public OperationCallSettings.Builder + createBackupOperationSettings() { + return createBackupOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public UnaryCallSettings.Builder updateBackupSettings() { + return updateBackupSettings; + } + + /** Returns the builder for the settings used for calls to updateBackup. */ + public OperationCallSettings.Builder + updateBackupOperationSettings() { + return updateBackupOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public UnaryCallSettings.Builder deleteBackupSettings() { + return deleteBackupSettings; + } + + /** Returns the builder for the settings used for calls to deleteBackup. */ + public OperationCallSettings.Builder + deleteBackupOperationSettings() { + return deleteBackupOperationSettings; + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public UnaryCallSettings.Builder restoreBackupSettings() { + return restoreBackupSettings; + } + + /** Returns the builder for the settings used for calls to restoreBackup. */ + public OperationCallSettings.Builder + restoreBackupOperationSettings() { + return restoreBackupOperationSettings; + } + + @Override + public SecretOperationsServiceStubSettings build() throws IOException { + return new SecretOperationsServiceStubSettings(this); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json index a3f5fb8be0be..19f3409dee8d 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json +++ b/java-secretmanager/google-cloud-secretmanager/src/main/resources/META-INF/native-image/com.google.cloud.secretmanager.v1/reflect-config.json @@ -530,6 +530,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.Backup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.Backup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.Backup$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.CloudSqlSingleUserCredentials", "queryAllDeclaredConstructors": true, @@ -548,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.CreateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.CreateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.CreateSecretRequest", "queryAllDeclaredConstructors": true, @@ -602,6 +647,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.DeleteBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.DeleteBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.DeleteSecretRequest", "queryAllDeclaredConstructors": true, @@ -692,6 +755,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.GetBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.GetBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.GetSecretRequest", "queryAllDeclaredConstructors": true, @@ -728,6 +809,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.ListBackupsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.ListSecretVersionsRequest", "queryAllDeclaredConstructors": true, @@ -800,6 +917,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata$Progress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.OperationMetadata$Progress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.Replication", "queryAllDeclaredConstructors": true, @@ -944,6 +1097,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.RestoreBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.RestoreBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.RotateSecretRequest", "queryAllDeclaredConstructors": true, @@ -1034,6 +1205,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.Secret$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.SecretPayload", "queryAllDeclaredConstructors": true, @@ -1097,6 +1277,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.secretmanager.v1.UpdateBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.secretmanager.v1.UpdateBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.secretmanager.v1.UpdateSecretRequest", "queryAllDeclaredConstructors": true, @@ -1376,6 +1574,150 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java new file mode 100644 index 000000000000..555abb552df1 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSecretOperationsService implements MockGrpcService { + private final MockSecretOperationsServiceImpl serviceImpl; + + public MockSecretOperationsService() { + serviceImpl = new MockSecretOperationsServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java new file mode 100644 index 000000000000..6ec9c7f5bb4d --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/MockSecretOperationsServiceImpl.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceGrpc.SecretOperationsServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockSecretOperationsServiceImpl extends SecretOperationsServiceImplBase { + private List requests; + private Queue responses; + + public MockSecretOperationsServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listBackups( + ListBackupsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBackupsResponse) { + requests.add(request); + responseObserver.onNext(((ListBackupsResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListBackups, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBackupsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBackup(GetBackupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Backup) { + requests.add(request); + responseObserver.onNext(((Backup) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Backup.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBackup( + CreateBackupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBackup( + UpdateBackupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBackup( + DeleteBackupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void restoreBackup( + RestoreBackupRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method RestoreBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..f7079d02aa91 --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientHttpJsonTest.java @@ -0,0 +1,973 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.secretmanager.v1.stub.HttpJsonSecretOperationsServiceStub; +import com.google.common.collect.Lists; +import com.google.iam.v1.ResourcePolicyMember; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SecretOperationsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static SecretOperationsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSecretOperationsServiceStub.getMethodDescriptors(), + SecretOperationsServiceSettings.getDefaultEndpoint()); + SecretOperationsServiceSettings settings = + SecretOperationsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SecretOperationsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecretOperationsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Backup backup = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Backup backup = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupAsync(backup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreBackupExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest2() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreBackupExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest3() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreBackupExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest4() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreBackupExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest5() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreBackupExceptionTest5() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void restoreBackupTest6() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void restoreBackupExceptionTest6() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1607/locations/location-1607/backups/backup-1607"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java new file mode 100644 index 000000000000..9c517bb1f28d --- /dev/null +++ b/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceClientTest.java @@ -0,0 +1,922 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import static com.google.cloud.secretmanager.v1.SecretOperationsServiceClient.ListBackupsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v1.ResourcePolicyMember; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SecretOperationsServiceClientTest { + private static MockSecretOperationsService mockSecretOperationsService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private SecretOperationsServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockSecretOperationsService = new MockSecretOperationsService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockSecretOperationsService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + SecretOperationsServiceSettings settings = + SecretOperationsServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SecretOperationsServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listBackupsTest() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBackupsTest2() throws Exception { + Backup responsesElement = Backup.newBuilder().build(); + ListBackupsResponse expectedResponse = + ListBackupsResponse.newBuilder() + .setNextPageToken("") + .addAllBackups(Arrays.asList(responsesElement)) + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBackupsPagedResponse pagedListResponse = client.listBackups(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBackupsList().get(0), resources.get(0)); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBackupsRequest actualRequest = ((ListBackupsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBackupsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBackups(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + mockSecretOperationsService.addResponse(expectedResponse); + + String name = "name3373707"; + + Backup actualResponse = client.getBackup(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBackupRequest actualRequest = ((GetBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + client.getBackup(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + + Backup actualResponse = client.createBackupAsync(parent, backup, backupId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBackupRequest actualRequest = ((CreateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String parent = "parent-995424086"; + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + client.createBackupAsync(parent, backup, backupId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setSourceSecret(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSourceSecretCreateTime(Timestamp.newBuilder().build()) + .setVersionCount(1102434024) + .putAllLabels(new HashMap()) + .setEtag("etag3123477") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Backup actualResponse = client.updateBackupAsync(backup, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBackupRequest actualRequest = ((UpdateBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(backup, actualRequest.getBackup()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBackupAsync(backup, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackupTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteBackupTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBackupAsync(name).get(); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBackupRequest actualRequest = ((DeleteBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + client.deleteBackupAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreBackupTest() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreBackupTest2() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreBackupTest3() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(destinationSecretParent, actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreBackupTest4() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreBackupTest5() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + destinationSecretParent.toString(), actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest5() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void restoreBackupTest6() throws Exception { + Secret expectedResponse = + Secret.newBuilder() + .setName(SecretName.ofProjectSecretName("[PROJECT]", "[SECRET]").toString()) + .setReplication(Replication.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .addAllTopics(new ArrayList()) + .setEtag("etag3123477") + .setRotation(Rotation.newBuilder().build()) + .putAllVersionAliases(new HashMap()) + .putAllAnnotations(new HashMap()) + .setVersionDestroyTtl(Duration.newBuilder().build()) + .setCustomerManagedEncryption(CustomerManagedEncryption.newBuilder().build()) + .putAllTags(new HashMap()) + .setPolicyMember(ResourcePolicyMember.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("restoreBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockSecretOperationsService.addResponse(resultOperation); + + String name = "name3373707"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + + Secret actualResponse = + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSecretOperationsService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RestoreBackupRequest actualRequest = ((RestoreBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(destinationSecretParent, actualRequest.getDestinationSecretParent()); + Assert.assertEquals(destinationSecretId, actualRequest.getDestinationSecretId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void restoreBackupExceptionTest6() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSecretOperationsService.addException(exception); + + try { + String name = "name3373707"; + String destinationSecretParent = "destinationSecretParent-929598808"; + String destinationSecretId = "destinationSecretId171779609"; + client.restoreBackupAsync(name, destinationSecretParent, destinationSecretId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java b/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java new file mode 100644 index 000000000000..1a5402d00f20 --- /dev/null +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOperationsServiceGrpc.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.secretmanager.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Secret Operations Service
+ * Manages backups of secrets. Implements a REST model with the following
+ * objects:
+ * * [Backup][google.cloud.secretmanager.v1.Backup]
+ * Note: `SecretOperationsService` is a regional service and must be called
+ * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class SecretOperationsServiceGrpc { + + private SecretOperationsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.secretmanager.v1.SecretOperationsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse> + getListBackupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBackups", + requestType = com.google.cloud.secretmanager.v1.ListBackupsRequest.class, + responseType = com.google.cloud.secretmanager.v1.ListBackupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse> + getListBackupsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse> + getListBackupsMethod; + if ((getListBackupsMethod = SecretOperationsServiceGrpc.getListBackupsMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getListBackupsMethod = SecretOperationsServiceGrpc.getListBackupsMethod) == null) { + SecretOperationsServiceGrpc.getListBackupsMethod = + getListBackupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBackups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListBackupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.ListBackupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("ListBackups")) + .build(); + } + } + } + return getListBackupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup> + getGetBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBackup", + requestType = com.google.cloud.secretmanager.v1.GetBackupRequest.class, + responseType = com.google.cloud.secretmanager.v1.Backup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup> + getGetBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup> + getGetBackupMethod; + if ((getGetBackupMethod = SecretOperationsServiceGrpc.getGetBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getGetBackupMethod = SecretOperationsServiceGrpc.getGetBackupMethod) == null) { + SecretOperationsServiceGrpc.getGetBackupMethod = + getGetBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.GetBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.Backup.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("GetBackup")) + .build(); + } + } + } + return getGetBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBackup", + requestType = com.google.cloud.secretmanager.v1.CreateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.CreateBackupRequest, com.google.longrunning.Operation> + getCreateBackupMethod; + if ((getCreateBackupMethod = SecretOperationsServiceGrpc.getCreateBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getCreateBackupMethod = SecretOperationsServiceGrpc.getCreateBackupMethod) == null) { + SecretOperationsServiceGrpc.getCreateBackupMethod = + getCreateBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.CreateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("CreateBackup")) + .build(); + } + } + } + return getCreateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBackup", + requestType = com.google.cloud.secretmanager.v1.UpdateBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, com.google.longrunning.Operation> + getUpdateBackupMethod; + if ((getUpdateBackupMethod = SecretOperationsServiceGrpc.getUpdateBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getUpdateBackupMethod = SecretOperationsServiceGrpc.getUpdateBackupMethod) == null) { + SecretOperationsServiceGrpc.getUpdateBackupMethod = + getUpdateBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.UpdateBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("UpdateBackup")) + .build(); + } + } + } + return getUpdateBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBackup", + requestType = com.google.cloud.secretmanager.v1.DeleteBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, com.google.longrunning.Operation> + getDeleteBackupMethod; + if ((getDeleteBackupMethod = SecretOperationsServiceGrpc.getDeleteBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getDeleteBackupMethod = SecretOperationsServiceGrpc.getDeleteBackupMethod) == null) { + SecretOperationsServiceGrpc.getDeleteBackupMethod = + getDeleteBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.DeleteBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("DeleteBackup")) + .build(); + } + } + } + return getDeleteBackupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, com.google.longrunning.Operation> + getRestoreBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RestoreBackup", + requestType = com.google.cloud.secretmanager.v1.RestoreBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, com.google.longrunning.Operation> + getRestoreBackupMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, + com.google.longrunning.Operation> + getRestoreBackupMethod; + if ((getRestoreBackupMethod = SecretOperationsServiceGrpc.getRestoreBackupMethod) == null) { + synchronized (SecretOperationsServiceGrpc.class) { + if ((getRestoreBackupMethod = SecretOperationsServiceGrpc.getRestoreBackupMethod) == null) { + SecretOperationsServiceGrpc.getRestoreBackupMethod = + getRestoreBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RestoreBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.secretmanager.v1.RestoreBackupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SecretOperationsServiceMethodDescriptorSupplier("RestoreBackup")) + .build(); + } + } + } + return getRestoreBackupMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SecretOperationsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceStub(channel, callOptions); + } + }; + return SecretOperationsServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static SecretOperationsServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingV2Stub(channel, callOptions); + } + }; + return SecretOperationsServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SecretOperationsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingStub(channel, callOptions); + } + }; + return SecretOperationsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SecretOperationsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SecretOperationsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceFutureStub(channel, callOptions); + } + }; + return SecretOperationsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + default void listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBackupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + default void getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + default void createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + default void updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + default void deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBackupMethod(), responseObserver); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + default void restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRestoreBackupMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public abstract static class SecretOperationsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SecretOperationsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private SecretOperationsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public void listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public void getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public void createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public void updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public void deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public void restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRestoreBackupMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private SecretOperationsServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListBackupsResponse listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Backup getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public com.google.longrunning.Operation restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRestoreBackupMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SecretOperationsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.ListBackupsResponse listBackups( + com.google.cloud.secretmanager.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBackupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public com.google.cloud.secretmanager.v1.Backup getBackup( + com.google.cloud.secretmanager.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public com.google.longrunning.Operation createBackup( + com.google.cloud.secretmanager.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation updateBackup( + com.google.cloud.secretmanager.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public com.google.longrunning.Operation deleteBackup( + com.google.cloud.secretmanager.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBackupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public com.google.longrunning.Operation restoreBackup( + com.google.cloud.secretmanager.v1.RestoreBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRestoreBackupMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * SecretOperationsService. + * + *
+   * Secret Operations Service
+   * Manages backups of secrets. Implements a REST model with the following
+   * objects:
+   * * [Backup][google.cloud.secretmanager.v1.Backup]
+   * Note: `SecretOperationsService` is a regional service and must be called
+   * using regional endpoints (`secretmanager.{location}.rep.googleapis.com`).
+   * 
+ */ + public static final class SecretOperationsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SecretOperationsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SecretOperationsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SecretOperationsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists Backups in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.ListBackupsResponse> + listBackups(com.google.cloud.secretmanager.v1.ListBackupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBackupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.secretmanager.v1.Backup> + getBackup(com.google.cloud.secretmanager.v1.GetBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new Backup in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createBackup(com.google.cloud.secretmanager.v1.CreateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateBackup(com.google.cloud.secretmanager.v1.UpdateBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Backup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteBackup(com.google.cloud.secretmanager.v1.DeleteBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBackupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given
+     * [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new*
+     * [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the
+     * restoration process, and the result of the LRO is the newly created Secret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + restoreBackup(com.google.cloud.secretmanager.v1.RestoreBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRestoreBackupMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_BACKUPS = 0; + private static final int METHODID_GET_BACKUP = 1; + private static final int METHODID_CREATE_BACKUP = 2; + private static final int METHODID_UPDATE_BACKUP = 3; + private static final int METHODID_DELETE_BACKUP = 4; + private static final int METHODID_RESTORE_BACKUP = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_BACKUPS: + serviceImpl.listBackups( + (com.google.cloud.secretmanager.v1.ListBackupsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BACKUP: + serviceImpl.getBackup( + (com.google.cloud.secretmanager.v1.GetBackupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_BACKUP: + serviceImpl.createBackup( + (com.google.cloud.secretmanager.v1.CreateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BACKUP: + serviceImpl.updateBackup( + (com.google.cloud.secretmanager.v1.UpdateBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BACKUP: + serviceImpl.deleteBackup( + (com.google.cloud.secretmanager.v1.DeleteBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESTORE_BACKUP: + serviceImpl.restoreBackup( + (com.google.cloud.secretmanager.v1.RestoreBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListBackupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.ListBackupsRequest, + com.google.cloud.secretmanager.v1.ListBackupsResponse>( + service, METHODID_LIST_BACKUPS))) + .addMethod( + getGetBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.GetBackupRequest, + com.google.cloud.secretmanager.v1.Backup>(service, METHODID_GET_BACKUP))) + .addMethod( + getCreateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.CreateBackupRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_BACKUP))) + .addMethod( + getUpdateBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.UpdateBackupRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_BACKUP))) + .addMethod( + getDeleteBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.DeleteBackupRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_BACKUP))) + .addMethod( + getRestoreBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.secretmanager.v1.RestoreBackupRequest, + com.google.longrunning.Operation>(service, METHODID_RESTORE_BACKUP))) + .build(); + } + + private abstract static class SecretOperationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SecretOperationsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("SecretOperationsService"); + } + } + + private static final class SecretOperationsServiceFileDescriptorSupplier + extends SecretOperationsServiceBaseDescriptorSupplier { + SecretOperationsServiceFileDescriptorSupplier() {} + } + + private static final class SecretOperationsServiceMethodDescriptorSupplier + extends SecretOperationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + SecretOperationsServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SecretOperationsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SecretOperationsServiceFileDescriptorSupplier()) + .addMethod(getListBackupsMethod()) + .addMethod(getGetBackupMethod()) + .addMethod(getCreateBackupMethod()) + .addMethod(getUpdateBackupMethod()) + .addMethod(getDeleteBackupMethod()) + .addMethod(getRestoreBackupMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java new file mode 100644 index 000000000000..6198dea68520 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Backup.java @@ -0,0 +1,2828 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * A Backup of a Secret.
+ * Backups are regional resources.
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.Backup} + */ +@com.google.protobuf.Generated +public final class Backup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.Backup) + BackupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Backup"); + } + + // Use Backup.newBuilder() to construct. + private Backup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Backup() { + name_ = ""; + sourceSecret_ = ""; + state_ = 0; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.Backup.class, + com.google.cloud.secretmanager.v1.Backup.Builder.class); + } + + /** + * + * + *
+   * Enum representing the state of the
+   * [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * Protobuf enum {@code google.cloud.secretmanager.v1.Backup.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Backup state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The backup is being created.
+     * 
+ * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
+     * The backup is active and can be used.
+     * 
+ * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
+     * The backup is being updated.
+     * 
+ * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
+     * The backup creation or update failed.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Backup state is unspecified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The backup is being created.
+     * 
+ * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
+     * The backup is active and can be used.
+     * 
+ * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
+     * The backup is being updated.
+     * 
+ * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + + /** + * + * + *
+     * The backup creation or update failed.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return UPDATING; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.Backup.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.secretmanager.v1.Backup.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_SECRET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceSecret_ = ""; + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSecret. + */ + @java.lang.Override + public java.lang.String getSourceSecret() { + java.lang.Object ref = sourceSecret_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSecret_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceSecretBytes() { + java.lang.Object ref = sourceSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SOURCE_SECRET_CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp sourceSecretCreateTime_; + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sourceSecretCreateTime field is set. + */ + @java.lang.Override + public boolean hasSourceSecretCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sourceSecretCreateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSourceSecretCreateTime() { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSourceSecretCreateTimeOrBuilder() { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } + + public static final int VERSION_COUNT_FIELD_NUMBER = 6; + private int versionCount_ = 0; + + /** + * + * + *
+   * Output only. Number of non-destroyed secret versions contained in this
+   * backup.
+   * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The versionCount. + */ + @java.lang.Override + public int getVersionCount() { + return versionCount_; + } + + public static final int LABELS_FIELD_NUMBER = 7; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int STATE_FIELD_NUMBER = 8; + private int state_ = 0; + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup.State getState() { + com.google.cloud.secretmanager.v1.Backup.State result = + com.google.cloud.secretmanager.v1.Backup.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Backup.State.UNRECOGNIZED : result; + } + + public static final int ETAG_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, sourceSecret_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getSourceSecretCreateTime()); + } + if (versionCount_ != 0) { + output.writeInt32(6, versionCount_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 7); + if (state_ != com.google.cloud.secretmanager.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sourceSecret_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSourceSecretCreateTime()); + } + if (versionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, versionCount_); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, labels__); + } + if (state_ != com.google.cloud.secretmanager.v1.Backup.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.Backup)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.Backup other = (com.google.cloud.secretmanager.v1.Backup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceSecret().equals(other.getSourceSecret())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasSourceSecretCreateTime() != other.hasSourceSecretCreateTime()) return false; + if (hasSourceSecretCreateTime()) { + if (!getSourceSecretCreateTime().equals(other.getSourceSecretCreateTime())) return false; + } + if (getVersionCount() != other.getVersionCount()) return false; + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (state_ != other.state_) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + SOURCE_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getSourceSecret().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasSourceSecretCreateTime()) { + hash = (37 * hash) + SOURCE_SECRET_CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSourceSecretCreateTime().hashCode(); + } + hash = (37 * hash) + VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getVersionCount(); + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.Backup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.Backup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.Backup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.secretmanager.v1.Backup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A Backup of a Secret.
+   * Backups are regional resources.
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.Backup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.Backup) + com.google.cloud.secretmanager.v1.BackupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.Backup.class, + com.google.cloud.secretmanager.v1.Backup.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.Backup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetSourceSecretCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceSecret_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + sourceSecretCreateTime_ = null; + if (sourceSecretCreateTimeBuilder_ != null) { + sourceSecretCreateTimeBuilder_.dispose(); + sourceSecretCreateTimeBuilder_ = null; + } + versionCount_ = 0; + internalGetMutableLabels().clear(); + state_ = 0; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.Backup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup build() { + com.google.cloud.secretmanager.v1.Backup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup buildPartial() { + com.google.cloud.secretmanager.v1.Backup result = + new com.google.cloud.secretmanager.v1.Backup(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.Backup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceSecret_ = sourceSecret_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceSecretCreateTime_ = + sourceSecretCreateTimeBuilder_ == null + ? sourceSecretCreateTime_ + : sourceSecretCreateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.versionCount_ = versionCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.etag_ = etag_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.Backup) { + return mergeFrom((com.google.cloud.secretmanager.v1.Backup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.Backup other) { + if (other == com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceSecret().isEmpty()) { + sourceSecret_ = other.sourceSecret_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasSourceSecretCreateTime()) { + mergeSourceSecretCreateTime(other.getSourceSecretCreateTime()); + } + if (other.getVersionCount() != 0) { + setVersionCount(other.getVersionCount()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetSourceSecretCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + versionCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 90: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. Resource name of the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. Resource name of the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of the backup.
+     * Format: `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceSecret_ = ""; + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSecret. + */ + public java.lang.String getSourceSecret() { + java.lang.Object ref = sourceSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSecret. + */ + public com.google.protobuf.ByteString getSourceSecretBytes() { + java.lang.Object ref = sourceSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceSecret to set. + * @return This builder for chaining. + */ + public Builder setSourceSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceSecret() { + sourceSecret_ = getDefaultInstance().getSourceSecret(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Immutable. Resource name of the
+     * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+     * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+     * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+     * is immutable after creation. Formats:
+     * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+     * secrets)
+     * - `projects/{project}/secrets/{secret}` (for global secrets)
+     * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceSecret to set. + * @return This builder for chaining. + */ + public Builder setSourceSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceSecret_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. Time at which the backup resource was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp sourceSecretCreateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + sourceSecretCreateTimeBuilder_; + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sourceSecretCreateTime field is set. + */ + public boolean hasSourceSecretCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sourceSecretCreateTime. + */ + public com.google.protobuf.Timestamp getSourceSecretCreateTime() { + if (sourceSecretCreateTimeBuilder_ == null) { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } else { + return sourceSecretCreateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSourceSecretCreateTime(com.google.protobuf.Timestamp value) { + if (sourceSecretCreateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceSecretCreateTime_ = value; + } else { + sourceSecretCreateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSourceSecretCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (sourceSecretCreateTimeBuilder_ == null) { + sourceSecretCreateTime_ = builderForValue.build(); + } else { + sourceSecretCreateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSourceSecretCreateTime(com.google.protobuf.Timestamp value) { + if (sourceSecretCreateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && sourceSecretCreateTime_ != null + && sourceSecretCreateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSourceSecretCreateTimeBuilder().mergeFrom(value); + } else { + sourceSecretCreateTime_ = value; + } + } else { + sourceSecretCreateTimeBuilder_.mergeFrom(value); + } + if (sourceSecretCreateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSourceSecretCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + sourceSecretCreateTime_ = null; + if (sourceSecretCreateTimeBuilder_ != null) { + sourceSecretCreateTimeBuilder_.dispose(); + sourceSecretCreateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSourceSecretCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSourceSecretCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSourceSecretCreateTimeOrBuilder() { + if (sourceSecretCreateTimeBuilder_ != null) { + return sourceSecretCreateTimeBuilder_.getMessageOrBuilder(); + } else { + return sourceSecretCreateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : sourceSecretCreateTime_; + } + } + + /** + * + * + *
+     * Output only. Creation time of the source
+     * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+     * initiated.
+     * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetSourceSecretCreateTimeFieldBuilder() { + if (sourceSecretCreateTimeBuilder_ == null) { + sourceSecretCreateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSourceSecretCreateTime(), getParentForChildren(), isClean()); + sourceSecretCreateTime_ = null; + } + return sourceSecretCreateTimeBuilder_; + } + + private int versionCount_; + + /** + * + * + *
+     * Output only. Number of non-destroyed secret versions contained in this
+     * backup.
+     * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The versionCount. + */ + @java.lang.Override + public int getVersionCount() { + return versionCount_; + } + + /** + * + * + *
+     * Output only. Number of non-destroyed secret versions contained in this
+     * backup.
+     * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The versionCount to set. + * @return This builder for chaining. + */ + public Builder setVersionCount(int value) { + + versionCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Number of non-destroyed secret versions contained in this
+     * backup.
+     * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersionCount() { + bitField0_ = (bitField0_ & ~0x00000020); + versionCount_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
+     * Optional. Labels with user-defined metadata.
+     * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup.State getState() { + com.google.cloud.secretmanager.v1.Backup.State result = + com.google.cloud.secretmanager.v1.Backup.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Backup.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.secretmanager.v1.Backup.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Current state of the Backup.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000080); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Used for optimistic concurrency control as a way to help prevent
+     * simultaneous updates of a backup from overwriting each other.
+     * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Backup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.Backup) + private static final com.google.cloud.secretmanager.v1.Backup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.Backup(); + } + + public static com.google.cloud.secretmanager.v1.Backup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Backup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java new file mode 100644 index 000000000000..e44751e458d4 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class BackupName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BACKUP = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/backups/{backup}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String backup; + + @Deprecated + protected BackupName() { + project = null; + location = null; + backup = null; + } + + private BackupName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + backup = Preconditions.checkNotNull(builder.getBackup()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackup() { + return backup; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BackupName of(String project, String location, String backup) { + return newBuilder().setProject(project).setLocation(location).setBackup(backup).build(); + } + + public static String format(String project, String location, String backup) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBackup(backup) + .build() + .toString(); + } + + public static @Nullable BackupName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BACKUP.validatedMatch( + formattedString, "BackupName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("backup")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable BackupName> values) { + List list = new ArrayList<>(values.size()); + for (BackupName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BACKUP.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (backup != null) { + fieldMapBuilder.put("backup", backup); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BACKUP.instantiate( + "project", project, "location", location, "backup", backup); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BackupName that = ((BackupName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.backup, that.backup); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(backup); + return h; + } + + /** Builder for projects/{project}/locations/{location}/backups/{backup}. */ + public static class Builder { + private String project; + private String location; + private String backup; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBackup() { + return backup; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBackup(String backup) { + this.backup = backup; + return this; + } + + private Builder(BackupName backupName) { + this.project = backupName.project; + this.location = backupName.location; + this.backup = backupName.backup; + } + + public BackupName build() { + return new BackupName(this); + } + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java new file mode 100644 index 000000000000..be20c9661bcd --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/BackupOrBuilder.java @@ -0,0 +1,364 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface BackupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.Backup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of the backup.
+   * Format: `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceSecret. + */ + java.lang.String getSourceSecret(); + + /** + * + * + *
+   * Required. Immutable. Resource name of the
+   * [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The
+   * source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different
+   * region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field
+   * is immutable after creation. Formats:
+   * - `projects/{project}/locations/{location}/secrets/{secret}` (for regional
+   * secrets)
+   * - `projects/{project}/secrets/{secret}` (for global secrets)
+   * 
+ * + * + * string source_secret = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceSecret. + */ + com.google.protobuf.ByteString getSourceSecretBytes(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Time at which the backup resource was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sourceSecretCreateTime field is set. + */ + boolean hasSourceSecretCreateTime(); + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sourceSecretCreateTime. + */ + com.google.protobuf.Timestamp getSourceSecretCreateTime(); + + /** + * + * + *
+   * Output only. Creation time of the source
+   * [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was
+   * initiated.
+   * 
+ * + * + * .google.protobuf.Timestamp source_secret_create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSourceSecretCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Number of non-destroyed secret versions contained in this
+   * backup.
+   * 
+ * + * int32 version_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The versionCount. + */ + int getVersionCount(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels with user-defined metadata.
+   * 
+ * + * map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. Current state of the Backup.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.secretmanager.v1.Backup.State getState(); + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. Used for optimistic concurrency control as a way to help prevent
+   * simultaneous updates of a backup from overwriting each other.
+   * 
+ * + * string etag = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java new file mode 100644 index 000000000000..5d86c5ed3693 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequest.java @@ -0,0 +1,1150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.CreateBackupRequest} + */ +@com.google.protobuf.Generated +public final class CreateBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.CreateBackupRequest) + CreateBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateBackupRequest"); + } + + // Use CreateBackupRequest.newBuilder() to construct. + private CreateBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateBackupRequest() { + parent_ = ""; + backupId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.CreateBackupRequest.class, + com.google.cloud.secretmanager.v1.CreateBackupRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * format `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * format `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + @java.lang.Override + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_FIELD_NUMBER = 3; + private com.google.cloud.secretmanager.v1.Backup backup_; + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + @java.lang.Override + public boolean hasBackup() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getBackup() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, backupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBackup()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(backupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, backupId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBackup()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.CreateBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.CreateBackupRequest other = + (com.google.cloud.secretmanager.v1.CreateBackupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBackupId().equals(other.getBackupId())) return false; + if (hasBackup() != other.hasBackup()) return false; + if (hasBackup()) { + if (!getBackup().equals(other.getBackup())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getBackupId().hashCode(); + if (hasBackup()) { + hash = (37 * hash) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.CreateBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.CreateBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.CreateBackupRequest) + com.google.cloud.secretmanager.v1.CreateBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.CreateBackupRequest.class, + com.google.cloud.secretmanager.v1.CreateBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.CreateBackupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBackupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + backupId_ = ""; + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.CreateBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest build() { + com.google.cloud.secretmanager.v1.CreateBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.CreateBackupRequest result = + new com.google.cloud.secretmanager.v1.CreateBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.CreateBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupId_ = backupId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.CreateBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.CreateBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.CreateBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.CreateBackupRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackupId().isEmpty()) { + backupId_ = other.backupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBackup()) { + mergeBackup(other.getBackup()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetBackupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location where the
+     * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+     * format `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object backupId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackupId() { + backupId_ = getDefaultInstance().getBackupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the backup, which will become the final
+     * component of the backup's resource name.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.secretmanager.v1.Backup backup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + backupBuilder_; + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + public boolean hasBackup() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + public com.google.cloud.secretmanager.v1.Backup getBackup() { + if (backupBuilder_ == null) { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } else { + return backupBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + } else { + backupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupBuilder_ == null) { + backup_ = builderForValue.build(); + } else { + backupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && backup_ != null + && backup_ != com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()) { + getBackupBuilder().mergeFrom(value); + } else { + backup_ = value; + } + } else { + backupBuilder_.mergeFrom(value); + } + if (backup_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackup() { + bitField0_ = (bitField0_ & ~0x00000004); + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.Backup.Builder getBackupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBackupFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + if (backupBuilder_ != null) { + return backupBuilder_.getMessageOrBuilder(); + } else { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+     * create.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + internalGetBackupFieldBuilder() { + if (backupBuilder_ == null) { + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); + backup_ = null; + } + return backupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.CreateBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.CreateBackupRequest) + private static final com.google.cloud.secretmanager.v1.CreateBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.CreateBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.CreateBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.CreateBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java new file mode 100644 index 000000000000..d5c3e0f4f9af --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CreateBackupRequestOrBuilder.java @@ -0,0 +1,136 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface CreateBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.CreateBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * format `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the location where the
+   * [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the
+   * format `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + java.lang.String getBackupId(); + + /** + * + * + *
+   * Required. The ID to use for the backup, which will become the final
+   * component of the backup's resource name.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + com.google.protobuf.ByteString getBackupIdBytes(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + boolean hasBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + com.google.cloud.secretmanager.v1.Backup getBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to
+   * create.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java new file mode 100644 index 000000000000..ec324dc14a4c --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/CryptoKeyName.java @@ -0,0 +1,264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class CryptoKeyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String keyRing; + private final String cryptoKey; + + @Deprecated + protected CryptoKeyName() { + project = null; + location = null; + keyRing = null; + cryptoKey = null; + } + + private CryptoKeyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + keyRing = Preconditions.checkNotNull(builder.getKeyRing()); + cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CryptoKeyName of( + String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build(); + } + + public static String format(String project, String location, String keyRing, String cryptoKey) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setKeyRing(keyRing) + .setCryptoKey(cryptoKey) + .build() + .toString(); + } + + public static @Nullable CryptoKeyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.validatedMatch( + formattedString, "CryptoKeyName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("key_ring"), + matchMap.get("crypto_key")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List<@Nullable CryptoKeyName> values) { + List list = new ArrayList<>(values.size()); + for (CryptoKeyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (keyRing != null) { + fieldMapBuilder.put("key_ring", keyRing); + } + if (cryptoKey != null) { + fieldMapBuilder.put("crypto_key", cryptoKey); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_KEY_RING_CRYPTO_KEY.instantiate( + "project", project, "location", location, "key_ring", keyRing, "crypto_key", cryptoKey); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CryptoKeyName that = ((CryptoKeyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.keyRing, that.keyRing) + && Objects.equals(this.cryptoKey, that.cryptoKey); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(keyRing); + h *= 1000003; + h ^= Objects.hashCode(cryptoKey); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}. + */ + public static class Builder { + private String project; + private String location; + private String keyRing; + private String cryptoKey; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getKeyRing() { + return keyRing; + } + + public String getCryptoKey() { + return cryptoKey; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setKeyRing(String keyRing) { + this.keyRing = keyRing; + return this; + } + + public Builder setCryptoKey(String cryptoKey) { + this.cryptoKey = cryptoKey; + return this; + } + + private Builder(CryptoKeyName cryptoKeyName) { + this.project = cryptoKeyName.project; + this.location = cryptoKeyName.location; + this.keyRing = cryptoKeyName.keyRing; + this.cryptoKey = cryptoKeyName.cryptoKey; + } + + public CryptoKeyName build() { + return new CryptoKeyName(this); + } + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java new file mode 100644 index 000000000000..6c1e1fde7991 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequest.java @@ -0,0 +1,823 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.DeleteBackupRequest} + */ +@com.google.protobuf.Generated +public final class DeleteBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.DeleteBackupRequest) + DeleteBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteBackupRequest"); + } + + // Use DeleteBackupRequest.newBuilder() to construct. + private DeleteBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteBackupRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.DeleteBackupRequest.class, + com.google.cloud.secretmanager.v1.DeleteBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
+   * Optional. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.DeleteBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.DeleteBackupRequest other = + (com.google.cloud.secretmanager.v1.DeleteBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.DeleteBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.DeleteBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.DeleteBackupRequest) + com.google.cloud.secretmanager.v1.DeleteBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.DeleteBackupRequest.class, + com.google.cloud.secretmanager.v1.DeleteBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.DeleteBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.DeleteBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest build() { + com.google.cloud.secretmanager.v1.DeleteBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.DeleteBackupRequest result = + new com.google.cloud.secretmanager.v1.DeleteBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.DeleteBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.DeleteBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.DeleteBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.DeleteBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.DeleteBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
+     * Optional. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If set, the request will only succeed if it matches the etag of
+     * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.DeleteBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.DeleteBackupRequest) + private static final com.google.cloud.secretmanager.v1.DeleteBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.DeleteBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.DeleteBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.DeleteBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java new file mode 100644 index 000000000000..019951251776 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/DeleteBackupRequestOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface DeleteBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.DeleteBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
+   * Optional. If set, the request will only succeed if it matches the etag of
+   * the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java new file mode 100644 index 000000000000..64f890f42a30 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequest.java @@ -0,0 +1,626 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.GetBackupRequest} + */ +@com.google.protobuf.Generated +public final class GetBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.GetBackupRequest) + GetBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetBackupRequest"); + } + + // Use GetBackupRequest.newBuilder() to construct. + private GetBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetBackupRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.GetBackupRequest.class, + com.google.cloud.secretmanager.v1.GetBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.GetBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.GetBackupRequest other = + (com.google.cloud.secretmanager.v1.GetBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.secretmanager.v1.GetBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.GetBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.GetBackupRequest) + com.google.cloud.secretmanager.v1.GetBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.GetBackupRequest.class, + com.google.cloud.secretmanager.v1.GetBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.GetBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.GetBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest build() { + com.google.cloud.secretmanager.v1.GetBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.GetBackupRequest result = + new com.google.cloud.secretmanager.v1.GetBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.GetBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.GetBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.GetBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.GetBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.GetBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}/backups/{backup}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.GetBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.GetBackupRequest) + private static final com.google.cloud.secretmanager.v1.GetBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.GetBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.GetBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.GetBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java new file mode 100644 index 000000000000..840702f1ba7a --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/GetBackupRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface GetBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.GetBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}/backups/{backup}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java new file mode 100644 index 000000000000..e35ddda79cc9 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequest.java @@ -0,0 +1,1305 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsRequest} + */ +@com.google.protobuf.Generated +public final class ListBackupsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListBackupsRequest) + ListBackupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListBackupsRequest"); + } + + // Use ListBackupsRequest.newBuilder() to construct. + private ListBackupsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackupsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsRequest.class, + com.google.cloud.secretmanager.v1.ListBackupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Maximum number of backups to return. The service may return fewer
+   * than this value. If unspecified, at most 50 backups will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Field specification for sorting the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Field specification for sorting the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.ListBackupsRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.ListBackupsRequest other = + (com.google.cloud.secretmanager.v1.ListBackupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.secretmanager.v1.ListBackupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListBackupsRequest) + com.google.cloud.secretmanager.v1.ListBackupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsRequest.class, + com.google.cloud.secretmanager.v1.ListBackupsRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.ListBackupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.ListBackupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest build() { + com.google.cloud.secretmanager.v1.ListBackupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest buildPartial() { + com.google.cloud.secretmanager.v1.ListBackupsRequest result = + new com.google.cloud.secretmanager.v1.ListBackupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.ListBackupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.ListBackupsRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.ListBackupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListBackupsRequest other) { + if (other == com.google.cloud.secretmanager.v1.ListBackupsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the location associated with the
+     * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+     * `projects/{project}/locations/{location}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Maximum number of backups to return. The service may return fewer
+     * than this value. If unspecified, at most 50 backups will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Maximum number of backups to return. The service may return fewer
+     * than this value. If unspecified, at most 50 backups will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Maximum number of backups to return. The service may return fewer
+     * than this value. If unspecified, at most 50 backups will be returned. The
+     * maximum value is 1000; values above 1000 will be coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter expression to restrict the returned
+     * [Backups][google.cloud.secretmanager.v1.Backup].
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Field specification for sorting the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Field specification for sorting the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Field specification for sorting the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field specification for sorting the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field specification for sorting the results in the response.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListBackupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListBackupsRequest) + private static final com.google.cloud.secretmanager.v1.ListBackupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListBackupsRequest(); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java new file mode 100644 index 000000000000..b3900548ba07 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsRequestOrBuilder.java @@ -0,0 +1,157 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface ListBackupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListBackupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the location associated with the
+   * [Backups][google.cloud.secretmanager.v1.Backup], in the format
+   * `projects/{project}/locations/{location}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Maximum number of backups to return. The service may return fewer
+   * than this value. If unspecified, at most 50 backups will be returned. The
+   * maximum value is 1000; values above 1000 will be coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter expression to restrict the returned
+   * [Backups][google.cloud.secretmanager.v1.Backup].
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Field specification for sorting the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Field specification for sorting the results in the response.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java new file mode 100644 index 000000000000..37c7f6ec2837 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponse.java @@ -0,0 +1,1440 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Response message for
+ * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsResponse} + */ +@com.google.protobuf.Generated +public final class ListBackupsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.ListBackupsResponse) + ListBackupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListBackupsResponse"); + } + + // Use ListBackupsResponse.newBuilder() to construct. + private ListBackupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBackupsResponse() { + backups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsResponse.class, + com.google.cloud.secretmanager.v1.ListBackupsResponse.Builder.class); + } + + public static final int BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List backups_; + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List getBackupsList() { + return backups_; + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public java.util.List + getBackupsOrBuilderList() { + return backups_; + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public int getBackupsCount() { + return backups_.size(); + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getBackups(int index) { + return backups_.get(index); + } + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + return backups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < backups_.size(); i++) { + output.writeMessage(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < backups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, backups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.ListBackupsResponse)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.ListBackupsResponse other = + (com.google.cloud.secretmanager.v1.ListBackupsResponse) obj; + + if (!getBackupsList().equals(other.getBackupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getBackupsCount() > 0) { + hash = (37 * hash) + BACKUPS_FIELD_NUMBER; + hash = (53 * hash) + getBackupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.ListBackupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.ListBackupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.ListBackupsResponse) + com.google.cloud.secretmanager.v1.ListBackupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.ListBackupsResponse.class, + com.google.cloud.secretmanager.v1.ListBackupsResponse.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.ListBackupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + } else { + backups_ = null; + backupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.ListBackupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse build() { + com.google.cloud.secretmanager.v1.ListBackupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse buildPartial() { + com.google.cloud.secretmanager.v1.ListBackupsResponse result = + new com.google.cloud.secretmanager.v1.ListBackupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.secretmanager.v1.ListBackupsResponse result) { + if (backupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + backups_ = java.util.Collections.unmodifiableList(backups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.backups_ = backups_; + } else { + result.backups_ = backupsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.ListBackupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.ListBackupsResponse) { + return mergeFrom((com.google.cloud.secretmanager.v1.ListBackupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.ListBackupsResponse other) { + if (other == com.google.cloud.secretmanager.v1.ListBackupsResponse.getDefaultInstance()) + return this; + if (backupsBuilder_ == null) { + if (!other.backups_.isEmpty()) { + if (backups_.isEmpty()) { + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBackupsIsMutable(); + backups_.addAll(other.backups_); + } + onChanged(); + } + } else { + if (!other.backups_.isEmpty()) { + if (backupsBuilder_.isEmpty()) { + backupsBuilder_.dispose(); + backupsBuilder_ = null; + backups_ = other.backups_; + bitField0_ = (bitField0_ & ~0x00000001); + backupsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBackupsFieldBuilder() + : null; + } else { + backupsBuilder_.addAllMessages(other.backups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.secretmanager.v1.Backup m = + input.readMessage( + com.google.cloud.secretmanager.v1.Backup.parser(), extensionRegistry); + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(m); + } else { + backupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List backups_ = + java.util.Collections.emptyList(); + + private void ensureBackupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + backups_ = new java.util.ArrayList(backups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + backupsBuilder_; + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public java.util.List getBackupsList() { + if (backupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(backups_); + } else { + return backupsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public int getBackupsCount() { + if (backupsBuilder_ == null) { + return backups_.size(); + } else { + return backupsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup getBackups(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder setBackups(int index, com.google.cloud.secretmanager.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.set(index, value); + onChanged(); + } else { + backupsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder setBackups( + int index, com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.set(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.secretmanager.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(value); + onChanged(); + } else { + backupsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups(int index, com.google.cloud.secretmanager.v1.Backup value) { + if (backupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBackupsIsMutable(); + backups_.add(index, value); + onChanged(); + } else { + backupsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups(com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addBackups( + int index, com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.add(index, builderForValue.build()); + onChanged(); + } else { + backupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder addAllBackups( + java.lang.Iterable values) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, backups_); + onChanged(); + } else { + backupsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder clearBackups() { + if (backupsBuilder_ == null) { + backups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + backupsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public Builder removeBackups(int index) { + if (backupsBuilder_ == null) { + ensureBackupsIsMutable(); + backups_.remove(index); + onChanged(); + } else { + backupsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup.Builder getBackupsBuilder(int index) { + return internalGetBackupsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupsOrBuilder(int index) { + if (backupsBuilder_ == null) { + return backups_.get(index); + } else { + return backupsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public java.util.List + getBackupsOrBuilderList() { + if (backupsBuilder_ != null) { + return backupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(backups_); + } + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup.Builder addBackupsBuilder() { + return internalGetBackupsFieldBuilder() + .addBuilder(com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public com.google.cloud.secretmanager.v1.Backup.Builder addBackupsBuilder(int index) { + return internalGetBackupsFieldBuilder() + .addBuilder(index, com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+     * location.
+     * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + public java.util.List + getBackupsBuilderList() { + return internalGetBackupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + internalGetBackupsFieldBuilder() { + if (backupsBuilder_ == null) { + backupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder>( + backups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + backups_ = null; + } + return backupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Resource names of the unreachable locations.
+     * Format: `projects/{project}/locations/{location}`
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.ListBackupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.ListBackupsResponse) + private static final com.google.cloud.secretmanager.v1.ListBackupsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.ListBackupsResponse(); + } + + public static com.google.cloud.secretmanager.v1.ListBackupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBackupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.ListBackupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java new file mode 100644 index 000000000000..1df3fe9746be --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ListBackupsResponseOrBuilder.java @@ -0,0 +1,173 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface ListBackupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.ListBackupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + java.util.List getBackupsList(); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + com.google.cloud.secretmanager.v1.Backup getBackups(int index); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + int getBackupsCount(); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + java.util.List + getBackupsOrBuilderList(); + + /** + * + * + *
+   * The list of [Backups][google.cloud.secretmanager.v1.Backup] in the
+   * location.
+   * 
+ * + * repeated .google.cloud.secretmanager.v1.Backup backups = 1; + */ + com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Resource names of the unreachable locations.
+   * Format: `projects/{project}/locations/{location}`
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java new file mode 100644 index 000000000000..1acf1f25f4b0 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadata.java @@ -0,0 +1,2940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Represents the metadata of the long-running operation.
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata} + */ +@com.google.protobuf.Generated +public final class OperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationMetadata"); + } + + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Builder.class); + } + + public interface ProgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.OperationMetadata.Progress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Provides the total number of secret versions to be processed
+     * by the operation.
+     * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalVersionCount. + */ + int getTotalVersionCount(); + + /** + * + * + *
+     * Output only. Number of secret versions that have been successfully
+     * processed so far.
+     * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The completedVersionCount. + */ + int getCompletedVersionCount(); + + /** + * + * + *
+     * Output only. Number of secret versions that failed to process.
+     * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedVersionCount. + */ + int getFailedVersionCount(); + } + + /** + * + * + *
+   * Represents progress information for operations involving multiple secret
+   * versions.
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata.Progress} + */ + public static final class Progress extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.OperationMetadata.Progress) + ProgressOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Progress"); + } + + // Use Progress.newBuilder() to construct. + private Progress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Progress() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder.class); + } + + public static final int TOTAL_VERSION_COUNT_FIELD_NUMBER = 1; + private int totalVersionCount_ = 0; + + /** + * + * + *
+     * Output only. Provides the total number of secret versions to be processed
+     * by the operation.
+     * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalVersionCount. + */ + @java.lang.Override + public int getTotalVersionCount() { + return totalVersionCount_; + } + + public static final int COMPLETED_VERSION_COUNT_FIELD_NUMBER = 2; + private int completedVersionCount_ = 0; + + /** + * + * + *
+     * Output only. Number of secret versions that have been successfully
+     * processed so far.
+     * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The completedVersionCount. + */ + @java.lang.Override + public int getCompletedVersionCount() { + return completedVersionCount_; + } + + public static final int FAILED_VERSION_COUNT_FIELD_NUMBER = 3; + private int failedVersionCount_ = 0; + + /** + * + * + *
+     * Output only. Number of secret versions that failed to process.
+     * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedVersionCount. + */ + @java.lang.Override + public int getFailedVersionCount() { + return failedVersionCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (totalVersionCount_ != 0) { + output.writeInt32(1, totalVersionCount_); + } + if (completedVersionCount_ != 0) { + output.writeInt32(2, completedVersionCount_); + } + if (failedVersionCount_ != 0) { + output.writeInt32(3, failedVersionCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (totalVersionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, totalVersionCount_); + } + if (completedVersionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, completedVersionCount_); + } + if (failedVersionCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, failedVersionCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.OperationMetadata.Progress)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.OperationMetadata.Progress other = + (com.google.cloud.secretmanager.v1.OperationMetadata.Progress) obj; + + if (getTotalVersionCount() != other.getTotalVersionCount()) return false; + if (getCompletedVersionCount() != other.getCompletedVersionCount()) return false; + if (getFailedVersionCount() != other.getFailedVersionCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOTAL_VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalVersionCount(); + hash = (37 * hash) + COMPLETED_VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCompletedVersionCount(); + hash = (37 * hash) + FAILED_VERSION_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFailedVersionCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents progress information for operations involving multiple secret
+     * versions.
+     * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata.Progress} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.OperationMetadata.Progress) + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.OperationMetadata.Progress.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + totalVersionCount_ = 0; + completedVersionCount_ = 0; + failedVersionCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress + getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress build() { + com.google.cloud.secretmanager.v1.OperationMetadata.Progress result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress buildPartial() { + com.google.cloud.secretmanager.v1.OperationMetadata.Progress result = + new com.google.cloud.secretmanager.v1.OperationMetadata.Progress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.totalVersionCount_ = totalVersionCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.completedVersionCount_ = completedVersionCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedVersionCount_ = failedVersionCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.OperationMetadata.Progress) { + return mergeFrom((com.google.cloud.secretmanager.v1.OperationMetadata.Progress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.OperationMetadata.Progress other) { + if (other + == com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance()) + return this; + if (other.getTotalVersionCount() != 0) { + setTotalVersionCount(other.getTotalVersionCount()); + } + if (other.getCompletedVersionCount() != 0) { + setCompletedVersionCount(other.getCompletedVersionCount()); + } + if (other.getFailedVersionCount() != 0) { + setFailedVersionCount(other.getFailedVersionCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + totalVersionCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + completedVersionCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + failedVersionCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int totalVersionCount_; + + /** + * + * + *
+       * Output only. Provides the total number of secret versions to be processed
+       * by the operation.
+       * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The totalVersionCount. + */ + @java.lang.Override + public int getTotalVersionCount() { + return totalVersionCount_; + } + + /** + * + * + *
+       * Output only. Provides the total number of secret versions to be processed
+       * by the operation.
+       * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The totalVersionCount to set. + * @return This builder for chaining. + */ + public Builder setTotalVersionCount(int value) { + + totalVersionCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Provides the total number of secret versions to be processed
+       * by the operation.
+       * 
+ * + * int32 total_version_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTotalVersionCount() { + bitField0_ = (bitField0_ & ~0x00000001); + totalVersionCount_ = 0; + onChanged(); + return this; + } + + private int completedVersionCount_; + + /** + * + * + *
+       * Output only. Number of secret versions that have been successfully
+       * processed so far.
+       * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completedVersionCount. + */ + @java.lang.Override + public int getCompletedVersionCount() { + return completedVersionCount_; + } + + /** + * + * + *
+       * Output only. Number of secret versions that have been successfully
+       * processed so far.
+       * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The completedVersionCount to set. + * @return This builder for chaining. + */ + public Builder setCompletedVersionCount(int value) { + + completedVersionCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of secret versions that have been successfully
+       * processed so far.
+       * 
+ * + * int32 completed_version_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCompletedVersionCount() { + bitField0_ = (bitField0_ & ~0x00000002); + completedVersionCount_ = 0; + onChanged(); + return this; + } + + private int failedVersionCount_; + + /** + * + * + *
+       * Output only. Number of secret versions that failed to process.
+       * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The failedVersionCount. + */ + @java.lang.Override + public int getFailedVersionCount() { + return failedVersionCount_; + } + + /** + * + * + *
+       * Output only. Number of secret versions that failed to process.
+       * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The failedVersionCount to set. + * @return This builder for chaining. + */ + public Builder setFailedVersionCount(int value) { + + failedVersionCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. Number of secret versions that failed to process.
+       * 
+ * + * int32 failed_version_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFailedVersionCount() { + bitField0_ = (bitField0_ & ~0x00000004); + failedVersionCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.OperationMetadata.Progress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.OperationMetadata.Progress) + private static final com.google.cloud.secretmanager.v1.OperationMetadata.Progress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.OperationMetadata.Progress(); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata.Progress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Progress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + @java.lang.Override + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROGRESS_FIELD_NUMBER = 8; + private com.google.cloud.secretmanager.v1.OperationMetadata.Progress progress_; + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress getProgress() { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder + getProgressOrBuilder() { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, apiVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getProgress()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, apiVersion_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getProgress()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.OperationMetadata other = + (com.google.cloud.secretmanager.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) return false; + if (hasProgress() != other.hasProgress()) return false; + if (hasProgress()) { + if (!getProgress().equals(other.getProgress())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + if (hasProgress()) { + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.secretmanager.v1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents the metadata of the long-running operation.
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.OperationMetadata) + com.google.cloud.secretmanager.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.OperationMetadata.class, + com.google.cloud.secretmanager.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + internalGetProgressFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata build() { + com.google.cloud.secretmanager.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata buildPartial() { + com.google.cloud.secretmanager.v1.OperationMetadata result = + new com.google.cloud.secretmanager.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.secretmanager.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.OperationMetadata other) { + if (other == com.google.cloud.secretmanager.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetProgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. Time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Output only. Time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + public java.lang.String getTarget() { + java.lang.Object ref = target_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + target_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + public com.google.protobuf.ByteString getTargetBytes() { + java.lang.Object ref = target_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + target_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The target to set. + * @return This builder for chaining. + */ + public Builder setTarget(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Server-defined resource path for the target of the operation.
+     * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for target to set. + * @return This builder for chaining. + */ + public Builder setTargetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + target_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Name of the verb executed by the operation.
+     * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Human-readable status of the operation, if any.
+     * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifies whether the user has requested cancellation
+     * of the operation. Operations that have been cancelled successfully
+     * have
+     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+     * corresponding to `Code.CANCELLED`.
+     * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. API version used to start the operation.
+     * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.cloud.secretmanager.v1.OperationMetadata.Progress progress_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.OperationMetadata.Progress, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder, + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder> + progressBuilder_; + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress(com.google.cloud.secretmanager.v1.OperationMetadata.Progress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + } else { + progressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProgress( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeProgress( + com.google.cloud.secretmanager.v1.OperationMetadata.Progress value) { + if (progressBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && progress_ != null + && progress_ + != com.google.cloud.secretmanager.v1.OperationMetadata.Progress + .getDefaultInstance()) { + getProgressBuilder().mergeFrom(value); + } else { + progress_ = value; + } + } else { + progressBuilder_.mergeFrom(value); + } + if (progress_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProgress() { + bitField0_ = (bitField0_ & ~0x00000080); + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder + getProgressBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetProgressFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder + getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.cloud.secretmanager.v1.OperationMetadata.Progress.getDefaultInstance() + : progress_; + } + } + + /** + * + * + *
+     * Output only. Represents the progress of the operation. This field is
+     * populated for operations that involve processing multiple secret versions.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.OperationMetadata.Progress, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder, + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder> + internalGetProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.OperationMetadata.Progress, + com.google.cloud.secretmanager.v1.OperationMetadata.Progress.Builder, + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.OperationMetadata) + private static final com.google.cloud.secretmanager.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.OperationMetadata(); + } + + public static com.google.cloud.secretmanager.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..9ca438912d38 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,276 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. Time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. Time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
+   * Output only. Server-defined resource path for the target of the operation.
+   * 
+ * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + + /** + * + * + *
+   * Output only. Name of the verb executed by the operation.
+   * 
+ * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
+   * Output only. Human-readable status of the operation, if any.
+   * 
+ * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Output only. Identifies whether the user has requested cancellation
+   * of the operation. Operations that have been cancelled successfully
+   * have
+   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
+   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
+   * corresponding to `Code.CANCELLED`.
+   * 
+ * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + + /** + * + * + *
+   * Output only. API version used to start the operation.
+   * 
+ * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the progress field is set. + */ + boolean hasProgress(); + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The progress. + */ + com.google.cloud.secretmanager.v1.OperationMetadata.Progress getProgress(); + + /** + * + * + *
+   * Output only. Represents the progress of the operation. This field is
+   * populated for operations that involve processing multiple secret versions.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.OperationMetadata.Progress progress = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.secretmanager.v1.OperationMetadata.ProgressOrBuilder getProgressOrBuilder(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java new file mode 100644 index 000000000000..1b4ce5f3d65b --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/OperationsServiceProto.java @@ -0,0 +1,363 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public final class OperationsServiceProto extends com.google.protobuf.GeneratedFile { + private OperationsServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationsServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Backup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "6google/cloud/secretmanager/v1/operations_service.proto\022\035google.cloud.secretman" + + "ager.v1\032\034google/api/annotations.proto\032\027g" + + "oogle/api/client.proto\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032-google/cloud/secretmanager/v1/resour" + + "ces.proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\263\001\n" + + "\022ListBackupsRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#secretmanager.googleapis.com/Backup\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\201\001\n" + + "\023ListBackupsResponse\0226\n" + + "\007backups\030\001 \003(\0132%.google.cloud.secretmanager.v1.Backup\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"N\n" + + "\020GetBackupRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#secretmanager.googleapis.com/Backup\"\251\001\n" + + "\023CreateBackupRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#secretmanager.googleapis.com/Backup\022\027\n" + + "\tbackup_id\030\002 \001(\tB\004\342A\001\002\022;\n" + + "\006backup\030\003" + + " \001(\0132%.google.cloud.secretmanager.v1.BackupB\004\342A\001\002\"\211\001\n" + + "\023UpdateBackupRequest\0225\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022;\n" + + "\006backup\030\002 " + + "\001(\0132%.google.cloud.secretmanager.v1.BackupB\004\342A\001\002\"e\n" + + "\023DeleteBackupRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#secretmanager.googleapis.com/Backup\022\022\n" + + "\004etag\030\002 \001(\tB\004\342A\001\001\"\212\002\n" + + "\024RestoreBackupRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#secretmanager.googleapis.com/Backup\022O\n" + + "\031destination_secret_parent\030\002 \001(" + + "\tB,\342A\001\002\372A%\022#secretmanager.googleapis.com/Secret\022#\n" + + "\025destination_secret_id\030\003 \001(\tB\004\342A\001\002\022@\n" + + "\014kms_key_name\030\004 \001(\tB*\342A\001\001\372A#\n" + + "!cloudkms.googleapis.com/CryptoKey\"\324\003\n" + + "\021OperationMetadata\0225\n" + + "\013create_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" + + "\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n" + + "\006target\030\003 \001(\tB\004\342A\001\003\022\022\n" + + "\004verb\030\004 \001(\tB\004\342A\001\003\022\034\n" + + "\016status_message\030\005 \001(\tB\004\342A\001\003\022$\n" + + "\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" + + "\013api_version\030\007 \001(\tB\004\342A\001\003\022Q\n" + + "\010progress\030\010 \001(\01329.google.cloud." + + "secretmanager.v1.OperationMetadata.ProgressB\004\342A\001\003\032x\n" + + "\010Progress\022!\n" + + "\023total_version_count\030\001 \001(\005B\004\342A\001\003\022%\n" + + "\027completed_version_count\030\002 \001(\005B\004\342A\001\003\022\"\n" + + "\024failed_version_count\030\003 \001(\005B\004\342A\001\003\"\311\005\n" + + "\006Backup\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\010\022D\n\r" + + "source_secret\030\002 \001(\tB-\342A\002\002\005\372A%\n" + + "#secretmanager.googleapis.com/Secret\0225\n" + + "\013create_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022C\n" + + "\031source_secret_create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\033\n\r" + + "version_count\030\006 \001(\005B\004\342A\001\003\022G\n" + + "\006labels\030\007" + + " \003(\01321.google.cloud.secretmanager.v1.Backup.LabelsEntryB\004\342A\001\001\022@\n" + + "\005state\030\010" + + " \001(\0162+.google.cloud.secretmanager.v1.Backup.StateB\004\342A\001\003\022\022\n" + + "\004etag\030\013 \001(\tB\004\342A\001\001\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\014\n" + + "\010UPDATING\020\003\022\n" + + "\n" + + "\006FAILED\020\004:s\352Ap\n" + + "#secretmanager.googleapis.com/Backup\0228projects/{project}/locatio" + + "ns/{location}/backups/{backup}*\007backups2\006backup2\335\n\n" + + "\027SecretOperationsService\022\262\001\n" + + "\013ListBackups\0221.google.cloud.secretmanager" + + ".v1.ListBackupsRequest\0322.google.cloud.se" + + "cretmanager.v1.ListBackupsResponse\"<\332A\006p" + + "arent\202\323\344\223\002-\022+/v1/{parent=projects/*/locations/*}/backups\022\237\001\n" + + "\tGetBackup\022/.google.cloud.secretmanager.v1.GetBackupRequest\032" + + "%.google.cloud.secretmanager.v1.Backup\":" + + "\332A\004name\202\323\344\223\002-\022+/v1/{name=projects/*/locations/*/backups/*}\022\326\001\n" + + "\014CreateBackup\0222.google.cloud.secretmanager.v1.CreateBackup" + + "Request\032\035.google.longrunning.Operation\"s\312A\033\n" + + "\006Backup\022\021OperationMetadata\332A\027parent," + + "backup,backup_id\202\323\344\223\0025\"+/v1/{parent=projects/*/locations/*}/backups:\006backup\022\330\001\n" + + "\014UpdateBackup\0222.google.cloud.secretmanage" + + "r.v1.UpdateBackupRequest\032\035.google.longrunning.Operation\"u\312A\033\n" + + "\006Backup\022\021OperationM" + + "etadata\332A\022backup,update_mask\202\323\344\223\002<22/v1/" + + "{backup.name=projects/*/locations/*/backups/*}:\006backup\022\312\001\n" + + "\014DeleteBackup\0222.google" + + ".cloud.secretmanager.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"g\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\002-*+/v1/{name=projects/*/locations/*/backups/*}\022\227\002\n\r" + + "RestoreBackup\0223.google.cloud.secretmanager.v1.RestoreBac" + + "kupRequest\032\035.google.longrunning.Operation\"\261\001\312A9\n" + + "$google.cloud.secretmanager.v1.Secret\022\021OperationMetadata\332A4name,destinat" + + "ion_secret_parent,destination_secret_id\202" + + "\323\344\223\0028\"3/v1/{name=projects/*/locations/*/" + + "backups/*}:restore:\001*\032P\312A\034secretmanager." + + "googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\352\002\n" + + "!com.google.cloud.secretmanager.v1B\026OperationsService" + + "ProtoP\001ZGcloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb" + + "\242\002\003GSM\252\002\035Google.Cloud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + + " Google::Cloud::SecretManager::V1\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{proje" + + "ct}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.secretmanager.v1.ResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListBackupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_ListBackupsResponse_descriptor, + new java.lang.String[] { + "Backups", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_GetBackupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_CreateBackupRequest_descriptor, + new java.lang.String[] { + "Parent", "BackupId", "Backup", + }); + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Backup", + }); + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_DeleteBackupRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor, + new java.lang.String[] { + "Name", "DestinationSecretParent", "DestinationSecretId", "KmsKeyName", + }); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + "Progress", + }); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor = + internal_static_google_cloud_secretmanager_v1_OperationMetadata_descriptor.getNestedType(0); + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_OperationMetadata_Progress_descriptor, + new java.lang.String[] { + "TotalVersionCount", "CompletedVersionCount", "FailedVersionCount", + }); + internal_static_google_cloud_secretmanager_v1_Backup_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_secretmanager_v1_Backup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Backup_descriptor, + new java.lang.String[] { + "Name", + "SourceSecret", + "CreateTime", + "UpdateTime", + "SourceSecretCreateTime", + "VersionCount", + "Labels", + "State", + "Etag", + }); + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor = + internal_static_google_cloud_secretmanager_v1_Backup_descriptor.getNestedType(0); + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_secretmanager_v1_Backup_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.secretmanager.v1.ResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java index 7cd0123239db..05d237eda2c3 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/ResourcesProto.java @@ -139,7 +139,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032*google/iam/v1/resour" + "ce_policy_member.proto\032\036google/protobuf/" - + "duration.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\200\014\n" + + "duration.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\211\r\n" + "\006Secret\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\022F\n" + "\013replication\030\002" @@ -170,7 +170,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013secret_type\030\021" + " \001(\01620.google.cloud.secretmanager.v1.Secret.SecretTypeB\005\342A\002\005\001\022@\n\r" + "policy_member\030\022" - + " \001(\0132#.google.iam.v1.ResourcePolicyMemberB\004\342A\001\003\032-\n" + + " \001(\0132#.google.iam.v1.ResourcePolicyMemberB\004\342A\001\003\022@\n" + + "\005state\030\023 \001(\0162+.goog" + + "le.cloud.secretmanager.v1.Secret.StateB\004\342A\001\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\0325\n" @@ -181,9 +183,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\032+\n" + "\tTagsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" - + "\005value\030\002 \001(\t:\0028\001\"\215\001\n\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\020\n" + + "\014STATE_ACTIVE\020\001\022\023\n" + + "\017STATE_RESTORING\020\002\"\215\001\n\n" + "SecretType\022\033\n" + "\027SECRET_TYPE_UNSPECIFIED\020\000\022\034\n" + "\030CLOUD_SQL_DB_CREDENTIALS\020\001\022\016\n\n" @@ -191,9 +196,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013CERTIFICATE\020\003\022\030\n" + "\024OTHER_DB_CREDENTIALS\020\004\022\t\n" + "\005OTHER\0202:\231\001\352A\225\001\n" - + "#secretmanager.googleapis.com/Secret\022#projects/{project}/secrets/{secre" - + "t}\0228projects/{project}/locations/{location}/secrets/{secret}*\007secrets2\006secretB\014\n" - + "\n" + + "#secretmanager.googleapis.com/Secret\022#projects/{projec" + + "t}/secrets/{secret}\0228projects/{project}/" + + "locations/{location}/secrets/{secret}*\007secrets2\006secretB\014\n\n" + "expiration\"\312\006\n\r" + "SecretVersion\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\003\0225\n" @@ -201,59 +206,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0226\n" + "\014destroy_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022G\n" - + "\005state\030\004" - + " \001(\01622.google.cloud.secretmanager.v1.SecretVersion.StateB\004\342A\001\003\022L\n" - + "\022replication_status\030\005" - + " \001(\01320.google.cloud.secretmanager.v1.ReplicationStatus\022\022\n" + + "\005state\030\004 \001(\01622.googl" + + "e.cloud.secretmanager.v1.SecretVersion.StateB\004\342A\001\003\022L\n" + + "\022replication_status\030\005 \001(\01320" + + ".google.cloud.secretmanager.v1.ReplicationStatus\022\022\n" + "\004etag\030\006 \001(\tB\004\342A\001\003\022/\n" + "!client_specified_payload_checksum\030\007 \001(\010B\004\342A\001\003\022@\n" + "\026scheduled_destroy_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022i\n" - + "\033customer_managed_encryption\030\t " - + "\001(\0132>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\"H\n" + + "\033customer_managed_encryption\030\t \001(\0132>.google.cloud.secr" + + "etmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\"H\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\022\r\n" + "\tDESTROYED\020\003:\342\001\352A\336\001\n" - + "*secretmanager.googleapis.com/SecretVersion\022=" - + "projects/{project}/secrets/{secret}/versions/{secret_version}\022Rprojects/{project" - + "}/locations/{location}/secrets/{secret}/" - + "versions/{secret_version}*\016secretVersions2\r" + + "*secretmanager.googleapis.com/SecretVersion\022=projects/{project}/secr" + + "ets/{secret}/versions/{secret_version}\022Rprojects/{project}/locations/{location}/" + + "secrets/{secret}/versions/{secret_version}*\016secretVersions2\r" + "secretVersion\"\224\004\n" + "\013Replication\022I\n" - + "\tautomatic\030\001" - + " \001(\01324.google.cloud.secretmanager.v1.Replication.AutomaticH\000\022N\n" - + "\014user_managed\030\002" - + " \001(\01326.google.cloud.secretmanager.v1.Replication.UserManagedH\000\032p\n" + + "\tautomatic\030\001 \001(\01324.google.cl" + + "oud.secretmanager.v1.Replication.AutomaticH\000\022N\n" + + "\014user_managed\030\002 \001(\01326.google.clou" + + "d.secretmanager.v1.Replication.UserManagedH\000\032p\n" + "\tAutomatic\022c\n" - + "\033customer_managed_encryption\030\001 \001(\01328." - + "google.cloud.secretmanager.v1.CustomerManagedEncryptionB\004\342A\001\001\032\350\001\n" + + "\033customer_managed_encryption\030\001 \001(\01328.google.cloud.secretmana" + + "ger.v1.CustomerManagedEncryptionB\004\342A\001\001\032\350\001\n" + "\013UserManaged\022V\n" - + "\010replicas\030\001 \003(\0132>.google.cloud.secretman" - + "ager.v1.Replication.UserManaged.ReplicaB\004\342A\001\002\032\200\001\n" + + "\010replicas\030\001 \003(\0132>.googl" + + "e.cloud.secretmanager.v1.Replication.UserManaged.ReplicaB\004\342A\001\002\032\200\001\n" + "\007Replica\022\020\n" + "\010location\030\001 \001(\t\022c\n" - + "\033customer_managed_encryption\030\002 \001(\01328.googl" - + "e.cloud.secretmanager.v1.CustomerManagedEncryptionB\004\342A\001\001B\r\n" + + "\033customer_managed_encryption\030\002" + + " \001(\01328.google.cloud.secretmanager.v1.CustomerManagedEncryptionB\004\342A\001\001B\r\n" + "\013replication\"7\n" + "\031CustomerManagedEncryption\022\032\n" + "\014kms_key_name\030\001 \001(\tB\004\342A\001\002\"\357\004\n" + "\021ReplicationStatus\022U\n" - + "\tautomatic\030\001" - + " \001(\0132@.google.cloud.secretmanager.v1.ReplicationStatus.AutomaticStatusH\000\022Z\n" - + "\014user_managed\030\002 \001(\0132B.google.cloud.secre" - + "tmanager.v1.ReplicationStatus.UserManagedStatusH\000\032|\n" + + "\tautomatic\030\001 \001(\0132@.google.clou" + + "d.secretmanager.v1.ReplicationStatus.AutomaticStatusH\000\022Z\n" + + "\014user_managed\030\002 \001(\0132B.g" + + "oogle.cloud.secretmanager.v1.ReplicationStatus.UserManagedStatusH\000\032|\n" + "\017AutomaticStatus\022i\n" - + "\033customer_managed_encryption\030\001 \001(\0132>.google.cloud" - + ".secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\032\222\002\n" + + "\033customer_managed_encryption\030\001 \001" + + "(\0132>.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003\032\222\002\n" + "\021UserManagedStatus\022h\n" - + "\010replicas\030\001 \003(\0132P.google.cloud.secretman" - + "ager.v1.ReplicationStatus.UserManagedStatus.ReplicaStatusB\004\342A\001\003\032\222\001\n\r" + + "\010replicas\030\001 \003(\0132P.google.cloud.secretmanager.v1.ReplicationStat" + + "us.UserManagedStatus.ReplicaStatusB\004\342A\001\003\032\222\001\n\r" + "ReplicaStatus\022\026\n" + "\010location\030\001 \001(\tB\004\342A\001\003\022i\n" - + "\033customer_managed_encryption\030\002 \001(\0132>.google.cloud.se" - + "cretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003B\024\n" + + "\033customer_managed_encryption\030\002 \001(\0132" + + ">.google.cloud.secretmanager.v1.CustomerManagedEncryptionStatusB\004\342A\001\003B\024\n" + "\022replication_status\"E\n" + "\037CustomerManagedEncryptionStatus\022\"\n" + "\024kms_key_version_name\030\001 \001(\tB\004\342A\001\002\"`\n" @@ -265,11 +269,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\0228\n" + "\017rotation_period\030\002" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\004\022d\n" - + "\027managed_rotation_status\030\003 \001(\0132=.google.cloud.secretmanager.v" - + "1.Rotation.ManagedRotationStatusB\004\342A\001\003\032\324\001\n" + + "\027managed_rotation_status\030\003 \001(\0132=.google.clou" + + "d.secretmanager.v1.Rotation.ManagedRotationStatusB\004\342A\001\003\032\324\001\n" + "\025ManagedRotationStatus\022X\n" - + "\005state\030\001 \001(\0162" - + "C.google.cloud.secretmanager.v1.Rotation.ManagedRotationStatus.StateB\004\342A\001\003\022\'\n" + + "\005state\030\001 \001(\0162C.google.cloud.secretma" + + "nager.v1.Rotation.ManagedRotationStatus.StateB\004\342A\001\003\022\'\n" + "\005error\030\002 \001(\0132\022.google.rpc.StatusB\004\342A\001\003\"8\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" @@ -283,10 +287,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013instance_id\030\001 \001(\tB\004\342A\001\002\022\026\n" + "\010username\030\002 \001(\tB\004\342A\001\002\022\026\n" + "\010password\030\003 \001(\tB\004\342A\001\001B\347\001\n" - + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcloud.google.com/go/se" - + "cretmanager/apiv1/secretmanagerpb;secret" - + "managerpb\242\002\003GSM\252\002\035Google.Cloud.SecretMan" - + "ager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + + "!com.google.cloud.secretmanager.v1B\016ResourcesProtoP\001ZGcloud" + + ".google.com/go/secretmanager/apiv1/secre" + + "tmanagerpb;secretmanagerpb\242\002\003GSM\252\002\035Googl" + + "e.Cloud.SecretManager.V1\312\002\035Google\\Cloud\\SecretManager\\V1\352\002" + " Google::Cloud::SecretManager::V1b\006proto3" }; descriptor = @@ -322,6 +326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Tags", "SecretType", "PolicyMember", + "State", "Expiration", }); internal_static_google_cloud_secretmanager_v1_Secret_LabelsEntry_descriptor = diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java new file mode 100644 index 000000000000..9772df24d113 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequest.java @@ -0,0 +1,1299 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.RestoreBackupRequest} + */ +@com.google.protobuf.Generated +public final class RestoreBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.RestoreBackupRequest) + RestoreBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "RestoreBackupRequest"); + } + + // Use RestoreBackupRequest.newBuilder() to construct. + private RestoreBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RestoreBackupRequest() { + name_ = ""; + destinationSecretParent_ = ""; + destinationSecretId_ = ""; + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.RestoreBackupRequest.class, + com.google.cloud.secretmanager.v1.RestoreBackupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_SECRET_PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationSecretParent_ = ""; + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSecretParent. + */ + @java.lang.Override + public java.lang.String getDestinationSecretParent() { + java.lang.Object ref = destinationSecretParent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSecretParent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSecretParent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationSecretParentBytes() { + java.lang.Object ref = destinationSecretParent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_SECRET_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationSecretId_ = ""; + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationSecretId. + */ + @java.lang.Override + public java.lang.String getDestinationSecretId() { + java.lang.Object ref = destinationSecretId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSecretId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationSecretId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationSecretIdBytes() { + java.lang.Object ref = destinationSecretId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSecretParent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, destinationSecretParent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSecretId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, destinationSecretId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, kmsKeyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSecretParent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, destinationSecretParent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationSecretId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, destinationSecretId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, kmsKeyName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.RestoreBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.RestoreBackupRequest other = + (com.google.cloud.secretmanager.v1.RestoreBackupRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationSecretParent().equals(other.getDestinationSecretParent())) return false; + if (!getDestinationSecretId().equals(other.getDestinationSecretId())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESTINATION_SECRET_PARENT_FIELD_NUMBER; + hash = (53 * hash) + getDestinationSecretParent().hashCode(); + hash = (37 * hash) + DESTINATION_SECRET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDestinationSecretId().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.RestoreBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.RestoreBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.RestoreBackupRequest) + com.google.cloud.secretmanager.v1.RestoreBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.RestoreBackupRequest.class, + com.google.cloud.secretmanager.v1.RestoreBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.RestoreBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationSecretParent_ = ""; + destinationSecretId_ = ""; + kmsKeyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_RestoreBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.RestoreBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest build() { + com.google.cloud.secretmanager.v1.RestoreBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.RestoreBackupRequest result = + new com.google.cloud.secretmanager.v1.RestoreBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.RestoreBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationSecretParent_ = destinationSecretParent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.destinationSecretId_ = destinationSecretId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.RestoreBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.RestoreBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.RestoreBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.RestoreBackupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationSecretParent().isEmpty()) { + destinationSecretParent_ = other.destinationSecretParent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDestinationSecretId().isEmpty()) { + destinationSecretId_ = other.destinationSecretId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationSecretParent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + destinationSecretId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the
+     * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+     * `projects/{project}/locations/{location}/backups/{backup}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationSecretParent_ = ""; + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSecretParent. + */ + public java.lang.String getDestinationSecretParent() { + java.lang.Object ref = destinationSecretParent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSecretParent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSecretParent. + */ + public com.google.protobuf.ByteString getDestinationSecretParentBytes() { + java.lang.Object ref = destinationSecretParent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretParent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The destinationSecretParent to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationSecretParent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDestinationSecretParent() { + destinationSecretParent_ = getDefaultInstance().getDestinationSecretParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+     * to be created from this backup. Formats:
+     * - `projects/{project}/locations/{location}` (for regional secrets)
+     * - `projects/{project}` (for global secrets)
+     * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for destinationSecretParent to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationSecretParent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object destinationSecretId_ = ""; + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationSecretId. + */ + public java.lang.String getDestinationSecretId() { + java.lang.Object ref = destinationSecretId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationSecretId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationSecretId. + */ + public com.google.protobuf.ByteString getDestinationSecretIdBytes() { + java.lang.Object ref = destinationSecretId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationSecretId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The destinationSecretId to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationSecretId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationSecretId() { + destinationSecretId_ = getDefaultInstance().getDestinationSecretId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+     * be created from this backup. This must be unique within the project.
+     *
+     * A secret ID is a string with a maximum length of 255 characters and can
+     * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+     * and underscore (`_`) characters.
+     * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for destinationSecretId to set. + * @return This builder for chaining. + */ + public Builder setDestinationSecretIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationSecretId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+     * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+     * Format:
+     * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+     * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.RestoreBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.RestoreBackupRequest) + private static final com.google.cloud.secretmanager.v1.RestoreBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.RestoreBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.RestoreBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RestoreBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.RestoreBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java new file mode 100644 index 000000000000..fbebf2ceaf80 --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/RestoreBackupRequestOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface RestoreBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.RestoreBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the
+   * [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format:
+   * `projects/{project}/locations/{location}/backups/{backup}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The destinationSecretParent. + */ + java.lang.String getDestinationSecretParent(); + + /** + * + * + *
+   * Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret]
+   * to be created from this backup. Formats:
+   * - `projects/{project}/locations/{location}` (for regional secrets)
+   * - `projects/{project}` (for global secrets)
+   * 
+ * + * + * string destination_secret_parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for destinationSecretParent. + */ + com.google.protobuf.ByteString getDestinationSecretParentBytes(); + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationSecretId. + */ + java.lang.String getDestinationSecretId(); + + /** + * + * + *
+   * Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to
+   * be created from this backup. This must be unique within the project.
+   *
+   * A secret ID is a string with a maximum length of 255 characters and can
+   * contain uppercase and lowercase letters, numerals, and the hyphen (`-`)
+   * and underscore (`_`) characters.
+   * 
+ * + * string destination_secret_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationSecretId. + */ + com.google.protobuf.ByteString getDestinationSecretIdBytes(); + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
+   * Optional. The resource name of the Cloud KMS CryptoKey to be used to
+   * encrypt the [Secret][google.cloud.secretmanager.v1.Secret].
+   * Format:
+   * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
+   * 
+ * + * + * string kms_key_name = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java index 79967cb3051f..5deb06c8f3c7 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/Secret.java @@ -61,6 +61,7 @@ private Secret() { topics_ = java.util.Collections.emptyList(); etag_ = ""; secretType_ = 0; + state_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -96,6 +97,177 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl com.google.cloud.secretmanager.v1.Secret.Builder.class); } + /** + * + * + *
+   * Represents the current state of the Secret.
+   * 
+ * + * Protobuf enum {@code google.cloud.secretmanager.v1.Secret.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Secret is in active state, usage is allowed.
+     * 
+ * + * STATE_ACTIVE = 1; + */ + STATE_ACTIVE(1), + /** + * + * + *
+     * Secret is being restored from a backup. Operations on the secret and its
+     * versions are restricted.
+     * 
+ * + * STATE_RESTORING = 2; + */ + STATE_RESTORING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Secret is in active state, usage is allowed.
+     * 
+ * + * STATE_ACTIVE = 1; + */ + public static final int STATE_ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Secret is being restored from a backup. Operations on the secret and its
+     * versions are restricted.
+     * 
+ * + * STATE_RESTORING = 2; + */ + public static final int STATE_RESTORING_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return STATE_ACTIVE; + case 2: + return STATE_RESTORING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.Secret.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.secretmanager.v1.Secret.State) + } + /** * * @@ -316,7 +488,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.secretmanager.v1.Secret.getDescriptor().getEnumTypes().get(0); + return com.google.cloud.secretmanager.v1.Secret.getDescriptor().getEnumTypes().get(1); } private static final SecretType[] VALUES = values(); @@ -1771,6 +1943,47 @@ public com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder( : policyMember_; } + public static final int STATE_FIELD_NUMBER = 19; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Secret.State getState() { + com.google.cloud.secretmanager.v1.Secret.State result = + com.google.cloud.secretmanager.v1.Secret.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Secret.State.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1831,6 +2044,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(18, getPolicyMember()); } + if (state_ != com.google.cloud.secretmanager.v1.Secret.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(19, state_); + } getUnknownFields().writeTo(output); } @@ -1924,6 +2140,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getPolicyMember()); } + if (state_ != com.google.cloud.secretmanager.v1.Secret.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(19, state_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1972,6 +2191,7 @@ public boolean equals(final java.lang.Object obj) { if (hasPolicyMember()) { if (!getPolicyMember().equals(other.getPolicyMember())) return false; } + if (state_ != other.state_) return false; if (!getExpirationCase().equals(other.getExpirationCase())) return false; switch (expirationCase_) { case 6: @@ -2044,6 +2264,8 @@ public int hashCode() { hash = (37 * hash) + POLICY_MEMBER_FIELD_NUMBER; hash = (53 * hash) + getPolicyMember().hashCode(); } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; switch (expirationCase_) { case 6: hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; @@ -2300,6 +2522,7 @@ public Builder clear() { policyMemberBuilder_.dispose(); policyMemberBuilder_ = null; } + state_ = 0; expirationCase_ = 0; expiration_ = null; return this; @@ -2410,6 +2633,9 @@ private void buildPartial0(com.google.cloud.secretmanager.v1.Secret result) { policyMemberBuilder_ == null ? policyMember_ : policyMemberBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.state_ = state_; + } result.bitField0_ |= to_bitField0_; } @@ -2502,6 +2728,9 @@ public Builder mergeFrom(com.google.cloud.secretmanager.v1.Secret other) { if (other.hasPolicyMember()) { mergePolicyMember(other.getPolicyMember()); } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } switch (other.getExpirationCase()) { case EXPIRE_TIME: { @@ -2676,6 +2905,12 @@ public Builder mergeFrom( bitField0_ |= 0x00008000; break; } // case 146 + case 152: + { + state_ = input.readEnum(); + bitField0_ |= 0x00010000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6411,6 +6646,111 @@ public com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder( return policyMemberBuilder_; } + private int state_ = 0; + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Secret.State getState() { + com.google.cloud.secretmanager.v1.Secret.State result = + com.google.cloud.secretmanager.v1.Secret.State.forNumber(state_); + return result == null ? com.google.cloud.secretmanager.v1.Secret.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.secretmanager.v1.Secret.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00010000; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The current state of the Secret.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00010000); + state_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.Secret) } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java index 65ab6535dcd7..a88d8b1e820e 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/SecretOrBuilder.java @@ -1054,5 +1054,35 @@ java.lang.String getTagsOrDefault( */ com.google.iam.v1.ResourcePolicyMemberOrBuilder getPolicyMemberOrBuilder(); + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The current state of the Secret.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Secret.State state = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.secretmanager.v1.Secret.State getState(); + com.google.cloud.secretmanager.v1.Secret.ExpirationCase getExpirationCase(); } diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java new file mode 100644 index 000000000000..db37e27f932c --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequest.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +/** + * + * + *
+ * Request message for
+ * [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup].
+ * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.UpdateBackupRequest} + */ +@com.google.protobuf.Generated +public final class UpdateBackupRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.secretmanager.v1.UpdateBackupRequest) + UpdateBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateBackupRequest"); + } + + // Use UpdateBackupRequest.newBuilder() to construct. + private UpdateBackupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateBackupRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.UpdateBackupRequest.class, + com.google.cloud.secretmanager.v1.UpdateBackupRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int BACKUP_FIELD_NUMBER = 2; + private com.google.cloud.secretmanager.v1.Backup backup_; + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + @java.lang.Override + public boolean hasBackup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.Backup getBackup() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getBackup()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBackup()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.secretmanager.v1.UpdateBackupRequest)) { + return super.equals(obj); + } + com.google.cloud.secretmanager.v1.UpdateBackupRequest other = + (com.google.cloud.secretmanager.v1.UpdateBackupRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasBackup() != other.hasBackup()) return false; + if (hasBackup()) { + if (!getBackup().equals(other.getBackup())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasBackup()) { + hash = (37 * hash) + BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getBackup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.secretmanager.v1.UpdateBackupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup].
+   * 
+ * + * Protobuf type {@code google.cloud.secretmanager.v1.UpdateBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.secretmanager.v1.UpdateBackupRequest) + com.google.cloud.secretmanager.v1.UpdateBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.secretmanager.v1.UpdateBackupRequest.class, + com.google.cloud.secretmanager.v1.UpdateBackupRequest.Builder.class); + } + + // Construct using com.google.cloud.secretmanager.v1.UpdateBackupRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetBackupFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.secretmanager.v1.OperationsServiceProto + .internal_static_google_cloud_secretmanager_v1_UpdateBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest getDefaultInstanceForType() { + return com.google.cloud.secretmanager.v1.UpdateBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest build() { + com.google.cloud.secretmanager.v1.UpdateBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest buildPartial() { + com.google.cloud.secretmanager.v1.UpdateBackupRequest result = + new com.google.cloud.secretmanager.v1.UpdateBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.secretmanager.v1.UpdateBackupRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backup_ = backupBuilder_ == null ? backup_ : backupBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.secretmanager.v1.UpdateBackupRequest) { + return mergeFrom((com.google.cloud.secretmanager.v1.UpdateBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.secretmanager.v1.UpdateBackupRequest other) { + if (other == com.google.cloud.secretmanager.v1.UpdateBackupRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasBackup()) { + mergeBackup(other.getBackup()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetBackupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+     * The fields specified in the `update_mask` are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.secretmanager.v1.Backup backup_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + backupBuilder_; + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + public boolean hasBackup() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + public com.google.cloud.secretmanager.v1.Backup getBackup() { + if (backupBuilder_ == null) { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } else { + return backupBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + backup_ = value; + } else { + backupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBackup(com.google.cloud.secretmanager.v1.Backup.Builder builderForValue) { + if (backupBuilder_ == null) { + backup_ = builderForValue.build(); + } else { + backupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBackup(com.google.cloud.secretmanager.v1.Backup value) { + if (backupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && backup_ != null + && backup_ != com.google.cloud.secretmanager.v1.Backup.getDefaultInstance()) { + getBackupBuilder().mergeFrom(value); + } else { + backup_ = value; + } + } else { + backupBuilder_.mergeFrom(value); + } + if (backup_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBackup() { + bitField0_ = (bitField0_ & ~0x00000002); + backup_ = null; + if (backupBuilder_ != null) { + backupBuilder_.dispose(); + backupBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.Backup.Builder getBackupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetBackupFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder() { + if (backupBuilder_ != null) { + return backupBuilder_.getMessageOrBuilder(); + } else { + return backup_ == null + ? com.google.cloud.secretmanager.v1.Backup.getDefaultInstance() + : backup_; + } + } + + /** + * + * + *
+     * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+     * updated fields.
+     * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder> + internalGetBackupFieldBuilder() { + if (backupBuilder_ == null) { + backupBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.secretmanager.v1.Backup, + com.google.cloud.secretmanager.v1.Backup.Builder, + com.google.cloud.secretmanager.v1.BackupOrBuilder>( + getBackup(), getParentForChildren(), isClean()); + backup_ = null; + } + return backupBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.secretmanager.v1.UpdateBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.secretmanager.v1.UpdateBackupRequest) + private static final com.google.cloud.secretmanager.v1.UpdateBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.secretmanager.v1.UpdateBackupRequest(); + } + + public static com.google.cloud.secretmanager.v1.UpdateBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.secretmanager.v1.UpdateBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java new file mode 100644 index 000000000000..199b5e0b6d4d --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/UpdateBackupRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/secretmanager/v1/operations_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.secretmanager.v1; + +@com.google.protobuf.Generated +public interface UpdateBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.secretmanager.v1.UpdateBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * [Backup][google.cloud.secretmanager.v1.Backup] resource by the update.
+   * The fields specified in the `update_mask` are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the backup field is set. + */ + boolean hasBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The backup. + */ + com.google.cloud.secretmanager.v1.Backup getBackup(); + + /** + * + * + *
+   * Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with
+   * updated fields.
+   * 
+ * + * + * .google.cloud.secretmanager.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.secretmanager.v1.BackupOrBuilder getBackupOrBuilder(); +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto new file mode 100644 index 000000000000..10643585d1cd --- /dev/null +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/operations_service.proto @@ -0,0 +1,416 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +syntax = "proto3"; + +package google.cloud.secretmanager.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/secretmanager/v1/resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.SecretManager.V1"; +option go_package = "cloud.google.com/go/secretmanager/apiv1/secretmanagerpb;secretmanagerpb"; +option java_multiple_files = true; +option java_outer_classname = "OperationsServiceProto"; +option java_package = "com.google.cloud.secretmanager.v1"; +option objc_class_prefix = "GSM"; +option php_namespace = "Google\\Cloud\\SecretManager\\V1"; +option ruby_package = "Google::Cloud::SecretManager::V1"; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKey" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; + +// Secret Operations Service +// +// Manages backups of secrets. Implements a REST model with the following +// objects: +// +// * [Backup][google.cloud.secretmanager.v1.Backup] +// +// Note: `SecretOperationsService` is a regional service and must be called +// using regional endpoints (`secretmanager.{location}.rep.googleapis.com`). +service SecretOperationsService { + option (google.api.default_host) = "secretmanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists Backups in a given project and location. + rpc ListBackups(ListBackupsRequest) returns (ListBackupsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/backups" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Backup. + rpc GetBackup(GetBackupRequest) returns (Backup) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Backup in a given project and location. + rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/backups" + body: "backup" + }; + option (google.api.method_signature) = "parent,backup,backup_id"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Backup. + rpc UpdateBackup(UpdateBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{backup.name=projects/*/locations/*/backups/*}" + body: "backup" + }; + option (google.api.method_signature) = "backup,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Backup. + rpc DeleteBackup(DeleteBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/backups/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Restores a [Secret][google.cloud.secretmanager.v1.Secret] from the given + // [Backup][google.cloud.secretmanager.v1.Backup]. This creates a *new* + // [Secret][google.cloud.secretmanager.v1.Secret] resource. The LRO tracks the + // restoration process, and the result of the LRO is the newly created Secret. + rpc RestoreBackup(RestoreBackupRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/backups/*}:restore" + body: "*" + }; + option (google.api.method_signature) = + "name,destination_secret_parent,destination_secret_id"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.secretmanager.v1.Secret" + metadata_type: "OperationMetadata" + }; + } +} + +// Request message for +// [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups]. +message ListBackupsRequest { + // Required. The resource name of the location associated with the + // [Backups][google.cloud.secretmanager.v1.Backup], in the format + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Optional. Maximum number of backups to return. The service may return fewer + // than this value. If unspecified, at most 50 backups will be returned. The + // maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression to restrict the returned + // [Backups][google.cloud.secretmanager.v1.Backup]. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Field specification for sorting the results in the response. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups]. +message ListBackupsResponse { + // The list of [Backups][google.cloud.secretmanager.v1.Backup] in the + // location. + repeated Backup backups = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Resource names of the unreachable locations. + // Format: `projects/{project}/locations/{location}` + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request message for +// [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup]. +message GetBackupRequest { + // Required. The resource name of the + // [Backup][google.cloud.secretmanager.v1.Backup], in the format + // `projects/{project}/locations/{location}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Backup" + } + ]; +} + +// Request message for +// [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup]. +message CreateBackupRequest { + // Required. The resource name of the location where the + // [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the + // format `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Required. The ID to use for the backup, which will become the final + // component of the backup's resource name. + string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to + // create. + Backup backup = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup]. +message UpdateBackupRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // [Backup][google.cloud.secretmanager.v1.Backup] resource by the update. + // The fields specified in the `update_mask` are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with + // updated fields. + Backup backup = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup]. +message DeleteBackupRequest { + // Required. The resource name of the + // [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format + // `projects/{project}/locations/{location}/backups/{backup}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Optional. If set, the request will only succeed if it matches the etag of + // the currently stored [Backup][google.cloud.secretmanager.v1.Backup]. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup]. +message RestoreBackupRequest { + // Required. The resource name of the + // [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format: + // `projects/{project}/locations/{location}/backups/{backup}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Backup" + } + ]; + + // Required. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret] + // to be created from this backup. Formats: + // - `projects/{project}/locations/{location}` (for regional secrets) + // - `projects/{project}` (for global secrets) + string destination_secret_parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "secretmanager.googleapis.com/Secret" + } + ]; + + // Required. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to + // be created from this backup. This must be unique within the project. + // + // A secret ID is a string with a maximum length of 255 characters and can + // contain uppercase and lowercase letters, numerals, and the hyphen (`-`) + // and underscore (`_`) characters. + string destination_secret_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The resource name of the Cloud KMS CryptoKey to be used to + // encrypt the [Secret][google.cloud.secretmanager.v1.Secret]. + // Format: + // `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` + string kms_key_name = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKey" + } + ]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Represents progress information for operations involving multiple secret + // versions. + message Progress { + // Output only. Provides the total number of secret versions to be processed + // by the operation. + int32 total_version_count = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of secret versions that have been successfully + // processed so far. + int32 completed_version_count = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of secret versions that failed to process. + int32 failed_version_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the progress of the operation. This field is + // populated for operations that involve processing multiple secret versions. + Progress progress = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A Backup of a Secret. +// Backups are regional resources. +message Backup { + option (google.api.resource) = { + type: "secretmanager.googleapis.com/Backup" + pattern: "projects/{project}/locations/{location}/backups/{backup}" + plural: "backups" + singular: "backup" + }; + + // Enum representing the state of the + // [Backup][google.cloud.secretmanager.v1.Backup]. + enum State { + // Backup state is unspecified. + STATE_UNSPECIFIED = 0; + + // The backup is being created. + CREATING = 1; + + // The backup is active and can be used. + ACTIVE = 2; + + // The backup is being updated. + UPDATING = 3; + + // The backup creation or update failed. + FAILED = 4; + } + + // Identifier. Resource name of the backup. + // Format: `projects/{project}/locations/{location}/backups/{backup}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. Resource name of the + // [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The + // source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different + // region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field + // is immutable after creation. Formats: + // - `projects/{project}/locations/{location}/secrets/{secret}` (for regional + // secrets) + // - `projects/{project}/secrets/{secret}` (for global secrets) + string source_secret = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "secretmanager.googleapis.com/Secret" + } + ]; + + // Output only. Time at which the backup resource was created. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Time at which the backup resource was last updated. + google.protobuf.Timestamp update_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Creation time of the source + // [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was + // initiated. + google.protobuf.Timestamp source_secret_create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Number of non-destroyed secret versions contained in this + // backup. + int32 version_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels with user-defined metadata. + map labels = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Current state of the Backup. + State state = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Used for optimistic concurrency control as a way to help prevent + // simultaneous updates of a backup from overwriting each other. + string etag = 11 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto index dd26f3ea8f3f..d884b2680d5c 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/proto/google/cloud/secretmanager/v1/resources.proto @@ -47,6 +47,19 @@ message Secret { singular: "secret" }; + // Represents the current state of the Secret. + enum State { + // Not specified. + STATE_UNSPECIFIED = 0; + + // Secret is in active state, usage is allowed. + STATE_ACTIVE = 1; + + // Secret is being restored from a backup. Operations on the secret and its + // versions are restricted. + STATE_RESTORING = 2; + } + // This defines the various values of the type of secret can be. enum SecretType { // Applicable to all secrets which do not have any restriction on the @@ -216,6 +229,9 @@ message Secret { // certain operations on the typed secret. google.iam.v1.ResourcePolicyMember policy_member = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The current state of the Secret. + State state = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A secret version resource in the Secret Manager API. diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..233c3c45ad07 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import com.google.cloud.secretmanager.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceSettings secretOperationsServiceSettings = + SecretOperationsServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create(secretOperationsServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretOperationsService_Create_SetCredentialsProvider_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..a4bc64da299d --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_Create_SetEndpoint_sync] +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import com.google.cloud.secretmanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceSettings secretOperationsServiceSettings = + SecretOperationsServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create(secretOperationsServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretOperationsService_Create_SetEndpoint_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9fb8f10d41ed --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceSettings secretOperationsServiceSettings = + SecretOperationsServiceSettings.newHttpJsonBuilder().build(); + SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create(secretOperationsServiceSettings); + } +} +// [END secretmanager_v1_generated_SecretOperationsService_Create_UseHttpJsonTransport_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java new file mode 100644 index 000000000000..3ca8e95c2362 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateBackup { + + public static void main(String[] args) throws Exception { + asyncCreateBackup(); + } + + public static void asyncCreateBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackupId("backupId2121930365") + .setBackup(Backup.newBuilder().build()) + .build(); + ApiFuture future = + secretOperationsServiceClient.createBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java new file mode 100644 index 000000000000..2c8490c3e01f --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/AsyncCreateBackupLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncCreateBackupLRO { + + public static void main(String[] args) throws Exception { + asyncCreateBackupLRO(); + } + + public static void asyncCreateBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackupId("backupId2121930365") + .setBackup(Backup.newBuilder().build()) + .build(); + OperationFuture future = + secretOperationsServiceClient.createBackupOperationCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java new file mode 100644 index 000000000000..f348e0cf7966 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackup.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.CreateBackupRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncCreateBackup { + + public static void main(String[] args) throws Exception { + syncCreateBackup(); + } + + public static void syncCreateBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + CreateBackupRequest request = + CreateBackupRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBackupId("backupId2121930365") + .setBackup(Backup.newBuilder().build()) + .build(); + Backup response = secretOperationsServiceClient.createBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java new file mode 100644 index 000000000000..56c13a607aa8 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupLocationnameBackupString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_LocationnameBackupString_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncCreateBackupLocationnameBackupString { + + public static void main(String[] args) throws Exception { + syncCreateBackupLocationnameBackupString(); + } + + public static void syncCreateBackupLocationnameBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + Backup response = + secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_LocationnameBackupString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java new file mode 100644 index 000000000000..1f76aa39d6ff --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/createbackup/SyncCreateBackupStringBackupString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_CreateBackup_StringBackupString_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncCreateBackupStringBackupString { + + public static void main(String[] args) throws Exception { + syncCreateBackupStringBackupString(); + } + + public static void syncCreateBackupStringBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Backup backup = Backup.newBuilder().build(); + String backupId = "backupId2121930365"; + Backup response = + secretOperationsServiceClient.createBackupAsync(parent, backup, backupId).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_CreateBackup_StringBackupString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java new file mode 100644 index 000000000000..f976eb3bf7de --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackup.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteBackup { + + public static void main(String[] args) throws Exception { + asyncDeleteBackup(); + } + + public static void asyncDeleteBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + secretOperationsServiceClient.deleteBackupCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java new file mode 100644 index 000000000000..0b6d2ab68b8c --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/AsyncDeleteBackupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteBackupLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBackupLRO(); + } + + public static void asyncDeleteBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + secretOperationsServiceClient.deleteBackupOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java new file mode 100644 index 000000000000..dd7bfcd1bcdc --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.DeleteBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackup { + + public static void main(String[] args) throws Exception { + syncDeleteBackup(); + } + + public static void syncDeleteBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + DeleteBackupRequest request = + DeleteBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setEtag("etag3123477") + .build(); + secretOperationsServiceClient.deleteBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java new file mode 100644 index 000000000000..627e26958cbf --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupBackupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_Backupname_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupBackupname { + + public static void main(String[] args) throws Exception { + syncDeleteBackupBackupname(); + } + + public static void syncDeleteBackupBackupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + secretOperationsServiceClient.deleteBackupAsync(name).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_Backupname_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java new file mode 100644 index 000000000000..31d2784ca80f --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/deletebackup/SyncDeleteBackupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_DeleteBackup_String_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteBackupString { + + public static void main(String[] args) throws Exception { + syncDeleteBackupString(); + } + + public static void syncDeleteBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + secretOperationsServiceClient.deleteBackupAsync(name).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_DeleteBackup_String_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java new file mode 100644 index 000000000000..2b015a791a8c --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/AsyncGetBackup.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncGetBackup { + + public static void main(String[] args) throws Exception { + asyncGetBackup(); + } + + public static void asyncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .build(); + ApiFuture future = + secretOperationsServiceClient.getBackupCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..e89e90a2c048 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackup.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.GetBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + GetBackupRequest request = + GetBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .build(); + Backup response = secretOperationsServiceClient.getBackup(request); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java new file mode 100644 index 000000000000..237f42650fe5 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupBackupname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_Backupname_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncGetBackupBackupname { + + public static void main(String[] args) throws Exception { + syncGetBackupBackupname(); + } + + public static void syncGetBackupBackupname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + Backup response = secretOperationsServiceClient.getBackup(name); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_Backupname_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java new file mode 100644 index 000000000000..0d6f41d9b07e --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/getbackup/SyncGetBackupString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_GetBackup_String_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncGetBackupString { + + public static void main(String[] args) throws Exception { + syncGetBackupString(); + } + + public static void syncGetBackupString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + Backup response = secretOperationsServiceClient.getBackup(name); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_GetBackup_String_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java new file mode 100644 index 000000000000..25102097ea52 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackups.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncListBackups { + + public static void main(String[] args) throws Exception { + asyncListBackups(); + } + + public static void asyncListBackups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + secretOperationsServiceClient.listBackupsPagedCallable().futureCall(request); + // Do something. + for (Backup element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java new file mode 100644 index 000000000000..ebf630fb1380 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/AsyncListBackupsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_Paged_async] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.ListBackupsResponse; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.common.base.Strings; + +public class AsyncListBackupsPaged { + + public static void main(String[] args) throws Exception { + asyncListBackupsPaged(); + } + + public static void asyncListBackupsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListBackupsResponse response = + secretOperationsServiceClient.listBackupsCallable().call(request); + for (Backup element : response.getBackupsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_Paged_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java new file mode 100644 index 000000000000..d86ae126173e --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackups.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.ListBackupsRequest; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncListBackups { + + public static void main(String[] args) throws Exception { + syncListBackups(); + } + + public static void syncListBackups() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + ListBackupsRequest request = + ListBackupsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Backup element : secretOperationsServiceClient.listBackups(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java new file mode 100644 index 000000000000..5cccf2b8c299 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_Locationname_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncListBackupsLocationname { + + public static void main(String[] args) throws Exception { + syncListBackupsLocationname(); + } + + public static void syncListBackupsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_Locationname_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java new file mode 100644 index 000000000000..24fa89b25c73 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/listbackups/SyncListBackupsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_ListBackups_String_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncListBackupsString { + + public static void main(String[] args) throws Exception { + syncListBackupsString(); + } + + public static void syncListBackupsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Backup element : secretOperationsServiceClient.listBackups(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_ListBackups_String_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java new file mode 100644 index 000000000000..8b260e4f2d57 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackup.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.CryptoKeyName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.longrunning.Operation; + +public class AsyncRestoreBackup { + + public static void main(String[] args) throws Exception { + asyncRestoreBackup(); + } + + public static void asyncRestoreBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString()) + .setDestinationSecretId("destinationSecretId171779609") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + ApiFuture future = + secretOperationsServiceClient.restoreBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java new file mode 100644 index 000000000000..c05bfdc7eb96 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/AsyncRestoreBackupLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.CryptoKeyName; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class AsyncRestoreBackupLRO { + + public static void main(String[] args) throws Exception { + asyncRestoreBackupLRO(); + } + + public static void asyncRestoreBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString()) + .setDestinationSecretId("destinationSecretId171779609") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + OperationFuture future = + secretOperationsServiceClient.restoreBackupOperationCallable().futureCall(request); + // Do something. + Secret response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java new file mode 100644 index 000000000000..30e0185c3883 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.CryptoKeyName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.RestoreBackupRequest; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackup { + + public static void main(String[] args) throws Exception { + syncRestoreBackup(); + } + + public static void syncRestoreBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + RestoreBackupRequest request = + RestoreBackupRequest.newBuilder() + .setName(BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString()) + .setDestinationSecretParent(ProjectName.of("[PROJECT]").toString()) + .setDestinationSecretId("destinationSecretId171779609") + .setKmsKeyName( + CryptoKeyName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]") + .toString()) + .build(); + Secret response = secretOperationsServiceClient.restoreBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java new file mode 100644 index 000000000000..db2baa24113b --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameLocationnameString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameLocationnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupBackupnameLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupBackupnameLocationnameString(); + } + + public static void syncRestoreBackupBackupnameLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameLocationnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java new file mode 100644 index 000000000000..1a2166b4fd32 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameProjectnameString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameProjectnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupBackupnameProjectnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupBackupnameProjectnameString(); + } + + public static void syncRestoreBackupBackupnameProjectnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameProjectnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java new file mode 100644 index 000000000000..8f3c1187bef6 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupBackupnameStringString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameStringString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupBackupnameStringString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupBackupnameStringString(); + } + + public static void syncRestoreBackupBackupnameStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + BackupName name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]"); + String destinationSecretParent = ProjectName.of("[PROJECT]").toString(); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_BackupnameStringString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java new file mode 100644 index 000000000000..4233d5dec612 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringLocationnameString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringLocationnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.LocationName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupStringLocationnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupStringLocationnameString(); + } + + public static void syncRestoreBackupStringLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + LocationName destinationSecretParent = LocationName.of("[PROJECT]", "[LOCATION]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringLocationnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java new file mode 100644 index 000000000000..8256ac4bd495 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringProjectnameString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringProjectnameString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupStringProjectnameString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupStringProjectnameString(); + } + + public static void syncRestoreBackupStringProjectnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + ProjectName destinationSecretParent = ProjectName.of("[PROJECT]"); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringProjectnameString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java new file mode 100644 index 000000000000..4ca393bbb0ca --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/restorebackup/SyncRestoreBackupStringStringString.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringStringString_sync] +import com.google.cloud.secretmanager.v1.BackupName; +import com.google.cloud.secretmanager.v1.ProjectName; +import com.google.cloud.secretmanager.v1.Secret; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; + +public class SyncRestoreBackupStringStringString { + + public static void main(String[] args) throws Exception { + syncRestoreBackupStringStringString(); + } + + public static void syncRestoreBackupStringStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + String name = BackupName.of("[PROJECT]", "[LOCATION]", "[BACKUP]").toString(); + String destinationSecretParent = ProjectName.of("[PROJECT]").toString(); + String destinationSecretId = "destinationSecretId171779609"; + Secret response = + secretOperationsServiceClient + .restoreBackupAsync(name, destinationSecretParent, destinationSecretId) + .get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_RestoreBackup_StringStringString_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java new file mode 100644 index 000000000000..f21b4c9df255 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackup.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackup { + + public static void main(String[] args) throws Exception { + asyncUpdateBackup(); + } + + public static void asyncUpdateBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackup(Backup.newBuilder().build()) + .build(); + ApiFuture future = + secretOperationsServiceClient.updateBackupCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java new file mode 100644 index 000000000000..f72bdaa08398 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/AsyncUpdateBackupLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.OperationMetadata; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBackupLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateBackupLRO(); + } + + public static void asyncUpdateBackupLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackup(Backup.newBuilder().build()) + .build(); + OperationFuture future = + secretOperationsServiceClient.updateBackupOperationCallable().futureCall(request); + // Do something. + Backup response = future.get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_LRO_async] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java new file mode 100644 index 000000000000..29311870e1f8 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackup.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.cloud.secretmanager.v1.UpdateBackupRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackup { + + public static void main(String[] args) throws Exception { + syncUpdateBackup(); + } + + public static void syncUpdateBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + UpdateBackupRequest request = + UpdateBackupRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setBackup(Backup.newBuilder().build()) + .build(); + Backup response = secretOperationsServiceClient.updateBackupAsync(request).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java new file mode 100644 index 000000000000..905931cf0e51 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservice/updatebackup/SyncUpdateBackupBackupFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsService_UpdateBackup_BackupFieldmask_sync] +import com.google.cloud.secretmanager.v1.Backup; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBackupBackupFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBackupBackupFieldmask(); + } + + public static void syncUpdateBackupBackupFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (SecretOperationsServiceClient secretOperationsServiceClient = + SecretOperationsServiceClient.create()) { + Backup backup = Backup.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Backup response = secretOperationsServiceClient.updateBackupAsync(backup, updateMask).get(); + } + } +} +// [END secretmanager_v1_generated_SecretOperationsService_UpdateBackup_BackupFieldmask_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java new file mode 100644 index 000000000000..fbc90fd70b50 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/createbackup/SyncCreateBackup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceSettings_CreateBackup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import java.time.Duration; + +public class SyncCreateBackup { + + public static void main(String[] args) throws Exception { + syncCreateBackup(); + } + + public static void syncCreateBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + secretOperationsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceSettings_CreateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..adcd3525b661 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/secretoperationsservicesettings/getbackup/SyncGetBackup.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceSettings_GetBackup_sync] +import com.google.cloud.secretmanager.v1.SecretOperationsServiceSettings; +import java.time.Duration; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceSettings.newBuilder(); + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .setRetrySettings( + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SecretOperationsServiceSettings secretOperationsServiceSettings = + secretOperationsServiceSettingsBuilder.build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceSettings_GetBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java new file mode 100644 index 000000000000..63f86dfa5c4a --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/createbackup/SyncCreateBackup.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceStubSettings_CreateBackup_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import java.time.Duration; + +public class SyncCreateBackup { + + public static void main(String[] args) throws Exception { + syncCreateBackup(); + } + + public static void syncCreateBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + secretOperationsServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceStubSettings_CreateBackup_sync] diff --git a/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java new file mode 100644 index 000000000000..e23001a73fd7 --- /dev/null +++ b/java-secretmanager/samples/snippets/generated/com/google/cloud/secretmanager/v1/stub/secretoperationsservicestubsettings/getbackup/SyncGetBackup.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.secretmanager.v1.stub.samples; + +// [START secretmanager_v1_generated_SecretOperationsServiceStubSettings_GetBackup_sync] +import com.google.cloud.secretmanager.v1.stub.SecretOperationsServiceStubSettings; +import java.time.Duration; + +public class SyncGetBackup { + + public static void main(String[] args) throws Exception { + syncGetBackup(); + } + + public static void syncGetBackup() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + SecretOperationsServiceStubSettings.Builder secretOperationsServiceSettingsBuilder = + SecretOperationsServiceStubSettings.newBuilder(); + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .setRetrySettings( + secretOperationsServiceSettingsBuilder + .getBackupSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + SecretOperationsServiceStubSettings secretOperationsServiceSettings = + secretOperationsServiceSettingsBuilder.build(); + } +} +// [END secretmanager_v1_generated_SecretOperationsServiceStubSettings_GetBackup_sync] diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 07ff66cec8c0..29775cf2ce2a 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.72.0 + 0.73.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securesourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.72.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.73.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securesourcemanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securesourcemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index d6d42f1ede94..05b798ccbe3a 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.104.0 + 2.105.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-security-private-ca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.104.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.105.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-security-private-ca.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index a15bf01ca62d..4ce19cfb6c46 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter-settings' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.105.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter-settings/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter-settings.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.106.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 0a53e7ec294e..a36373d6b3ce 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.110.0 + 2.111.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.110.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.111.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.110.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.111.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.110.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.111.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index 72b17e81267e..0bb68b7e536b 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.70.0 + 0.71.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycentermanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.70.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.70.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.71.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securitycentermanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 79d7d7d70950..9e0bf35bf639 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.67.0 + 0.68.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securityposture' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.67.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.68.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securityposture/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-securityposture.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.68.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-control/README.md b/java-service-control/README.md index 0c9a70166f94..b1d7d82f7dc5 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-control' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.102.0' +implementation 'com.google.cloud:google-cloud-service-control:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-control/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-control.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-management/README.md b/java-service-management/README.md index f4aa5e385d88..c76d9d0e8320 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.100.0 + 3.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.100.0' +implementation 'com.google.cloud:google-cloud-service-management:3.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-management/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-management.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 81e47e5dacc9..89f5637eab46 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-usage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.102.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-service-usage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index fee832f14e4a..e8310c016242 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-servicedirectory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.103.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicedirectory/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicedirectory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 39ca368d8439..f9e3e357b426 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.69.0 + 0.70.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-servicehealth' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.69.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.70.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicehealth/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-servicehealth.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.70.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shell/README.md b/java-shell/README.md index 28765edcef64..20c3e4dcbe70 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-shell' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.101.0' +implementation 'com.google.cloud:google-cloud-shell:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-shell/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shell.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-css/README.md b/java-shopping-css/README.md index e375e33bc87a..58da170d6e84 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-css - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.70.0' +implementation 'com.google.shopping:google-shopping-css:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.70.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.71.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-css/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-css.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.71.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-accounts/README.md b/java-shopping-merchant-accounts/README.md index 565612b19d10..c9863a884709 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-accounts - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index b77c0cfe68c6..e07da3f295aa 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-conversions - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-conversions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 3e8c20219586..e5ff1a11c5e1 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-datasources - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-datasources.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 83dc44826ea2..942ee3978ad3 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-inventories - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-inventories.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-issue-resolution/README.md b/java-shopping-merchant-issue-resolution/README.md index 9d969391e6d8..dca07198273a 100644 --- a/java-shopping-merchant-issue-resolution/README.md +++ b/java-shopping-merchant-issue-resolution/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index 2c6450aa01c9..6c4bba152346 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-lfp - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-lfp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-loyaltycustomers/README.md b/java-shopping-merchant-loyaltycustomers/README.md index 2bcd67eec061..fdb4431f7530 100644 --- a/java-shopping-merchant-loyaltycustomers/README.md +++ b/java-shopping-merchant-loyaltycustomers/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-loyaltycustomers - 0.6.0 + 0.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-loyaltycustomers:0.6.0' +implementation 'com.google.shopping:google-shopping-merchant-loyaltycustomers:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-loyaltycustomers" % "0.6.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-loyaltycustomers" % "0.7.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-loyaltycustomers/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-loyaltycustomers.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-loyaltycustomers/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-loyaltycustomers/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index 9af112722a57..b05b5824a718 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-notifications - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-order-tracking/README.md b/java-shopping-merchant-order-tracking/README.md index 66e00a4de745..1167477b1551 100644 --- a/java-shopping-merchant-order-tracking/README.md +++ b/java-shopping-merchant-order-tracking/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 8ee5738681a5..a0c1bf0bd9b0 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-productstudio - 0.42.0 + 0.43.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.42.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.42.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.43.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 62a839e398d3..a4b2eb23d83e 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-products - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-products.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 788f49f4a723..601681ebb42b 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-promotions - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-promotions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index d8c213edb69b..9879ffc0edaf 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-quota - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-quota.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 779fa26837fc..6d52cabe10fc 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reports - 1.30.0 + 1.31.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.30.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.31.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.30.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.31.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reports/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reports.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.30.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.31.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index 3d46f57df9b0..3f6d3fe0c8b2 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reviews - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.48.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.48.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.49.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-spanner/README.md b/java-spanner/README.md index 98884d88a1be..e2efd722c0f8 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanner - 6.127.0 + 6.128.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.127.0' +implementation 'com.google.cloud:google-cloud-spanner:6.128.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.127.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.128.0" ``` ## Authentication @@ -590,7 +590,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.127.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.128.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java index 80a8d844fe23..961ef2906d08 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ConnectionOptionsTest.java @@ -1155,8 +1155,8 @@ public void testValidCredentialsProvider_WithoutEnablingSystemProperty() throws assertEquals(ErrorCode.FAILED_PRECONDITION, exception.getErrorCode()); assertEquals( "FAILED_PRECONDITION: credentialsProvider can only be used if the system property" - + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with the" - + " JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", + + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with" + + " the JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", exception.getMessage()); }); } @@ -1203,8 +1203,8 @@ public void testCredentialsProvider_NotLoadedWithoutSystemProperty() throws Thro assertEquals(ErrorCode.FAILED_PRECONDITION, exception.getErrorCode()); assertEquals( "FAILED_PRECONDITION: credentialsProvider can only be used if the system property" - + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with the" - + " JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", + + " ENABLE_CREDENTIALS_PROVIDER has been set to true. Start the application with" + + " the JVM command line option -DENABLE_CREDENTIALS_PROVIDER=true", exception.getMessage()); }); } @@ -1262,7 +1262,8 @@ public void testCredentialsProvider_NonExistentClass() throws Throwable { exception .getMessage() .contains( - "Unknown or invalid CredentialsProvider class name: com.google.cloud.spanner.connection.NonExistentClass")); + "Unknown or invalid CredentialsProvider class name:" + + " com.google.cloud.spanner.connection.NonExistentClass")); }); } @@ -1487,7 +1488,8 @@ public void testExternalChannelProvider_NonExistentClass() throws Throwable { exception .getMessage() .contains( - "Unknown or invalid ExternalChannelProvider class name: com.google.cloud.spanner.connection.NonExistentClass")); + "Unknown or invalid ExternalChannelProvider class name:" + + " com.google.cloud.spanner.connection.NonExistentClass")); }); } diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java index 18f3bbfaf063..0a4a8e796515 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/GrpcInterceptorProviderTest.java @@ -225,7 +225,8 @@ public void testGrpcInterceptorProvider_NonExistentClass() throws Throwable { exception .getMessage() .contains( - "Unknown or invalid GrpcInterceptorProvider class name: com.google.cloud.spanner.connection.NonExistentClass")); + "Unknown or invalid GrpcInterceptorProvider class name:" + + " com.google.cloud.spanner.connection.NonExistentClass")); }); } diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index bb699b3d8db1..4119d667bdca 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.38.0 + 0.39.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-spanneradapter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.38.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.39.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.38.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.39.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.38.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.39.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-speech/README.md b/java-speech/README.md index 0f688c3fbf71..c5edfb78bc15 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.97.0 + 4.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.97.0' +implementation 'com.google.cloud:google-cloud-speech:4.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.98.0" ``` ## Authentication @@ -218,7 +218,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-speech/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-speech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.98.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 93a90db4fd11..b4189a0bf936 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-storage-transfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.102.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage-transfer/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage-transfer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storage/README.md b/java-storage/README.md index 8744cbf5d95f..d57aa5607997 100644 --- a/java-storage/README.md +++ b/java-storage/README.md @@ -45,12 +45,12 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage - 2.78.0 + 2.79.0 com.google.cloud google-cloud-storage-control - 2.78.0 + 2.79.0 ``` @@ -65,13 +65,13 @@ implementation 'com.google.cloud:google-cloud-storage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage:2.78.0' +implementation 'com.google.cloud:google-cloud-storage:2.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.79.0" ``` ## Authentication @@ -485,7 +485,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.79.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index bb2bd74e772b..38420184b47c 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.42.0 + 0.43.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storagebatchoperations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.42.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.43.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.42.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.43.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.42.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.43.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index f7818fc6e35a..962c4da7b5b9 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.87.0 + 0.88.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storageinsights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.87.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.88.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-storageinsights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.88.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-talent/README.md b/java-talent/README.md index be3c4f6119e4..0a3eb0e5a754 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-talent' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.103.0' +implementation 'com.google.cloud:google-cloud-talent:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-talent/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-talent.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tasks/README.md b/java-tasks/README.md index ddf4aacafdaf..aa402eb94046 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tasks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.102.0' +implementation 'com.google.cloud:google-cloud-tasks:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tasks.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 7125f424d732..10f54c479ef7 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.72.0 + 0.73.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-telcoautomation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.72.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.73.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.72.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.73.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-telcoautomation.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.72.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.73.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 01a42c6b498a..82b7cfe71bc4 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-texttospeech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.103.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-texttospeech/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-texttospeech.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-tpu/README.md b/java-tpu/README.md index 7d13d1eab8e8..dbecfd550816 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tpu' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.103.0' +implementation 'com.google.cloud:google-cloud-tpu:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tpu/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-tpu.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-trace/README.md b/java-trace/README.md index 0b5f3779c65c..08ea48d7aadf 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-trace' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.102.0' +implementation 'com.google.cloud:google-cloud-trace:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-trace/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-trace.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-translate/README.md b/java-translate/README.md index 6cddba08ee6f..fb74349bea3c 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-translate' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.102.0' +implementation 'com.google.cloud:google-cloud-translate:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.103.0" ``` ## Authentication @@ -259,7 +259,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-translate/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-translate.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-valkey/README.md b/java-valkey/README.md index cc436fe84ae4..b7cbe204740d 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.48.0 + 0.49.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-valkey' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.48.0' +implementation 'com.google.cloud:google-cloud-valkey:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.49.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.49.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vectorsearch/README.md b/java-vectorsearch/README.md index ad84eac6982a..dd959f80538d 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.24.0 + 0.25.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vectorsearch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.24.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.25.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vectorsearch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.25.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 5252dd03267c..be3df25f304e 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-intelligence' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.101.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-intelligence/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-intelligence.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index 42ef2e97503f..ef89a57d2b34 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.104.0 + 0.105.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-live-stream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.104.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.105.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.104.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.105.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-live-stream.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.104.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.105.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index 8fef5ab8ed8b..52c0f186f836 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.102.0 + 0.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-stitcher' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.102.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-stitcher/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-stitcher.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index f155dd409786..02759311074b 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-transcoder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.101.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-transcoder/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-video-transcoder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vision/README.md b/java-vision/README.md index 1a5f4ecc8f6f..d24b23042bef 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.100.0 + 3.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vision' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.100.0' +implementation 'com.google.cloud:google-cloud-vision:3.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vision/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vision.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-visionai/README.md b/java-visionai/README.md index 1f834580ef79..7ddd2c431cf5 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.59.0 + 0.60.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-visionai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.59.0' +implementation 'com.google.cloud:google-cloud-visionai:0.60.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.59.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.60.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-visionai.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.59.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/0.60.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index dab9d4ccec2d..f67056046c73 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.102.0 + 1.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vmmigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.102.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmmigration/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmmigration.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index 99e99b841f57..91f303d01b33 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vmwareengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.96.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vmwareengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.97.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index 07f04cc70fc3..002071b869b0 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vpcaccess' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.103.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vpcaccess.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.104.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 7b615d950dfd..82cd7a84a6db 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-webrisk' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.101.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-webrisk/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-webrisk.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.102.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index c26bbaa6171e..2c1b5e0405cf 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.102.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-websecurityscanner/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-websecurityscanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 86b407a3a849..a4735cef69cd 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflow-executions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.102.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflow-executions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflow-executions.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workflows/README.md b/java-workflows/README.md index 30f8c68cd94c..9de95cf001b6 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflows' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.102.0' +implementation 'com.google.cloud:google-cloud-workflows:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflows/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workflows.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.103.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workloadidentity/README.md b/java-workloadidentity/README.md index e85351cdc828..ee48cfa0ef96 100644 --- a/java-workloadidentity/README.md +++ b/java-workloadidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadidentity - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadidentity:0.7.0' +implementation 'com.google.cloud:google-cloud-workloadidentity:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadidentity" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadidentity" % "0.8.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadidentity/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workloadidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadidentity/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadidentity/0.8.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workloadmanager/README.md b/java-workloadmanager/README.md index d03b84c3f767..66d873f24ba4 100644 --- a/java-workloadmanager/README.md +++ b/java-workloadmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadmanager - 0.18.0 + 0.19.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadmanager:0.18.0' +implementation 'com.google.cloud:google-cloud-workloadmanager:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.19.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workloadmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.19.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index 21f2fd872680..ba294d678e04 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workspaceevents' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.66.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workspaceevents/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workspaceevents.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.67.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-workstations/README.md b/java-workstations/README.md index 6163066e4e88..2010924374d5 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.90.0 + 0.91.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workstations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.90.0' +implementation 'com.google.cloud:google-cloud-workstations:0.91.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.90.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.91.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workstations/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-workstations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.90.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.91.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles