diff --git a/.repo-metadata.json b/.repo-metadata.json index 80355fa2aff..5fc1b6e44b1 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,21 +2,18 @@ "api_shortname": "spanner", "name_pretty": "Cloud Spanner", "product_documentation": "https://cloud.google.com/spanner/docs/", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history", "api_description": "is a fully managed, mission-critical, \nrelational database service that offers transactional consistency at global scale, \nschemas, SQL (ANSI 2011 with extensions), and automatic, synchronous replication \nfor high availability.\n\nBe sure to activate the Cloud Spanner API on the Developer's Console to\nuse Cloud Spanner from your project.", - "issue_tracker": "https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history", "release_level": "stable", + "transport": "both", "language": "java", - "min_java_version": 8, "repo": "googleapis/java-spanner", "repo_short": "java-spanner", "distribution_name": "com.google.cloud:google-cloud-spanner", "api_id": "spanner.googleapis.com", - "transport": "grpc", + "library_type": "GAPIC_COMBO", "requires_billing": true, "codeowner_team": "@googleapis/api-spanner-java", - "library_type": "GAPIC_COMBO", "excluded_poms": "google-cloud-spanner-bom", - "recommended_package": "com.google.cloud.spanner" -} - + "issue_tracker": "https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open" +} \ No newline at end of file diff --git a/README.md b/README.md index ba3bc5d59c7..0f020f4825a 100644 --- a/README.md +++ b/README.md @@ -50,20 +50,20 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.39.0') +implementation platform('com.google.cloud:libraries-bom:26.40.0') 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.67.0' +implementation 'com.google.cloud:google-cloud-spanner:6.68.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.68.1" ``` @@ -577,7 +577,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Cloud Spanner uses gRPC for the transport layer. +Cloud Spanner uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions @@ -671,7 +671,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-spanner/java11.html [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.68.1 [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/generation_config.yaml b/generation_config.yaml index 0dedec8c0d8..e8862c4dbf5 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.41.0 protoc_version: '25.3' -googleapis_commitish: 6f289d775912966eb0cf04bda91e5e355c998d30 +googleapis_commitish: 573205a81b9b96ea6d4e0365373839b59f4b427e libraries_bom_version: 26.38.0 template_excludes: - ".kokoro/continuous/common.cfg" diff --git a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json index b2933abb24e..1bbd31bc982 100644 --- a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json +++ b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json @@ -4238,6 +4238,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.executor.v1.QueryCancellationAction", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.executor.v1.QueryCancellationAction$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.executor.v1.QueryResult", "queryAllDeclaredConstructors": true, @@ -5363,6 +5381,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.v1.ReadRequest$LockHint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.v1.ReadRequest$OrderBy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.v1.RequestOptions", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java index a1ed958be4b..e518198549b 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java @@ -86,8 +86,8 @@ * Service Description: Cloud Spanner Database Admin API * *
The Cloud Spanner Database Admin API can be used to: * create, drop, and list databases - * * update the schema of pre-existing databases * create, delete and list backups for a - * database * restore a database from an existing backup + * * update the schema of pre-existing databases * create, delete, copy and list backups for + * a database * restore a database from an existing backup * *
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: @@ -199,7 +199,7 @@ * *
UpdateDatabaseDdl
Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<database_name>/operations/<operation_id>` and can be used to track execution of the schema change(s). The [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns, indexes, etc. The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<database_name>/operations/<operation_id>` and can be used to track execution of the schema change(s). The [metadata][google.longrunning.Operation.metadata] field type is [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CopyBackup
Starts copying a Cloud Spanner Backup. The returned backup [long-running operation][google.longrunning.Operation] will have a name of the format `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>` and can be used to track copying of the backup. The operation is associated with the destination backup. The [metadata][google.longrunning.Operation.metadata] field type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the copying and delete the backup. Concurrent CopyBackup requests can run on the same source backup.
Starts copying a Cloud Spanner Backup. The returned backup [long-running operation][google.longrunning.Operation] will have a name of the format `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>` and can be used to track copying of the backup. The operation is associated with the destination backup. The [metadata][google.longrunning.Operation.metadata] field type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]. The [response][google.longrunning.Operation.response] field type is [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the copying and delete the destination backup. Concurrent CopyBackup requests can run on the same source backup.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*Sample code:
*
@@ -2517,8 +2517,8 @@ public final OperationFuture Sample code:
*
@@ -2575,8 +2575,8 @@ public final OperationFuture Sample code:
*
@@ -2633,8 +2633,8 @@ public final OperationFuture Sample code:
*
@@ -2691,8 +2691,8 @@ public final OperationFuture Sample code:
*
@@ -2733,8 +2733,8 @@ public final OperationFuture Sample code:
*
@@ -2775,8 +2775,8 @@ public final OperationFuture Sample code:
*
@@ -4069,7 +4069,7 @@ public final ListBackupOperationsPagedResponse listBackupOperations(
* }
*
* @param parent Required. The database whose roles should be listed. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDatabaseRolesPagedResponse listDatabaseRoles(DatabaseName parent) {
@@ -4101,7 +4101,7 @@ public final ListDatabaseRolesPagedResponse listDatabaseRoles(DatabaseName paren
* }
*
* @param parent Required. The database whose roles should be listed. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListDatabaseRolesPagedResponse listDatabaseRoles(String parent) {
diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java
index 403828ab3ef..1fd79833e09 100644
--- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java
+++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/package-info.java
@@ -24,8 +24,8 @@
* Service Description: Cloud Spanner Database Admin API
*
* The Cloud Spanner Database Admin API can be used to: * create, drop, and list databases
- * * update the schema of pre-existing databases * create, delete and list backups for a
- * database * restore a database from an existing backup
+ * * update the schema of pre-existing databases * create, delete, copy and list backups for
+ * a database * restore a database from an existing backup
*
* Sample for DatabaseAdminClient:
*
diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java
index 4a60eb3ef9b..db96f17542a 100644
--- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java
+++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/SpannerStubSettings.java
@@ -446,13 +446,19 @@ public static class Builder extends StubSettings.Builder
- * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Gets metadata on a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
default void getBackup(
@@ -1276,7 +1279,8 @@ default void getBackup(
*
*
*
- * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Updates a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
default void updateBackup(
@@ -1290,7 +1294,8 @@ default void updateBackup(
*
*
*
- * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Deletes a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
default void deleteBackup(
@@ -1419,7 +1424,7 @@ default void listDatabaseRoles(
* The Cloud Spanner Database Admin API can be used to:
* * create, drop, and list databases
* * update the schema of pre-existing databases
- * * create, delete and list backups for a database
+ * * create, delete, copy and list backups for a database
* * restore a database from an existing backup
*
*/
@@ -1440,7 +1445,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
* The Cloud Spanner Database Admin API can be used to:
* * create, drop, and list databases
* * update the schema of pre-existing databases
- * * create, delete and list backups for a database
+ * * create, delete, copy and list backups for a database
* * restore a database from an existing backup
*
*/
@@ -1481,8 +1486,8 @@ public void listDatabases(
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
- * [response][google.longrunning.Operation.response] field type is
+ * [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata].
+ * The [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
*/
@@ -1568,7 +1573,8 @@ public void updateDatabase(
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
+ * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata].
+ * The operation has no response.
*
*/
public void updateDatabaseDdl(
@@ -1697,12 +1703,12 @@ public void testIamPermissions(
* `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
* and can be used to track creation of the backup. The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. The
- * [response][google.longrunning.Operation.response] field type is
- * [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the
- * creation and delete the backup.
- * There can be only one pending backup creation per database. Backup creation
- * of different databases can run concurrently.
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * The [response][google.longrunning.Operation.response] field type is
+ * [Backup][google.spanner.admin.database.v1.Backup], if successful.
+ * Cancelling the returned operation will stop the creation and delete the
+ * backup. There can be only one pending backup creation per database. Backup
+ * creation of different databases can run concurrently.
*
*/
public void createBackup(
@@ -1727,9 +1733,10 @@ public void createBackup(
* The [metadata][google.longrunning.Operation.metadata] field type is
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
* The [response][google.longrunning.Operation.response] field type is
- * [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the
- * copying and delete the backup.
- * Concurrent CopyBackup requests can run on the same source backup.
+ * [Backup][google.spanner.admin.database.v1.Backup], if successful.
+ * Cancelling the returned operation will stop the copying and delete the
+ * destination backup. Concurrent CopyBackup requests can run on the same
+ * source backup.
*
*/
public void copyBackup(
@@ -1743,7 +1750,8 @@ public void copyBackup(
*
*
*
- * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Gets metadata on a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public void getBackup(
@@ -1757,7 +1765,8 @@ public void getBackup(
*
*
*
- * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Updates a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public void updateBackup(
@@ -1773,7 +1782,8 @@ public void updateBackup(
*
*
*
- * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Deletes a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public void deleteBackup(
@@ -1914,7 +1924,7 @@ public void listDatabaseRoles(
* The Cloud Spanner Database Admin API can be used to:
* * create, drop, and list databases
* * update the schema of pre-existing databases
- * * create, delete and list backups for a database
+ * * create, delete, copy and list backups for a database
* * restore a database from an existing backup
*
*/
@@ -1952,8 +1962,8 @@ public com.google.spanner.admin.database.v1.ListDatabasesResponse listDatabases(
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
- * [response][google.longrunning.Operation.response] field type is
+ * [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata].
+ * The [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
*/
@@ -2029,7 +2039,8 @@ public com.google.longrunning.Operation updateDatabase(
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
+ * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata].
+ * The operation has no response.
*
*/
public com.google.longrunning.Operation updateDatabaseDdl(
@@ -2136,12 +2147,12 @@ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(
* `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
* and can be used to track creation of the backup. The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]. The
- * [response][google.longrunning.Operation.response] field type is
- * [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the
- * creation and delete the backup.
- * There can be only one pending backup creation per database. Backup creation
- * of different databases can run concurrently.
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * The [response][google.longrunning.Operation.response] field type is
+ * [Backup][google.spanner.admin.database.v1.Backup], if successful.
+ * Cancelling the returned operation will stop the creation and delete the
+ * backup. There can be only one pending backup creation per database. Backup
+ * creation of different databases can run concurrently.
*
*/
public com.google.longrunning.Operation createBackup(
@@ -2163,9 +2174,10 @@ public com.google.longrunning.Operation createBackup(
* The [metadata][google.longrunning.Operation.metadata] field type is
* [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
* The [response][google.longrunning.Operation.response] field type is
- * [Backup][google.spanner.admin.database.v1.Backup], if successful. Cancelling the returned operation will stop the
- * copying and delete the backup.
- * Concurrent CopyBackup requests can run on the same source backup.
+ * [Backup][google.spanner.admin.database.v1.Backup], if successful.
+ * Cancelling the returned operation will stop the copying and delete the
+ * destination backup. Concurrent CopyBackup requests can run on the same
+ * source backup.
*
*/
public com.google.longrunning.Operation copyBackup(
@@ -2178,7 +2190,8 @@ public com.google.longrunning.Operation copyBackup(
*
*
*
- * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Gets metadata on a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public com.google.spanner.admin.database.v1.Backup getBackup(
@@ -2191,7 +2204,8 @@ public com.google.spanner.admin.database.v1.Backup getBackup(
*
*
*
- * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Updates a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public com.google.spanner.admin.database.v1.Backup updateBackup(
@@ -2204,7 +2218,8 @@ public com.google.spanner.admin.database.v1.Backup updateBackup(
*
*
*
- * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Deletes a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public com.google.protobuf.Empty deleteBackup(
@@ -2322,7 +2337,7 @@ public com.google.spanner.admin.database.v1.ListDatabaseRolesResponse listDataba
* The Cloud Spanner Database Admin API can be used to:
* * create, drop, and list databases
* * update the schema of pre-existing databases
- * * create, delete and list backups for a database
+ * * create, delete, copy and list backups for a database
* * restore a database from an existing backup
*
*/
@@ -2361,8 +2376,8 @@ protected DatabaseAdminFutureStub build(
* have a name of the format `<database_name>/operations/<operation_id>` and
* can be used to track preparation of the database. The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata]. The
- * [response][google.longrunning.Operation.response] field type is
+ * [CreateDatabaseMetadata][google.spanner.admin.database.v1.CreateDatabaseMetadata].
+ * The [response][google.longrunning.Operation.response] field type is
* [Database][google.spanner.admin.database.v1.Database], if successful.
*
*/
@@ -2439,7 +2454,8 @@ protected DatabaseAdminFutureStub build(
* the format `<database_name>/operations/<operation_id>` and can be used to
* track execution of the schema change(s). The
* [metadata][google.longrunning.Operation.metadata] field type is
- * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata]. The operation has no response.
+ * [UpdateDatabaseDdlMetadata][google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata].
+ * The operation has no response.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Gets metadata on a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Gets metadata on a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -2606,7 +2624,8 @@ protected DatabaseAdminFutureStub build(
*
*
*
- * Updates a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Updates a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -2620,7 +2639,8 @@ protected DatabaseAdminFutureStub build(
*
*
*
- * Deletes a pending or completed [Backup][google.spanner.admin.database.v1.Backup].
+ * Deletes a pending or completed
+ * [Backup][google.spanner.admin.database.v1.Backup].
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -263,10 +264,10 @@ public java.lang.String getDatabase() {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -348,7 +349,8 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -368,7 +370,8 @@ public boolean hasExpireTime() {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -388,7 +391,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -411,8 +415,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -446,8 +453,11 @@ public java.lang.String getName() {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -484,7 +494,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -502,7 +513,8 @@ public boolean hasCreateTime() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -520,7 +532,8 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -742,6 +755,115 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio
: encryptionInfo_;
}
+ public static final int ENCRYPTION_INFORMATION_FIELD_NUMBER = 13;
+
+ @SuppressWarnings("serial")
+ private java.util.List
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>
+ getEncryptionInformationOrBuilderList() {
+ return encryptionInformation_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getEncryptionInformationCount() {
+ return encryptionInformation_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInformation(int index) {
+ return encryptionInformation_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder
+ getEncryptionInformationOrBuilder(int index) {
+ return encryptionInformation_.get(index);
+ }
+
public static final int DATABASE_DIALECT_FIELD_NUMBER = 10;
private int databaseDialect_ = 0;
/**
@@ -1000,6 +1122,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(12, getMaxExpireTime());
}
+ for (int i = 0; i < encryptionInformation_.size(); i++) {
+ output.writeMessage(13, encryptionInformation_.get(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -1057,6 +1182,11 @@ public int getSerializedSize() {
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getMaxExpireTime());
}
+ for (int i = 0; i < encryptionInformation_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 13, encryptionInformation_.get(i));
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1094,6 +1224,7 @@ public boolean equals(final java.lang.Object obj) {
if (hasEncryptionInfo()) {
if (!getEncryptionInfo().equals(other.getEncryptionInfo())) return false;
}
+ if (!getEncryptionInformationList().equals(other.getEncryptionInformationList())) return false;
if (databaseDialect_ != other.databaseDialect_) return false;
if (!getReferencingBackupsList().equals(other.getReferencingBackupsList())) return false;
if (hasMaxExpireTime() != other.hasMaxExpireTime()) return false;
@@ -1139,6 +1270,10 @@ public int hashCode() {
hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getEncryptionInfo().hashCode();
}
+ if (getEncryptionInformationCount() > 0) {
+ hash = (37 * hash) + ENCRYPTION_INFORMATION_FIELD_NUMBER;
+ hash = (53 * hash) + getEncryptionInformationList().hashCode();
+ }
hash = (37 * hash) + DATABASE_DIALECT_FIELD_NUMBER;
hash = (53 * hash) + databaseDialect_;
if (getReferencingBackupsCount() > 0) {
@@ -1293,6 +1428,7 @@ private void maybeForceBuilderInitialization() {
getExpireTimeFieldBuilder();
getCreateTimeFieldBuilder();
getEncryptionInfoFieldBuilder();
+ getEncryptionInformationFieldBuilder();
getMaxExpireTimeFieldBuilder();
}
}
@@ -1326,6 +1462,13 @@ public Builder clear() {
encryptionInfoBuilder_.dispose();
encryptionInfoBuilder_ = null;
}
+ if (encryptionInformationBuilder_ == null) {
+ encryptionInformation_ = java.util.Collections.emptyList();
+ } else {
+ encryptionInformation_ = null;
+ encryptionInformationBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000200);
databaseDialect_ = 0;
referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList();
maxExpireTime_ = null;
@@ -1360,6 +1503,7 @@ public com.google.spanner.admin.database.v1.Backup build() {
public com.google.spanner.admin.database.v1.Backup buildPartial() {
com.google.spanner.admin.database.v1.Backup result =
new com.google.spanner.admin.database.v1.Backup(this);
+ buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
@@ -1367,6 +1511,18 @@ public com.google.spanner.admin.database.v1.Backup buildPartial() {
return result;
}
+ private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.Backup result) {
+ if (encryptionInformationBuilder_ == null) {
+ if (((bitField0_ & 0x00000200) != 0)) {
+ encryptionInformation_ = java.util.Collections.unmodifiableList(encryptionInformation_);
+ bitField0_ = (bitField0_ & ~0x00000200);
+ }
+ result.encryptionInformation_ = encryptionInformation_;
+ } else {
+ result.encryptionInformation_ = encryptionInformationBuilder_.build();
+ }
+ }
+
private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
@@ -1404,14 +1560,14 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) {
encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build();
to_bitField0_ |= 0x00000008;
}
- if (((from_bitField0_ & 0x00000200) != 0)) {
+ if (((from_bitField0_ & 0x00000400) != 0)) {
result.databaseDialect_ = databaseDialect_;
}
- if (((from_bitField0_ & 0x00000400) != 0)) {
+ if (((from_bitField0_ & 0x00000800) != 0)) {
referencingBackups_.makeImmutable();
result.referencingBackups_ = referencingBackups_;
}
- if (((from_bitField0_ & 0x00000800) != 0)) {
+ if (((from_bitField0_ & 0x00001000) != 0)) {
result.maxExpireTime_ =
maxExpireTimeBuilder_ == null ? maxExpireTime_ : maxExpireTimeBuilder_.build();
to_bitField0_ |= 0x00000010;
@@ -1502,13 +1658,40 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.Backup other) {
if (other.hasEncryptionInfo()) {
mergeEncryptionInfo(other.getEncryptionInfo());
}
+ if (encryptionInformationBuilder_ == null) {
+ if (!other.encryptionInformation_.isEmpty()) {
+ if (encryptionInformation_.isEmpty()) {
+ encryptionInformation_ = other.encryptionInformation_;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ } else {
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.addAll(other.encryptionInformation_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.encryptionInformation_.isEmpty()) {
+ if (encryptionInformationBuilder_.isEmpty()) {
+ encryptionInformationBuilder_.dispose();
+ encryptionInformationBuilder_ = null;
+ encryptionInformation_ = other.encryptionInformation_;
+ bitField0_ = (bitField0_ & ~0x00000200);
+ encryptionInformationBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getEncryptionInformationFieldBuilder()
+ : null;
+ } else {
+ encryptionInformationBuilder_.addAllMessages(other.encryptionInformation_);
+ }
+ }
+ }
if (other.databaseDialect_ != 0) {
setDatabaseDialectValue(other.getDatabaseDialectValue());
}
if (!other.referencingBackups_.isEmpty()) {
if (referencingBackups_.isEmpty()) {
referencingBackups_ = other.referencingBackups_;
- bitField0_ |= 0x00000400;
+ bitField0_ |= 0x00000800;
} else {
ensureReferencingBackupsIsMutable();
referencingBackups_.addAll(other.referencingBackups_);
@@ -1602,7 +1785,7 @@ public Builder mergeFrom(
case 80:
{
databaseDialect_ = input.readEnum();
- bitField0_ |= 0x00000200;
+ bitField0_ |= 0x00000400;
break;
} // case 80
case 90:
@@ -1615,9 +1798,23 @@ public Builder mergeFrom(
case 98:
{
input.readMessage(getMaxExpireTimeFieldBuilder().getBuilder(), extensionRegistry);
- bitField0_ |= 0x00000800;
+ bitField0_ |= 0x00001000;
break;
} // case 98
+ case 106:
+ {
+ com.google.spanner.admin.database.v1.EncryptionInfo m =
+ input.readMessage(
+ com.google.spanner.admin.database.v1.EncryptionInfo.parser(),
+ extensionRegistry);
+ if (encryptionInformationBuilder_ == null) {
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.add(m);
+ } else {
+ encryptionInformationBuilder_.addMessage(m);
+ }
+ break;
+ } // case 106
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -1642,10 +1839,10 @@ public Builder mergeFrom(
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -1668,10 +1865,10 @@ public java.lang.String getDatabase() {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -1694,10 +1891,10 @@ public com.google.protobuf.ByteString getDatabaseBytes() {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -1719,10 +1916,10 @@ public Builder setDatabase(java.lang.String value) {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -1740,10 +1937,10 @@ public Builder clearDatabase() {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -1985,7 +2182,8 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2004,7 +2202,8 @@ public boolean hasExpireTime() {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2029,7 +2228,8 @@ public com.google.protobuf.Timestamp getExpireTime() {
*
*
*
*
* Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlRequest}
@@ -1065,18 +1069,20 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2056,7 +2256,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2080,7 +2281,8 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2112,7 +2314,8 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
*
*
*
*
* Protobuf type {@code google.spanner.admin.database.v1.UpdateDatabaseDdlRequest}
@@ -215,18 +215,20 @@ public com.google.protobuf.ByteString getStatementsBytes(int index) {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2136,7 +2339,8 @@ public Builder clearExpireTime() {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2155,7 +2359,8 @@ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2178,7 +2383,8 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -2210,8 +2416,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -2244,8 +2453,11 @@ public java.lang.String getName() {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -2278,8 +2490,11 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -2311,8 +2526,11 @@ public Builder setName(java.lang.String value) {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -2340,8 +2558,11 @@ public Builder clearName() {
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -2381,7 +2602,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2399,7 +2621,8 @@ public boolean hasCreateTime() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2423,7 +2646,8 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2449,7 +2673,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2472,7 +2697,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2503,7 +2729,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2526,7 +2753,8 @@ public Builder clearCreateTime() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2544,7 +2772,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -2566,7 +2795,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -3199,6 +3429,496 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryption
return encryptionInfoBuilder_;
}
+ private java.util.List
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getEncryptionInformationCount() {
+ if (encryptionInformationBuilder_ == null) {
+ return encryptionInformation_.size();
+ } else {
+ return encryptionInformationBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInformation(int index) {
+ if (encryptionInformationBuilder_ == null) {
+ return encryptionInformation_.get(index);
+ } else {
+ return encryptionInformationBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEncryptionInformation(
+ int index, com.google.spanner.admin.database.v1.EncryptionInfo value) {
+ if (encryptionInformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.set(index, value);
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setEncryptionInformation(
+ int index, com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) {
+ if (encryptionInformationBuilder_ == null) {
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addEncryptionInformation(
+ com.google.spanner.admin.database.v1.EncryptionInfo value) {
+ if (encryptionInformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.add(value);
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addEncryptionInformation(
+ int index, com.google.spanner.admin.database.v1.EncryptionInfo value) {
+ if (encryptionInformationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.add(index, value);
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addEncryptionInformation(
+ com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) {
+ if (encryptionInformationBuilder_ == null) {
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.add(builderForValue.build());
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addEncryptionInformation(
+ int index, com.google.spanner.admin.database.v1.EncryptionInfo.Builder builderForValue) {
+ if (encryptionInformationBuilder_ == null) {
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllEncryptionInformation(
+ java.lang.Iterable extends com.google.spanner.admin.database.v1.EncryptionInfo> values) {
+ if (encryptionInformationBuilder_ == null) {
+ ensureEncryptionInformationIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, encryptionInformation_);
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearEncryptionInformation() {
+ if (encryptionInformationBuilder_ == null) {
+ encryptionInformation_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000200);
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeEncryptionInformation(int index) {
+ if (encryptionInformationBuilder_ == null) {
+ ensureEncryptionInformationIsMutable();
+ encryptionInformation_.remove(index);
+ onChanged();
+ } else {
+ encryptionInformationBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder
+ getEncryptionInformationBuilder(int index) {
+ return getEncryptionInformationFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder
+ getEncryptionInformationOrBuilder(int index) {
+ if (encryptionInformationBuilder_ == null) {
+ return encryptionInformation_.get(index);
+ } else {
+ return encryptionInformationBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>
+ getEncryptionInformationOrBuilderList() {
+ if (encryptionInformationBuilder_ != null) {
+ return encryptionInformationBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(encryptionInformation_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder
+ addEncryptionInformationBuilder() {
+ return getEncryptionInformationFieldBuilder()
+ .addBuilder(com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder
+ addEncryptionInformationBuilder(int index) {
+ return getEncryptionInformationFieldBuilder()
+ .addBuilder(
+ index, com.google.spanner.admin.database.v1.EncryptionInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -143,9 +143,9 @@ public boolean hasVersionTime() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -162,9 +162,9 @@ public com.google.protobuf.Timestamp getVersionTime() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -180,8 +180,9 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -196,8 +197,9 @@ public boolean hasCreateTime() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -212,8 +214,9 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -835,9 +838,9 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -853,9 +856,9 @@ public boolean hasVersionTime() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -877,9 +880,9 @@ public com.google.protobuf.Timestamp getVersionTime() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -903,9 +906,9 @@ public Builder setVersionTime(com.google.protobuf.Timestamp value) {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -926,9 +929,9 @@ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForVa
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -957,9 +960,9 @@ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -980,9 +983,9 @@ public Builder clearVersionTime() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -998,9 +1001,9 @@ public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -1020,9 +1023,9 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -1054,8 +1057,9 @@ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1069,8 +1073,9 @@ public boolean hasCreateTime() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1090,8 +1095,9 @@ public com.google.protobuf.Timestamp getCreateTime() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1113,8 +1119,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1133,8 +1140,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1161,8 +1169,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1181,8 +1190,9 @@ public Builder clearCreateTime() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1196,8 +1206,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -1215,8 +1226,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java
index 5a2963f8b9f..c7409c3fbb9 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfoOrBuilder.java
@@ -55,9 +55,9 @@ public interface BackupInfoOrBuilder
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -71,9 +71,9 @@ public interface BackupInfoOrBuilder
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -87,9 +87,9 @@ public interface BackupInfoOrBuilder
*
* The backup contains an externally consistent copy of `source_database` at
* the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request did not specify
- * `version_time`, the `version_time` of the backup is equivalent to the
- * `create_time`.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request did not specify `version_time`, the `version_time` of the backup is
+ * equivalent to the `create_time`.
*
*
* .google.protobuf.Timestamp version_time = 4;
@@ -100,8 +100,9 @@ public interface BackupInfoOrBuilder
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -113,8 +114,9 @@ public interface BackupInfoOrBuilder
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
@@ -126,8 +128,9 @@ public interface BackupInfoOrBuilder
*
*
*
- * The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] request was
- * received.
+ * The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * request was received.
*
*
* .google.protobuf.Timestamp create_time = 2;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java
index bd25d67c5ab..c3917c39f62 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupOrBuilder.java
@@ -28,10 +28,10 @@ public interface BackupOrBuilder
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -44,10 +44,10 @@ public interface BackupOrBuilder
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Name of the database from which this backup was
- * created. This needs to be in the same instance as the backup.
- * Values are of the form
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Name of the database from which this backup was created. This
+ * needs to be in the same instance as the backup. Values are of the form
* `projects/<project>/instances/<instance>/databases/<database>`.
*
*
@@ -105,7 +105,8 @@ public interface BackupOrBuilder
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -122,7 +123,8 @@ public interface BackupOrBuilder
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -139,7 +141,8 @@ public interface BackupOrBuilder
*
*
*
*
*
- * Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Required for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* operation. The expiration time of the backup, with microseconds
* granularity that must be at least 6 hours and at most 366 days
* from the time the CreateBackup request is processed. Once the `expire_time`
@@ -155,8 +158,11 @@ public interface BackupOrBuilder
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -179,8 +185,11 @@ public interface BackupOrBuilder
*
*
*
*
*
- * Output only for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- * Required for the [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup] operation.
+ * Output only for the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation. Required for the
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
+ * operation.
*
* A globally unique identifier for the backup which cannot be
* changed. Values are of the form
@@ -204,7 +213,8 @@ public interface BackupOrBuilder
*
*
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -219,7 +229,8 @@ public interface BackupOrBuilder
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -234,7 +245,8 @@ public interface BackupOrBuilder
*
*
*
- * Output only. The time the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * Output only. The time the
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
* request is received. If the request does not specify `version_time`, the
* `version_time` of the backup will be equivalent to the `create_time`.
*
@@ -410,6 +422,95 @@ public interface BackupOrBuilder
*/
com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder();
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInformation(int index);
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getEncryptionInformationCount();
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder>
+ getEncryptionInformationOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Output only. The encryption information for the backup, whether it is
+ * protected by one or more KMS keys. The information includes all Cloud
+ * KMS key versions used to encrypt the backup. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated. At least one of the key
+ * versions must be available for the backup to be restored. If a key version
+ * is revoked in the middle of a restore, the restore behavior is undefined.
+ *
+ *
+ *
+ * repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInformationOrBuilder(
+ int index);
+
/**
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java
index 2901738e77a..4ab53f9a43c 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupProto.java
@@ -104,7 +104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "g/operations.proto\032 google/protobuf/fiel"
+ "d_mask.proto\032\037google/protobuf/timestamp."
+ "proto\032-google/spanner/admin/database/v1/"
- + "common.proto\"\303\006\n\006Backup\0226\n\010database\030\002 \001("
+ + "common.proto\"\232\007\n\006Backup\0226\n\010database\030\002 \001("
+ "\tB$\372A!\n\037spanner.googleapis.com/Database\022"
+ "0\n\014version_time\030\t \001(\0132\032.google.protobuf."
+ "Timestamp\022/\n\013expire_time\030\003 \001(\0132\032.google."
@@ -116,93 +116,98 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ases\030\007 \003(\tB\'\340A\003\372A!\n\037spanner.googleapis.c"
+ "om/Database\022N\n\017encryption_info\030\010 \001(\01320.g"
+ "oogle.spanner.admin.database.v1.Encrypti"
- + "onInfoB\003\340A\003\022P\n\020database_dialect\030\n \001(\01621."
- + "google.spanner.admin.database.v1.Databas"
- + "eDialectB\003\340A\003\022B\n\023referencing_backups\030\013 \003"
- + "(\tB%\340A\003\372A\037\n\035spanner.googleapis.com/Backu"
- + "p\0228\n\017max_expire_time\030\014 \001(\0132\032.google.prot"
- + "obuf.TimestampB\003\340A\003\"7\n\005State\022\025\n\021STATE_UN"
- + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:\\\352A"
- + "Y\n\035spanner.googleapis.com/Backup\0228projec"
- + "ts/{project}/instances/{instance}/backup"
- + "s/{backup}\"\205\002\n\023CreateBackupRequest\0227\n\006pa"
+ + "onInfoB\003\340A\003\022U\n\026encryption_information\030\r "
+ + "\003(\01320.google.spanner.admin.database.v1.E"
+ + "ncryptionInfoB\003\340A\003\022P\n\020database_dialect\030\n"
+ + " \001(\01621.google.spanner.admin.database.v1."
+ + "DatabaseDialectB\003\340A\003\022B\n\023referencing_back"
+ + "ups\030\013 \003(\tB%\340A\003\372A\037\n\035spanner.googleapis.co"
+ + "m/Backup\0228\n\017max_expire_time\030\014 \001(\0132\032.goog"
+ + "le.protobuf.TimestampB\003\340A\003\"7\n\005State\022\025\n\021S"
+ + "TATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READ"
+ + "Y\020\002:\\\352AY\n\035spanner.googleapis.com/Backup\022"
+ + "8projects/{project}/instances/{instance}"
+ + "/backups/{backup}\"\205\002\n\023CreateBackupReques"
+ + "t\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googl"
+ + "eapis.com/Instance\022\026\n\tbackup_id\030\002 \001(\tB\003\340"
+ + "A\002\022=\n\006backup\030\003 \001(\0132(.google.spanner.admi"
+ + "n.database.v1.BackupB\003\340A\002\022^\n\021encryption_"
+ + "config\030\004 \001(\0132>.google.spanner.admin.data"
+ + "base.v1.CreateBackupEncryptionConfigB\003\340A"
+ + "\001\"\370\001\n\024CreateBackupMetadata\0220\n\004name\030\001 \001(\t"
+ + "B\"\372A\037\n\035spanner.googleapis.com/Backup\0226\n\010"
+ + "database\030\002 \001(\tB$\372A!\n\037spanner.googleapis."
+ + "com/Database\022E\n\010progress\030\003 \001(\01323.google."
+ + "spanner.admin.database.v1.OperationProgr"
+ + "ess\022/\n\013cancel_time\030\004 \001(\0132\032.google.protob"
+ + "uf.Timestamp\"\266\002\n\021CopyBackupRequest\0227\n\006pa"
+ "rent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.c"
- + "om/Instance\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022=\n\006b"
- + "ackup\030\003 \001(\0132(.google.spanner.admin.datab"
- + "ase.v1.BackupB\003\340A\002\022^\n\021encryption_config\030"
- + "\004 \001(\0132>.google.spanner.admin.database.v1"
- + ".CreateBackupEncryptionConfigB\003\340A\001\"\370\001\n\024C"
- + "reateBackupMetadata\0220\n\004name\030\001 \001(\tB\"\372A\037\n\035"
- + "spanner.googleapis.com/Backup\0226\n\010databas"
- + "e\030\002 \001(\tB$\372A!\n\037spanner.googleapis.com/Dat"
- + "abase\022E\n\010progress\030\003 \001(\01323.google.spanner"
- + ".admin.database.v1.OperationProgress\022/\n\013"
- + "cancel_time\030\004 \001(\0132\032.google.protobuf.Time"
- + "stamp\"\266\002\n\021CopyBackupRequest\0227\n\006parent\030\001 "
- + "\001(\tB\'\340A\002\372A!\n\037spanner.googleapis.com/Inst"
- + "ance\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022<\n\rsource_b"
- + "ackup\030\003 \001(\tB%\340A\002\372A\037\n\035spanner.googleapis."
- + "com/Backup\0224\n\013expire_time\030\004 \001(\0132\032.google"
- + ".protobuf.TimestampB\003\340A\002\022\\\n\021encryption_c"
- + "onfig\030\005 \001(\0132<.google.spanner.admin.datab"
- + "ase.v1.CopyBackupEncryptionConfigB\003\340A\001\"\371"
- + "\001\n\022CopyBackupMetadata\0220\n\004name\030\001 \001(\tB\"\372A\037"
- + "\n\035spanner.googleapis.com/Backup\0229\n\rsourc"
- + "e_backup\030\002 \001(\tB\"\372A\037\n\035spanner.googleapis."
- + "com/Backup\022E\n\010progress\030\003 \001(\01323.google.sp"
- + "anner.admin.database.v1.OperationProgres"
- + "s\022/\n\013cancel_time\030\004 \001(\0132\032.google.protobuf"
- + ".Timestamp\"\212\001\n\023UpdateBackupRequest\022=\n\006ba"
- + "ckup\030\001 \001(\0132(.google.spanner.admin.databa"
- + "se.v1.BackupB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032"
- + ".google.protobuf.FieldMaskB\003\340A\002\"G\n\020GetBa"
- + "ckupRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035spann"
- + "er.googleapis.com/Backup\"J\n\023DeleteBackup"
- + "Request\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035spanner.g"
- + "oogleapis.com/Backup\"\204\001\n\022ListBackupsRequ"
- + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.goo"
- + "gleapis.com/Instance\022\016\n\006filter\030\002 \001(\t\022\021\n\t"
- + "page_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"i\n\023L"
- + "istBackupsResponse\0229\n\007backups\030\001 \003(\0132(.go"
- + "ogle.spanner.admin.database.v1.Backup\022\027\n"
- + "\017next_page_token\030\002 \001(\t\"\215\001\n\033ListBackupOpe"
- + "rationsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037"
- + "spanner.googleapis.com/Instance\022\016\n\006filte"
- + "r\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token"
- + "\030\004 \001(\t\"j\n\034ListBackupOperationsResponse\0221"
- + "\n\noperations\030\001 \003(\0132\035.google.longrunning."
- + "Operation\022\027\n\017next_page_token\030\002 \001(\t\"\342\001\n\nB"
- + "ackupInfo\0222\n\006backup\030\001 \001(\tB\"\372A\037\n\035spanner."
- + "googleapis.com/Backup\0220\n\014version_time\030\004 "
- + "\001(\0132\032.google.protobuf.Timestamp\022/\n\013creat"
- + "e_time\030\002 \001(\0132\032.google.protobuf.Timestamp"
- + "\022=\n\017source_database\030\003 \001(\tB$\372A!\n\037spanner."
- + "googleapis.com/Database\"\335\002\n\034CreateBackup"
- + "EncryptionConfig\022k\n\017encryption_type\030\001 \001("
- + "\0162M.google.spanner.admin.database.v1.Cre"
- + "ateBackupEncryptionConfig.EncryptionType"
- + "B\003\340A\002\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!clo"
- + "udkms.googleapis.com/CryptoKey\"\216\001\n\016Encry"
- + "ptionType\022\037\n\033ENCRYPTION_TYPE_UNSPECIFIED"
- + "\020\000\022\033\n\027USE_DATABASE_ENCRYPTION\020\001\022\035\n\031GOOGL"
- + "E_DEFAULT_ENCRYPTION\020\002\022\037\n\033CUSTOMER_MANAG"
- + "ED_ENCRYPTION\020\003\"\351\002\n\032CopyBackupEncryption"
- + "Config\022i\n\017encryption_type\030\001 \001(\0162K.google"
- + ".spanner.admin.database.v1.CopyBackupEnc"
- + "ryptionConfig.EncryptionTypeB\003\340A\002\022?\n\014kms"
- + "_key_name\030\002 \001(\tB)\340A\001\372A#\n!cloudkms.google"
- + "apis.com/CryptoKey\"\236\001\n\016EncryptionType\022\037\n"
- + "\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022+\n\'USE_CO"
- + "NFIG_DEFAULT_OR_BACKUP_ENCRYPTION\020\001\022\035\n\031G"
- + "OOGLE_DEFAULT_ENCRYPTION\020\002\022\037\n\033CUSTOMER_M"
- + "ANAGED_ENCRYPTION\020\003B\375\001\n$com.google.spann"
- + "er.admin.database.v1B\013BackupProtoP\001ZFclo"
- + "ud.google.com/go/spanner/admin/database/"
- + "apiv1/databasepb;databasepb\252\002&Google.Clo"
- + "ud.Spanner.Admin.Database.V1\312\002&Google\\Cl"
- + "oud\\Spanner\\Admin\\Database\\V1\352\002+Google::"
- + "Cloud::Spanner::Admin::Database::V1b\006pro"
- + "to3"
+ + "om/Instance\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\022<\n\rs"
+ + "ource_backup\030\003 \001(\tB%\340A\002\372A\037\n\035spanner.goog"
+ + "leapis.com/Backup\0224\n\013expire_time\030\004 \001(\0132\032"
+ + ".google.protobuf.TimestampB\003\340A\002\022\\\n\021encry"
+ + "ption_config\030\005 \001(\0132<.google.spanner.admi"
+ + "n.database.v1.CopyBackupEncryptionConfig"
+ + "B\003\340A\001\"\371\001\n\022CopyBackupMetadata\0220\n\004name\030\001 \001"
+ + "(\tB\"\372A\037\n\035spanner.googleapis.com/Backup\0229"
+ + "\n\rsource_backup\030\002 \001(\tB\"\372A\037\n\035spanner.goog"
+ + "leapis.com/Backup\022E\n\010progress\030\003 \001(\01323.go"
+ + "ogle.spanner.admin.database.v1.Operation"
+ + "Progress\022/\n\013cancel_time\030\004 \001(\0132\032.google.p"
+ + "rotobuf.Timestamp\"\212\001\n\023UpdateBackupReques"
+ + "t\022=\n\006backup\030\001 \001(\0132(.google.spanner.admin"
+ + ".database.v1.BackupB\003\340A\002\0224\n\013update_mask\030"
+ + "\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"G"
+ + "\n\020GetBackupRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037"
+ + "\n\035spanner.googleapis.com/Backup\"J\n\023Delet"
+ + "eBackupRequest\0223\n\004name\030\001 \001(\tB%\340A\002\372A\037\n\035sp"
+ + "anner.googleapis.com/Backup\"\204\001\n\022ListBack"
+ + "upsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037span"
+ + "ner.googleapis.com/Instance\022\016\n\006filter\030\002 "
+ + "\001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001"
+ + "(\t\"i\n\023ListBackupsResponse\0229\n\007backups\030\001 \003"
+ + "(\0132(.google.spanner.admin.database.v1.Ba"
+ + "ckup\022\027\n\017next_page_token\030\002 \001(\t\"\215\001\n\033ListBa"
+ + "ckupOperationsRequest\0227\n\006parent\030\001 \001(\tB\'\340"
+ + "A\002\372A!\n\037spanner.googleapis.com/Instance\022\016"
+ + "\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npag"
+ + "e_token\030\004 \001(\t\"j\n\034ListBackupOperationsRes"
+ + "ponse\0221\n\noperations\030\001 \003(\0132\035.google.longr"
+ + "unning.Operation\022\027\n\017next_page_token\030\002 \001("
+ + "\t\"\342\001\n\nBackupInfo\0222\n\006backup\030\001 \001(\tB\"\372A\037\n\035s"
+ + "panner.googleapis.com/Backup\0220\n\014version_"
+ + "time\030\004 \001(\0132\032.google.protobuf.Timestamp\022/"
+ + "\n\013create_time\030\002 \001(\0132\032.google.protobuf.Ti"
+ + "mestamp\022=\n\017source_database\030\003 \001(\tB$\372A!\n\037s"
+ + "panner.googleapis.com/Database\"\237\003\n\034Creat"
+ + "eBackupEncryptionConfig\022k\n\017encryption_ty"
+ + "pe\030\001 \001(\0162M.google.spanner.admin.database"
+ + ".v1.CreateBackupEncryptionConfig.Encrypt"
+ + "ionTypeB\003\340A\002\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372"
+ + "A#\n!cloudkms.googleapis.com/CryptoKey\022@\n"
+ + "\rkms_key_names\030\003 \003(\tB)\340A\001\372A#\n!cloudkms.g"
+ + "oogleapis.com/CryptoKey\"\216\001\n\016EncryptionTy"
+ + "pe\022\037\n\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022\033\n\027U"
+ + "SE_DATABASE_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAU"
+ + "LT_ENCRYPTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCR"
+ + "YPTION\020\003\"\253\003\n\032CopyBackupEncryptionConfig\022"
+ + "i\n\017encryption_type\030\001 \001(\0162K.google.spanne"
+ + "r.admin.database.v1.CopyBackupEncryption"
+ + "Config.EncryptionTypeB\003\340A\002\022?\n\014kms_key_na"
+ + "me\030\002 \001(\tB)\340A\001\372A#\n!cloudkms.googleapis.co"
+ + "m/CryptoKey\022@\n\rkms_key_names\030\003 \003(\tB)\340A\001\372"
+ + "A#\n!cloudkms.googleapis.com/CryptoKey\"\236\001"
+ + "\n\016EncryptionType\022\037\n\033ENCRYPTION_TYPE_UNSP"
+ + "ECIFIED\020\000\022+\n\'USE_CONFIG_DEFAULT_OR_BACKU"
+ + "P_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT_ENCRYPT"
+ + "ION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\003B\375"
+ + "\001\n$com.google.spanner.admin.database.v1B"
+ + "\013BackupProtoP\001ZFcloud.google.com/go/span"
+ + "ner/admin/database/apiv1/databasepb;data"
+ + "basepb\252\002&Google.Cloud.Spanner.Admin.Data"
+ + "base.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Dat"
+ + "abase\\V1\352\002+Google::Cloud::Spanner::Admin"
+ + "::Database::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -230,6 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"State",
"ReferencingDatabases",
"EncryptionInfo",
+ "EncryptionInformation",
"DatabaseDialect",
"ReferencingBackups",
"MaxExpireTime",
@@ -336,7 +342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor,
new java.lang.String[] {
- "EncryptionType", "KmsKeyName",
+ "EncryptionType", "KmsKeyName", "KmsKeyNames",
});
internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor =
getDescriptor().getMessageTypes().get(14);
@@ -344,7 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor,
new java.lang.String[] {
- "EncryptionType", "KmsKeyName",
+ "EncryptionType", "KmsKeyName", "KmsKeyNames",
});
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java
index e2b2ad93d01..cc0f941cb33 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CommonProto.java
@@ -57,33 +57,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\213\001\n\021OperationProgress\022\030\n\020progress_percen"
+ "t\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.google.pro"
+ "tobuf.Timestamp\022,\n\010end_time\030\003 \001(\0132\032.goog"
- + "le.protobuf.Timestamp\"P\n\020EncryptionConfi"
- + "g\022<\n\014kms_key_name\030\002 \001(\tB&\372A#\n!cloudkms.g"
- + "oogleapis.com/CryptoKey\"\302\002\n\016EncryptionIn"
- + "fo\022S\n\017encryption_type\030\003 \001(\01625.google.spa"
- + "nner.admin.database.v1.EncryptionInfo.Ty"
- + "peB\003\340A\003\0222\n\021encryption_status\030\004 \001(\0132\022.goo"
- + "gle.rpc.StatusB\003\340A\003\022I\n\017kms_key_version\030\002"
- + " \001(\tB0\340A\003\372A*\n(cloudkms.googleapis.com/Cr"
- + "yptoKeyVersion\"\\\n\004Type\022\024\n\020TYPE_UNSPECIFI"
- + "ED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033C"
- + "USTOMER_MANAGED_ENCRYPTION\020\002*\\\n\017Database"
- + "Dialect\022 \n\034DATABASE_DIALECT_UNSPECIFIED\020"
- + "\000\022\027\n\023GOOGLE_STANDARD_SQL\020\001\022\016\n\nPOSTGRESQL"
- + "\020\002B\242\004\n$com.google.spanner.admin.database"
- + ".v1B\013CommonProtoP\001ZFcloud.google.com/go/"
- + "spanner/admin/database/apiv1/databasepb;"
- + "databasepb\252\002&Google.Cloud.Spanner.Admin."
- + "Database.V1\312\002&Google\\Cloud\\Spanner\\Admin"
- + "\\Database\\V1\352\002+Google::Cloud::Spanner::A"
- + "dmin::Database::V1\352Ax\n!cloudkms.googleap"
- + "is.com/CryptoKey\022Sprojects/{project}/loc"
- + "ations/{location}/keyRings/{key_ring}/cr"
- + "yptoKeys/{crypto_key}\352A\246\001\n(cloudkms.goog"
- + "leapis.com/CryptoKeyVersion\022zprojects/{p"
- + "roject}/locations/{location}/keyRings/{k"
- + "ey_ring}/cryptoKeys/{crypto_key}/cryptoK"
- + "eyVersions/{crypto_key_version}b\006proto3"
+ + "le.protobuf.Timestamp\"\217\001\n\020EncryptionConf"
+ + "ig\022<\n\014kms_key_name\030\002 \001(\tB&\372A#\n!cloudkms."
+ + "googleapis.com/CryptoKey\022=\n\rkms_key_name"
+ + "s\030\003 \003(\tB&\372A#\n!cloudkms.googleapis.com/Cr"
+ + "yptoKey\"\302\002\n\016EncryptionInfo\022S\n\017encryption"
+ + "_type\030\003 \001(\01625.google.spanner.admin.datab"
+ + "ase.v1.EncryptionInfo.TypeB\003\340A\003\0222\n\021encry"
+ + "ption_status\030\004 \001(\0132\022.google.rpc.StatusB\003"
+ + "\340A\003\022I\n\017kms_key_version\030\002 \001(\tB0\340A\003\372A*\n(cl"
+ + "oudkms.googleapis.com/CryptoKeyVersion\"\\"
+ + "\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\035\n\031GOOGLE_D"
+ + "EFAULT_ENCRYPTION\020\001\022\037\n\033CUSTOMER_MANAGED_"
+ + "ENCRYPTION\020\002*\\\n\017DatabaseDialect\022 \n\034DATAB"
+ + "ASE_DIALECT_UNSPECIFIED\020\000\022\027\n\023GOOGLE_STAN"
+ + "DARD_SQL\020\001\022\016\n\nPOSTGRESQL\020\002B\242\004\n$com.googl"
+ + "e.spanner.admin.database.v1B\013CommonProto"
+ + "P\001ZFcloud.google.com/go/spanner/admin/da"
+ + "tabase/apiv1/databasepb;databasepb\252\002&Goo"
+ + "gle.Cloud.Spanner.Admin.Database.V1\312\002&Go"
+ + "ogle\\Cloud\\Spanner\\Admin\\Database\\V1\352\002+G"
+ + "oogle::Cloud::Spanner::Admin::Database::"
+ + "V1\352Ax\n!cloudkms.googleapis.com/CryptoKey"
+ + "\022Sprojects/{project}/locations/{location"
+ + "}/keyRings/{key_ring}/cryptoKeys/{crypto"
+ + "_key}\352A\246\001\n(cloudkms.googleapis.com/Crypt"
+ + "oKeyVersion\022zprojects/{project}/location"
+ + "s/{location}/keyRings/{key_ring}/cryptoK"
+ + "eys/{crypto_key}/cryptoKeyVersions/{cryp"
+ + "to_key_version}b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -108,7 +110,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor,
new java.lang.String[] {
- "KmsKeyName",
+ "KmsKeyName", "KmsKeyNames",
});
internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor =
getDescriptor().getMessageTypes().get(2);
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java
index 7f2f0db1d12..4ec5fec9045 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfig.java
@@ -41,6 +41,7 @@ private CopyBackupEncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builde
private CopyBackupEncryptionConfig() {
encryptionType_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -89,10 +90,13 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * This is the default option for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * when [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig] is not specified.
- * For example, if the source backup is using `Customer_Managed_Encryption`,
- * the backup will be using the same Cloud KMS key as the source backup.
+ * This is the default option for
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * when
+ * [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig]
+ * is not specified. For example, if the source backup is using
+ * `Customer_Managed_Encryption`, the backup will be using the same Cloud
+ * KMS key as the source backup.
*
*
* USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1;
@@ -112,8 +116,8 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Use customer managed encryption. If specified, `kms_key_name`
- * must contain a valid Cloud KMS key.
+ * Use customer managed encryption. If specified, either `kms_key_name` or
+ * `kms_key_names` must contain valid Cloud KMS key(s).
*
*
* CUSTOMER_MANAGED_ENCRYPTION = 3;
@@ -136,10 +140,13 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * This is the default option for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * when [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig] is not specified.
- * For example, if the source backup is using `Customer_Managed_Encryption`,
- * the backup will be using the same Cloud KMS key as the source backup.
+ * This is the default option for
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * when
+ * [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig]
+ * is not specified. For example, if the source backup is using
+ * `Customer_Managed_Encryption`, the backup will be using the same Cloud
+ * KMS key as the source backup.
*
*
* USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1;
@@ -159,8 +166,8 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Use customer managed encryption. If specified, `kms_key_name`
- * must contain a valid Cloud KMS key.
+ * Use customer managed encryption. If specified, either `kms_key_name` or
+ * `kms_key_names` must contain valid Cloud KMS key(s).
*
*
* CUSTOMER_MANAGED_ENCRYPTION = 3;
@@ -308,8 +315,8 @@ public int getEncryptionTypeValue() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -337,8 +344,8 @@ public java.lang.String getKmsKeyName() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -361,6 +368,138 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
}
}
+ public static final int KMS_KEY_NAMES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -384,6 +523,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_);
}
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyNames_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -402,6 +544,14 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(kmsKeyNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKmsKeyNamesList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -420,6 +570,7 @@ public boolean equals(final java.lang.Object obj) {
if (encryptionType_ != other.encryptionType_) return false;
if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
+ if (!getKmsKeyNamesList().equals(other.getKmsKeyNamesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -435,6 +586,10 @@ public int hashCode() {
hash = (53 * hash) + encryptionType_;
hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getKmsKeyName().hashCode();
+ if (getKmsKeyNamesCount() > 0) {
+ hash = (37 * hash) + KMS_KEY_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyNamesList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -577,6 +732,7 @@ public Builder clear() {
bitField0_ = 0;
encryptionType_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -621,6 +777,10 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000002) != 0)) {
result.kmsKeyName_ = kmsKeyName_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ kmsKeyNames_.makeImmutable();
+ result.kmsKeyNames_ = kmsKeyNames_;
+ }
}
@java.lang.Override
@@ -679,6 +839,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (!other.kmsKeyNames_.isEmpty()) {
+ if (kmsKeyNames_.isEmpty()) {
+ kmsKeyNames_ = other.kmsKeyNames_;
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.addAll(other.kmsKeyNames_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -717,6 +887,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(s);
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -849,8 +1026,8 @@ public Builder clearEncryptionType() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -877,8 +1054,8 @@ public java.lang.String getKmsKeyName() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -905,8 +1082,8 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -932,8 +1109,8 @@ public Builder setKmsKeyName(java.lang.String value) {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -955,8 +1132,8 @@ public Builder clearKmsKeyName() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -978,6 +1155,333 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureKmsKeyNamesIsMutable() {
+ if (!kmsKeyNames_.isModifiable()) {
+ kmsKeyNames_ = new com.google.protobuf.LazyStringArrayList(kmsKeyNames_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ kmsKeyNames_.makeImmutable();
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The kmsKeyNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param values The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllKmsKeyNames(java.lang.Iterable
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyNames() {
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes of the kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java
index eb15f76cee4..cffe1ccf7c8 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupEncryptionConfigOrBuilder.java
@@ -60,8 +60,8 @@ public interface CopyBackupEncryptionConfigOrBuilder
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -78,8 +78,8 @@ public interface CopyBackupEncryptionConfigOrBuilder
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -90,4 +90,123 @@ public interface CopyBackupEncryptionConfigOrBuilder
* @return The bytes for kmsKeyName.
*/
com.google.protobuf.ByteString getKmsKeyNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ java.util.List
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ int getKmsKeyNamesCount();
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ java.lang.String getKmsKeyNames(int index);
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ * Kms keys specified can be in any order.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ com.google.protobuf.ByteString getKmsKeyNamesBytes(int index);
}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java
index 11cc6e03107..2e2077fbe29 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadata.java
@@ -23,7 +23,7 @@
*
*
*
- * Metadata type for the google.longrunning.Operation returned by
+ * Metadata type for the operation returned by
* [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
*
*
@@ -183,7 +183,8 @@ public com.google.protobuf.ByteString getSourceBackupBytes() {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -199,7 +200,8 @@ public boolean hasProgress() {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -217,7 +219,8 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -509,7 +512,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Metadata type for the google.longrunning.Operation returned by
+ * Metadata type for the operation returned by
* [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
*
*
@@ -995,7 +998,8 @@ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1010,7 +1014,8 @@ public boolean hasProgress() {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1031,7 +1036,8 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1054,7 +1060,8 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1075,7 +1082,8 @@ public Builder setProgress(
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1104,7 +1112,8 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1124,7 +1133,8 @@ public Builder clearProgress() {
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1139,7 +1149,8 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1158,7 +1169,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java
index 80229fdd762..e1d79c151bd 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupMetadataOrBuilder.java
@@ -87,7 +87,8 @@ public interface CopyBackupMetadataOrBuilder
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -100,7 +101,8 @@ public interface CopyBackupMetadataOrBuilder
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -113,7 +115,8 @@ public interface CopyBackupMetadataOrBuilder
*
*
* The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java
index 7b95919bd1e..db694215dab 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
+ * The request for
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.CopyBackupRequest}
@@ -74,8 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -100,8 +101,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -310,11 +311,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -331,11 +332,11 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -354,11 +355,11 @@ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryp
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -583,7 +584,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
+ * The request for
+ * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.CopyBackupRequest}
@@ -847,8 +849,8 @@ public Builder mergeFrom(
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -872,8 +874,8 @@ public java.lang.String getParent() {
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -897,8 +899,8 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -921,8 +923,8 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -941,8 +943,8 @@ public Builder clearParent() {
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -1460,11 +1462,11 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1480,11 +1482,11 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1506,11 +1508,11 @@ public com.google.spanner.admin.database.v1.CopyBackupEncryptionConfig getEncryp
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1535,11 +1537,11 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1561,11 +1563,11 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1597,11 +1599,11 @@ public Builder mergeEncryptionConfig(
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1622,11 +1624,11 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1643,11 +1645,11 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1668,11 +1670,11 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java
index 5481d8c278e..9073924d9ba 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CopyBackupRequestOrBuilder.java
@@ -28,8 +28,8 @@ public interface CopyBackupRequestOrBuilder
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -43,8 +43,8 @@ public interface CopyBackupRequestOrBuilder
*
*
*
- * Required. The name of the destination instance that will contain the backup copy.
- * Values are of the form: `projects/<project>/instances/<instance>`.
+ * Required. The name of the destination instance that will contain the backup
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
*
*
*
@@ -177,11 +177,11 @@ public interface CopyBackupRequestOrBuilder
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -195,11 +195,11 @@ public interface CopyBackupRequestOrBuilder
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -213,11 +213,11 @@ public interface CopyBackupRequestOrBuilder
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the source backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java
index 9e09936de85..a3961c9dea8 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfig.java
@@ -41,6 +41,7 @@ private CreateBackupEncryptionConfig(com.google.protobuf.GeneratedMessageV3.Buil
private CreateBackupEncryptionConfig() {
encryptionType_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -91,9 +92,10 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
* Use the same encryption configuration as the database. This is the
* default option when
- * [encryption_config][google.spanner.admin.database.v1.CreateBackupEncryptionConfig] is empty.
- * For example, if the database is using `Customer_Managed_Encryption`, the
- * backup will be using the same Cloud KMS key as the database.
+ * [encryption_config][google.spanner.admin.database.v1.CreateBackupEncryptionConfig]
+ * is empty. For example, if the database is using
+ * `Customer_Managed_Encryption`, the backup will be using the same Cloud
+ * KMS key as the database.
*
*
* USE_DATABASE_ENCRYPTION = 1;
@@ -139,9 +141,10 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
* Use the same encryption configuration as the database. This is the
* default option when
- * [encryption_config][google.spanner.admin.database.v1.CreateBackupEncryptionConfig] is empty.
- * For example, if the database is using `Customer_Managed_Encryption`, the
- * backup will be using the same Cloud KMS key as the database.
+ * [encryption_config][google.spanner.admin.database.v1.CreateBackupEncryptionConfig]
+ * is empty. For example, if the database is using
+ * `Customer_Managed_Encryption`, the backup will be using the same Cloud
+ * KMS key as the database.
*
*
* USE_DATABASE_ENCRYPTION = 1;
@@ -310,8 +313,8 @@ public int getEncryptionTypeValue() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -339,8 +342,8 @@ public java.lang.String getKmsKeyName() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -363,6 +366,134 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
}
}
+ public static final int KMS_KEY_NAMES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -386,6 +517,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_);
}
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyNames_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -404,6 +538,14 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(kmsKeyNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKmsKeyNamesList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -422,6 +564,7 @@ public boolean equals(final java.lang.Object obj) {
if (encryptionType_ != other.encryptionType_) return false;
if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
+ if (!getKmsKeyNamesList().equals(other.getKmsKeyNamesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -437,6 +580,10 @@ public int hashCode() {
hash = (53 * hash) + encryptionType_;
hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getKmsKeyName().hashCode();
+ if (getKmsKeyNamesCount() > 0) {
+ hash = (37 * hash) + KMS_KEY_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyNamesList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -581,6 +728,7 @@ public Builder clear() {
bitField0_ = 0;
encryptionType_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -625,6 +773,10 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000002) != 0)) {
result.kmsKeyName_ = kmsKeyName_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ kmsKeyNames_.makeImmutable();
+ result.kmsKeyNames_ = kmsKeyNames_;
+ }
}
@java.lang.Override
@@ -683,6 +835,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (!other.kmsKeyNames_.isEmpty()) {
+ if (kmsKeyNames_.isEmpty()) {
+ kmsKeyNames_ = other.kmsKeyNames_;
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.addAll(other.kmsKeyNames_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -721,6 +883,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(s);
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -853,8 +1022,8 @@ public Builder clearEncryptionType() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -881,8 +1050,8 @@ public java.lang.String getKmsKeyName() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -909,8 +1078,8 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -936,8 +1105,8 @@ public Builder setKmsKeyName(java.lang.String value) {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -959,8 +1128,8 @@ public Builder clearKmsKeyName() {
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -982,6 +1151,324 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureKmsKeyNamesIsMutable() {
+ if (!kmsKeyNames_.isModifiable()) {
+ kmsKeyNames_ = new com.google.protobuf.LazyStringArrayList(kmsKeyNames_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ kmsKeyNames_.makeImmutable();
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The kmsKeyNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param values The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllKmsKeyNames(java.lang.Iterable
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyNames() {
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes of the kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java
index 7c639eb2a94..078b8dc38a0 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupEncryptionConfigOrBuilder.java
@@ -60,8 +60,8 @@ public interface CreateBackupEncryptionConfigOrBuilder
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -78,8 +78,8 @@ public interface CreateBackupEncryptionConfigOrBuilder
*
* Optional. The Cloud KMS key that will be used to protect the backup.
* This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -90,4 +90,119 @@ public interface CreateBackupEncryptionConfigOrBuilder
* @return The bytes for kmsKeyName.
*/
com.google.protobuf.ByteString getKmsKeyNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ java.util.List
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ int getKmsKeyNamesCount();
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ java.lang.String getKmsKeyNames(int index);
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * protect the backup. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the backup's instance configuration. Some examples:
+ * * For single region instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For an instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ com.google.protobuf.ByteString getKmsKeyNamesBytes(int index);
}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java
index a3bd040f9b3..bf4d05bab14 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadata.java
@@ -175,7 +175,8 @@ public com.google.protobuf.ByteString getDatabaseBytes() {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -191,7 +192,8 @@ public boolean hasProgress() {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -209,7 +211,8 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -967,7 +970,8 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -982,7 +986,8 @@ public boolean hasProgress() {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1003,7 +1008,8 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress() {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1026,7 +1032,8 @@ public Builder setProgress(com.google.spanner.admin.database.v1.OperationProgres
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1047,7 +1054,8 @@ public Builder setProgress(
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1076,7 +1084,8 @@ public Builder mergeProgress(com.google.spanner.admin.database.v1.OperationProgr
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1096,7 +1105,8 @@ public Builder clearProgress() {
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1111,7 +1121,8 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -1130,7 +1141,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java
index 89f2d482ede..cfa93684a12 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupMetadataOrBuilder.java
@@ -79,7 +79,8 @@ public interface CreateBackupMetadataOrBuilder
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -92,7 +93,8 @@ public interface CreateBackupMetadataOrBuilder
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
@@ -105,7 +107,8 @@ public interface CreateBackupMetadataOrBuilder
*
*
* The progress of the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ * operation.
*
*
* .google.spanner.admin.database.v1.OperationProgress progress = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java
index ab34f8aa33a..9be6672c594 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
+ * The request for
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.CreateBackupRequest}
@@ -247,11 +248,11 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder()
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -268,11 +269,11 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -291,11 +292,11 @@ public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncr
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -511,7 +512,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
+ * The request for
+ * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.CreateBackupRequest}
@@ -1225,11 +1227,11 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder()
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1245,11 +1247,11 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1271,11 +1273,11 @@ public com.google.spanner.admin.database.v1.CreateBackupEncryptionConfig getEncr
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1300,11 +1302,11 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1326,11 +1328,11 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1362,11 +1364,11 @@ public Builder mergeEncryptionConfig(
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1387,11 +1389,11 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1408,11 +1410,11 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -1433,11 +1435,11 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java
index 63535e00207..4bc94614ab5 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateBackupRequestOrBuilder.java
@@ -137,11 +137,11 @@ public interface CreateBackupRequestOrBuilder
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -155,11 +155,11 @@ public interface CreateBackupRequestOrBuilder
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
@@ -173,11 +173,11 @@ public interface CreateBackupRequestOrBuilder
*
*
*
- * Optional. The encryption configuration used to encrypt the backup. If this field is
- * not specified, the backup will use the same
- * encryption configuration as the database by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type] =
- * `USE_DATABASE_ENCRYPTION`.
+ * Optional. The encryption configuration used to encrypt the backup. If this
+ * field is not specified, the backup will use the same encryption
+ * configuration as the database by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type]
+ * = `USE_DATABASE_ENCRYPTION`.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java
index 57b155ae65a..c6574a9c8c7 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].
+ * The request for
+ * [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.CreateDatabaseRequest}
@@ -266,8 +267,8 @@ public com.google.protobuf.ByteString getExtraStatementsBytes(int index) {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -285,8 +286,8 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -306,8 +307,8 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -621,7 +622,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].
+ * The request for
+ * [CreateDatabase][google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.CreateDatabaseRequest}
@@ -1352,8 +1354,8 @@ public Builder addExtraStatementsBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1370,8 +1372,8 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1394,8 +1396,8 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1421,8 +1423,8 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1445,8 +1447,8 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1478,8 +1480,8 @@ public Builder mergeEncryptionConfig(
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1501,8 +1503,8 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1520,8 +1522,8 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -1543,8 +1545,8 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java
index db215630c65..8e56f402e6f 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseRequestOrBuilder.java
@@ -155,8 +155,8 @@ public interface CreateDatabaseRequestOrBuilder
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -171,8 +171,8 @@ public interface CreateDatabaseRequestOrBuilder
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
@@ -187,8 +187,8 @@ public interface CreateDatabaseRequestOrBuilder
*
*
*
- * Optional. The encryption configuration for the database. If this field is not
- * specified, Cloud Spanner will encrypt/decrypt all data at rest using
+ * Optional. The encryption configuration for the database. If this field is
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
* Google default encryption.
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java
index 0fe161abbbe..1e98bfdd999 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/Database.java
@@ -548,7 +548,8 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -572,7 +573,8 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -596,7 +598,8 @@ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -619,7 +622,8 @@ public int getEncryptionInfoCount() {
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -642,7 +646,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -672,8 +677,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
*
*
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -699,8 +704,8 @@ public java.lang.String getVersionRetentionPeriod() {
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -897,7 +902,9 @@ public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect()
*
*
* Whether drop protection is enabled for this database. Defaults to false,
- * if not set.
+ * if not set. For more details, please see how to [prevent accidental
+ * database
+ * deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
*
*
* bool enable_drop_protection = 11;
@@ -2538,7 +2545,8 @@ private void ensureEncryptionInfoIsMutable() {
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2565,7 +2573,8 @@ private void ensureEncryptionInfoIsMutable() {
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2591,7 +2600,8 @@ public int getEncryptionInfoCount() {
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2617,7 +2627,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo getEncryptionInfo(int
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2650,7 +2661,8 @@ public Builder setEncryptionInfo(
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2680,7 +2692,8 @@ public Builder setEncryptionInfo(
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2712,7 +2725,8 @@ public Builder addEncryptionInfo(com.google.spanner.admin.database.v1.Encryption
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2745,7 +2759,8 @@ public Builder addEncryptionInfo(
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2775,7 +2790,8 @@ public Builder addEncryptionInfo(
*
*
@@ -230,8 +238,9 @@ public interface ListBackupOperationsRequestOrBuilder
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2805,7 +2821,8 @@ public Builder addEncryptionInfo(
*
*
@@ -150,7 +154,9 @@ public interface ListBackupOperationsRequestOrBuilder
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -168,14 +174,15 @@ public interface ListBackupOperationsRequestOrBuilder
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -183,9 +190,9 @@ public interface ListBackupOperationsRequestOrBuilder
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -195,12 +202,13 @@ public interface ListBackupOperationsRequestOrBuilder
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2835,7 +2852,8 @@ public Builder addAllEncryptionInfo(
*
*
@@ -1413,8 +1443,9 @@ public Builder clearPageSize() {
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2864,7 +2882,8 @@ public Builder clearEncryptionInfo() {
*
*
@@ -1280,7 +1306,9 @@ public Builder clearFilter() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -1298,14 +1326,15 @@ public Builder clearFilter() {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -1313,9 +1342,9 @@ public Builder clearFilter() {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -1325,12 +1354,13 @@ public Builder clearFilter() {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2893,7 +2912,8 @@ public Builder removeEncryptionInfo(int index) {
*
*
@@ -1198,7 +1220,9 @@ public Builder setFilter(java.lang.String value) {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -1216,14 +1240,15 @@ public Builder setFilter(java.lang.String value) {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -1231,9 +1256,9 @@ public Builder setFilter(java.lang.String value) {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -1243,12 +1268,13 @@ public Builder setFilter(java.lang.String value) {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2916,7 +2936,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryption
*
*
@@ -1112,7 +1130,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -1130,14 +1150,15 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -1145,9 +1166,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -1157,12 +1178,13 @@ public com.google.protobuf.ByteString getFilterBytes() {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2943,7 +2964,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2970,7 +2992,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptio
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -2993,7 +3016,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -3018,7 +3042,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -3064,8 +3089,8 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder addEncryption
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
*
*
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3091,8 +3116,8 @@ public java.lang.String getVersionRetentionPeriod() {
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3118,8 +3143,8 @@ public com.google.protobuf.ByteString getVersionRetentionPeriodBytes() {
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3144,8 +3169,8 @@ public Builder setVersionRetentionPeriod(java.lang.String value) {
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3166,8 +3191,8 @@ public Builder clearVersionRetentionPeriod() {
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3665,7 +3690,9 @@ public Builder clearDatabaseDialect() {
*
*
* Whether drop protection is enabled for this database. Defaults to false,
- * if not set.
+ * if not set. For more details, please see how to [prevent accidental
+ * database
+ * deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
*
*
* bool enable_drop_protection = 11;
@@ -3681,7 +3708,9 @@ public boolean getEnableDropProtection() {
*
*
* Whether drop protection is enabled for this database. Defaults to false,
- * if not set.
+ * if not set. For more details, please see how to [prevent accidental
+ * database
+ * deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
*
*
* bool enable_drop_protection = 11;
@@ -3701,7 +3730,9 @@ public Builder setEnableDropProtection(boolean value) {
*
*
* Whether drop protection is enabled for this database. Defaults to false,
- * if not set.
+ * if not set. For more details, please see how to [prevent accidental
+ * database
+ * deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
*
*
* bool enable_drop_protection = 11;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java
index 3ef5ebce606..f07637edd71 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseDialect.java
@@ -44,7 +44,7 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Google standard SQL.
+ * GoogleSQL supported SQL.
*
*
* GOOGLE_STANDARD_SQL = 1;
@@ -78,7 +78,7 @@ public enum DatabaseDialect implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Google standard SQL.
+ * GoogleSQL supported SQL.
*
*
* GOOGLE_STANDARD_SQL = 1;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java
index 18345d9ad61..c3cc275fb28 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseOrBuilder.java
@@ -224,7 +224,8 @@ public interface DatabaseOrBuilder
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -244,7 +245,8 @@ public interface DatabaseOrBuilder
*
*
@@ -1025,7 +1039,9 @@ public java.lang.String getFilter() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -1043,14 +1059,15 @@ public java.lang.String getFilter() {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -1058,9 +1075,9 @@ public java.lang.String getFilter() {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -1070,12 +1087,13 @@ public java.lang.String getFilter() {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -264,7 +266,8 @@ public interface DatabaseOrBuilder
*
*
@@ -333,8 +341,9 @@ public int getPageSize() {
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -284,7 +287,8 @@ public interface DatabaseOrBuilder
*
*
@@ -233,7 +237,9 @@ public java.lang.String getFilter() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -251,14 +257,15 @@ public java.lang.String getFilter() {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -266,9 +273,9 @@ public java.lang.String getFilter() {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -278,12 +285,13 @@ public java.lang.String getFilter() {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -305,7 +309,8 @@ public interface DatabaseOrBuilder
*
*
*
* Output only. For databases that are using customer managed encryption, this
* field contains the encryption information for the database, such as
- * encryption state and the Cloud KMS key versions that are in use.
+ * all Cloud KMS key versions that are in use. The `encryption_status' field
+ * inside of each `EncryptionInfo` is not populated.
*
* For databases that are using Google default or other types of encryption,
* this field is empty.
@@ -328,8 +333,8 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
*
*
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -344,8 +349,8 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr
* Output only. The period in which Cloud Spanner retains all versions of data
* for the database. This is the same as the value of version_retention_period
* database option set using
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
- * if not set.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl].
+ * Defaults to 1 hour, if not set.
* string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -476,7 +481,9 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr
*
*
* Whether drop protection is enabled for this database. Defaults to false,
- * if not set.
+ * if not set. For more details, please see how to [prevent accidental
+ * database
+ * deletion](https://cloud.google.com/spanner/docs/prevent-database-deletion).
*
*
* bool enable_drop_protection = 11;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java
index ccfc053b9fe..8d2bf7c8e71 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRole.java
@@ -72,10 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -99,10 +97,8 @@ public java.lang.String getName() {
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -470,10 +466,8 @@ public Builder mergeFrom(
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -496,10 +490,8 @@ public java.lang.String getName() {
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -522,10 +514,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -547,10 +537,8 @@ public Builder setName(java.lang.String value) {
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -568,10 +556,8 @@ public Builder clearName() {
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java
index aa452bbf47a..caddaf4aae7 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseRoleOrBuilder.java
@@ -29,10 +29,8 @@ public interface DatabaseRoleOrBuilder
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -45,10 +43,8 @@ public interface DatabaseRoleOrBuilder
*
*
* Required. The name of the database role. Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/
- * {role}`, where `<role>` is as specified in the `CREATE ROLE`
- * DDL statement. This name can be passed to Get/Set IAMPolicy methods to
- * identify the database role.
+ * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles/<role>`
+ * where `<role>` is as specified in the `CREATE ROLE` DDL statement.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java
index 6b3f02c8c7a..eb9fab2c44e 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DeleteBackupRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup].
+ * The request for
+ * [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.DeleteBackupRequest}
@@ -286,7 +287,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup].
+ * The request for
+ * [DeleteBackup][google.spanner.admin.database.v1.DatabaseAdmin.DeleteBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.DeleteBackupRequest}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java
index 9d7823c8ef0..5b6e9a3ef6d 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DropDatabaseRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].
+ * The request for
+ * [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.DropDatabaseRequest}
@@ -282,7 +283,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].
+ * The request for
+ * [DropDatabase][google.spanner.admin.database.v1.DatabaseAdmin.DropDatabase].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.DropDatabaseRequest}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java
index 4b7a16a4463..789c2278024 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfig.java
@@ -40,6 +40,7 @@ private EncryptionConfig(com.google.protobuf.GeneratedMessageV3.Builder> build
private EncryptionConfig() {
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -118,6 +119,126 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
}
}
+ public static final int KMS_KEY_NAMES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -135,6 +256,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_);
}
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyNames_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -147,6 +271,14 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(kmsKeyNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKmsKeyNamesList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -164,6 +296,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.spanner.admin.database.v1.EncryptionConfig) obj;
if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
+ if (!getKmsKeyNamesList().equals(other.getKmsKeyNamesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -177,6 +310,10 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getKmsKeyName().hashCode();
+ if (getKmsKeyNamesCount() > 0) {
+ hash = (37 * hash) + KMS_KEY_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyNamesList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -318,6 +455,7 @@ public Builder clear() {
super.clear();
bitField0_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -357,6 +495,10 @@ private void buildPartial0(com.google.spanner.admin.database.v1.EncryptionConfig
if (((from_bitField0_ & 0x00000001) != 0)) {
result.kmsKeyName_ = kmsKeyName_;
}
+ if (((from_bitField0_ & 0x00000002) != 0)) {
+ kmsKeyNames_.makeImmutable();
+ result.kmsKeyNames_ = kmsKeyNames_;
+ }
}
@java.lang.Override
@@ -410,6 +552,16 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.EncryptionConfig o
bitField0_ |= 0x00000001;
onChanged();
}
+ if (!other.kmsKeyNames_.isEmpty()) {
+ if (kmsKeyNames_.isEmpty()) {
+ kmsKeyNames_ = other.kmsKeyNames_;
+ bitField0_ |= 0x00000002;
+ } else {
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.addAll(other.kmsKeyNames_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -442,6 +594,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000001;
break;
} // case 18
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(s);
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -577,6 +736,306 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureKmsKeyNamesIsMutable() {
+ if (!kmsKeyNames_.isModifiable()) {
+ kmsKeyNames_ = new com.google.protobuf.LazyStringArrayList(kmsKeyNames_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ kmsKeyNames_.makeImmutable();
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index to set the value at.
+ * @param value The kmsKeyNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param values The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllKmsKeyNames(java.lang.Iterable
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyNames() {
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param value The bytes of the kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java
index 7945052b3d4..f6a4910fbca 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionConfigOrBuilder.java
@@ -52,4 +52,111 @@ public interface EncryptionConfigOrBuilder
* @return The bytes for kmsKeyName.
*/
com.google.protobuf.ByteString getKmsKeyNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ java.util.List
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @return The count of kmsKeyNames.
+ */
+ int getKmsKeyNamesCount();
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ java.lang.String getKmsKeyNames(int index);
+ /**
+ *
+ *
+ *
+ * Specifies the KMS configuration for the one or more keys used to encrypt
+ * the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.resource_reference) = { ... }
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ com.google.protobuf.ByteString getKmsKeyNamesBytes(int index);
}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java
index 7fcbe830322..07ffe853200 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfo.java
@@ -279,9 +279,9 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Type getEncryptionTyp
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -297,9 +297,9 @@ public boolean hasEncryptionStatus() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -317,9 +317,9 @@ public com.google.rpc.Status getEncryptionStatus() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -340,8 +340,8 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -366,8 +366,8 @@ public java.lang.String getKmsKeyVersion() {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -911,9 +911,9 @@ public Builder clearEncryptionType() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -928,9 +928,9 @@ public boolean hasEncryptionStatus() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -951,9 +951,9 @@ public com.google.rpc.Status getEncryptionStatus() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -976,9 +976,9 @@ public Builder setEncryptionStatus(com.google.rpc.Status value) {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -998,9 +998,9 @@ public Builder setEncryptionStatus(com.google.rpc.Status.Builder builderForValue
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1028,9 +1028,9 @@ public Builder mergeEncryptionStatus(com.google.rpc.Status value) {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1050,9 +1050,9 @@ public Builder clearEncryptionStatus() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1067,9 +1067,9 @@ public com.google.rpc.Status.Builder getEncryptionStatusBuilder() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1088,9 +1088,9 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() {
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1116,8 +1116,8 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -1141,8 +1141,8 @@ public java.lang.String getKmsKeyVersion() {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -1166,8 +1166,8 @@ public com.google.protobuf.ByteString getKmsKeyVersionBytes() {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -1190,8 +1190,8 @@ public Builder setKmsKeyVersion(java.lang.String value) {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -1210,8 +1210,8 @@ public Builder clearKmsKeyVersion() {
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java
index ad0cd0444a9..fecd5d126da 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/EncryptionInfoOrBuilder.java
@@ -57,9 +57,9 @@ public interface EncryptionInfoOrBuilder
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -72,9 +72,9 @@ public interface EncryptionInfoOrBuilder
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -87,9 +87,9 @@ public interface EncryptionInfoOrBuilder
*
*
*
- * Output only. If present, the status of a recent encrypt/decrypt call on underlying data
- * for this database or backup. Regardless of status, data is always encrypted
- * at rest.
+ * Output only. If present, the status of a recent encrypt/decrypt call on
+ * underlying data for this database or backup. Regardless of status, data is
+ * always encrypted at rest.
*
*
* .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -101,8 +101,8 @@ public interface EncryptionInfoOrBuilder
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
@@ -116,8 +116,8 @@ public interface EncryptionInfoOrBuilder
*
*
*
- * Output only. A Cloud KMS key version that is being used to protect the database or
- * backup.
+ * Output only. A Cloud KMS key version that is being used to protect the
+ * database or backup.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java
index 754018f2c5f..d4d8e4948d5 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetBackupRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup].
+ * The request for
+ * [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetBackupRequest}
@@ -286,7 +287,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup].
+ * The request for
+ * [GetBackup][google.spanner.admin.database.v1.DatabaseAdmin.GetBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetBackupRequest}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java
index 5034036df87..c278cab532c 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
+ * The request for
+ * [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlRequest}
@@ -286,7 +287,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
+ * The request for
+ * [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlRequest}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java
index 51e682de7a1..cb605e22d22 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseDdlResponse.java
@@ -23,7 +23,8 @@
*
*
*
- * The response for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
+ * The response for
+ * [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlResponse}
@@ -334,7 +335,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response for [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
+ * The response for
+ * [GetDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDdl].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseDdlResponse}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java
index 5c58ad99516..6016dce7eea 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/GetDatabaseRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase].
+ * The request for
+ * [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseRequest}
@@ -284,7 +285,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase].
+ * The request for
+ * [GetDatabase][google.spanner.admin.database.v1.DatabaseAdmin.GetDatabase].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.GetDatabaseRequest}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java
index bfc50f4d21f..26a3da5c469 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequest.java
@@ -145,7 +145,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -163,14 +165,15 @@ public com.google.protobuf.ByteString getParentBytes() {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -178,9 +181,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -190,12 +193,13 @@ public com.google.protobuf.ByteString getParentBytes() {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -359,8 +368,9 @@ public java.lang.String getPageToken() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -938,7 +948,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -956,14 +968,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -971,9 +984,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -983,12 +996,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1438,8 +1469,9 @@ public java.lang.String getPageToken() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1463,8 +1495,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1487,8 +1520,9 @@ public Builder setPageToken(java.lang.String value) {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1507,8 +1541,9 @@ public Builder clearPageToken() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java
index b2487386273..ebe21812abf 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsRequestOrBuilder.java
@@ -73,7 +73,9 @@ public interface ListBackupOperationsRequestOrBuilder
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] is
+ * for
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first if filtering on metadata
@@ -91,14 +93,15 @@ public interface ListBackupOperationsRequestOrBuilder
* * `done:true` - The operation is complete.
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `metadata.database:prod` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
- * * The database the backup was taken from has a name containing the
- * string "prod".
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The source database name of backup contains the string "prod".
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
* `(metadata.name:howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata].
* * The backup name contains the string "howl".
* * The operation started before 2018-03-28T14:50:00Z.
* * The operation resulted in an error.
@@ -106,9 +109,9 @@ public interface ListBackupOperationsRequestOrBuilder
* `(metadata.source_backup:test) AND` \
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
* `(error:*)` - Returns operations where:
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
- * * The source backup of the copied backup name contains the string
- * "test".
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata].
+ * * The source backup name contains the string "test".
* * The operation started before 2022-01-18T14:50:00Z.
* * The operation resulted in an error.
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -118,12 +121,13 @@ public interface ListBackupOperationsRequestOrBuilder
* `(metadata.source_backup:test_bkp)) AND` \
* `(error:*)` - Returns operations where:
* * The operation's metadata matches either of criteria:
- * * The operation's metadata type is [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata] AND the
- * database the backup was taken from has name containing string
+ * * The operation's metadata type is
+ * [CreateBackupMetadata][google.spanner.admin.database.v1.CreateBackupMetadata]
+ * AND the source database name of the backup contains the string
* "test_db"
- * * The operation's metadata type is [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata] AND the
- * backup the backup was copied from has name containing string
- * "test_bkp"
+ * * The operation's metadata type is
+ * [CopyBackupMetadata][google.spanner.admin.database.v1.CopyBackupMetadata]
+ * AND the source backup name contains the string "test_bkp"
* * The operation resulted in an error.
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -245,8 +254,9 @@ public interface ListBackupOperationsRequestOrBuilder
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token]
- * from a previous [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListBackupOperationsResponse][google.spanner.admin.database.v1.ListBackupOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java
index 247a933977c..b92b522d89d 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
+ * The request for
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListBackupsRequest}
@@ -138,7 +139,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -195,7 +198,9 @@ public java.lang.String getFilter() {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -269,9 +274,10 @@ public int getPageSize() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -295,9 +301,10 @@ public java.lang.String getPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -508,7 +515,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
+ * The request for
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListBackupsRequest}
@@ -864,7 +872,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -920,7 +930,9 @@ public java.lang.String getFilter() {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -976,7 +988,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -1031,7 +1045,9 @@ public Builder setFilter(java.lang.String value) {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -1082,7 +1098,9 @@ public Builder clearFilter() {
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -1189,9 +1207,10 @@ public Builder clearPageSize() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1214,9 +1233,10 @@ public java.lang.String getPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1239,9 +1259,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1263,9 +1284,10 @@ public Builder setPageToken(java.lang.String value) {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1283,9 +1305,10 @@ public Builder clearPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java
index 7af3cb176db..85ebc4e06e1 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsRequestOrBuilder.java
@@ -67,7 +67,9 @@ public interface ListBackupsRequestOrBuilder
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -113,7 +115,9 @@ public interface ListBackupsRequestOrBuilder
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Backup][google.spanner.admin.database.v1.Backup] are eligible for filtering:
+ * The following fields in the
+ * [Backup][google.spanner.admin.database.v1.Backup] are eligible for
+ * filtering:
*
* * `name`
* * `database`
@@ -167,9 +171,10 @@ public interface ListBackupsRequestOrBuilder
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -182,9 +187,10 @@ public interface ListBackupsRequestOrBuilder
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token] from a
- * previous [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse] to the same `parent` and with the same
- * `filter`.
+ * [next_page_token][google.spanner.admin.database.v1.ListBackupsResponse.next_page_token]
+ * from a previous
+ * [ListBackupsResponse][google.spanner.admin.database.v1.ListBackupsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java
index acf9ccce6b7..e6a0454a0f9 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponse.java
@@ -23,7 +23,8 @@
*
*
*
- * The response for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
+ * The response for
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListBackupsResponse}
@@ -149,8 +150,8 @@ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupsOrBuilder(
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -174,8 +175,8 @@ public java.lang.String getNextPageToken() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -370,7 +371,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response for [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
+ * The response for
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListBackupsResponse}
@@ -983,8 +985,8 @@ public com.google.spanner.admin.database.v1.Backup.Builder addBackupsBuilder(int
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -1007,8 +1009,8 @@ public java.lang.String getNextPageToken() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -1031,8 +1033,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -1054,8 +1056,8 @@ public Builder setNextPageToken(java.lang.String value) {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -1073,8 +1075,8 @@ public Builder clearNextPageToken() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java
index dc7e7aa1530..99691d517b5 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupsResponseOrBuilder.java
@@ -86,8 +86,8 @@ public interface ListBackupsResponseOrBuilder
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
@@ -100,8 +100,8 @@ public interface ListBackupsResponseOrBuilder
*
*
* `next_page_token` can be sent in a subsequent
- * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups] call to fetch more
- * of the matching backups.
+ * [ListBackups][google.spanner.admin.database.v1.DatabaseAdmin.ListBackups]
+ * call to fetch more of the matching backups.
*
*
* string next_page_token = 2;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java
index 3e974d3c90b..4bb1c5d466d 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequest.java
@@ -145,7 +145,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -167,7 +169,8 @@ public com.google.protobuf.ByteString getParentBytes() {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -209,7 +212,9 @@ public java.lang.String getFilter() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -231,7 +236,8 @@ public java.lang.String getFilter() {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -285,8 +291,9 @@ public int getPageSize() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -311,8 +318,9 @@ public java.lang.String getPageToken() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -894,7 +902,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -916,7 +926,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -957,7 +968,9 @@ public java.lang.String getFilter() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -979,7 +992,8 @@ public java.lang.String getFilter() {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -1020,7 +1034,9 @@ public com.google.protobuf.ByteString getFilterBytes() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -1042,7 +1058,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -1082,7 +1099,9 @@ public Builder setFilter(java.lang.String value) {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -1104,7 +1123,8 @@ public Builder setFilter(java.lang.String value) {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -1140,7 +1160,9 @@ public Builder clearFilter() {
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -1162,7 +1184,8 @@ public Builder clearFilter() {
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -1249,8 +1272,9 @@ public Builder clearPageSize() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1274,8 +1298,9 @@ public java.lang.String getPageToken() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1299,8 +1324,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1323,8 +1349,9 @@ public Builder setPageToken(java.lang.String value) {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -1343,8 +1370,9 @@ public Builder clearPageToken() {
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java
index 26c9fdad785..959910f8103 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsRequestOrBuilder.java
@@ -73,7 +73,9 @@ public interface ListDatabaseOperationsRequestOrBuilder
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -95,7 +97,8 @@ public interface ListDatabaseOperationsRequestOrBuilder
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -126,7 +129,9 @@ public interface ListDatabaseOperationsRequestOrBuilder
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
- * for [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata] is
+ * for
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata]
+ * is
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
* * `metadata.<field_name>` - any field in metadata.value.
* `metadata.@type` must be specified first, if filtering on metadata
@@ -148,7 +153,8 @@ public interface ListDatabaseOperationsRequestOrBuilder
* `(metadata.name:restored_howl) AND` \
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
* `(error:*)` - Return operations where:
- * * The operation's metadata type is [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
+ * * The operation's metadata type is
+ * [RestoreDatabaseMetadata][google.spanner.admin.database.v1.RestoreDatabaseMetadata].
* * The database is restored from a backup.
* * The backup name contains "backup_howl".
* * The restored database's name contains "restored_howl".
@@ -182,8 +188,9 @@ public interface ListDatabaseOperationsRequestOrBuilder
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
@@ -197,8 +204,9 @@ public interface ListDatabaseOperationsRequestOrBuilder
*
* If non-empty, `page_token` should contain a
* [next_page_token][google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token]
- * from a previous [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse] to the
- * same `parent` and with the same `filter`.
+ * from a previous
+ * [ListDatabaseOperationsResponse][google.spanner.admin.database.v1.ListDatabaseOperationsResponse]
+ * to the same `parent` and with the same `filter`.
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java
index b1d185e6521..56544824599 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
+ * The request for
+ * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesRequest}
@@ -74,7 +75,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -101,7 +102,7 @@ public java.lang.String getParent() {
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -151,8 +152,9 @@ public int getPageSize() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -176,8 +178,9 @@ public java.lang.String getPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -379,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
+ * The request for
+ * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesRequest}
@@ -596,7 +600,7 @@ public Builder mergeFrom(
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -622,7 +626,7 @@ public java.lang.String getParent() {
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -648,7 +652,7 @@ public com.google.protobuf.ByteString getParentBytes() {
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -673,7 +677,7 @@ public Builder setParent(java.lang.String value) {
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -694,7 +698,7 @@ public Builder clearParent() {
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -777,8 +781,9 @@ public Builder clearPageSize() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -801,8 +806,9 @@ public java.lang.String getPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -825,8 +831,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -848,8 +855,9 @@ public Builder setPageToken(java.lang.String value) {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -867,8 +875,9 @@ public Builder clearPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java
index 9ee520170e8..ebf68ed4f8d 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesRequestOrBuilder.java
@@ -30,7 +30,7 @@ public interface ListDatabaseRolesRequestOrBuilder
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -46,7 +46,7 @@ public interface ListDatabaseRolesRequestOrBuilder
*
* Required. The database whose roles should be listed.
* Values are of the form
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
+ * `projects/<project>/instances/<instance>/databases/<database>`.
*
*
*
@@ -76,8 +76,9 @@ public interface ListDatabaseRolesRequestOrBuilder
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
@@ -90,8 +91,9 @@ public interface ListDatabaseRolesRequestOrBuilder
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token] from a
- * previous [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token]
+ * from a previous
+ * [ListDatabaseRolesResponse][google.spanner.admin.database.v1.ListDatabaseRolesResponse].
*
*
* string page_token = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java
index ad74092d04c..107b6b999d1 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseRolesResponse.java
@@ -23,7 +23,8 @@
*
*
*
- * The response for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
+ * The response for
+ * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesResponse}
@@ -366,7 +367,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response for [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
+ * The response for
+ * [ListDatabaseRoles][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabaseRoles].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabaseRolesResponse}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java
index ae7da65a373..2f1f60a1aab 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
+ * The request for
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesRequest}
@@ -149,8 +150,9 @@ public int getPageSize() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -174,8 +176,9 @@ public java.lang.String getPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -377,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
+ * The request for
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesRequest}
@@ -767,8 +771,9 @@ public Builder clearPageSize() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -791,8 +796,9 @@ public java.lang.String getPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -815,8 +821,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -838,8 +845,9 @@ public Builder setPageToken(java.lang.String value) {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -857,8 +865,9 @@ public Builder clearPageToken() {
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java
index 0551fd29182..a8f61a5bef7 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesRequestOrBuilder.java
@@ -74,8 +74,9 @@ public interface ListDatabasesRequestOrBuilder
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
@@ -88,8 +89,9 @@ public interface ListDatabasesRequestOrBuilder
*
*
* If non-empty, `page_token` should contain a
- * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token] from a
- * previous [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
+ * [next_page_token][google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token]
+ * from a previous
+ * [ListDatabasesResponse][google.spanner.admin.database.v1.ListDatabasesResponse].
*
*
* string page_token = 4;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java
index bb5cb1c2ffc..9bc72ac71b7 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponse.java
@@ -23,7 +23,8 @@
*
*
*
- * The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
+ * The response for
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesResponse}
@@ -144,8 +145,8 @@ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabasesOrBuil
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -169,8 +170,8 @@ public java.lang.String getNextPageToken() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -365,7 +366,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The response for [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
+ * The response for
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.ListDatabasesResponse}
@@ -962,8 +964,8 @@ public com.google.spanner.admin.database.v1.Database.Builder addDatabasesBuilder
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -986,8 +988,8 @@ public java.lang.String getNextPageToken() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -1010,8 +1012,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -1033,8 +1035,8 @@ public Builder setNextPageToken(java.lang.String value) {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -1052,8 +1054,8 @@ public Builder clearNextPageToken() {
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java
index 41dcbb25569..6899cc22a4a 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabasesResponseOrBuilder.java
@@ -81,8 +81,8 @@ public interface ListDatabasesResponseOrBuilder
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
@@ -95,8 +95,8 @@ public interface ListDatabasesResponseOrBuilder
*
*
* `next_page_token` can be sent in a subsequent
- * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases] call to fetch more
- * of the matching databases.
+ * [ListDatabases][google.spanner.admin.database.v1.DatabaseAdmin.ListDatabases]
+ * call to fetch more of the matching databases.
*
*
* string next_page_token = 2;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java
index 296a12845dc..88ff109c76b 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfig.java
@@ -42,6 +42,7 @@ private RestoreDatabaseEncryptionConfig(
private RestoreDatabaseEncryptionConfig() {
encryptionType_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
}
@java.lang.Override
@@ -91,7 +92,8 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
*
* This is the default option when
- * [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig] is not specified.
+ * [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig]
+ * is not specified.
*
*
* USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1;
@@ -136,7 +138,8 @@ public enum EncryptionType implements com.google.protobuf.ProtocolMessageEnum {
*
*
* This is the default option when
- * [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig] is not specified.
+ * [encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig]
+ * is not specified.
*
*
* USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1;
@@ -303,10 +306,10 @@ public int getEncryptionTypeValue() {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -332,10 +335,10 @@ public java.lang.String getKmsKeyName() {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -358,6 +361,134 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
}
}
+ public static final int KMS_KEY_NAMES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -381,6 +512,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_);
}
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsKeyNames_.getRaw(i));
+ }
getUnknownFields().writeTo(output);
}
@@ -399,6 +533,14 @@ public int getSerializedSize() {
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_);
}
+ {
+ int dataSize = 0;
+ for (int i = 0; i < kmsKeyNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(kmsKeyNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getKmsKeyNamesList().size();
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -417,6 +559,7 @@ public boolean equals(final java.lang.Object obj) {
if (encryptionType_ != other.encryptionType_) return false;
if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
+ if (!getKmsKeyNamesList().equals(other.getKmsKeyNamesList())) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -432,6 +575,10 @@ public int hashCode() {
hash = (53 * hash) + encryptionType_;
hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
hash = (53 * hash) + getKmsKeyName().hashCode();
+ if (getKmsKeyNamesCount() > 0) {
+ hash = (37 * hash) + KMS_KEY_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getKmsKeyNamesList().hashCode();
+ }
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -576,6 +723,7 @@ public Builder clear() {
bitField0_ = 0;
encryptionType_ = 0;
kmsKeyName_ = "";
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
return this;
}
@@ -621,6 +769,10 @@ private void buildPartial0(
if (((from_bitField0_ & 0x00000002) != 0)) {
result.kmsKeyName_ = kmsKeyName_;
}
+ if (((from_bitField0_ & 0x00000004) != 0)) {
+ kmsKeyNames_.makeImmutable();
+ result.kmsKeyNames_ = kmsKeyNames_;
+ }
}
@java.lang.Override
@@ -680,6 +832,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
onChanged();
}
+ if (!other.kmsKeyNames_.isEmpty()) {
+ if (kmsKeyNames_.isEmpty()) {
+ kmsKeyNames_ = other.kmsKeyNames_;
+ bitField0_ |= 0x00000004;
+ } else {
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.addAll(other.kmsKeyNames_);
+ }
+ onChanged();
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -718,6 +880,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000002;
break;
} // case 18
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(s);
+ break;
+ } // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -848,10 +1017,10 @@ public Builder clearEncryptionType() {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -876,10 +1045,10 @@ public java.lang.String getKmsKeyName() {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -904,10 +1073,10 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -931,10 +1100,10 @@ public Builder setKmsKeyName(java.lang.String value) {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -954,10 +1123,10 @@ public Builder clearKmsKeyName() {
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -979,6 +1148,324 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
return this;
}
+ private com.google.protobuf.LazyStringArrayList kmsKeyNames_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureKmsKeyNamesIsMutable() {
+ if (!kmsKeyNames_.isModifiable()) {
+ kmsKeyNames_ = new com.google.protobuf.LazyStringArrayList(kmsKeyNames_);
+ }
+ bitField0_ |= 0x00000004;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ public com.google.protobuf.ProtocolStringList getKmsKeyNamesList() {
+ kmsKeyNames_.makeImmutable();
+ return kmsKeyNames_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ public int getKmsKeyNamesCount() {
+ return kmsKeyNames_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ public java.lang.String getKmsKeyNames(int index) {
+ return kmsKeyNames_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ public com.google.protobuf.ByteString getKmsKeyNamesBytes(int index) {
+ return kmsKeyNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index to set the value at.
+ * @param value The kmsKeyNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKmsKeyNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.set(index, value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param values The kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllKmsKeyNames(java.lang.Iterable
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKmsKeyNames() {
+ kmsKeyNames_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes of the kmsKeyNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addKmsKeyNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureKmsKeyNamesIsMutable();
+ kmsKeyNames_.add(value);
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java
index 04d44766c16..1ba3d70f6d1 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseEncryptionConfigOrBuilder.java
@@ -58,10 +58,10 @@ public interface RestoreDatabaseEncryptionConfigOrBuilder
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -76,10 +76,10 @@ public interface RestoreDatabaseEncryptionConfigOrBuilder
*
*
*
- * Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored
- * database. This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is
- * `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
+ * Optional. The Cloud KMS key that will be used to encrypt/decrypt the
+ * restored database. This field should be set only when
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
* `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
*
*
@@ -90,4 +90,119 @@ public interface RestoreDatabaseEncryptionConfigOrBuilder
* @return The bytes for kmsKeyName.
*/
com.google.protobuf.ByteString getKmsKeyNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return A list containing the kmsKeyNames.
+ */
+ java.util.List
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The count of kmsKeyNames.
+ */
+ int getKmsKeyNamesCount();
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the element to return.
+ * @return The kmsKeyNames at the given index.
+ */
+ java.lang.String getKmsKeyNames(int index);
+ /**
+ *
+ *
+ *
+ * Optional. Specifies the KMS configuration for the one or more keys used to
+ * encrypt the database. Values are of the form
+ * `projects/<project>/locations/<location>/keyRings/<key_ring>/cryptoKeys/<kms_key_name>`.
+ *
+ * The keys referenced by kms_key_names must fully cover all
+ * regions of the database instance configuration. Some examples:
+ * * For single region database instance configs, specify a single regional
+ * location KMS key.
+ * * For multi-regional database instance configs of type GOOGLE_MANAGED,
+ * either specify a multi-regional location KMS key or multiple regional
+ * location KMS keys that cover all regions in the instance config.
+ * * For a database instance config of type USER_MANAGED, please specify only
+ * regional location KMS keys to cover each region in the instance config.
+ * Multi-regional location KMS keys are not supported for USER_MANAGED
+ * instance configs.
+ *
+ *
+ *
+ * repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the kmsKeyNames at the given index.
+ */
+ com.google.protobuf.ByteString getKmsKeyNamesBytes(int index);
}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java
index 68896869e46..a2425eaa822 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadata.java
@@ -324,7 +324,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -349,7 +350,8 @@ public boolean hasCancelTime() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -374,7 +376,8 @@ public com.google.protobuf.Timestamp getCancelTime() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -399,10 +402,10 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -432,10 +435,10 @@ public java.lang.String getOptimizeDatabaseOperationName() {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -1632,7 +1635,8 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1656,7 +1660,8 @@ public boolean hasCancelTime() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1686,7 +1691,8 @@ public com.google.protobuf.Timestamp getCancelTime() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1718,7 +1724,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp value) {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1747,7 +1754,8 @@ public Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForVal
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1784,7 +1792,8 @@ public Builder mergeCancelTime(com.google.protobuf.Timestamp value) {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1813,7 +1822,8 @@ public Builder clearCancelTime() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1837,7 +1847,8 @@ public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1865,7 +1876,8 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() {
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -1899,10 +1911,10 @@ public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder() {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -1931,10 +1943,10 @@ public java.lang.String getOptimizeDatabaseOperationName() {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -1963,10 +1975,10 @@ public com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes() {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -1994,10 +2006,10 @@ public Builder setOptimizeDatabaseOperationName(java.lang.String value) {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -2021,10 +2033,10 @@ public Builder clearOptimizeDatabaseOperationName() {
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java
index 1265196c52f..732b18d96f4 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseMetadataOrBuilder.java
@@ -164,7 +164,8 @@ public interface RestoreDatabaseMetadataOrBuilder
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -186,7 +187,8 @@ public interface RestoreDatabaseMetadataOrBuilder
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -208,7 +210,8 @@ public interface RestoreDatabaseMetadataOrBuilder
* operation completed despite cancellation. On successful cancellation,
* the operation is not deleted; instead, it becomes an operation with
* an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
+ * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
+ * `Code.CANCELLED`.
* .google.protobuf.Timestamp cancel_time = 5;
@@ -226,10 +229,10 @@ public interface RestoreDatabaseMetadataOrBuilder
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
@@ -248,10 +251,10 @@ public interface RestoreDatabaseMetadataOrBuilder
* `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`
* where the <database> is the name of database being created and restored to.
* The metadata type of the long-running operation is
- * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata]. This long-running operation will be
- * automatically created by the system after the RestoreDatabase long-running
- * operation completes successfully. This operation will not be created if the
- * restore was not successful.
+ * [OptimizeRestoredDatabaseMetadata][google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata].
+ * This long-running operation will be automatically created by the system
+ * after the RestoreDatabase long-running operation completes successfully.
+ * This operation will not be created if the restore was not successful.
* string optimize_database_operation_name = 6;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java
index 17e2e870e38..6e0baafab47 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequest.java
@@ -311,12 +311,12 @@ public com.google.protobuf.ByteString getBackupBytes() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -333,12 +333,12 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -358,12 +358,12 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1263,12 +1263,12 @@ public Builder setBackupBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1284,12 +1284,12 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1313,12 +1313,12 @@ public boolean hasEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1343,12 +1343,12 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1371,12 +1371,12 @@ public Builder setEncryptionConfig(
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1408,12 +1408,12 @@ public Builder mergeEncryptionConfig(
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1434,12 +1434,12 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1456,12 +1456,12 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -1483,12 +1483,12 @@ public Builder clearEncryptionConfig() {
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java
index b80692a5d44..ccf18967682 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreDatabaseRequestOrBuilder.java
@@ -136,12 +136,12 @@ public interface RestoreDatabaseRequestOrBuilder
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -155,12 +155,12 @@ public interface RestoreDatabaseRequestOrBuilder
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
@@ -174,12 +174,12 @@ public interface RestoreDatabaseRequestOrBuilder
*
*
*
- * Optional. An encryption configuration describing the encryption type and key
- * resources in Cloud KMS used to encrypt/decrypt the database to restore to.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] =
- * `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
+ * Optional. An encryption configuration describing the encryption type and
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
+ * to. If this field is not specified, the restored database will use the same
+ * encryption configuration as the backup by default, namely
+ * [encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type]
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
*
*
*
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java
index 858bfefa32d..8b78748dbe2 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/SpannerDatabaseAdminProto.java
@@ -232,172 +232,174 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "googleapis.com/BackupH\000\022a\n\021encryption_co"
+ "nfig\030\004 \001(\0132A.google.spanner.admin.databa"
+ "se.v1.RestoreDatabaseEncryptionConfigB\003\340"
- + "A\001B\010\n\006source\"\363\002\n\037RestoreDatabaseEncrypti"
+ + "A\001B\010\n\006source\"\265\003\n\037RestoreDatabaseEncrypti"
+ "onConfig\022n\n\017encryption_type\030\001 \001(\0162P.goog"
+ "le.spanner.admin.database.v1.RestoreData"
+ "baseEncryptionConfig.EncryptionTypeB\003\340A\002"
+ "\022?\n\014kms_key_name\030\002 \001(\tB)\340A\001\372A#\n!cloudkms"
- + ".googleapis.com/CryptoKey\"\236\001\n\016Encryption"
- + "Type\022\037\n\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022+\n"
- + "\'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION"
- + "\020\001\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\002\022\037\n\033CUS"
- + "TOMER_MANAGED_ENCRYPTION\020\003\"\215\003\n\027RestoreDa"
- + "tabaseMetadata\0222\n\004name\030\001 \001(\tB$\372A!\n\037spann"
- + "er.googleapis.com/Database\022H\n\013source_typ"
- + "e\030\002 \001(\01623.google.spanner.admin.database."
- + "v1.RestoreSourceType\022C\n\013backup_info\030\003 \001("
- + "\0132,.google.spanner.admin.database.v1.Bac"
- + "kupInfoH\000\022E\n\010progress\030\004 \001(\01323.google.spa"
- + "nner.admin.database.v1.OperationProgress"
- + "\022/\n\013cancel_time\030\005 \001(\0132\032.google.protobuf."
- + "Timestamp\022(\n optimize_database_operation"
- + "_name\030\006 \001(\tB\r\n\013source_info\"\235\001\n OptimizeR"
- + "estoredDatabaseMetadata\0222\n\004name\030\001 \001(\tB$\372"
- + "A!\n\037spanner.googleapis.com/Database\022E\n\010p"
- + "rogress\030\002 \001(\01323.google.spanner.admin.dat"
- + "abase.v1.OperationProgress\"\236\001\n\014DatabaseR"
- + "ole\022\021\n\004name\030\001 \001(\tB\003\340A\002:{\352Ax\n#spanner.goo"
- + "gleapis.com/DatabaseRole\022Qprojects/{proj"
- + "ect}/instances/{instance}/databases/{dat"
- + "abase}/databaseRoles/{role}\"z\n\030ListDatab"
- + "aseRolesRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n"
- + "\037spanner.googleapis.com/Database\022\021\n\tpage"
- + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"|\n\031ListD"
- + "atabaseRolesResponse\022F\n\016database_roles\030\001"
- + " \003(\0132..google.spanner.admin.database.v1."
- + "DatabaseRole\022\027\n\017next_page_token\030\002 \001(\t*5\n"
- + "\021RestoreSourceType\022\024\n\020TYPE_UNSPECIFIED\020\000"
- + "\022\n\n\006BACKUP\020\0012\356%\n\rDatabaseAdmin\022\300\001\n\rListD"
- + "atabases\0226.google.spanner.admin.database"
- + ".v1.ListDatabasesRequest\0327.google.spanne"
- + "r.admin.database.v1.ListDatabasesRespons"
- + "e\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects"
- + "/*/instances/*}/databases\022\244\002\n\016CreateData"
- + "base\0227.google.spanner.admin.database.v1."
- + "CreateDatabaseRequest\032\035.google.longrunni"
- + "ng.Operation\"\271\001\312Ad\n)google.spanner.admin"
- + ".database.v1.Database\0227google.spanner.ad"
- + "min.database.v1.CreateDatabaseMetadata\332A"
- + "\027parent,create_statement\202\323\344\223\0022\"-/v1/{par"
- + "ent=projects/*/instances/*}/databases:\001*"
- + "\022\255\001\n\013GetDatabase\0224.google.spanner.admin."
- + "database.v1.GetDatabaseRequest\032*.google."
- + "spanner.admin.database.v1.Database\"<\332A\004n"
- + "ame\202\323\344\223\002/\022-/v1/{name=projects/*/instance"
- + "s/*/databases/*}\022\357\001\n\016UpdateDatabase\0227.go"
- + "ogle.spanner.admin.database.v1.UpdateDat"
- + "abaseRequest\032\035.google.longrunning.Operat"
- + "ion\"\204\001\312A\"\n\010Database\022\026UpdateDatabaseMetad"
- + "ata\332A\024database,update_mask\202\323\344\223\002B26/v1/{d"
- + "atabase.name=projects/*/instances/*/data"
- + "bases/*}:\010database\022\235\002\n\021UpdateDatabaseDdl"
- + "\022:.google.spanner.admin.database.v1.Upda"
- + "teDatabaseDdlRequest\032\035.google.longrunnin"
- + "g.Operation\"\254\001\312AS\n\025google.protobuf.Empty"
- + "\022:google.spanner.admin.database.v1.Updat"
- + "eDatabaseDdlMetadata\332A\023database,statemen"
- + "ts\202\323\344\223\002:25/v1/{database=projects/*/insta"
- + "nces/*/databases/*}/ddl:\001*\022\243\001\n\014DropDatab"
- + "ase\0225.google.spanner.admin.database.v1.D"
- + "ropDatabaseRequest\032\026.google.protobuf.Emp"
- + "ty\"D\332A\010database\202\323\344\223\0023*1/v1/{database=pro"
- + "jects/*/instances/*/databases/*}\022\315\001\n\016Get"
- + "DatabaseDdl\0227.google.spanner.admin.datab"
- + "ase.v1.GetDatabaseDdlRequest\0328.google.sp"
- + "anner.admin.database.v1.GetDatabaseDdlRe"
- + "sponse\"H\332A\010database\202\323\344\223\0027\0225/v1/{database"
- + "=projects/*/instances/*/databases/*}/ddl"
- + "\022\353\001\n\014SetIamPolicy\022\".google.iam.v1.SetIam"
- + "PolicyRequest\032\025.google.iam.v1.Policy\"\237\001\332"
- + "A\017resource,policy\202\323\344\223\002\206\001\">/v1/{resource="
- + "projects/*/instances/*/databases/*}:setI"
- + "amPolicy:\001*ZA\"/v1/{resource=projects/"
- + "*/instances/*/databases/*}:getIamPolicy:"
- + "\001*ZA\".google.spanner.a"
- + "dmin.database.v1.ListBackupOperationsRes"
- + "ponse\"E\332A\006parent\202\323\344\223\0026\0224/v1/{parent=proj"
- + "ects/*/instances/*}/backupOperations\022\334\001\n"
- + "\021ListDatabaseRoles\022:.google.spanner.admi"
- + "n.database.v1.ListDatabaseRolesRequest\032;"
- + ".google.spanner.admin.database.v1.ListDa"
- + "tabaseRolesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v"
- + "1/{parent=projects/*/instances/*/databas"
- + "es/*}/databaseRoles\032x\312A\026spanner.googleap"
- + "is.com\322A\\https://www.googleapis.com/auth"
- + "/cloud-platform,https://www.googleapis.c"
- + "om/auth/spanner.adminB\330\002\n$com.google.spa"
- + "nner.admin.database.v1B\031SpannerDatabaseA"
- + "dminProtoP\001ZFcloud.google.com/go/spanner"
- + "/admin/database/apiv1/databasepb;databas"
- + "epb\252\002&Google.Cloud.Spanner.Admin.Databas"
- + "e.V1\312\002&Google\\Cloud\\Spanner\\Admin\\Databa"
- + "se\\V1\352\002+Google::Cloud::Spanner::Admin::D"
- + "atabase::V1\352AJ\n\037spanner.googleapis.com/I"
- + "nstance\022\'projects/{project}/instances/{i"
- + "nstance}b\006proto3"
+ + "sesRequest\0327.google.spanner.admin.databa"
+ + "se.v1.ListDatabasesResponse\">\332A\006parent\202\323"
+ + "\344\223\002/\022-/v1/{parent=projects/*/instances/*"
+ + "}/databases\022\244\002\n\016CreateDatabase\0227.google."
+ + "spanner.admin.database.v1.CreateDatabase"
+ + "Request\032\035.google.longrunning.Operation\"\271"
+ + "\001\312Ad\n)google.spanner.admin.database.v1.D"
+ + "atabase\0227google.spanner.admin.database.v"
+ + "1.CreateDatabaseMetadata\332A\027parent,create"
+ + "_statement\202\323\344\223\0022\"-/v1/{parent=projects/*"
+ + "/instances/*}/databases:\001*\022\255\001\n\013GetDataba"
+ + "se\0224.google.spanner.admin.database.v1.Ge"
+ + "tDatabaseRequest\032*.google.spanner.admin."
+ + "database.v1.Database\"<\332A\004name\202\323\344\223\002/\022-/v1"
+ + "/{name=projects/*/instances/*/databases/"
+ + "*}\022\357\001\n\016UpdateDatabase\0227.google.spanner.a"
+ + "dmin.database.v1.UpdateDatabaseRequest\032\035"
+ + ".google.longrunning.Operation\"\204\001\312A\"\n\010Dat"
+ + "abase\022\026UpdateDatabaseMetadata\332A\024database"
+ + ",update_mask\202\323\344\223\002B26/v1/{database.name=p"
+ + "rojects/*/instances/*/databases/*}:\010data"
+ + "base\022\235\002\n\021UpdateDatabaseDdl\022:.google.span"
+ + "ner.admin.database.v1.UpdateDatabaseDdlR"
+ + "equest\032\035.google.longrunning.Operation\"\254\001"
+ + "\312AS\n\025google.protobuf.Empty\022:google.spann"
+ + "er.admin.database.v1.UpdateDatabaseDdlMe"
+ + "tadata\332A\023database,statements\202\323\344\223\002:25/v1/"
+ + "{database=projects/*/instances/*/databas"
+ + "es/*}/ddl:\001*\022\243\001\n\014DropDatabase\0225.google.s"
+ + "panner.admin.database.v1.DropDatabaseReq"
+ + "uest\032\026.google.protobuf.Empty\"D\332A\010databas"
+ + "e\202\323\344\223\0023*1/v1/{database=projects/*/instan"
+ + "ces/*/databases/*}\022\315\001\n\016GetDatabaseDdl\0227."
+ + "google.spanner.admin.database.v1.GetData"
+ + "baseDdlRequest\0328.google.spanner.admin.da"
+ + "tabase.v1.GetDatabaseDdlResponse\"H\332A\010dat"
+ + "abase\202\323\344\223\0027\0225/v1/{database=projects/*/in"
+ + "stances/*/databases/*}/ddl\022\353\001\n\014SetIamPol"
+ + "icy\022\".google.iam.v1.SetIamPolicyRequest\032"
+ + "\025.google.iam.v1.Policy\"\237\001\332A\017resource,pol"
+ + "icy\202\323\344\223\002\206\001\">/v1/{resource=projects/*/ins"
+ + "tances/*/databases/*}:setIamPolicy:\001*ZA\""
+ + "/v1/{resource=projects/*/instances/*/"
+ + "databases/*}:getIamPolicy:\001*ZA\".google.spanner.admin.database."
+ + "v1.ListBackupOperationsResponse\"E\332A\006pare"
+ + "nt\202\323\344\223\0026\0224/v1/{parent=projects/*/instanc"
+ + "es/*}/backupOperations\022\334\001\n\021ListDatabaseR"
+ + "oles\022:.google.spanner.admin.database.v1."
+ + "ListDatabaseRolesRequest\032;.google.spanne"
+ + "r.admin.database.v1.ListDatabaseRolesRes"
+ + "ponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=proj"
+ + "ects/*/instances/*/databases/*}/database"
+ + "Roles\032x\312A\026spanner.googleapis.com\322A\\https"
+ + "://www.googleapis.com/auth/cloud-platfor"
+ + "m,https://www.googleapis.com/auth/spanne"
+ + "r.adminB\330\002\n$com.google.spanner.admin.dat"
+ + "abase.v1B\031SpannerDatabaseAdminProtoP\001ZFc"
+ + "loud.google.com/go/spanner/admin/databas"
+ + "e/apiv1/databasepb;databasepb\252\002&Google.C"
+ + "loud.Spanner.Admin.Database.V1\312\002&Google\\"
+ + "Cloud\\Spanner\\Admin\\Database\\V1\352\002+Google"
+ + "::Cloud::Spanner::Admin::Database::V1\352AJ"
+ + "\n\037spanner.googleapis.com/Instance\022\'proje"
+ + "cts/{project}/instances/{instance}b\006prot"
+ + "o3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -582,7 +584,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor,
new java.lang.String[] {
- "EncryptionType", "KmsKeyName",
+ "EncryptionType", "KmsKeyName", "KmsKeyNames",
});
internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor =
getDescriptor().getMessageTypes().get(19);
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java
index a01f91fef90..2cbef9e317c 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateBackupRequest.java
@@ -23,7 +23,8 @@
*
*
*
- * The request for [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].
+ * The request for
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.UpdateBackupRequest}
@@ -371,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The request for [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].
+ * The request for
+ * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup].
*
*
* Protobuf type {@code google.spanner.admin.database.v1.UpdateBackupRequest}
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java
index 63da4ea5b60..fb8ea39c445 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequest.java
@@ -37,8 +37,8 @@
* Each batch of statements is assigned a name which can be used with
* the [Operations][google.longrunning.Operations] API to monitor
* progress. See the
- * [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id] field for more
- * details.
+ * [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id]
+ * field for more details.
* string operation_id = 3;
@@ -256,18 +258,20 @@ public java.lang.String getOperationId() {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
* string operation_id = 3;
@@ -530,8 +534,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
* Each batch of statements is assigned a name which can be used with
* the [Operations][google.longrunning.Operations] API to monitor
* progress. See the
- * [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id] field for more
- * details.
+ * [operation_id][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.operation_id]
+ * field for more details.
* string operation_id = 3;
@@ -1105,18 +1111,20 @@ public java.lang.String getOperationId() {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
* string operation_id = 3;
@@ -1145,18 +1153,20 @@ public com.google.protobuf.ByteString getOperationIdBytes() {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
* string operation_id = 3;
@@ -1184,18 +1194,20 @@ public Builder setOperationId(java.lang.String value) {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
* string operation_id = 3;
@@ -1219,18 +1231,20 @@ public Builder clearOperationId() {
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
* string operation_id = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java
index 6c0d078fda4..d46fc65e5f1 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlRequestOrBuilder.java
@@ -115,18 +115,20 @@ public interface UpdateDatabaseDdlRequestOrBuilder
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
* string operation_id = 3;
@@ -145,18 +147,20 @@ public interface UpdateDatabaseDdlRequestOrBuilder
*
* Specifying an explicit operation ID simplifies determining
* whether the statements were executed in the event that the
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] call is replayed,
- * or the return value is otherwise lost: the [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database] and
- * `operation_id` fields can be combined to form the
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * call is replayed, or the return value is otherwise lost: the
+ * [database][google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database]
+ * and `operation_id` fields can be combined to form the
* [name][google.longrunning.Operation.name] of the resulting
- * [longrunning.Operation][google.longrunning.Operation]: `<database>/operations/<operation_id>`.
+ * [longrunning.Operation][google.longrunning.Operation]:
+ * `<database>/operations/<operation_id>`.
*
* `operation_id` should be unique within the database, and must be
* a valid identifier: `[a-z][a-z0-9_]*`. Note that
* automatically-generated operation IDs always begin with an
* underscore. If the named operation already exists,
- * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] returns
- * `ALREADY_EXISTS`.
+ * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]
+ * returns `ALREADY_EXISTS`.
*
*
* string operation_id = 3;
diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto b/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto
index fce69a2f3e3..bb8ef4d55e8 100644
--- a/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto
+++ b/proto-google-cloud-spanner-admin-database-v1/src/main/proto/google/spanner/admin/database/v1/backup.proto
@@ -1,4 +1,4 @@
-// Copyright 2022 Google LLC
+// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -51,14 +51,14 @@ message Backup {
READY = 2;
}
- // Required for the [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup] operation.
- // Name of the database from which this backup was
- // created. This needs to be in the same instance as the backup.
- // Values are of the form
+ // Required for the
+ // [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
+ // operation. Name of the database from which this backup was created. This
+ // needs to be in the same instance as the backup. Values are of the form
// `projects/
+ * Query cancellation action defines the long running query and the cancel query
+ * format depening on the Cloud database dialect.
+ *
+ *
+ * Protobuf type {@code google.spanner.executor.v1.QueryCancellationAction}
+ */
+public final class QueryCancellationAction extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.QueryCancellationAction)
+ QueryCancellationActionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use QueryCancellationAction.newBuilder() to construct.
+ private QueryCancellationAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private QueryCancellationAction() {
+ longRunningSql_ = "";
+ cancelQuery_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new QueryCancellationAction();
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.spanner.executor.v1.CloudExecutorProto
+ .internal_static_google_spanner_executor_v1_QueryCancellationAction_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.spanner.executor.v1.CloudExecutorProto
+ .internal_static_google_spanner_executor_v1_QueryCancellationAction_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.spanner.executor.v1.QueryCancellationAction.class,
+ com.google.spanner.executor.v1.QueryCancellationAction.Builder.class);
+ }
+
+ public static final int LONG_RUNNING_SQL_FIELD_NUMBER = 1;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object longRunningSql_ = "";
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return The longRunningSql.
+ */
+ @java.lang.Override
+ public java.lang.String getLongRunningSql() {
+ java.lang.Object ref = longRunningSql_;
+ 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();
+ longRunningSql_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return The bytes for longRunningSql.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getLongRunningSqlBytes() {
+ java.lang.Object ref = longRunningSql_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ longRunningSql_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CANCEL_QUERY_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object cancelQuery_ = "";
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return The cancelQuery.
+ */
+ @java.lang.Override
+ public java.lang.String getCancelQuery() {
+ java.lang.Object ref = cancelQuery_;
+ 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();
+ cancelQuery_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return The bytes for cancelQuery.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getCancelQueryBytes() {
+ java.lang.Object ref = cancelQuery_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ cancelQuery_ = 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.GeneratedMessageV3.isStringEmpty(longRunningSql_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, longRunningSql_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelQuery_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cancelQuery_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(longRunningSql_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, longRunningSql_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(cancelQuery_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cancelQuery_);
+ }
+ 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.spanner.executor.v1.QueryCancellationAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.QueryCancellationAction other =
+ (com.google.spanner.executor.v1.QueryCancellationAction) obj;
+
+ if (!getLongRunningSql().equals(other.getLongRunningSql())) return false;
+ if (!getCancelQuery().equals(other.getCancelQuery())) 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) + LONG_RUNNING_SQL_FIELD_NUMBER;
+ hash = (53 * hash) + getLongRunningSql().hashCode();
+ hash = (37 * hash) + CANCEL_QUERY_FIELD_NUMBER;
+ hash = (53 * hash) + getCancelQuery().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction 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.spanner.executor.v1.QueryCancellationAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.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.spanner.executor.v1.QueryCancellationAction 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.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action defines the long running query and the cancel query
+ * format depening on the Cloud database dialect.
+ *
+ *
+ * Protobuf type {@code google.spanner.executor.v1.QueryCancellationAction}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return The longRunningSql.
+ */
+ public java.lang.String getLongRunningSql() {
+ java.lang.Object ref = longRunningSql_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ longRunningSql_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return The bytes for longRunningSql.
+ */
+ public com.google.protobuf.ByteString getLongRunningSqlBytes() {
+ java.lang.Object ref = longRunningSql_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ longRunningSql_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @param value The longRunningSql to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLongRunningSql(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ longRunningSql_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLongRunningSql() {
+ longRunningSql_ = getDefaultInstance().getLongRunningSql();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @param value The bytes for longRunningSql to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLongRunningSqlBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ longRunningSql_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object cancelQuery_ = "";
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return The cancelQuery.
+ */
+ public java.lang.String getCancelQuery() {
+ java.lang.Object ref = cancelQuery_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ cancelQuery_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return The bytes for cancelQuery.
+ */
+ public com.google.protobuf.ByteString getCancelQueryBytes() {
+ java.lang.Object ref = cancelQuery_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ cancelQuery_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @param value The cancelQuery to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCancelQuery(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ cancelQuery_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCancelQuery() {
+ cancelQuery_ = getDefaultInstance().getCancelQuery();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @param value The bytes for cancelQuery to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCancelQueryBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ cancelQuery_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.QueryCancellationAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.QueryCancellationAction)
+ private static final com.google.spanner.executor.v1.QueryCancellationAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.QueryCancellationAction();
+ }
+
+ public static com.google.spanner.executor.v1.QueryCancellationAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return The longRunningSql.
+ */
+ java.lang.String getLongRunningSql();
+ /**
+ *
+ *
+ *
+ * Long running query.
+ *
+ *
+ * string long_running_sql = 1;
+ *
+ * @return The bytes for longRunningSql.
+ */
+ com.google.protobuf.ByteString getLongRunningSqlBytes();
+
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return The cancelQuery.
+ */
+ java.lang.String getCancelQuery();
+ /**
+ *
+ *
+ *
+ * Format of the cancel query for the cloud database dialect.
+ *
+ *
+ * string cancel_query = 2;
+ *
+ * @return The bytes for cancelQuery.
+ */
+ com.google.protobuf.ByteString getCancelQueryBytes();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java
index 8a9025e7eb3..d4e457d3d5e 100644
--- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerAction.java
@@ -91,6 +91,7 @@ public enum ActionCase
GENERATE_DB_PARTITIONS_QUERY(43),
EXECUTE_PARTITION(44),
EXECUTE_CHANGE_STREAM_QUERY(50),
+ QUERY_CANCELLATION(51),
ACTION_NOT_SET(0);
private final int value;
@@ -141,6 +142,8 @@ public static ActionCase forNumber(int value) {
return EXECUTE_PARTITION;
case 50:
return EXECUTE_CHANGE_STREAM_QUERY;
+ case 51:
+ return QUERY_CANCELLATION;
case 0:
return ACTION_NOT_SET;
default:
@@ -1105,6 +1108,58 @@ public com.google.spanner.executor.v1.ExecuteChangeStreamQuery getExecuteChangeS
return com.google.spanner.executor.v1.ExecuteChangeStreamQuery.getDefaultInstance();
}
+ public static final int QUERY_CANCELLATION_FIELD_NUMBER = 51;
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ *
+ * @return Whether the queryCancellation field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryCancellation() {
+ return actionCase_ == 51;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ *
+ * @return The queryCancellation.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryCancellationAction getQueryCancellation() {
+ if (actionCase_ == 51) {
+ return (com.google.spanner.executor.v1.QueryCancellationAction) action_;
+ }
+ return com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryCancellationActionOrBuilder
+ getQueryCancellationOrBuilder() {
+ if (actionCase_ == 51) {
+ return (com.google.spanner.executor.v1.QueryCancellationAction) action_;
+ }
+ return com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance();
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -1175,6 +1230,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (actionCase_ == 50) {
output.writeMessage(50, (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_);
}
+ if (actionCase_ == 51) {
+ output.writeMessage(51, (com.google.spanner.executor.v1.QueryCancellationAction) action_);
+ }
getUnknownFields().writeTo(output);
}
@@ -1270,6 +1328,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
50, (com.google.spanner.executor.v1.ExecuteChangeStreamQuery) action_);
}
+ if (actionCase_ == 51) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 51, (com.google.spanner.executor.v1.QueryCancellationAction) action_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -1344,6 +1407,9 @@ public boolean equals(final java.lang.Object obj) {
if (!getExecuteChangeStreamQuery().equals(other.getExecuteChangeStreamQuery()))
return false;
break;
+ case 51:
+ if (!getQueryCancellation().equals(other.getQueryCancellation())) return false;
+ break;
case 0:
default:
}
@@ -1429,6 +1495,10 @@ public int hashCode() {
hash = (37 * hash) + EXECUTE_CHANGE_STREAM_QUERY_FIELD_NUMBER;
hash = (53 * hash) + getExecuteChangeStreamQuery().hashCode();
break;
+ case 51:
+ hash = (37 * hash) + QUERY_CANCELLATION_FIELD_NUMBER;
+ hash = (53 * hash) + getQueryCancellation().hashCode();
+ break;
case 0:
default:
}
@@ -1636,6 +1706,9 @@ public Builder clear() {
if (executeChangeStreamQueryBuilder_ != null) {
executeChangeStreamQueryBuilder_.clear();
}
+ if (queryCancellationBuilder_ != null) {
+ queryCancellationBuilder_.clear();
+ }
actionCase_ = 0;
action_ = null;
return this;
@@ -1738,6 +1811,9 @@ private void buildPartialOneofs(com.google.spanner.executor.v1.SpannerAction res
if (actionCase_ == 50 && executeChangeStreamQueryBuilder_ != null) {
result.action_ = executeChangeStreamQueryBuilder_.build();
}
+ if (actionCase_ == 51 && queryCancellationBuilder_ != null) {
+ result.action_ = queryCancellationBuilder_.build();
+ }
}
@java.lang.Override
@@ -1874,6 +1950,11 @@ public Builder mergeFrom(com.google.spanner.executor.v1.SpannerAction other) {
mergeExecuteChangeStreamQuery(other.getExecuteChangeStreamQuery());
break;
}
+ case QUERY_CANCELLATION:
+ {
+ mergeQueryCancellation(other.getQueryCancellation());
+ break;
+ }
case ACTION_NOT_SET:
{
break;
@@ -2018,6 +2099,13 @@ public Builder mergeFrom(
actionCase_ = 50;
break;
} // case 402
+ case 410:
+ {
+ input.readMessage(
+ getQueryCancellationFieldBuilder().getBuilder(), extensionRegistry);
+ actionCase_ = 51;
+ break;
+ } // case 410
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -5801,6 +5889,220 @@ public Builder clearExecuteChangeStreamQuery() {
return executeChangeStreamQueryBuilder_;
}
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.QueryCancellationAction,
+ com.google.spanner.executor.v1.QueryCancellationAction.Builder,
+ com.google.spanner.executor.v1.QueryCancellationActionOrBuilder>
+ queryCancellationBuilder_;
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ *
+ * @return Whether the queryCancellation field is set.
+ */
+ @java.lang.Override
+ public boolean hasQueryCancellation() {
+ return actionCase_ == 51;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ *
+ * @return The queryCancellation.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryCancellationAction getQueryCancellation() {
+ if (queryCancellationBuilder_ == null) {
+ if (actionCase_ == 51) {
+ return (com.google.spanner.executor.v1.QueryCancellationAction) action_;
+ }
+ return com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 51) {
+ return queryCancellationBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ public Builder setQueryCancellation(
+ com.google.spanner.executor.v1.QueryCancellationAction value) {
+ if (queryCancellationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ queryCancellationBuilder_.setMessage(value);
+ }
+ actionCase_ = 51;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ public Builder setQueryCancellation(
+ com.google.spanner.executor.v1.QueryCancellationAction.Builder builderForValue) {
+ if (queryCancellationBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ queryCancellationBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 51;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ public Builder mergeQueryCancellation(
+ com.google.spanner.executor.v1.QueryCancellationAction value) {
+ if (queryCancellationBuilder_ == null) {
+ if (actionCase_ == 51
+ && action_
+ != com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.QueryCancellationAction.newBuilder(
+ (com.google.spanner.executor.v1.QueryCancellationAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 51) {
+ queryCancellationBuilder_.mergeFrom(value);
+ } else {
+ queryCancellationBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 51;
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ public Builder clearQueryCancellation() {
+ if (queryCancellationBuilder_ == null) {
+ if (actionCase_ == 51) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 51) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ queryCancellationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ public com.google.spanner.executor.v1.QueryCancellationAction.Builder
+ getQueryCancellationBuilder() {
+ return getQueryCancellationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryCancellationActionOrBuilder
+ getQueryCancellationOrBuilder() {
+ if ((actionCase_ == 51) && (queryCancellationBuilder_ != null)) {
+ return queryCancellationBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 51) {
+ return (com.google.spanner.executor.v1.QueryCancellationAction) action_;
+ }
+ return com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.QueryCancellationAction,
+ com.google.spanner.executor.v1.QueryCancellationAction.Builder,
+ com.google.spanner.executor.v1.QueryCancellationActionOrBuilder>
+ getQueryCancellationFieldBuilder() {
+ if (queryCancellationBuilder_ == null) {
+ if (!(actionCase_ == 51)) {
+ action_ = com.google.spanner.executor.v1.QueryCancellationAction.getDefaultInstance();
+ }
+ queryCancellationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.QueryCancellationAction,
+ com.google.spanner.executor.v1.QueryCancellationAction.Builder,
+ com.google.spanner.executor.v1.QueryCancellationActionOrBuilder>(
+ (com.google.spanner.executor.v1.QueryCancellationAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 51;
+ onChanged();
+ return queryCancellationBuilder_;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java
index 202abcfc871..60532bd3a2c 100644
--- a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/SpannerActionOrBuilder.java
@@ -669,5 +669,40 @@ public interface SpannerActionOrBuilder
com.google.spanner.executor.v1.ExecuteChangeStreamQueryOrBuilder
getExecuteChangeStreamQueryOrBuilder();
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ *
+ * @return Whether the queryCancellation field is set.
+ */
+ boolean hasQueryCancellation();
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ *
+ * @return The queryCancellation.
+ */
+ com.google.spanner.executor.v1.QueryCancellationAction getQueryCancellation();
+ /**
+ *
+ *
+ *
+ * Query cancellation action for testing the cancellation of a query.
+ *
+ *
+ * .google.spanner.executor.v1.QueryCancellationAction query_cancellation = 51;
+ */
+ com.google.spanner.executor.v1.QueryCancellationActionOrBuilder getQueryCancellationOrBuilder();
+
com.google.spanner.executor.v1.SpannerAction.ActionCase getActionCase();
}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/proto/google/spanner/executor/v1/cloud_executor.proto b/proto-google-cloud-spanner-executor-v1/src/main/proto/google/spanner/executor/v1/cloud_executor.proto
index 3ad36e3ee30..05d662a5a1d 100644
--- a/proto-google-cloud-spanner-executor-v1/src/main/proto/google/spanner/executor/v1/cloud_executor.proto
+++ b/proto-google-cloud-spanner-executor-v1/src/main/proto/google/spanner/executor/v1/cloud_executor.proto
@@ -1,4 +1,4 @@
-// Copyright 2023 Google LLC
+// Copyright 2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -132,6 +132,9 @@ message SpannerAction {
// Action to execute change stream query.
ExecuteChangeStreamQuery execute_change_stream_query = 50;
+
+ // Query cancellation action for testing the cancellation of a query.
+ QueryCancellationAction query_cancellation = 51;
}
}
@@ -1048,6 +1051,16 @@ message GetOperationAction {
string operation = 1;
}
+// Query cancellation action defines the long running query and the cancel query
+// format depening on the Cloud database dialect.
+message QueryCancellationAction {
+ // Long running query.
+ string long_running_sql = 1;
+
+ // Format of the cancel query for the cloud database dialect.
+ string cancel_query = 2;
+}
+
// Action that cancels an operation.
message CancelOperationAction {
// The name of the operation resource to be cancelled.
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
index 24365c09f01..4211d78790e 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequest.java
@@ -46,6 +46,8 @@ private ReadRequest() {
columns_ = com.google.protobuf.LazyStringArrayList.emptyList();
resumeToken_ = com.google.protobuf.ByteString.EMPTY;
partitionToken_ = com.google.protobuf.ByteString.EMPTY;
+ orderBy_ = 0;
+ lockHint_ = 0;
}
@java.lang.Override
@@ -69,6 +71,402 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.spanner.v1.ReadRequest.Builder.class);
}
+ /**
+ *
+ *
+ *
+ * An option to control the order in which rows are returned from a read.
+ *
+ *
+ * Protobuf enum {@code google.spanner.v1.ReadRequest.OrderBy}
+ */
+ public enum OrderBy implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ * ORDER_BY_UNSPECIFIED is equivalent to ORDER_BY_PRIMARY_KEY.
+ *
+ *
+ * ORDER_BY_UNSPECIFIED = 0;
+ */
+ ORDER_BY_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Read rows are returned in primary key order.
+ *
+ * In the event that this option is used in conjunction with the
+ * `partition_token` field, the API will return an `INVALID_ARGUMENT` error.
+ *
+ *
+ * ORDER_BY_PRIMARY_KEY = 1;
+ */
+ ORDER_BY_PRIMARY_KEY(1),
+ /**
+ *
+ *
+ *
+ * Read rows are returned in any order.
+ *
+ *
+ * ORDER_BY_NO_ORDER = 2;
+ */
+ ORDER_BY_NO_ORDER(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ * ORDER_BY_UNSPECIFIED is equivalent to ORDER_BY_PRIMARY_KEY.
+ *
+ *
+ * ORDER_BY_UNSPECIFIED = 0;
+ */
+ public static final int ORDER_BY_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Read rows are returned in primary key order.
+ *
+ * In the event that this option is used in conjunction with the
+ * `partition_token` field, the API will return an `INVALID_ARGUMENT` error.
+ *
+ *
+ * ORDER_BY_PRIMARY_KEY = 1;
+ */
+ public static final int ORDER_BY_PRIMARY_KEY_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Read rows are returned in any order.
+ *
+ *
+ * ORDER_BY_NO_ORDER = 2;
+ */
+ public static final int ORDER_BY_NO_ORDER_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 OrderBy 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 OrderBy forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ORDER_BY_UNSPECIFIED;
+ case 1:
+ return ORDER_BY_PRIMARY_KEY;
+ case 2:
+ return ORDER_BY_NO_ORDER;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * A lock hint mechanism for reads done within a transaction.
+ *
+ *
+ * Protobuf enum {@code google.spanner.v1.ReadRequest.LockHint}
+ */
+ public enum LockHint implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ * LOCK_HINT_UNSPECIFIED is equivalent to LOCK_HINT_SHARED.
+ *
+ *
+ * LOCK_HINT_UNSPECIFIED = 0;
+ */
+ LOCK_HINT_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * Acquire shared locks.
+ *
+ * By default when you perform a read as part of a read-write transaction,
+ * Spanner acquires shared read locks, which allows other reads to still
+ * access the data until your transaction is ready to commit. When your
+ * transaction is committing and writes are being applied, the transaction
+ * attempts to upgrade to an exclusive lock for any data you are writing.
+ * For more information about locks, see [Lock
+ * modes](https://cloud.google.com/spanner/docs/introspection/lock-statistics#explain-lock-modes).
+ *
+ *
+ * LOCK_HINT_SHARED = 1;
+ */
+ LOCK_HINT_SHARED(1),
+ /**
+ *
+ *
+ *
+ * Acquire exclusive locks.
+ *
+ * Requesting exclusive locks is beneficial if you observe high write
+ * contention, which means you notice that multiple transactions are
+ * concurrently trying to read and write to the same data, resulting in a
+ * large number of aborts. This problem occurs when two transactions
+ * initially acquire shared locks and then both try to upgrade to exclusive
+ * locks at the same time. In this situation both transactions are waiting
+ * for the other to give up their lock, resulting in a deadlocked situation.
+ * Spanner is able to detect this occurring and force one of the
+ * transactions to abort. However, this is a slow and expensive operation
+ * and results in lower performance. In this case it makes sense to acquire
+ * exclusive locks at the start of the transaction because then when
+ * multiple transactions try to act on the same data, they automatically get
+ * serialized. Each transaction waits its turn to acquire the lock and
+ * avoids getting into deadlock situations.
+ *
+ * Because the exclusive lock hint is just a hint, it should not be
+ * considered equivalent to a mutex. In other words, you should not use
+ * Spanner exclusive locks as a mutual exclusion mechanism for the execution
+ * of code outside of Spanner.
+ *
+ * **Note:** Request exclusive locks judiciously because they block others
+ * from reading that data for the entire transaction, rather than just when
+ * the writes are being performed. Unless you observe high write contention,
+ * you should use the default of shared read locks so you don't prematurely
+ * block other clients from reading the data that you're writing to.
+ *
+ *
+ * LOCK_HINT_EXCLUSIVE = 2;
+ */
+ LOCK_HINT_EXCLUSIVE(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * Default value.
+ *
+ * LOCK_HINT_UNSPECIFIED is equivalent to LOCK_HINT_SHARED.
+ *
+ *
+ * LOCK_HINT_UNSPECIFIED = 0;
+ */
+ public static final int LOCK_HINT_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * Acquire shared locks.
+ *
+ * By default when you perform a read as part of a read-write transaction,
+ * Spanner acquires shared read locks, which allows other reads to still
+ * access the data until your transaction is ready to commit. When your
+ * transaction is committing and writes are being applied, the transaction
+ * attempts to upgrade to an exclusive lock for any data you are writing.
+ * For more information about locks, see [Lock
+ * modes](https://cloud.google.com/spanner/docs/introspection/lock-statistics#explain-lock-modes).
+ *
+ *
+ * LOCK_HINT_SHARED = 1;
+ */
+ public static final int LOCK_HINT_SHARED_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * Acquire exclusive locks.
+ *
+ * Requesting exclusive locks is beneficial if you observe high write
+ * contention, which means you notice that multiple transactions are
+ * concurrently trying to read and write to the same data, resulting in a
+ * large number of aborts. This problem occurs when two transactions
+ * initially acquire shared locks and then both try to upgrade to exclusive
+ * locks at the same time. In this situation both transactions are waiting
+ * for the other to give up their lock, resulting in a deadlocked situation.
+ * Spanner is able to detect this occurring and force one of the
+ * transactions to abort. However, this is a slow and expensive operation
+ * and results in lower performance. In this case it makes sense to acquire
+ * exclusive locks at the start of the transaction because then when
+ * multiple transactions try to act on the same data, they automatically get
+ * serialized. Each transaction waits its turn to acquire the lock and
+ * avoids getting into deadlock situations.
+ *
+ * Because the exclusive lock hint is just a hint, it should not be
+ * considered equivalent to a mutex. In other words, you should not use
+ * Spanner exclusive locks as a mutual exclusion mechanism for the execution
+ * of code outside of Spanner.
+ *
+ * **Note:** Request exclusive locks judiciously because they block others
+ * from reading that data for the entire transaction, rather than just when
+ * the writes are being performed. Unless you observe high write contention,
+ * you should use the default of shared read locks so you don't prematurely
+ * block other clients from reading the data that you're writing to.
+ *
+ *
+ * LOCK_HINT_EXCLUSIVE = 2;
+ */
+ public static final int LOCK_HINT_EXCLUSIVE_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 LockHint 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 LockHint forNumber(int value) {
+ switch (value) {
+ case 0:
+ return LOCK_HINT_UNSPECIFIED;
+ case 1:
+ return LOCK_HINT_SHARED;
+ case 2:
+ return LOCK_HINT_EXCLUSIVE;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for orderBy.
+ */
+ @java.lang.Override
+ public int getOrderByValue() {
+ return orderBy_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The orderBy.
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.ReadRequest.OrderBy getOrderBy() {
+ com.google.spanner.v1.ReadRequest.OrderBy result =
+ com.google.spanner.v1.ReadRequest.OrderBy.forNumber(orderBy_);
+ return result == null ? com.google.spanner.v1.ReadRequest.OrderBy.UNRECOGNIZED : result;
+ }
+
+ public static final int LOCK_HINT_FIELD_NUMBER = 17;
+ private int lockHint_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for lockHint.
+ */
+ @java.lang.Override
+ public int getLockHintValue() {
+ return lockHint_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The lockHint.
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.ReadRequest.LockHint getLockHint() {
+ com.google.spanner.v1.ReadRequest.LockHint result =
+ com.google.spanner.v1.ReadRequest.LockHint.forNumber(lockHint_);
+ return result == null ? com.google.spanner.v1.ReadRequest.LockHint.UNRECOGNIZED : result;
+ }
+
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -685,6 +1175,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (dataBoostEnabled_ != false) {
output.writeBool(15, dataBoostEnabled_);
}
+ if (orderBy_ != com.google.spanner.v1.ReadRequest.OrderBy.ORDER_BY_UNSPECIFIED.getNumber()) {
+ output.writeEnum(16, orderBy_);
+ }
+ if (lockHint_ != com.google.spanner.v1.ReadRequest.LockHint.LOCK_HINT_UNSPECIFIED.getNumber()) {
+ output.writeEnum(17, lockHint_);
+ }
getUnknownFields().writeTo(output);
}
@@ -736,6 +1232,12 @@ public int getSerializedSize() {
if (dataBoostEnabled_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, dataBoostEnabled_);
}
+ if (orderBy_ != com.google.spanner.v1.ReadRequest.OrderBy.ORDER_BY_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, orderBy_);
+ }
+ if (lockHint_ != com.google.spanner.v1.ReadRequest.LockHint.LOCK_HINT_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, lockHint_);
+ }
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
@@ -775,6 +1277,8 @@ public boolean equals(final java.lang.Object obj) {
if (!getDirectedReadOptions().equals(other.getDirectedReadOptions())) return false;
}
if (getDataBoostEnabled() != other.getDataBoostEnabled()) return false;
+ if (orderBy_ != other.orderBy_) return false;
+ if (lockHint_ != other.lockHint_) return false;
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@@ -820,6 +1324,10 @@ public int hashCode() {
}
hash = (37 * hash) + DATA_BOOST_ENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataBoostEnabled());
+ hash = (37 * hash) + ORDER_BY_FIELD_NUMBER;
+ hash = (53 * hash) + orderBy_;
+ hash = (37 * hash) + LOCK_HINT_FIELD_NUMBER;
+ hash = (53 * hash) + lockHint_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
@@ -999,6 +1507,8 @@ public Builder clear() {
directedReadOptionsBuilder_ = null;
}
dataBoostEnabled_ = false;
+ orderBy_ = 0;
+ lockHint_ = 0;
return this;
}
@@ -1081,6 +1591,12 @@ private void buildPartial0(com.google.spanner.v1.ReadRequest result) {
if (((from_bitField0_ & 0x00000800) != 0)) {
result.dataBoostEnabled_ = dataBoostEnabled_;
}
+ if (((from_bitField0_ & 0x00001000) != 0)) {
+ result.orderBy_ = orderBy_;
+ }
+ if (((from_bitField0_ & 0x00002000) != 0)) {
+ result.lockHint_ = lockHint_;
+ }
result.bitField0_ |= to_bitField0_;
}
@@ -1178,6 +1694,12 @@ public Builder mergeFrom(com.google.spanner.v1.ReadRequest other) {
if (other.getDataBoostEnabled() != false) {
setDataBoostEnabled(other.getDataBoostEnabled());
}
+ if (other.orderBy_ != 0) {
+ setOrderByValue(other.getOrderByValue());
+ }
+ if (other.lockHint_ != 0) {
+ setLockHintValue(other.getLockHintValue());
+ }
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
@@ -1278,6 +1800,18 @@ public Builder mergeFrom(
bitField0_ |= 0x00000800;
break;
} // case 120
+ case 128:
+ {
+ orderBy_ = input.readEnum();
+ bitField0_ |= 0x00001000;
+ break;
+ } // case 128
+ case 136:
+ {
+ lockHint_ = input.readEnum();
+ bitField0_ |= 0x00002000;
+ break;
+ } // case 136
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
@@ -2974,6 +3508,241 @@ public Builder clearDataBoostEnabled() {
return this;
}
+ private int orderBy_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for orderBy.
+ */
+ @java.lang.Override
+ public int getOrderByValue() {
+ return orderBy_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for orderBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrderByValue(int value) {
+ orderBy_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The orderBy.
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.ReadRequest.OrderBy getOrderBy() {
+ com.google.spanner.v1.ReadRequest.OrderBy result =
+ com.google.spanner.v1.ReadRequest.OrderBy.forNumber(orderBy_);
+ return result == null ? com.google.spanner.v1.ReadRequest.OrderBy.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The orderBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrderBy(com.google.spanner.v1.ReadRequest.OrderBy value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00001000;
+ orderBy_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOrderBy() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ orderBy_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int lockHint_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for lockHint.
+ */
+ @java.lang.Override
+ public int getLockHintValue() {
+ return lockHint_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for lockHint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLockHintValue(int value) {
+ lockHint_ = value;
+ bitField0_ |= 0x00002000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The lockHint.
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.ReadRequest.LockHint getLockHint() {
+ com.google.spanner.v1.ReadRequest.LockHint result =
+ com.google.spanner.v1.ReadRequest.LockHint.forNumber(lockHint_);
+ return result == null ? com.google.spanner.v1.ReadRequest.LockHint.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The lockHint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLockHint(com.google.spanner.v1.ReadRequest.LockHint value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00002000;
+ lockHint_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLockHint() {
+ bitField0_ = (bitField0_ & ~0x00002000);
+ lockHint_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
index 16358d0d5e0..0c0f8ee4bce 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/ReadRequestOrBuilder.java
@@ -421,4 +421,76 @@ public interface ReadRequestOrBuilder
* @return The dataBoostEnabled.
*/
boolean getDataBoostEnabled();
+
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for orderBy.
+ */
+ int getOrderByValue();
+ /**
+ *
+ *
+ *
+ * Optional. Order for the returned rows.
+ *
+ * By default, Spanner will return result rows in primary key order except for
+ * PartitionRead requests. For applications that do not require rows to be
+ * returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
+ * `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
+ * resulting in lower latencies in certain cases (e.g. bulk point lookups).
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.OrderBy order_by = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The orderBy.
+ */
+ com.google.spanner.v1.ReadRequest.OrderBy getOrderBy();
+
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for lockHint.
+ */
+ int getLockHintValue();
+ /**
+ *
+ *
+ *
+ * Optional. Lock Hint for the request, it can only be used with read-write
+ * transactions.
+ *
+ *
+ *
+ * .google.spanner.v1.ReadRequest.LockHint lock_hint = 17 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The lockHint.
+ */
+ com.google.spanner.v1.ReadRequest.LockHint getLockHint();
}
diff --git a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
index e035529b2ae..ece283f5632 100644
--- a/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
+++ b/proto-google-cloud-spanner-v1/src/main/java/com/google/spanner/v1/SpannerProto.java
@@ -298,7 +298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\n\017partition_token\030\001 \001(\014\"z\n\021PartitionResp"
+ "onse\0220\n\npartitions\030\001 \003(\0132\034.google.spanne"
+ "r.v1.Partition\0223\n\013transaction\030\002 \001(\0132\036.go"
- + "ogle.spanner.v1.Transaction\"\312\003\n\013ReadRequ"
+ + "ogle.spanner.v1.Transaction\"\366\005\n\013ReadRequ"
+ "est\0227\n\007session\030\001 \001(\tB&\340A\002\372A \n\036spanner.go"
+ "ogleapis.com/Session\022;\n\013transaction\030\002 \001("
+ "\0132&.google.spanner.v1.TransactionSelecto"
@@ -310,120 +310,128 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "gle.spanner.v1.RequestOptions\022E\n\025directe"
+ "d_read_options\030\016 \001(\0132&.google.spanner.v1"
+ ".DirectedReadOptions\022\032\n\022data_boost_enabl"
- + "ed\030\017 \001(\010\"\313\001\n\027BeginTransactionRequest\0227\n\007"
- + "session\030\001 \001(\tB&\340A\002\372A \n\036spanner.googleapi"
- + "s.com/Session\022;\n\007options\030\002 \001(\0132%.google."
- + "spanner.v1.TransactionOptionsB\003\340A\002\022:\n\017re"
- + "quest_options\030\003 \001(\0132!.google.spanner.v1."
- + "RequestOptions\"\375\002\n\rCommitRequest\0227\n\007sess"
- + "ion\030\001 \001(\tB&\340A\002\372A \n\036spanner.googleapis.co"
- + "m/Session\022\030\n\016transaction_id\030\002 \001(\014H\000\022G\n\026s"
- + "ingle_use_transaction\030\003 \001(\0132%.google.spa"
- + "nner.v1.TransactionOptionsH\000\022.\n\tmutation"
- + "s\030\004 \003(\0132\033.google.spanner.v1.Mutation\022\033\n\023"
- + "return_commit_stats\030\005 \001(\010\0228\n\020max_commit_"
- + "delay\030\010 \001(\0132\031.google.protobuf.DurationB\003"
- + "\340A\001\022:\n\017request_options\030\006 \001(\0132!.google.sp"
- + "anner.v1.RequestOptionsB\r\n\013transaction\"g"
- + "\n\017RollbackRequest\0227\n\007session\030\001 \001(\tB&\340A\002\372"
- + "A \n\036spanner.googleapis.com/Session\022\033\n\016tr"
- + "ansaction_id\030\002 \001(\014B\003\340A\002\"\316\002\n\021BatchWriteRe"
- + "quest\0227\n\007session\030\001 \001(\tB&\340A\002\372A \n\036spanner."
- + "googleapis.com/Session\022:\n\017request_option"
- + "s\030\003 \001(\0132!.google.spanner.v1.RequestOptio"
- + "ns\022P\n\017mutation_groups\030\004 \003(\01322.google.spa"
- + "nner.v1.BatchWriteRequest.MutationGroupB"
- + "\003\340A\002\022,\n\037exclude_txn_from_change_streams\030"
- + "\005 \001(\010B\003\340A\001\032D\n\rMutationGroup\0223\n\tmutations"
- + "\030\001 \003(\0132\033.google.spanner.v1.MutationB\003\340A\002"
- + "\"\177\n\022BatchWriteResponse\022\017\n\007indexes\030\001 \003(\005\022"
- + "\"\n\006status\030\002 \001(\0132\022.google.rpc.Status\0224\n\020c"
- + "ommit_timestamp\030\003 \001(\0132\032.google.protobuf."
- + "Timestamp2\213\030\n\007Spanner\022\246\001\n\rCreateSession\022"
- + "\'.google.spanner.v1.CreateSessionRequest"
- + "\032\032.google.spanner.v1.Session\"P\332A\010databas"
- + "e\202\323\344\223\002?\":/v1/{database=projects/*/instan"
- + "ces/*/databases/*}/sessions:\001*\022\340\001\n\023Batch"
- + "CreateSessions\022-.google.spanner.v1.Batch"
- + "CreateSessionsRequest\032..google.spanner.v"
- + "1.BatchCreateSessionsResponse\"j\332A\026databa"
- + "se,session_count\202\323\344\223\002K\"F/v1/{database=pr"
- + "ojects/*/instances/*/databases/*}/sessio"
- + "ns:batchCreate:\001*\022\227\001\n\nGetSession\022$.googl"
- + "e.spanner.v1.GetSessionRequest\032\032.google."
- + "spanner.v1.Session\"G\332A\004name\202\323\344\223\002:\0228/v1/{"
- + "name=projects/*/instances/*/databases/*/"
- + "sessions/*}\022\256\001\n\014ListSessions\022&.google.sp"
- + "anner.v1.ListSessionsRequest\032\'.google.sp"
- + "anner.v1.ListSessionsResponse\"M\332A\010databa"
- + "se\202\323\344\223\002<\022:/v1/{database=projects/*/insta"
- + "nces/*/databases/*}/sessions\022\231\001\n\rDeleteS"
- + "ession\022\'.google.spanner.v1.DeleteSession"
- + "Request\032\026.google.protobuf.Empty\"G\332A\004name"
- + "\202\323\344\223\002:*8/v1/{name=projects/*/instances/*"
- + "/databases/*/sessions/*}\022\243\001\n\nExecuteSql\022"
- + "$.google.spanner.v1.ExecuteSqlRequest\032\034."
- + "google.spanner.v1.ResultSet\"Q\202\323\344\223\002K\"F/v1"
- + "/{session=projects/*/instances/*/databas"
- + "es/*/sessions/*}:executeSql:\001*\022\276\001\n\023Execu"
- + "teStreamingSql\022$.google.spanner.v1.Execu"
- + "teSqlRequest\032#.google.spanner.v1.Partial"
- + "ResultSet\"Z\202\323\344\223\002T\"O/v1/{session=projects"
- + "/*/instances/*/databases/*/sessions/*}:e"
- + "xecuteStreamingSql:\001*0\001\022\300\001\n\017ExecuteBatch"
- + "Dml\022).google.spanner.v1.ExecuteBatchDmlR"
- + "equest\032*.google.spanner.v1.ExecuteBatchD"
- + "mlResponse\"V\202\323\344\223\002P\"K/v1/{session=project"
- + "s/*/instances/*/databases/*/sessions/*}:"
- + "executeBatchDml:\001*\022\221\001\n\004Read\022\036.google.spa"
- + "nner.v1.ReadRequest\032\034.google.spanner.v1."
- + "ResultSet\"K\202\323\344\223\002E\"@/v1/{session=projects"
- + "/*/instances/*/databases/*/sessions/*}:r"
- + "ead:\001*\022\254\001\n\rStreamingRead\022\036.google.spanne"
- + "r.v1.ReadRequest\032#.google.spanner.v1.Par"
- + "tialResultSet\"T\202\323\344\223\002N\"I/v1/{session=proj"
- + "ects/*/instances/*/databases/*/sessions/"
- + "*}:streamingRead:\001*0\001\022\311\001\n\020BeginTransacti"
- + "on\022*.google.spanner.v1.BeginTransactionR"
- + "equest\032\036.google.spanner.v1.Transaction\"i"
- + "\332A\017session,options\202\323\344\223\002Q\"L/v1/{session=p"
- + "rojects/*/instances/*/databases/*/sessio"
- + "ns/*}:beginTransaction:\001*\022\353\001\n\006Commit\022 .g"
- + "oogle.spanner.v1.CommitRequest\032!.google."
- + "spanner.v1.CommitResponse\"\233\001\332A session,t"
- + "ransaction_id,mutations\332A(session,single"
- + "_use_transaction,mutations\202\323\344\223\002G\"B/v1/{s"
- + "ession=projects/*/instances/*/databases/"
- + "*/sessions/*}:commit:\001*\022\260\001\n\010Rollback\022\".g"
- + "oogle.spanner.v1.RollbackRequest\032\026.googl"
- + "e.protobuf.Empty\"h\332A\026session,transaction"
- + "_id\202\323\344\223\002I\"D/v1/{session=projects/*/insta"
- + "nces/*/databases/*/sessions/*}:rollback:"
- + "\001*\022\267\001\n\016PartitionQuery\022(.google.spanner.v"
- + "1.PartitionQueryRequest\032$.google.spanner"
- + ".v1.PartitionResponse\"U\202\323\344\223\002O\"J/v1/{sess"
+ + "ed\030\017 \001(\010\022=\n\010order_by\030\020 \001(\0162&.google.span"
+ + "ner.v1.ReadRequest.OrderByB\003\340A\001\022?\n\tlock_"
+ + "hint\030\021 \001(\0162\'.google.spanner.v1.ReadReque"
+ + "st.LockHintB\003\340A\001\"T\n\007OrderBy\022\030\n\024ORDER_BY_"
+ + "UNSPECIFIED\020\000\022\030\n\024ORDER_BY_PRIMARY_KEY\020\001\022"
+ + "\025\n\021ORDER_BY_NO_ORDER\020\002\"T\n\010LockHint\022\031\n\025LO"
+ + "CK_HINT_UNSPECIFIED\020\000\022\024\n\020LOCK_HINT_SHARE"
+ + "D\020\001\022\027\n\023LOCK_HINT_EXCLUSIVE\020\002\"\313\001\n\027BeginTr"
+ + "ansactionRequest\0227\n\007session\030\001 \001(\tB&\340A\002\372A"
+ + " \n\036spanner.googleapis.com/Session\022;\n\007opt"
+ + "ions\030\002 \001(\0132%.google.spanner.v1.Transacti"
+ + "onOptionsB\003\340A\002\022:\n\017request_options\030\003 \001(\0132"
+ + "!.google.spanner.v1.RequestOptions\"\375\002\n\rC"
+ + "ommitRequest\0227\n\007session\030\001 \001(\tB&\340A\002\372A \n\036s"
+ + "panner.googleapis.com/Session\022\030\n\016transac"
+ + "tion_id\030\002 \001(\014H\000\022G\n\026single_use_transactio"
+ + "n\030\003 \001(\0132%.google.spanner.v1.TransactionO"
+ + "ptionsH\000\022.\n\tmutations\030\004 \003(\0132\033.google.spa"
+ + "nner.v1.Mutation\022\033\n\023return_commit_stats\030"
+ + "\005 \001(\010\0228\n\020max_commit_delay\030\010 \001(\0132\031.google"
+ + ".protobuf.DurationB\003\340A\001\022:\n\017request_optio"
+ + "ns\030\006 \001(\0132!.google.spanner.v1.RequestOpti"
+ + "onsB\r\n\013transaction\"g\n\017RollbackRequest\0227\n"
+ + "\007session\030\001 \001(\tB&\340A\002\372A \n\036spanner.googleap"
+ + "is.com/Session\022\033\n\016transaction_id\030\002 \001(\014B\003"
+ + "\340A\002\"\316\002\n\021BatchWriteRequest\0227\n\007session\030\001 \001"
+ + "(\tB&\340A\002\372A \n\036spanner.googleapis.com/Sessi"
+ + "on\022:\n\017request_options\030\003 \001(\0132!.google.spa"
+ + "nner.v1.RequestOptions\022P\n\017mutation_group"
+ + "s\030\004 \003(\01322.google.spanner.v1.BatchWriteRe"
+ + "quest.MutationGroupB\003\340A\002\022,\n\037exclude_txn_"
+ + "from_change_streams\030\005 \001(\010B\003\340A\001\032D\n\rMutati"
+ + "onGroup\0223\n\tmutations\030\001 \003(\0132\033.google.span"
+ + "ner.v1.MutationB\003\340A\002\"\177\n\022BatchWriteRespon"
+ + "se\022\017\n\007indexes\030\001 \003(\005\022\"\n\006status\030\002 \001(\0132\022.go"
+ + "ogle.rpc.Status\0224\n\020commit_timestamp\030\003 \001("
+ + "\0132\032.google.protobuf.Timestamp2\213\030\n\007Spanne"
+ + "r\022\246\001\n\rCreateSession\022\'.google.spanner.v1."
+ + "CreateSessionRequest\032\032.google.spanner.v1"
+ + ".Session\"P\332A\010database\202\323\344\223\002?\":/v1/{databa"
+ + "se=projects/*/instances/*/databases/*}/s"
+ + "essions:\001*\022\340\001\n\023BatchCreateSessions\022-.goo"
+ + "gle.spanner.v1.BatchCreateSessionsReques"
+ + "t\032..google.spanner.v1.BatchCreateSession"
+ + "sResponse\"j\332A\026database,session_count\202\323\344\223"
+ + "\002K\"F/v1/{database=projects/*/instances/*"
+ + "/databases/*}/sessions:batchCreate:\001*\022\227\001"
+ + "\n\nGetSession\022$.google.spanner.v1.GetSess"
+ + "ionRequest\032\032.google.spanner.v1.Session\"G"
+ + "\332A\004name\202\323\344\223\002:\0228/v1/{name=projects/*/inst"
+ + "ances/*/databases/*/sessions/*}\022\256\001\n\014List"
+ + "Sessions\022&.google.spanner.v1.ListSession"
+ + "sRequest\032\'.google.spanner.v1.ListSession"
+ + "sResponse\"M\332A\010database\202\323\344\223\002<\022:/v1/{datab"
+ + "ase=projects/*/instances/*/databases/*}/"
+ + "sessions\022\231\001\n\rDeleteSession\022\'.google.span"
+ + "ner.v1.DeleteSessionRequest\032\026.google.pro"
+ + "tobuf.Empty\"G\332A\004name\202\323\344\223\002:*8/v1/{name=pr"
+ + "ojects/*/instances/*/databases/*/session"
+ + "s/*}\022\243\001\n\nExecuteSql\022$.google.spanner.v1."
+ + "ExecuteSqlRequest\032\034.google.spanner.v1.Re"
+ + "sultSet\"Q\202\323\344\223\002K\"F/v1/{session=projects/*"
+ + "/instances/*/databases/*/sessions/*}:exe"
+ + "cuteSql:\001*\022\276\001\n\023ExecuteStreamingSql\022$.goo"
+ + "gle.spanner.v1.ExecuteSqlRequest\032#.googl"
+ + "e.spanner.v1.PartialResultSet\"Z\202\323\344\223\002T\"O/"
+ + "v1/{session=projects/*/instances/*/datab"
+ + "ases/*/sessions/*}:executeStreamingSql:\001"
+ + "*0\001\022\300\001\n\017ExecuteBatchDml\022).google.spanner"
+ + ".v1.ExecuteBatchDmlRequest\032*.google.span"
+ + "ner.v1.ExecuteBatchDmlResponse\"V\202\323\344\223\002P\"K"
+ + "/v1/{session=projects/*/instances/*/data"
+ + "bases/*/sessions/*}:executeBatchDml:\001*\022\221"
+ + "\001\n\004Read\022\036.google.spanner.v1.ReadRequest\032"
+ + "\034.google.spanner.v1.ResultSet\"K\202\323\344\223\002E\"@/"
+ + "v1/{session=projects/*/instances/*/datab"
+ + "ases/*/sessions/*}:read:\001*\022\254\001\n\rStreaming"
+ + "Read\022\036.google.spanner.v1.ReadRequest\032#.g"
+ + "oogle.spanner.v1.PartialResultSet\"T\202\323\344\223\002"
+ + "N\"I/v1/{session=projects/*/instances/*/d"
+ + "atabases/*/sessions/*}:streamingRead:\001*0"
+ + "\001\022\311\001\n\020BeginTransaction\022*.google.spanner."
+ + "v1.BeginTransactionRequest\032\036.google.span"
+ + "ner.v1.Transaction\"i\332A\017session,options\202\323"
+ + "\344\223\002Q\"L/v1/{session=projects/*/instances/"
+ + "*/databases/*/sessions/*}:beginTransacti"
+ + "on:\001*\022\353\001\n\006Commit\022 .google.spanner.v1.Com"
+ + "mitRequest\032!.google.spanner.v1.CommitRes"
+ + "ponse\"\233\001\332A session,transaction_id,mutati"
+ + "ons\332A(session,single_use_transaction,mut"
+ + "ations\202\323\344\223\002G\"B/v1/{session=projects/*/in"
+ + "stances/*/databases/*/sessions/*}:commit"
+ + ":\001*\022\260\001\n\010Rollback\022\".google.spanner.v1.Rol"
+ + "lbackRequest\032\026.google.protobuf.Empty\"h\332A"
+ + "\026session,transaction_id\202\323\344\223\002I\"D/v1/{sess"
+ "ion=projects/*/instances/*/databases/*/s"
- + "essions/*}:partitionQuery:\001*\022\264\001\n\rPartiti"
- + "onRead\022\'.google.spanner.v1.PartitionRead"
- + "Request\032$.google.spanner.v1.PartitionRes"
- + "ponse\"T\202\323\344\223\002N\"I/v1/{session=projects/*/i"
- + "nstances/*/databases/*/sessions/*}:parti"
- + "tionRead:\001*\022\310\001\n\nBatchWrite\022$.google.span"
- + "ner.v1.BatchWriteRequest\032%.google.spanne"
- + "r.v1.BatchWriteResponse\"k\332A\027session,muta"
- + "tion_groups\202\323\344\223\002K\"F/v1/{session=projects"
- + "/*/instances/*/databases/*/sessions/*}:b"
- + "atchWrite:\001*0\001\032w\312A\026spanner.googleapis.co"
- + "m\322A[https://www.googleapis.com/auth/clou"
- + "d-platform,https://www.googleapis.com/au"
- + "th/spanner.dataB\221\002\n\025com.google.spanner.v"
- + "1B\014SpannerProtoP\001Z5cloud.google.com/go/s"
- + "panner/apiv1/spannerpb;spannerpb\252\002\027Googl"
- + "e.Cloud.Spanner.V1\312\002\027Google\\Cloud\\Spanne"
- + "r\\V1\352\002\032Google::Cloud::Spanner::V1\352A_\n\037sp"
- + "anner.googleapis.com/Database\022