From 45a84f8d1b56bcb7cef62fcd86b758e73f5c0edc Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Tue, 11 Jul 2023 21:54:40 +0000
Subject: [PATCH 01/22] chore(main): release 6.43.3-SNAPSHOT (#2522)
:robot: I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
---
google-cloud-spanner-bom/pom.xml | 20 +++++++++----------
google-cloud-spanner-executor/pom.xml | 4 ++--
google-cloud-spanner/pom.xml | 4 ++--
.../pom.xml | 4 ++--
.../pom.xml | 4 ++--
grpc-google-cloud-spanner-v1/pom.xml | 4 ++--
pom.xml | 16 +++++++--------
.../pom.xml | 4 ++--
.../pom.xml | 4 ++--
proto-google-cloud-spanner-v1/pom.xml | 4 ++--
samples/snapshot/pom.xml | 2 +-
versions.txt | 16 +++++++--------
12 files changed, 43 insertions(+), 43 deletions(-)
diff --git a/google-cloud-spanner-bom/pom.xml b/google-cloud-spanner-bom/pom.xml
index 28e386173c1..4300c4fdac8 100644
--- a/google-cloud-spanner-bom/pom.xml
+++ b/google-cloud-spanner-bom/pom.xml
@@ -3,7 +3,7 @@
Sourced from cryptography's changelog. 41.0.2 - 2023-07-10 .. _v41-0-1: 41.0.1 - 2023-06-01
Changelog
* Fixed bugs in creating and parsing SSH certificates where critical options
with values were handled incorrectly. Certificates are now created correctly
and parsing accepts correct values as well as the previously generated
invalid forms with a warning. In the next release, support for parsing these
invalid forms will be removed.
.. _v41-0-0:
41.0.0 - 2023-05-30
* **BACKWARDS INCOMPATIBLE:** Support for OpenSSL less than 1.1.1d has been
removed. Users on older version of OpenSSL will need to upgrade.
* **BACKWARDS INCOMPATIBLE:** Support for Python 3.6 has been removed.
* **BACKWARDS INCOMPATIBLE:** Dropped support for LibreSSL < 3.6.
* Updated the minimum supported Rust version (MSRV) to 1.56.0, from 1.48.0.
* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL 3.1.1.
* Added support for the :class:`~cryptography.x509.OCSPAcceptableResponses`
OCSP extension.
* Added support for the :class:`~cryptography.x509.MSCertificateTemplate`
proprietary Microsoft certificate extension.
* Implemented support for equality checks on all asymmetric public key types.
* Added support for ``aes256-gcm@openssh.com`` encrypted keys in
:func:`~cryptography.hazmat.primitives.serialization.load_ssh_private_key`.
* Added support for obtaining X.509 certificate signature algorithm parameters
(including PSS) via
:meth:`~cryptography.x509.Certificate.signature_algorithm_parameters`.
* Support signing :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS`
X.509 certificates via the new keyword-only argument ``rsa_padding`` on
:meth:`~cryptography.x509.CertificateBuilder.sign`.
* Added support for
:class:`~cryptography.hazmat.primitives.ciphers.aead.ChaCha20Poly1305`
on BoringSSL.
.. _v40-0-2:
40.0.2 - 2023-04-14
... (truncated)
7431db7
bump for 41.0.2 (#9215)e190ef1
Backport ssh cert fix (#9211)bb204c8
Backport: Added PyPy 3.10 to CI (#8933) (#9210)d02de9f
changelog and version bump (#9008)53dc686
Backport null fix (#9007)b999005
Backport tolerate (#9006)c4d494f
41.0.0 version bump (#8991)8708245
new openssl day (#8990)31436a4
admit to the existence of nuance in HKDF (#8987)91e4189
Port DSA to Rust (#8978)* 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -449,11 +446,13 @@ public java.lang.String getName() { *@@ -2724,8 +2749,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2752,8 +2779,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2780,8 +2809,10 @@ public Builder addAllEncryptionInfo( * 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2807,8 +2838,10 @@ public Builder clearEncryptionInfo() { * 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2834,8 +2867,10 @@ public Builder removeEncryptionInfo(int index) { * 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2855,8 +2890,10 @@ public com.google.spanner.admin.database.v1.EncryptionInfo.Builder getEncryption * 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2880,8 +2917,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2905,8 +2944,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2926,8 +2967,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -2949,8 +2992,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. * @@ -3359,6 +3404,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -592,7 +591,8 @@ public com.google.spanner.admin.database.v1.Backup.State getState() { public static final int REFERENCING_DATABASES_FIELD_NUMBER = 7; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList referencingDatabases_; + private com.google.protobuf.LazyStringArrayList referencingDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -784,7 +784,8 @@ public com.google.spanner.admin.database.v1.DatabaseDialect getDatabaseDialect() public static final int REFERENCING_BACKUPS_FIELD_NUMBER = 11; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList referencingBackups_; + private com.google.protobuf.LazyStringArrayList referencingBackups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -1304,16 +1305,14 @@ public Builder clear() { } sizeBytes_ = 0L; state_ = 0; - referencingDatabases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); + referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); encryptionInfo_ = null; if (encryptionInfoBuilder_ != null) { encryptionInfoBuilder_.dispose(); encryptionInfoBuilder_ = null; } databaseDialect_ = 0; - referencingBackups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000400); + referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); maxExpireTime_ = null; if (maxExpireTimeBuilder_ != null) { maxExpireTimeBuilder_.dispose(); @@ -1346,7 +1345,6 @@ 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); } @@ -1354,19 +1352,6 @@ public com.google.spanner.admin.database.v1.Backup buildPartial() { return result; } - private void buildPartialRepeatedFields(com.google.spanner.admin.database.v1.Backup result) { - if (((bitField0_ & 0x00000080) != 0)) { - referencingDatabases_ = referencingDatabases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.referencingDatabases_ = referencingDatabases_; - if (((bitField0_ & 0x00000400) != 0)) { - referencingBackups_ = referencingBackups_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000400); - } - result.referencingBackups_ = referencingBackups_; - } - private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -1391,6 +1376,10 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { if (((from_bitField0_ & 0x00000040) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000080) != 0)) { + referencingDatabases_.makeImmutable(); + result.referencingDatabases_ = referencingDatabases_; + } if (((from_bitField0_ & 0x00000100) != 0)) { result.encryptionInfo_ = encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); @@ -1398,6 +1387,10 @@ private void buildPartial0(com.google.spanner.admin.database.v1.Backup result) { if (((from_bitField0_ & 0x00000200) != 0)) { result.databaseDialect_ = databaseDialect_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + referencingBackups_.makeImmutable(); + result.referencingBackups_ = referencingBackups_; + } if (((from_bitField0_ & 0x00000800) != 0)) { result.maxExpireTime_ = maxExpireTimeBuilder_ == null ? maxExpireTime_ : maxExpireTimeBuilder_.build(); @@ -1477,7 +1470,7 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.Backup other) { if (!other.referencingDatabases_.isEmpty()) { if (referencingDatabases_.isEmpty()) { referencingDatabases_ = other.referencingDatabases_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ |= 0x00000080; } else { ensureReferencingDatabasesIsMutable(); referencingDatabases_.addAll(other.referencingDatabases_); @@ -1493,7 +1486,7 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.Backup other) { if (!other.referencingBackups_.isEmpty()) { if (referencingBackups_.isEmpty()) { referencingBackups_ = other.referencingBackups_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ |= 0x00000400; } else { ensureReferencingBackupsIsMutable(); referencingBackups_.addAll(other.referencingBackups_); @@ -2193,11 +2186,13 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { *@@ -2696,8 +2719,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -2225,11 +2220,13 @@ public java.lang.String getName() { *@@ -2665,8 +2686,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -2257,11 +2254,13 @@ public com.google.protobuf.ByteString getNameBytes() { *@@ -2635,8 +2654,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -2288,11 +2287,13 @@ public Builder setName(java.lang.String value) { *@@ -2607,8 +2624,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -2315,11 +2316,13 @@ public Builder clearName() { *@@ -2576,8 +2591,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -2716,14 +2719,14 @@ public Builder clearState() { return this; } - private com.google.protobuf.LazyStringList referencingDatabases_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList referencingDatabases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureReferencingDatabasesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!referencingDatabases_.isModifiable()) { referencingDatabases_ = new com.google.protobuf.LazyStringArrayList(referencingDatabases_); - bitField0_ |= 0x00000080; } + bitField0_ |= 0x00000080; } /** * @@ -2745,7 +2748,8 @@ private void ensureReferencingDatabasesIsMutable() { * @return A list containing the referencingDatabases. */ public com.google.protobuf.ProtocolStringList getReferencingDatabasesList() { - return referencingDatabases_.getUnmodifiableView(); + referencingDatabases_.makeImmutable(); + return referencingDatabases_; } /** * @@ -2842,6 +2846,7 @@ public Builder setReferencingDatabases(int index, java.lang.String value) { } ensureReferencingDatabasesIsMutable(); referencingDatabases_.set(index, value); + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2871,6 +2876,7 @@ public Builder addReferencingDatabases(java.lang.String value) { } ensureReferencingDatabasesIsMutable(); referencingDatabases_.add(value); + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2897,6 +2903,7 @@ public Builder addReferencingDatabases(java.lang.String value) { public Builder addAllReferencingDatabases(java.lang.Iterable@@ -789,6 +796,7 @@ public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder() *values) { ensureReferencingDatabasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referencingDatabases_); + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2920,8 +2927,9 @@ public Builder addAllReferencingDatabases(java.lang.Iterable v * @return This builder for chaining. */ public Builder clearReferencingDatabases() { - referencingDatabases_ = com.google.protobuf.LazyStringArrayList.EMPTY; + referencingDatabases_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); + ; onChanged(); return this; } @@ -2952,6 +2960,7 @@ public Builder addReferencingDatabasesBytes(com.google.protobuf.ByteString value checkByteStringIsUtf8(value); ensureReferencingDatabasesIsMutable(); referencingDatabases_.add(value); + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3262,14 +3271,14 @@ public Builder clearDatabaseDialect() { return this; } - private com.google.protobuf.LazyStringList referencingBackups_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList referencingBackups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureReferencingBackupsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!referencingBackups_.isModifiable()) { referencingBackups_ = new com.google.protobuf.LazyStringArrayList(referencingBackups_); - bitField0_ |= 0x00000400; } + bitField0_ |= 0x00000400; } /** * @@ -3291,7 +3300,8 @@ private void ensureReferencingBackupsIsMutable() { * @return A list containing the referencingBackups. */ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { - return referencingBackups_.getUnmodifiableView(); + referencingBackups_.makeImmutable(); + return referencingBackups_; } /** * @@ -3388,6 +3398,7 @@ public Builder setReferencingBackups(int index, java.lang.String value) { } ensureReferencingBackupsIsMutable(); referencingBackups_.set(index, value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3417,6 +3428,7 @@ public Builder addReferencingBackups(java.lang.String value) { } ensureReferencingBackupsIsMutable(); referencingBackups_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3443,6 +3455,7 @@ public Builder addReferencingBackups(java.lang.String value) { public Builder addAllReferencingBackups(java.lang.Iterable values) { ensureReferencingBackupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referencingBackups_); + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3466,8 +3479,9 @@ public Builder addAllReferencingBackups(java.lang.Iterable val * @return This builder for chaining. */ public Builder clearReferencingBackups() { - referencingBackups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000400); + ; onChanged(); return this; } @@ -3498,6 +3512,7 @@ public Builder addReferencingBackupsBytes(com.google.protobuf.ByteString value) checkByteStringIsUtf8(value); ensureReferencingBackupsIsMutable(); referencingBackups_.add(value); + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java index 978bcbcccb9..0bb89ec6c08 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupInfo.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BackupInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_BackupInfo_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java index 3c1ab293524..6cb52a86fee 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/BackupName.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 e3fe5ccf08c..77a157a819b 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 @@ -156,11 +156,13 @@ 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. + * * A globally unique identifier for the backup which cannot be * changed. Values are of the form * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form @@ -178,11 +180,13 @@ public interface BackupOrBuilder *@@ -636,8 +641,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** 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 * `projects/<project>/instances/<instance>/backups/[a-z][a-z0-9_\-]*[a-z0-9]` * The final segment of the name must be between 2 and 60 characters * in length. + * * The backup is stored in the location(s) specified in the instance * configuration of the instance containing the backup, identified * by the prefix of the backup name of the form 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 0d0d3d7b1d3..ed23e270715 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 @@ -103,105 +103,105 @@ 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\"\313\006\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." - + "protobuf.Timestamp\022\014\n\004name\030\001 \001(\t\0224\n\013crea" + + "protobuf.Timestamp\022\014\n\004name\030\001 \001(\t\0225\n\013crea" + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\003\022\027\n\nsize_bytes\030\005 \001(\003B\003\340A\003\022B\n\005state" - + "\030\006 \001(\0162..google.spanner.admin.database.v" - + "1.Backup.StateB\003\340A\003\022F\n\025referencing_datab" - + "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" - + "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" + + "pB\004\342A\001\003\022\030\n\nsize_bytes\030\005 \001(\003B\004\342A\001\003\022C\n\005sta" + + "te\030\006 \001(\0162..google.spanner.admin.database" + + ".v1.Backup.StateB\004\342A\001\003\022G\n\025referencing_da" + + "tabases\030\007 \003(\tB(\342A\001\003\372A!\n\037spanner.googleap" + + "is.com/Database\022O\n\017encryption_info\030\010 \001(\013" + + "20.google.spanner.admin.database.v1.Encr" + + "yptionInfoB\004\342A\001\003\022Q\n\020database_dialect\030\n \001" + + "(\01621.google.spanner.admin.database.v1.Da" + + "tabaseDialectB\004\342A\001\003\022C\n\023referencing_backu" + + "ps\030\013 \003(\tB&\342A\001\003\372A\037\n\035spanner.googleapis.co" + + "m/Backup\0229\n\017max_expire_time\030\014 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\"7\n\005State\022\025\n\021" + + "STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005REA" + + "DY\020\002:\\\352AY\n\035spanner.googleapis.com/Backup" + + "\0228projects/{project}/instances/{instance" + + "}/backups/{backup}\"\211\002\n\023CreateBackupReque" + + "st\0228\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.goo" + + "gleapis.com/Instance\022\027\n\tbackup_id\030\002 \001(\tB" + + "\004\342A\001\002\022>\n\006backup\030\003 \001(\0132(.google.spanner.a" + + "dmin.database.v1.BackupB\004\342A\001\002\022_\n\021encrypt" + + "ion_config\030\004 \001(\0132>.google.spanner.admin." + + "database.v1.CreateBackupEncryptionConfig" + + "B\004\342A\001\001\"\370\001\n\024CreateBackupMetadata\0220\n\004name\030" + + "\001 \001(\tB\"\372A\037\n\035spanner.googleapis.com/Backu" + + "p\0226\n\010database\030\002 \001(\tB$\372A!\n\037spanner.google" + + "apis.com/Database\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\"\273\002\n\021CopyBackupRequest\022" + + "8\n\006parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.google" + + "apis.com/Instance\022\027\n\tbackup_id\030\002 \001(\tB\004\342A" + + "\001\002\022=\n\rsource_backup\030\003 \001(\tB&\342A\001\002\372A\037\n\035span" + + "ner.googleapis.com/Backup\0225\n\013expire_time" + + "\030\004 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002" + + "\022]\n\021encryption_config\030\005 \001(\0132<.google.spa" + + "nner.admin.database.v1.CopyBackupEncrypt" + + "ionConfigB\004\342A\001\001\"\371\001\n\022CopyBackupMetadata\0220" + + "\n\004name\030\001 \001(\tB\"\372A\037\n\035spanner.googleapis.co" + + "m/Backup\0229\n\rsource_backup\030\002 \001(\tB\"\372A\037\n\035sp" + + "anner.googleapis.com/Backup\022E\n\010progress\030" + + "\003 \001(\01323.google.spanner.admin.database.v1" + + ".OperationProgress\022/\n\013cancel_time\030\004 \001(\0132" + + "\032.google.protobuf.Timestamp\"\214\001\n\023UpdateBa" + + "ckupRequest\022>\n\006backup\030\001 \001(\0132(.google.spa" + + "nner.admin.database.v1.BackupB\004\342A\001\002\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\002\"H\n\020GetBackupRequest\0224\n\004name\030\001" + + " \001(\tB&\342A\001\002\372A\037\n\035spanner.googleapis.com/Ba" + + "ckup\"K\n\023DeleteBackupRequest\0224\n\004name\030\001 \001(" + + "\tB&\342A\001\002\372A\037\n\035spanner.googleapis.com/Backu" + + "p\"\205\001\n\022ListBackupsRequest\0228\n\006parent\030\001 \001(\t" + + "B(\342A\001\002\372A!\n\037spanner.googleapis.com/Instan" + + "ce\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.Backup\022\027\n\017next_page_token\030\002" + + " \001(\t\"\216\001\n\033ListBackupOperationsRequest\0228\n\006" + + "parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapi" + + "s.com/Instance\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_s" + + "ize\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"j\n\034ListBac" + + "kupOperationsResponse\0221\n\noperations\030\001 \003(" + + "\0132\035.google.longrunning.Operation\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\342\001\n\nBackupInfo\0222\n\006back" + + "up\030\001 \001(\tB\"\372A\037\n\035spanner.googleapis.com/Ba" + + "ckup\0220\n\014version_time\030\004 \001(\0132\032.google.prot" + + "obuf.Timestamp\022/\n\013create_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\022=\n\017source_databa" + + "se\030\003 \001(\tB$\372A!\n\037spanner.googleapis.com/Da" + + "tabase\"\337\002\n\034CreateBackupEncryptionConfig\022" + + "l\n\017encryption_type\030\001 \001(\0162M.google.spanne" + + "r.admin.database.v1.CreateBackupEncrypti" + + "onConfig.EncryptionTypeB\004\342A\001\002\022@\n\014kms_key" + + "_name\030\002 \001(\tB*\342A\001\001\372A#\n!cloudkms.googleapi" + + "s.com/CryptoKey\"\216\001\n\016EncryptionType\022\037\n\033EN" + + "CRYPTION_TYPE_UNSPECIFIED\020\000\022\033\n\027USE_DATAB" + + "ASE_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT_ENCRY" + + "PTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYPTION\020\003" + + "\"\353\002\n\032CopyBackupEncryptionConfig\022j\n\017encry" + + "ption_type\030\001 \001(\0162K.google.spanner.admin." + + "database.v1.CopyBackupEncryptionConfig.E" + + "ncryptionTypeB\004\342A\001\002\022@\n\014kms_key_name\030\002 \001(" + + "\tB*\342A\001\001\372A#\n!cloudkms.googleapis.com/Cryp" + + "toKey\"\236\001\n\016EncryptionType\022\037\n\033ENCRYPTION_T" + + "YPE_UNSPECIFIED\020\000\022+\n\'USE_CONFIG_DEFAULT_" + + "OR_BACKUP_ENCRYPTION\020\001\022\035\n\031GOOGLE_DEFAULT" + + "_ENCRYPTION\020\002\022\037\n\033CUSTOMER_MANAGED_ENCRYP" + + "TION\020\003B\375\001\n$com.google.spanner.admin.data" + + "base.v1B\013BackupProtoP\001ZFcloud.google.com" + + "/go/spanner/admin/database/apiv1/databas" + + "epb;databasepb\252\002&Google.Cloud.Spanner.Ad" + + "min.Database.V1\312\002&Google\\Cloud\\Spanner\\A" + + "dmin\\Database\\V1\352\002+Google::Cloud::Spanne" + + "r::Admin::Database::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 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 a381d3c5122..0f5840f6f15 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 @@ -58,31 +58,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "oogleapis.com/CryptoKey\"\305\002\n\016EncryptionIn" + + "fo\022T\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" + + "peB\004\342A\001\003\0223\n\021encryption_status\030\004 \001(\0132\022.go" + + "ogle.rpc.StatusB\004\342A\001\003\022J\n\017kms_key_version" + + "\030\002 \001(\tB1\342A\001\003\372A*\n(cloudkms.googleapis.com" + + "/CryptoKeyVersion\"\\\n\004Type\022\024\n\020TYPE_UNSPEC" + + "IFIED\020\000\022\035\n\031GOOGLE_DEFAULT_ENCRYPTION\020\001\022\037" + + "\n\033CUSTOMER_MANAGED_ENCRYPTION\020\002*\\\n\017Datab" + + "aseDialect\022 \n\034DATABASE_DIALECT_UNSPECIFI" + + "ED\020\000\022\027\n\023GOOGLE_STANDARD_SQL\020\001\022\016\n\nPOSTGRE" + + "SQL\020\002B\242\004\n$com.google.spanner.admin.datab" + + "ase.v1B\013CommonProtoP\001ZFcloud.google.com/" + + "go/spanner/admin/database/apiv1/database" + + "pb;databasepb\252\002&Google.Cloud.Spanner.Adm" + + "in.Database.V1\312\002&Google\\Cloud\\Spanner\\Ad" + + "min\\Database\\V1\352\002+Google::Cloud::Spanner" + + "::Admin::Database::V1\352Ax\n!cloudkms.googl" + + "eapis.com/CryptoKey\022Sprojects/{project}/" + + "locations/{location}/keyRings/{key_ring}" + + "/cryptoKeys/{crypto_key}\352A\246\001\n(cloudkms.g" + + "oogleapis.com/CryptoKeyVersion\022zprojects" + + "/{project}/locations/{location}/keyRings" + + "/{key_ring}/cryptoKeys/{crypto_key}/cryp" + + "toKeyVersions/{crypto_key_version}b\006prot" + + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( 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 3b571fd926b..bfa78ae301f 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyBackupEncryptionConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_CopyBackupEncryptionConfig_descriptor; 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 f2bc437a1ad..63db05c5083 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 @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyBackupMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_CopyBackupMetadata_descriptor; 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 810c5043ce9..62cbd05991d 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 @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyBackupRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_CopyBackupRequest_descriptor; 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 1381514795c..72efb786d53 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBackupEncryptionConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_CreateBackupEncryptionConfig_descriptor; 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 c534895357a..83c3b45c003 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 @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBackupMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_CreateBackupMetadata_descriptor; 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 96197d756b5..3ac0f2c8558 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBackupRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_CreateBackupRequest_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java index b24893c407a..ebcc297cbba 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/CreateDatabaseMetadata.java @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDatabaseMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_CreateDatabaseMetadata_descriptor; 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 e393b538ff4..38317542e4c 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 @@ -40,7 +40,7 @@ private CreateDatabaseRequest(com.google.protobuf.GeneratedMessageV3.Builder> private CreateDatabaseRequest() { parent_ = ""; createStatement_ = ""; - extraStatements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); databaseDialect_ = 0; } @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateDatabaseRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_CreateDatabaseRequest_descriptor; @@ -189,7 +184,8 @@ public com.google.protobuf.ByteString getCreateStatementBytes() { public static final int EXTRA_STATEMENTS_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList extraStatements_; + private com.google.protobuf.LazyStringArrayList extraStatements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -618,8 +614,7 @@ public Builder clear() { bitField0_ = 0; parent_ = ""; createStatement_ = ""; - extraStatements_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); encryptionConfig_ = null; if (encryptionConfigBuilder_ != null) { encryptionConfigBuilder_.dispose(); @@ -653,7 +648,6 @@ public com.google.spanner.admin.database.v1.CreateDatabaseRequest build() { public com.google.spanner.admin.database.v1.CreateDatabaseRequest buildPartial() { com.google.spanner.admin.database.v1.CreateDatabaseRequest result = new com.google.spanner.admin.database.v1.CreateDatabaseRequest(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -661,15 +655,6 @@ public com.google.spanner.admin.database.v1.CreateDatabaseRequest buildPartial() return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.CreateDatabaseRequest result) { - if (((bitField0_ & 0x00000004) != 0)) { - extraStatements_ = extraStatements_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.extraStatements_ = extraStatements_; - } - private void buildPartial0(com.google.spanner.admin.database.v1.CreateDatabaseRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -678,6 +663,10 @@ private void buildPartial0(com.google.spanner.admin.database.v1.CreateDatabaseRe if (((from_bitField0_ & 0x00000002) != 0)) { result.createStatement_ = createStatement_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + extraStatements_.makeImmutable(); + result.extraStatements_ = extraStatements_; + } if (((from_bitField0_ & 0x00000008) != 0)) { result.encryptionConfig_ = encryptionConfigBuilder_ == null ? encryptionConfig_ : encryptionConfigBuilder_.build(); @@ -746,7 +735,7 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.CreateDatabaseRequ if (!other.extraStatements_.isEmpty()) { if (extraStatements_.isEmpty()) { extraStatements_ = other.extraStatements_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ |= 0x00000004; } else { ensureExtraStatementsIsMutable(); extraStatements_.addAll(other.extraStatements_); @@ -1083,14 +1072,14 @@ public Builder setCreateStatementBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList extraStatements_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList extraStatements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureExtraStatementsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!extraStatements_.isModifiable()) { extraStatements_ = new com.google.protobuf.LazyStringArrayList(extraStatements_); - bitField0_ |= 0x00000004; } + bitField0_ |= 0x00000004; } /** * @@ -1107,7 +1096,8 @@ private void ensureExtraStatementsIsMutable() { * @return A list containing the extraStatements. */ public com.google.protobuf.ProtocolStringList getExtraStatementsList() { - return extraStatements_.getUnmodifiableView(); + extraStatements_.makeImmutable(); + return extraStatements_; } /** * @@ -1184,6 +1174,7 @@ public Builder setExtraStatements(int index, java.lang.String value) { } ensureExtraStatementsIsMutable(); extraStatements_.set(index, value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1208,6 +1199,7 @@ public Builder addExtraStatements(java.lang.String value) { } ensureExtraStatementsIsMutable(); extraStatements_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1229,6 +1221,7 @@ public Builder addExtraStatements(java.lang.String value) { public Builder addAllExtraStatements(java.lang.Iterable@@ -615,8 +618,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. *values) { ensureExtraStatementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extraStatements_); + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1247,8 +1240,9 @@ public Builder addAllExtraStatements(java.lang.Iterable values * @return This builder for chaining. */ public Builder clearExtraStatements() { - extraStatements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + extraStatements_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); + ; onChanged(); return this; } @@ -1274,6 +1268,7 @@ public Builder addExtraStatementsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureExtraStatementsIsMutable(); extraStatements_.add(value); + bitField0_ |= 0x00000004; onChanged(); return this; } 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 f982cfe291a..c87638bef4d 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 @@ -52,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Database(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_Database_descriptor; @@ -119,6 +114,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * * The database is fully created and ready for use, but is still * being optimized for performance and cannot handle full load. + * * In this state, the database still references the backup * it was restore from, preventing the backup * from being deleted. When optimizations are complete, the full performance @@ -169,6 +165,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { *@@ -594,8 +595,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** The database is fully created and ready for use, but is still * being optimized for performance and cannot handle full load. + * * In this state, the database still references the backup * it was restore from, preventing the backup * from being deleted. When optimizations are complete, the full performance @@ -550,8 +547,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. *@@ -572,8 +571,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -816,6 +824,7 @@ public java.lang.String getDefaultLeader() { *@@ -2552,8 +2565,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -2503,8 +2512,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. *@@ -2528,8 +2539,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. *
* Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -3385,6 +3431,7 @@ public java.lang.String getDefaultLeader() { *@@ -402,6 +412,7 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -3411,6 +3458,7 @@ public com.google.protobuf.ByteString getDefaultLeaderBytes() { *@@ -297,8 +305,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -3436,6 +3484,7 @@ public Builder setDefaultLeader(java.lang.String value) { *@@ -278,8 +284,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -3457,6 +3506,7 @@ public Builder clearDefaultLeader() { *@@ -260,8 +264,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java index 93da0e4ae84..9c583702ee4 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DatabaseName.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 0252781fe91..2dd394d2c7c 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,8 +224,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. *@@ -242,8 +244,10 @@ 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. + * * For databases that are using Google default or other types of encryption, * this field is empty. + * * This field is propagated lazily from the backend. There might be a delay * from when a key version is being used and when it appears in this field. *
* Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. @@ -418,6 +429,7 @@ com.google.spanner.admin.database.v1.EncryptionInfoOrBuilder getEncryptionInfoOr ** Output only. The read-write region which contains the database's leader * replicas. + * * This is the same as the value of default_leader * database option set using DatabaseAdmin.CreateDatabase or * DatabaseAdmin.UpdateDatabaseDdl. If not explicitly set, this is empty. 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 42caf41f84f..d0f86946079 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DatabaseRole(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java new file mode 100644 index 00000000000..8c57d14fb9b --- /dev/null +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfo.java @@ -0,0 +1,1161 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/spanner_database_admin.proto + +package com.google.spanner.admin.database.v1; + +/** + * + * + *+ * Action information extracted from a DDL statement. This proto is used to + * display the brief info of the DDL statement for the operation + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. + *+ * + * Protobuf type {@code google.spanner.admin.database.v1.DdlStatementActionInfo} + */ +public final class DdlStatementActionInfo extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.admin.database.v1.DdlStatementActionInfo) + DdlStatementActionInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use DdlStatementActionInfo.newBuilder() to construct. + private DdlStatementActionInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DdlStatementActionInfo() { + action_ = ""; + entityType_ = ""; + entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DdlStatementActionInfo(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto + .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto + .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.admin.database.v1.DdlStatementActionInfo.class, + com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder.class); + } + + public static final int ACTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return The action. + */ + @java.lang.Override + public java.lang.String getAction() { + java.lang.Object ref = action_; + 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(); + action_ = s; + return s; + } + } + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return The bytes for action. + */ + @java.lang.Override + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return The entityType. + */ + @java.lang.Override + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + 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(); + entityType_ = s; + return s; + } + } + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return The bytes for entityType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENTITY_NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList entityNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return A list containing the entityNames. + */ + public com.google.protobuf.ProtocolStringList getEntityNamesList() { + return entityNames_; + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return The count of entityNames. + */ + public int getEntityNamesCount() { + return entityNames_.size(); + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index of the element to return. + * @return The entityNames at the given index. + */ + public java.lang.String getEntityNames(int index) { + return entityNames_.get(index); + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index of the value to return. + * @return The bytes of the entityNames at the given index. + */ + public com.google.protobuf.ByteString getEntityNamesBytes(int index) { + return entityNames_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(action_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, action_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, entityType_); + } + for (int i = 0; i < entityNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, entityNames_.getRaw(i)); + } + 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(action_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, action_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entityType_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, entityType_); + } + { + int dataSize = 0; + for (int i = 0; i < entityNames_.size(); i++) { + dataSize += computeStringSizeNoTag(entityNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getEntityNamesList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.spanner.admin.database.v1.DdlStatementActionInfo)) { + return super.equals(obj); + } + com.google.spanner.admin.database.v1.DdlStatementActionInfo other = + (com.google.spanner.admin.database.v1.DdlStatementActionInfo) obj; + + if (!getAction().equals(other.getAction())) return false; + if (!getEntityType().equals(other.getEntityType())) return false; + if (!getEntityNamesList().equals(other.getEntityNamesList())) 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) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + hash = (37 * hash) + ENTITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getEntityType().hashCode(); + if (getEntityNamesCount() > 0) { + hash = (37 * hash) + ENTITY_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getEntityNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo 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.admin.database.v1.DdlStatementActionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo 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.admin.database.v1.DdlStatementActionInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo 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.admin.database.v1.DdlStatementActionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo 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.admin.database.v1.DdlStatementActionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo 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.admin.database.v1.DdlStatementActionInfo 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; + } + /** + * + * + *+ * Action information extracted from a DDL statement. This proto is used to + * display the brief info of the DDL statement for the operation + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. + *+ * + * Protobuf type {@code google.spanner.admin.database.v1.DdlStatementActionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.spanner.admin.database.v1.DdlStatementActionInfo) + com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto + .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto + .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.admin.database.v1.DdlStatementActionInfo.class, + com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder.class); + } + + // Construct using com.google.spanner.admin.database.v1.DdlStatementActionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + action_ = ""; + entityType_ = ""; + entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto + .internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + } + + @java.lang.Override + public com.google.spanner.admin.database.v1.DdlStatementActionInfo getDefaultInstanceForType() { + return com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.spanner.admin.database.v1.DdlStatementActionInfo build() { + com.google.spanner.admin.database.v1.DdlStatementActionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.spanner.admin.database.v1.DdlStatementActionInfo buildPartial() { + com.google.spanner.admin.database.v1.DdlStatementActionInfo result = + new com.google.spanner.admin.database.v1.DdlStatementActionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.spanner.admin.database.v1.DdlStatementActionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + entityNames_.makeImmutable(); + result.entityNames_ = entityNames_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.spanner.admin.database.v1.DdlStatementActionInfo) { + return mergeFrom((com.google.spanner.admin.database.v1.DdlStatementActionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.spanner.admin.database.v1.DdlStatementActionInfo other) { + if (other == com.google.spanner.admin.database.v1.DdlStatementActionInfo.getDefaultInstance()) + return this; + if (!other.getAction().isEmpty()) { + action_ = other.action_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEntityType().isEmpty()) { + entityType_ = other.entityType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.entityNames_.isEmpty()) { + if (entityNames_.isEmpty()) { + entityNames_ = other.entityNames_; + bitField0_ |= 0x00000004; + } else { + ensureEntityNamesIsMutable(); + entityNames_.addAll(other.entityNames_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + action_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + entityType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEntityNamesIsMutable(); + entityNames_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object action_ = ""; + /** + * + * + * + * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return The action. + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + action_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return The bytes for action. + */ + public com.google.protobuf.ByteString getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @param value The bytes for action to set. + * @return This builder for chaining. + */ + public Builder setActionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + action_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object entityType_ = ""; + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return The entityType. + */ + public java.lang.String getEntityType() { + java.lang.Object ref = entityType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entityType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return The bytes for entityType. + */ + public com.google.protobuf.ByteString getEntityTypeBytes() { + java.lang.Object ref = entityType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entityType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @param value The entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entityType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return This builder for chaining. + */ + public Builder clearEntityType() { + entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @param value The bytes for entityType to set. + * @return This builder for chaining. + */ + public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entityType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList entityNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureEntityNamesIsMutable() { + if (!entityNames_.isModifiable()) { + entityNames_ = new com.google.protobuf.LazyStringArrayList(entityNames_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return A list containing the entityNames. + */ + public com.google.protobuf.ProtocolStringList getEntityNamesList() { + entityNames_.makeImmutable(); + return entityNames_; + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return The count of entityNames. + */ + public int getEntityNamesCount() { + return entityNames_.size(); + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index of the element to return. + * @return The entityNames at the given index. + */ + public java.lang.String getEntityNames(int index) { + return entityNames_.get(index); + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index of the value to return. + * @return The bytes of the entityNames at the given index. + */ + public com.google.protobuf.ByteString getEntityNamesBytes(int index) { + return entityNames_.getByteString(index); + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index to set the value at. + * @param value The entityNames to set. + * @return This builder for chaining. + */ + public Builder setEntityNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityNamesIsMutable(); + entityNames_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param value The entityNames to add. + * @return This builder for chaining. + */ + public Builder addEntityNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntityNamesIsMutable(); + entityNames_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param values The entityNames to add. + * @return This builder for chaining. + */ + public Builder addAllEntityNames(java.lang.Iterablevalues) { + ensureEntityNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entityNames_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + * + * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return This builder for chaining. + */ + public Builder clearEntityNames() { + entityNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param value The bytes of the entityNames to add. + * @return This builder for chaining. + */ + public Builder addEntityNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureEntityNamesIsMutable(); + entityNames_.add(value); + bitField0_ |= 0x00000004; + 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.admin.database.v1.DdlStatementActionInfo) + } + + // @@protoc_insertion_point(class_scope:google.spanner.admin.database.v1.DdlStatementActionInfo) + private static final com.google.spanner.admin.database.v1.DdlStatementActionInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.spanner.admin.database.v1.DdlStatementActionInfo(); + } + + public static com.google.spanner.admin.database.v1.DdlStatementActionInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public DdlStatementActionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.spanner.admin.database.v1.DdlStatementActionInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java new file mode 100644 index 00000000000..77632b556eb --- /dev/null +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/DdlStatementActionInfoOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/database/v1/spanner_database_admin.proto + +package com.google.spanner.admin.database.v1; + +public interface DdlStatementActionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.database.v1.DdlStatementActionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return The action. + */ + java.lang.String getAction(); + /** + * + * + *+ * The action for the DDL statement, e.g. CREATE, ALTER, DROP, GRANT, etc. + * This field is a non-empty string. + *+ * + *string action = 1;
+ * + * @return The bytes for action. + */ + com.google.protobuf.ByteString getActionBytes(); + + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return The entityType. + */ + java.lang.String getEntityType(); + /** + * + * + *+ * The entity type for the DDL statement, e.g. TABLE, INDEX, VIEW, etc. + * This field can be empty string for some DDL statement, + * e.g. for statement "ANALYZE", `entity_type` = "". + *+ * + *string entity_type = 2;
+ * + * @return The bytes for entityType. + */ + com.google.protobuf.ByteString getEntityTypeBytes(); + + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return A list containing the entityNames. + */ + java.util.ListgetEntityNamesList(); + /** + * + * + * + * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @return The count of entityNames. + */ + int getEntityNamesCount(); + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index of the element to return. + * @return The entityNames at the given index. + */ + java.lang.String getEntityNames(int index); + /** + * + * + *+ * The entity name(s) being operated on the DDL statement. + * E.g. + * 1. For statement "CREATE TABLE t1(...)", `entity_names` = ["t1"]. + * 2. For statement "GRANT ROLE r1, r2 ...", `entity_names` = ["r1", "r2"]. + * 3. For statement "ANALYZE", `entity_names` = []. + *+ * + *repeated string entity_names = 3;
+ * + * @param index The index of the value to return. + * @return The bytes of the entityNames at the given index. + */ + com.google.protobuf.ByteString getEntityNamesBytes(int index); +} 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 e095273e163..b7ec86f086c 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteBackupRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_DeleteBackupRequest_descriptor; 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 2aea18dad1a..401e68627a3 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DropDatabaseRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor; 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 1ef8ecc89c4..77046a46e50 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EncryptionConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.CommonProto .internal_static_google_spanner_admin_database_v1_EncryptionConfig_descriptor; 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 87cecf2d4a4..b5a473e4b8b 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EncryptionInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.CommonProto .internal_static_google_spanner_admin_database_v1_EncryptionInfo_descriptor; 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 7f3cad81b14..cd3c0180bc6 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetBackupRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_GetBackupRequest_descriptor; 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 528e3bb5d78..311555b751c 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDatabaseDdlRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor; 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 c4ad5e76da3..fd710da5da0 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 @@ -38,7 +38,7 @@ private GetDatabaseDdlResponse(com.google.protobuf.GeneratedMessageV3.Builder> } private GetDatabaseDdlResponse() { - statements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDatabaseDdlResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor; @@ -70,7 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int STATEMENTS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList statements_; + private com.google.protobuf.LazyStringArrayList statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -340,8 +336,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - statements_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -369,7 +364,6 @@ public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse build() { public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse buildPartial() { com.google.spanner.admin.database.v1.GetDatabaseDdlResponse result = new com.google.spanner.admin.database.v1.GetDatabaseDdlResponse(this); - buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -377,17 +371,12 @@ public com.google.spanner.admin.database.v1.GetDatabaseDdlResponse buildPartial( return result; } - private void buildPartialRepeatedFields( - com.google.spanner.admin.database.v1.GetDatabaseDdlResponse result) { - if (((bitField0_ & 0x00000001) != 0)) { - statements_ = statements_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.statements_ = statements_; - } - private void buildPartial0(com.google.spanner.admin.database.v1.GetDatabaseDdlResponse result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + statements_.makeImmutable(); + result.statements_ = statements_; + } } @java.lang.Override @@ -439,7 +428,7 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.GetDatabaseDdlResp if (!other.statements_.isEmpty()) { if (statements_.isEmpty()) { statements_ = other.statements_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ |= 0x00000001; } else { ensureStatementsIsMutable(); statements_.addAll(other.statements_); @@ -498,14 +487,14 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringList statements_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStatementsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!statements_.isModifiable()) { statements_ = new com.google.protobuf.LazyStringArrayList(statements_); - bitField0_ |= 0x00000001; } + bitField0_ |= 0x00000001; } /** * @@ -520,7 +509,8 @@ private void ensureStatementsIsMutable() { * @return A list containing the statements. */ public com.google.protobuf.ProtocolStringList getStatementsList() { - return statements_.getUnmodifiableView(); + statements_.makeImmutable(); + return statements_; } /** * @@ -589,6 +579,7 @@ public Builder setStatements(int index, java.lang.String value) { } ensureStatementsIsMutable(); statements_.set(index, value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -611,6 +602,7 @@ public Builder addStatements(java.lang.String value) { } ensureStatementsIsMutable(); statements_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -630,6 +622,7 @@ public Builder addStatements(java.lang.String value) { public Builder addAllStatements(java.lang.Iterablevalues) { ensureStatementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -646,8 +639,9 @@ public Builder addAllStatements(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearStatements() { - statements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -671,6 +665,7 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); + bitField0_ |= 0x00000001; onChanged(); return this; } 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 2a501d6d7cf..d6b52bfbbfa 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 @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDatabaseRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_GetDatabaseRequest_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java index abe1ad6b3d8..afc77685648 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/InstanceName.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 Google LLC + * Copyright 2023 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. 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 5426f3dd857..a871c005dc6 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 @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupOperationsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_ListBackupOperationsRequest_descriptor; @@ -136,13 +131,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * * An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -154,10 +152,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -218,13 +219,16 @@ public java.lang.String getFilter() { * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -236,10 +240,13 @@ public java.lang.String getFilter() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -917,13 +924,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -935,10 +945,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -998,13 +1011,16 @@ public java.lang.String getFilter() { * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1016,10 +1032,13 @@ public java.lang.String getFilter() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -1079,13 +1098,16 @@ public com.google.protobuf.ByteString getFilterBytes() { * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1097,10 +1119,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -1159,13 +1184,16 @@ public Builder setFilter(java.lang.String value) { * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1177,10 +1205,13 @@ public Builder setFilter(java.lang.String value) { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -1235,13 +1266,16 @@ public Builder clearFilter() { * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1253,10 +1287,13 @@ public Builder clearFilter() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: 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 4d862ccc097..4268655ed60 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 @@ -59,13 +59,16 @@ public interface ListBackupOperationsRequestOrBuilder * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -77,10 +80,13 @@ public interface ListBackupOperationsRequestOrBuilder * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: @@ -130,13 +136,16 @@ public interface ListBackupOperationsRequestOrBuilder * ** An expression that filters the list of returned backup operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -148,10 +157,13 @@ public interface ListBackupOperationsRequestOrBuilder * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \ * `metadata.database:prod` - Returns operations where: diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java index a1a12ed3bf8..4afe5a1cc6a 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListBackupOperationsResponse.java @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupOperationsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_ListBackupOperationsResponse_descriptor; 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 0140292e32b..69c1786eec9 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 @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_ListBackupsRequest_descriptor; @@ -135,12 +130,15 @@ public com.google.protobuf.ByteString getParentBytes() { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -148,10 +146,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -186,12 +187,15 @@ public java.lang.String getFilter() { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -199,10 +203,13 @@ public java.lang.String getFilter() { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -849,12 +856,15 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -862,10 +872,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -899,12 +912,15 @@ public java.lang.String getFilter() { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -912,10 +928,13 @@ public java.lang.String getFilter() { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -949,12 +968,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -962,10 +984,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -998,12 +1023,15 @@ public Builder setFilter(java.lang.String value) { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -1011,10 +1039,13 @@ public Builder setFilter(java.lang.String value) { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -1043,12 +1074,15 @@ public Builder clearFilter() { * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -1056,10 +1090,13 @@ public Builder clearFilter() { * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". 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 4ea911b53ce..3c253ef05bf 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 @@ -59,12 +59,15 @@ public interface ListBackupsRequestOrBuilder * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -72,10 +75,13 @@ public interface ListBackupsRequestOrBuilder * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". @@ -99,12 +105,15 @@ public interface ListBackupsRequestOrBuilder * ** An expression that filters the list of returned backups. + * * A filter expression consists of a field name, a comparison operator, and a * value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * 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: + * * * `name` * * `database` * * `state` @@ -112,10 +121,13 @@ public interface ListBackupsRequestOrBuilder * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) * * `size_bytes` + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic, but * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `name:Howl` - The backup's name contains the string "howl". * * `database:prod` * - The database's name contains the string "prod". 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 e320ee4aba2..8c06fc77b79 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBackupsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_ListBackupsResponse_descriptor; 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 9bf375def87..4b0abaf18d2 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 @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabaseOperationsRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor; @@ -136,13 +131,16 @@ public com.google.protobuf.ByteString getParentBytes() { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -154,10 +152,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -194,13 +195,16 @@ public java.lang.String getFilter() { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -212,10 +216,13 @@ public java.lang.String getFilter() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -873,13 +880,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -891,10 +901,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -930,13 +943,16 @@ public java.lang.String getFilter() { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -948,10 +964,13 @@ public java.lang.String getFilter() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -987,13 +1006,16 @@ public com.google.protobuf.ByteString getFilterBytes() { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1005,10 +1027,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -1043,13 +1068,16 @@ public Builder setFilter(java.lang.String value) { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1061,10 +1089,13 @@ public Builder setFilter(java.lang.String value) { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -1095,13 +1126,16 @@ public Builder clearFilter() { * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -1113,10 +1147,13 @@ public Builder clearFilter() { * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ 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 e020307e57f..4d1f7f23c82 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 @@ -59,13 +59,16 @@ public interface ListDatabaseOperationsRequestOrBuilder * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -77,10 +80,13 @@ public interface ListDatabaseOperationsRequestOrBuilder * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ @@ -106,13 +112,16 @@ public interface ListDatabaseOperationsRequestOrBuilder * ** An expression that filters the list of returned operations. + * * A filter expression consists of a field name, a * comparison operator, and a value for filtering. * The value must be a string, a number, or a boolean. The comparison operator * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`. * Colon `:` is the contains operator. Filter rules are not case sensitive. + * * The following fields in the [Operation][google.longrunning.Operation] * are eligible for filtering: + * * * `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 @@ -124,10 +133,13 @@ public interface ListDatabaseOperationsRequestOrBuilder * * `error` - Error associated with the long-running operation. * * `response.@type` - the type of response. * * `response.<field_name>` - any field in response.value. + * * You can combine multiple expressions by enclosing each expression in * parentheses. By default, expressions are combined with AND logic. However, * you can specify AND, OR, and NOT logic explicitly. + * * Here are a few examples: + * * * `done:true` - The operation is complete. * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \ * `(metadata.source_type:BACKUP) AND` \ diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java index 763faff8830..110f68ff83d 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/ListDatabaseOperationsResponse.java @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabaseOperationsResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor; 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 4b7453090ce..e26e0089963 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabaseRolesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor; 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 ac539aa5acf..442ed797d6f 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabaseRolesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor; 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 eac171f8df9..c6c3c695459 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabasesRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_ListDatabasesRequest_descriptor; 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 dd3ce964137..6063e3bb8a3 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 @@ -48,11 +48,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDatabasesResponse(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_ListDatabasesResponse_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java index dceff032df0..7a4a49e58e6 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OperationProgress.java @@ -46,11 +46,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OperationProgress(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.CommonProto .internal_static_google_spanner_admin_database_v1_OperationProgress_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java index ce652f5318f..372757476db 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/OptimizeRestoredDatabaseMetadata.java @@ -51,11 +51,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new OptimizeRestoredDatabaseMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor; 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 54aa3135f07..19523910055 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 @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RestoreDatabaseEncryptionConfig(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor; 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 0225666e1ff..49ca8fde967 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 @@ -50,11 +50,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RestoreDatabaseMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor; @@ -71,6 +66,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int sourceInfoCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object sourceInfo_; public enum SourceInfoCase 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 35ad6d76e9d..a6b1bc97877 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 @@ -259,6 +259,5 @@ public interface RestoreDatabaseMetadataOrBuilder */ com.google.protobuf.ByteString getOptimizeDatabaseOperationNameBytes(); - public com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.SourceInfoCase - getSourceInfoCase(); + com.google.spanner.admin.database.v1.RestoreDatabaseMetadata.SourceInfoCase getSourceInfoCase(); } 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 c89cf015544..96d866db827 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 @@ -49,11 +49,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RestoreDatabaseRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor; @@ -70,6 +65,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int sourceCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object source_; public enum SourceCase 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 f7c1c6e1f82..e2047038bd5 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 @@ -188,5 +188,5 @@ public interface RestoreDatabaseRequestOrBuilder com.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfigOrBuilder getEncryptionConfigOrBuilder(); - public com.google.spanner.admin.database.v1.RestoreDatabaseRequest.SourceCase getSourceCase(); + com.google.spanner.admin.database.v1.RestoreDatabaseRequest.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java index e76b3bcef86..02c67d53686 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfo.java @@ -47,11 +47,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RestoreInfo(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_RestoreInfo_descriptor; @@ -68,6 +63,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int sourceInfoCase_ = 0; + + @SuppressWarnings("serial") private java.lang.Object sourceInfo_; public enum SourceInfoCase diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java index f1b55bcc5f5..d02746a0ed6 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/RestoreInfoOrBuilder.java @@ -86,5 +86,5 @@ public interface RestoreInfoOrBuilder */ com.google.spanner.admin.database.v1.BackupInfoOrBuilder getBackupInfoOrBuilder(); - public com.google.spanner.admin.database.v1.RestoreInfo.SourceInfoCase getSourceInfoCase(); + com.google.spanner.admin.database.v1.RestoreInfo.SourceInfoCase getSourceInfoCase(); } 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 0045ee30f35..4ac1d45264c 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 @@ -67,6 +67,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -144,249 +148,253 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ource_type\030\001 \001(\01623.google.spanner.admin." + "database.v1.RestoreSourceType\022C\n\013backup_" + "info\030\002 \001(\0132,.google.spanner.admin.databa" - + "se.v1.BackupInfoH\000B\r\n\013source_info\"\312\006\n\010Da" - + "tabase\022\021\n\004name\030\001 \001(\tB\003\340A\002\022D\n\005state\030\002 \001(\016" - + "20.google.spanner.admin.database.v1.Data" - + "base.StateB\003\340A\003\0224\n\013create_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022H\n\014restore" - + "_info\030\004 \001(\0132-.google.spanner.admin.datab" - + "ase.v1.RestoreInfoB\003\340A\003\022R\n\021encryption_co" - + "nfig\030\005 \001(\01322.google.spanner.admin.databa" - + "se.v1.EncryptionConfigB\003\340A\003\022N\n\017encryptio" - + "n_info\030\010 \003(\01320.google.spanner.admin.data" - + "base.v1.EncryptionInfoB\003\340A\003\022%\n\030version_r" - + "etention_period\030\006 \001(\tB\003\340A\003\022>\n\025earliest_v" - + "ersion_time\030\007 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022\033\n\016default_leader\030\t \001(\tB\003\340A\003\022" - + "P\n\020database_dialect\030\n \001(\01621.google.spann" - + "er.admin.database.v1.DatabaseDialectB\003\340A" - + "\003\022\036\n\026enable_drop_protection\030\013 \001(\010\022\030\n\013rec" - + "onciling\030\014 \001(\010B\003\340A\003\"M\n\005State\022\025\n\021STATE_UN" - + "SPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002\022\024\n\020" - + "READY_OPTIMIZING\020\003:b\352A_\n\037spanner.googlea" - + "pis.com/Database\022\202\323\344\223\002/\022-" - + "/v1/{parent=projects/*/instances/*}/data" - + "bases\332A\006parent\022\244\002\n\016CreateDatabase\0227.goog" - + "le.spanner.admin.database.v1.CreateDatab" - + "aseRequest\032\035.google.longrunning.Operatio" - + "n\"\271\001\202\323\344\223\0022\"-/v1/{parent=projects/*/insta" - + "nces/*}/databases:\001*\332A\027parent,create_sta" - + "tement\312Ad\n)google.spanner.admin.database" - + ".v1.Database\0227google.spanner.admin.datab" - + "ase.v1.CreateDatabaseMetadata\022\255\001\n\013GetDat" - + "abase\0224.google.spanner.admin.database.v1" - + ".GetDatabaseRequest\032*.google.spanner.adm" - + "in.database.v1.Database\"<\202\323\344\223\002/\022-/v1/{na" - + "me=projects/*/instances/*/databases/*}\332A" - + "\004name\022\357\001\n\016UpdateDatabase\0227.google.spanne" - + "r.admin.database.v1.UpdateDatabaseReques" - + "t\032\035.google.longrunning.Operation\"\204\001\202\323\344\223\002" - + "B26/v1/{database.name=projects/*/instanc" - + "es/*/databases/*}:\010database\332A\024database,u" - + "pdate_mask\312A\"\n\010Database\022\026UpdateDatabaseM" - + "etadata\022\235\002\n\021UpdateDatabaseDdl\022:.google.s" - + "panner.admin.database.v1.UpdateDatabaseD" - + "dlRequest\032\035.google.longrunning.Operation" - + "\"\254\001\202\323\344\223\002:25/v1/{database=projects/*/inst" - + "ances/*/databases/*}/ddl:\001*\332A\023database,s" - + "tatements\312AS\n\025google.protobuf.Empty\022:goo" - + "gle.spanner.admin.database.v1.UpdateData" - + "baseDdlMetadata\022\243\001\n\014DropDatabase\0225.googl" - + "e.spanner.admin.database.v1.DropDatabase" - + "Request\032\026.google.protobuf.Empty\"D\202\323\344\223\0023*" - + "1/v1/{database=projects/*/instances/*/da" - + "tabases/*}\332A\010database\022\315\001\n\016GetDatabaseDdl" - + "\0227.google.spanner.admin.database.v1.GetD" - + "atabaseDdlRequest\0328.google.spanner.admin" - + ".database.v1.GetDatabaseDdlResponse\"H\202\323\344" - + "\223\0027\0225/v1/{database=projects/*/instances/" - + "*/databases/*}/ddl\332A\010database\022\353\001\n\014SetIam" - + "Policy\022\".google.iam.v1.SetIamPolicyReque" - + "st\032\025.google.iam.v1.Policy\"\237\001\202\323\344\223\002\206\001\">/v1" - + "/{resource=projects/*/instances/*/databa" - + "ses/*}:setIamPolicy:\001*ZA\"/v1/{" - + "resource=projects/*/instances/*/database" - + "s/*}:getIamPolicy:\001*ZA\".google.spanner.admin.databa" - + "se.v1.ListBackupOperationsResponse\"E\202\323\344\223" - + "\0026\0224/v1/{parent=projects/*/instances/*}/" - + "backupOperations\332A\006parent\022\334\001\n\021ListDataba" - + "seRoles\022:.google.spanner.admin.database." - + "v1.ListDatabaseRolesRequest\032;.google.spa" - + "nner.admin.database.v1.ListDatabaseRoles" - + "Response\"N\202\323\344\223\002?\022=/v1/{parent=projects/*" - + "/instances/*/databases/*}/databaseRoles\332" - + "A\006parent\032x\312A\026spanner.googleapis.com\322A\\ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "form,https://www.googleapis.com/auth/spa" - + "nner.adminB\330\002\n$com.google.spanner.admin." - + "database.v1B\031SpannerDatabaseAdminProtoP\001" - + "ZFcloud.google.com/go/spanner/admin/data" - + "base/apiv1/databasepb;databasepb\252\002&Googl" - + "e.Cloud.Spanner.Admin.Database.V1\312\002&Goog" - + "le\\Cloud\\Spanner\\Admin\\Database\\V1\352\002+Goo" - + "gle::Cloud::Spanner::Admin::Database::V1" - + "\352AJ\n\037spanner.googleapis.com/Instance\022\'pr" - + "ojects/{project}/instances/{instance}b\006p" - + "roto3" + + "is.com/Database\022E\n\010progress\030\002 \001(\01323.goog" + + "le.spanner.admin.database.v1.OperationPr" + + "ogress\"\237\001\n\014DatabaseRole\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\002:{\352Ax\n#spanner.googleapis.com/Databas" + + "eRole\022Qprojects/{project}/instances/{ins" + + "tance}/databases/{database}/databaseRole" + + "s/{role}\"{\n\030ListDatabaseRolesRequest\0228\n\006" + + "parent\030\001 \001(\tB(\342A\001\002\372A!\n\037spanner.googleapi" + + "s.com/Database\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"|\n\031ListDatabaseRolesRespon" + + "se\022F\n\016database_roles\030\001 \003(\0132..google.span" + + "ner.admin.database.v1.DatabaseRole\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t*5\n\021RestoreSourceType" + + "\022\024\n\020TYPE_UNSPECIFIED\020\000\022\n\n\006BACKUP\020\0012\356%\n\rD" + + "atabaseAdmin\022\300\001\n\rListDatabases\0226.google." + + "spanner.admin.database.v1.ListDatabasesR" + + "equest\0327.google.spanner.admin.database.v" + + "1.ListDatabasesResponse\">\332A\006parent\202\323\344\223\002/" + + "\022-/v1/{parent=projects/*/instances/*}/da" + + "tabases\022\244\002\n\016CreateDatabase\0227.google.span" + + "ner.admin.database.v1.CreateDatabaseRequ" + + "est\032\035.google.longrunning.Operation\"\271\001\312Ad" + + "\n)google.spanner.admin.database.v1.Datab" + + "ase\0227google.spanner.admin.database.v1.Cr" + + "eateDatabaseMetadata\332A\027parent,create_sta" + + "tement\202\323\344\223\0022\"-/v1/{parent=projects/*/ins" + + "tances/*}/databases:\001*\022\255\001\n\013GetDatabase\0224" + + ".google.spanner.admin.database.v1.GetDat" + + "abaseRequest\032*.google.spanner.admin.data" + + "base.v1.Database\"<\332A\004name\202\323\344\223\002/\022-/v1/{na" + + "me=projects/*/instances/*/databases/*}\022\357" + + "\001\n\016UpdateDatabase\0227.google.spanner.admin" + + ".database.v1.UpdateDatabaseRequest\032\035.goo" + + "gle.longrunning.Operation\"\204\001\312A\"\n\010Databas" + + "e\022\026UpdateDatabaseMetadata\332A\024database,upd" + + "ate_mask\202\323\344\223\002B26/v1/{database.name=proje" + + "cts/*/instances/*/databases/*}:\010database" + + "\022\235\002\n\021UpdateDatabaseDdl\022:.google.spanner." + + "admin.database.v1.UpdateDatabaseDdlReque" + + "st\032\035.google.longrunning.Operation\"\254\001\312AS\n" + + "\025google.protobuf.Empty\022:google.spanner.a" + + "dmin.database.v1.UpdateDatabaseDdlMetada" + + "ta\332A\023database,statements\202\323\344\223\002:25/v1/{dat" + + "abase=projects/*/instances/*/databases/*" + + "}/ddl:\001*\022\243\001\n\014DropDatabase\0225.google.spann" + + "er.admin.database.v1.DropDatabaseRequest" + + "\032\026.google.protobuf.Empty\"D\332A\010database\202\323\344" + + "\223\0023*1/v1/{database=projects/*/instances/" + + "*/databases/*}\022\315\001\n\016GetDatabaseDdl\0227.goog" + + "le.spanner.admin.database.v1.GetDatabase" + + "DdlRequest\0328.google.spanner.admin.databa" + + "se.v1.GetDatabaseDdlResponse\"H\332A\010databas" + + "e\202\323\344\223\0027\0225/v1/{database=projects/*/instan" + + "ces/*/databases/*}/ddl\022\353\001\n\014SetIamPolicy\022" + + "\".google.iam.v1.SetIamPolicyRequest\032\025.go" + + "ogle.iam.v1.Policy\"\237\001\332A\017resource,policy\202" + + "\323\344\223\002\206\001\">/v1/{resource=projects/*/instanc" + + "es/*/databases/*}:setIamPolicy:\001*ZA\"/" + + "v1/{resource=projects/*/instances/*/data" + + "bases/*}:getIamPolicy:\001*ZA\".google.spanner.admin.database.v1.L" + + "istBackupOperationsResponse\"E\332A\006parent\202\323" + + "\344\223\0026\0224/v1/{parent=projects/*/instances/*" + + "}/backupOperations\022\334\001\n\021ListDatabaseRoles" + + "\022:.google.spanner.admin.database.v1.List" + + "DatabaseRolesRequest\032;.google.spanner.ad" + + "min.database.v1.ListDatabaseRolesRespons" + + "e\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=projects" + + "/*/instances/*/databases/*}/databaseRole" + + "s\032x\312A\026spanner.googleapis.com\322A\\https://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/spanner.ad" + + "minB\330\002\n$com.google.spanner.admin.databas" + + "e.v1B\031SpannerDatabaseAdminProtoP\001ZFcloud" + + ".google.com/go/spanner/admin/database/ap" + + "iv1/databasepb;databasepb\252\002&Google.Cloud" + + ".Spanner.Admin.Database.V1\312\002&Google\\Clou" + + "d\\Spanner\\Admin\\Database\\V1\352\002+Google::Cl" + + "oud::Spanner::Admin::Database::V1\352AJ\n\037sp" + + "anner.googleapis.com/Instance\022\'projects/" + + "{project}/instances/{instance}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -496,16 +504,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Database", "Statements", "OperationId", }); - internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor = + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_database_v1_DdlStatementActionInfo_descriptor, + new java.lang.String[] { + "Action", "EntityType", "EntityNames", + }); + internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor, new java.lang.String[] { - "Database", "Statements", "CommitTimestamps", "Throttled", "Progress", + "Database", "Statements", "CommitTimestamps", "Throttled", "Progress", "Actions", }); internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_DropDatabaseRequest_descriptor, @@ -513,7 +529,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", }); internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_GetDatabaseDdlRequest_descriptor, @@ -521,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", }); internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_GetDatabaseDdlResponse_descriptor, @@ -529,7 +545,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Statements", }); internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsRequest_descriptor, @@ -537,7 +553,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", }); internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_ListDatabaseOperationsResponse_descriptor, @@ -545,7 +561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operations", "NextPageToken", }); internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_RestoreDatabaseRequest_descriptor, @@ -553,7 +569,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "DatabaseId", "Backup", "EncryptionConfig", "Source", }); internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_RestoreDatabaseEncryptionConfig_descriptor, @@ -561,7 +577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EncryptionType", "KmsKeyName", }); internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_RestoreDatabaseMetadata_descriptor, @@ -575,7 +591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceInfo", }); internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_OptimizeRestoredDatabaseMetadata_descriptor, @@ -583,7 +599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Progress", }); internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_spanner_admin_database_v1_DatabaseRole_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_DatabaseRole_descriptor, @@ -591,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_ListDatabaseRolesRequest_descriptor, @@ -599,7 +615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_database_v1_ListDatabaseRolesResponse_descriptor, 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 ccd25df5763..9da77849b35 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 @@ -45,11 +45,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateBackupRequest(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.BackupProto .internal_static_google_spanner_admin_database_v1_UpdateBackupRequest_descriptor; diff --git a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java index d4625807d12..0e9f3b0a5d3 100644 --- a/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java +++ b/proto-google-cloud-spanner-admin-database-v1/src/main/java/com/google/spanner/admin/database/v1/UpdateDatabaseDdlMetadata.java @@ -40,9 +40,10 @@ private UpdateDatabaseDdlMetadata(com.google.protobuf.GeneratedMessageV3.Builder private UpdateDatabaseDdlMetadata() { database_ = ""; - statements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); commitTimestamps_ = java.util.Collections.emptyList(); progress_ = java.util.Collections.emptyList(); + actions_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -51,11 +52,6 @@ protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateDatabaseDdlMetadata(); } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto .internal_static_google_spanner_admin_database_v1_UpdateDatabaseDdlMetadata_descriptor; @@ -125,7 +121,8 @@ public com.google.protobuf.ByteString getDatabaseBytes() { public static final int STATEMENTS_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringList statements_; + private com.google.protobuf.LazyStringArrayList statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * @@ -276,7 +273,7 @@ public com.google.protobuf.TimestampOrBuilder getCommitTimestampsOrBuilder(int i * * * - * Output only. When true, indicates that the operation is throttled e.g + * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation * will resume and this field will be false again. *@@ -299,13 +296,12 @@ public boolean getThrottled() { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -319,13 +315,12 @@ public java.util.Listge * * * The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -340,13 +335,12 @@ public java.util.Listge * * * The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -360,13 +354,12 @@ public int getProgressCount() { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -380,13 +373,12 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress(int in * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -397,6 +389,85 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre return progress_.get(index); } + public static final int ACTIONS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.Listactions_; + /** + * + * + * + * The brief action info for the DDL statements. + * `actions[i]` is the brief info for `statements[i]`. + *+ * + *repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;
+ */ + @java.lang.Override + public java.util.List+ getActionsList() { + return actions_; + } + /** + * + * + * + * The brief action info for the DDL statements. + * `actions[i]` is the brief info for `statements[i]`. + *+ * + *repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;
+ */ + @java.lang.Override + public java.util.List< + ? extends com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> + getActionsOrBuilderList() { + return actions_; + } + /** + * + * + *+ * The brief action info for the DDL statements. + * `actions[i]` is the brief info for `statements[i]`. + *+ * + *repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;
+ */ + @java.lang.Override + public int getActionsCount() { + return actions_.size(); + } + /** + * + * + *+ * The brief action info for the DDL statements. + * `actions[i]` is the brief info for `statements[i]`. + *+ * + *repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;
+ */ + @java.lang.Override + public com.google.spanner.admin.database.v1.DdlStatementActionInfo getActions(int index) { + return actions_.get(index); + } + /** + * + * + *+ * The brief action info for the DDL statements. + * `actions[i]` is the brief info for `statements[i]`. + *+ * + *repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;
+ */ + @java.lang.Override + public com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder getActionsOrBuilder( + int index) { + return actions_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -426,6 +497,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < progress_.size(); i++) { output.writeMessage(5, progress_.get(i)); } + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(6, actions_.get(i)); + } getUnknownFields().writeTo(output); } @@ -455,6 +529,9 @@ public int getSerializedSize() { for (int i = 0; i < progress_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, progress_.get(i)); } + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, actions_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -476,6 +553,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCommitTimestampsList().equals(other.getCommitTimestampsList())) return false; if (getThrottled() != other.getThrottled()) return false; if (!getProgressList().equals(other.getProgressList())) return false; + if (!getActionsList().equals(other.getActionsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -503,6 +581,10 @@ public int hashCode() { hash = (37 * hash) + PROGRESS_FIELD_NUMBER; hash = (53 * hash) + getProgressList().hashCode(); } + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -645,8 +727,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; database_ = ""; - statements_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); if (commitTimestampsBuilder_ == null) { commitTimestamps_ = java.util.Collections.emptyList(); } else { @@ -662,6 +743,13 @@ public Builder clear() { progressBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + } else { + actions_ = null; + actionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -700,11 +788,6 @@ public com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata buildParti private void buildPartialRepeatedFields( com.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata result) { - if (((bitField0_ & 0x00000002) != 0)) { - statements_ = statements_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.statements_ = statements_; if (commitTimestampsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { commitTimestamps_ = java.util.Collections.unmodifiableList(commitTimestamps_); @@ -723,6 +806,15 @@ private void buildPartialRepeatedFields( } else { result.progress_ = progressBuilder_.build(); } + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } } private void buildPartial0( @@ -731,6 +823,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.database_ = database_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + statements_.makeImmutable(); + result.statements_ = statements_; + } if (((from_bitField0_ & 0x00000008) != 0)) { result.throttled_ = throttled_; } @@ -791,7 +887,7 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlM if (!other.statements_.isEmpty()) { if (statements_.isEmpty()) { statements_ = other.statements_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ |= 0x00000002; } else { ensureStatementsIsMutable(); statements_.addAll(other.statements_); @@ -855,6 +951,33 @@ public Builder mergeFrom(com.google.spanner.admin.database.v1.UpdateDatabaseDdlM } } } + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000020); + actionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getActionsFieldBuilder() + : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -926,6 +1049,20 @@ public Builder mergeFrom( } break; } // case 42 + case 50: + { + com.google.spanner.admin.database.v1.DdlStatementActionInfo m = + input.readMessage( + com.google.spanner.admin.database.v1.DdlStatementActionInfo.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.addMessage(m); + } + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1051,14 +1188,14 @@ public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.LazyStringList statements_ = - com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringArrayList statements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureStatementsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!statements_.isModifiable()) { statements_ = new com.google.protobuf.LazyStringArrayList(statements_); - bitField0_ |= 0x00000002; } + bitField0_ |= 0x00000002; } /** * @@ -1073,7 +1210,8 @@ private void ensureStatementsIsMutable() { * @return A list containing the statements. */ public com.google.protobuf.ProtocolStringList getStatementsList() { - return statements_.getUnmodifiableView(); + statements_.makeImmutable(); + return statements_; } /** * @@ -1142,6 +1280,7 @@ public Builder setStatements(int index, java.lang.String value) { } ensureStatementsIsMutable(); statements_.set(index, value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1164,6 +1303,7 @@ public Builder addStatements(java.lang.String value) { } ensureStatementsIsMutable(); statements_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1183,6 +1323,7 @@ public Builder addStatements(java.lang.String value) { public Builder addAllStatements(java.lang.Iterablevalues) { ensureStatementsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, statements_); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1199,8 +1340,9 @@ public Builder addAllStatements(java.lang.Iterable values) { * @return This builder for chaining. */ public Builder clearStatements() { - statements_ = com.google.protobuf.LazyStringArrayList.EMPTY; + statements_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); + ; onChanged(); return this; } @@ -1224,6 +1366,7 @@ public Builder addStatementsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureStatementsIsMutable(); statements_.add(value); + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1621,7 +1764,7 @@ public java.util.List getCommitTimestamps * * * - * Output only. When true, indicates that the operation is throttled e.g + * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation * will resume and this field will be false again. *@@ -1638,7 +1781,7 @@ public boolean getThrottled() { * * *- * Output only. When true, indicates that the operation is throttled e.g + * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation * will resume and this field will be false again. *@@ -1659,7 +1802,7 @@ public Builder setThrottled(boolean value) { * * *- * Output only. When true, indicates that the operation is throttled e.g + * Output only. When true, indicates that the operation is throttled e.g. * due to resource constraints. When resources become available the operation * will resume and this field will be false again. *@@ -1698,13 +1841,12 @@ private void ensureProgressIsMutable() { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1722,13 +1864,12 @@ private void ensureProgressIsMutable() { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1745,13 +1886,12 @@ public int getProgressCount() { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1768,13 +1908,12 @@ public com.google.spanner.admin.database.v1.OperationProgress getProgress(int in * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1798,13 +1937,12 @@ public Builder setProgress( * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1825,13 +1963,12 @@ public Builder setProgress( * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1854,13 +1991,12 @@ public Builder addProgress(com.google.spanner.admin.database.v1.OperationProgres * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1884,13 +2020,12 @@ public Builder addProgress( * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1911,13 +2046,12 @@ public Builder addProgress( * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1938,13 +2072,12 @@ public Builder addProgress( * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1966,13 +2099,12 @@ public Builder addAllProgress( * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -1992,13 +2124,12 @@ public Builder clearProgress() { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2018,13 +2149,12 @@ public Builder removeProgress(int index) { * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2038,13 +2168,12 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder getProgres * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2062,13 +2191,12 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2086,13 +2214,12 @@ public com.google.spanner.admin.database.v1.OperationProgressOrBuilder getProgre * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2106,13 +2233,12 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgres * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2128,13 +2254,12 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgres * ** The progress of the - * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] operations. - * Currently, only index creation statements will have a continuously - * updating progress. - * For non-index creation statements, `progress[i]` will have start time - * and end time populated with commit timestamp of operation, - * as well as a progress of 100% once the operation has completed. - * `progress[i]` is the operation progress for `statements[i]`. + * [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl] + * operations. All DDL statements will have continuously updating progress, + * and `progress[i]` is the operation progress for `statements[i]`. Also, + * `progress[i]` will have start time and end time populated with commit + * timestamp of operation, as well as a progress of 100% once the operation + * has completed. ** *repeated .google.spanner.admin.database.v1.OperationProgress progress = 5;
@@ -2161,6 +2286,389 @@ public com.google.spanner.admin.database.v1.OperationProgress.Builder addProgres return progressBuilder_; } + private java.util.Listactions_ = + java.util.Collections.emptyList(); + + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + actions_ = + new java.util.ArrayList ( + actions_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.spanner.admin.database.v1.DdlStatementActionInfo, + com.google.spanner.admin.database.v1.DdlStatementActionInfo.Builder, + com.google.spanner.admin.database.v1.DdlStatementActionInfoOrBuilder> + actionsBuilder_; + + /** + * + * + * + * The brief action info for the DDL statements. + * `actions[i]` is the brief info for `statements[i]`. + *+ * + *repeated .google.spanner.admin.database.v1.DdlStatementActionInfo actions = 6;
+ */ + public java.util.List+ getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + /** + * + * + *