Class Database.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, DatabaseOrBuilder, Cloneable
    Enclosing class:
    Database

    public static final class Database.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
    implements DatabaseOrBuilder
     A Cloud Spanner database.
     
    Protobuf type google.spanner.admin.database.v1.Database
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • clear

        public Database.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • getDefaultInstanceForType

        public Database getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Database build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Database buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Database.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • setField

        public Database.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • clearField

        public Database.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • clearOneof

        public Database.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • setRepeatedField

        public Database.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • addRepeatedField

        public Database.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • mergeFrom

        public Database.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • mergeFrom

        public Database.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                   throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Database.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Required. The name of the database. Values are of the form
         `projects/<project>/instances/<instance>/databases/<database>`,
         where `<database>` is as specified in the `CREATE DATABASE`
         statement. This name can be passed to other API methods to
         identify the database.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface DatabaseOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The name of the database. Values are of the form
         `projects/<project>/instances/<instance>/databases/<database>`,
         where `<database>` is as specified in the `CREATE DATABASE`
         statement. This name can be passed to other API methods to
         identify the database.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface DatabaseOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Database.Builder setName​(String value)
         Required. The name of the database. Values are of the form
         `projects/<project>/instances/<instance>/databases/<database>`,
         where `<database>` is as specified in the `CREATE DATABASE`
         statement. This name can be passed to other API methods to
         identify the database.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Database.Builder clearName()
         Required. The name of the database. Values are of the form
         `projects/<project>/instances/<instance>/databases/<database>`,
         where `<database>` is as specified in the `CREATE DATABASE`
         statement. This name can be passed to other API methods to
         identify the database.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Database.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. The name of the database. Values are of the form
         `projects/<project>/instances/<instance>/databases/<database>`,
         where `<database>` is as specified in the `CREATE DATABASE`
         statement. This name can be passed to other API methods to
         identify the database.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. The current database state.
         
        .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface DatabaseOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Database.Builder setStateValue​(int value)
         Output only. The current database state.
         
        .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Database.State getState()
         Output only. The current database state.
         
        .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface DatabaseOrBuilder
        Returns:
        The state.
      • setState

        public Database.Builder setState​(Database.State value)
         Output only. The current database state.
         
        .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Database.Builder clearState()
         Output only. The current database state.
         
        .google.spanner.admin.database.v1.Database.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface DatabaseOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface DatabaseOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Database.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Database.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Database.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Database.Builder clearCreateTime()
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. If exists, the time at which the database creation started.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface DatabaseOrBuilder
      • hasRestoreInfo

        public boolean hasRestoreInfo()
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasRestoreInfo in interface DatabaseOrBuilder
        Returns:
        Whether the restoreInfo field is set.
      • getRestoreInfo

        public RestoreInfo getRestoreInfo()
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRestoreInfo in interface DatabaseOrBuilder
        Returns:
        The restoreInfo.
      • setRestoreInfo

        public Database.Builder setRestoreInfo​(RestoreInfo value)
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setRestoreInfo

        public Database.Builder setRestoreInfo​(RestoreInfo.Builder builderForValue)
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeRestoreInfo

        public Database.Builder mergeRestoreInfo​(RestoreInfo value)
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearRestoreInfo

        public Database.Builder clearRestoreInfo()
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRestoreInfoBuilder

        public RestoreInfo.Builder getRestoreInfoBuilder()
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getRestoreInfoOrBuilder

        public RestoreInfoOrBuilder getRestoreInfoOrBuilder()
         Output only. Applicable only for restored databases. Contains information
         about the restore source.
         
        .google.spanner.admin.database.v1.RestoreInfo restore_info = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRestoreInfoOrBuilder in interface DatabaseOrBuilder
      • hasEncryptionConfig

        public boolean hasEncryptionConfig()
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEncryptionConfig in interface DatabaseOrBuilder
        Returns:
        Whether the encryptionConfig field is set.
      • getEncryptionConfig

        public EncryptionConfig getEncryptionConfig()
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionConfig in interface DatabaseOrBuilder
        Returns:
        The encryptionConfig.
      • setEncryptionConfig

        public Database.Builder setEncryptionConfig​(EncryptionConfig value)
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEncryptionConfig

        public Database.Builder setEncryptionConfig​(EncryptionConfig.Builder builderForValue)
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEncryptionConfig

        public Database.Builder mergeEncryptionConfig​(EncryptionConfig value)
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEncryptionConfig

        public Database.Builder clearEncryptionConfig()
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionConfigBuilder

        public EncryptionConfig.Builder getEncryptionConfigBuilder()
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionConfigOrBuilder

        public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
         Output only. For databases that are using customer managed encryption, this
         field contains the encryption configuration for the database.
         For databases that are using Google default or other types of encryption,
         this field is empty.
         
        .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionConfigOrBuilder in interface DatabaseOrBuilder
      • getEncryptionInfoList

        public List<EncryptionInfo> getEncryptionInfoList()
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfoList in interface DatabaseOrBuilder
      • getEncryptionInfoCount

        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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfoCount in interface DatabaseOrBuilder
      • getEncryptionInfo

        public EncryptionInfo getEncryptionInfo​(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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfo in interface DatabaseOrBuilder
      • setEncryptionInfo

        public Database.Builder setEncryptionInfo​(int index,
                                                  EncryptionInfo value)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEncryptionInfo

        public Database.Builder setEncryptionInfo​(int index,
                                                  EncryptionInfo.Builder builderForValue)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addEncryptionInfo

        public Database.Builder addEncryptionInfo​(EncryptionInfo value)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addEncryptionInfo

        public Database.Builder addEncryptionInfo​(int index,
                                                  EncryptionInfo value)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addEncryptionInfo

        public Database.Builder addEncryptionInfo​(EncryptionInfo.Builder builderForValue)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addEncryptionInfo

        public Database.Builder addEncryptionInfo​(int index,
                                                  EncryptionInfo.Builder builderForValue)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllEncryptionInfo

        public Database.Builder addAllEncryptionInfo​(Iterable<? extends EncryptionInfo> values)
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEncryptionInfo

        public Database.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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeEncryptionInfo

        public Database.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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionInfoBuilder

        public EncryptionInfo.Builder getEncryptionInfoBuilder​(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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionInfoOrBuilder

        public EncryptionInfoOrBuilder getEncryptionInfoOrBuilder​(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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfoOrBuilder in interface DatabaseOrBuilder
      • getEncryptionInfoOrBuilderList

        public List<? extends EncryptionInfoOrBuilder> getEncryptionInfoOrBuilderList()
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionInfoOrBuilderList in interface DatabaseOrBuilder
      • addEncryptionInfoBuilder

        public EncryptionInfo.Builder addEncryptionInfoBuilder()
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addEncryptionInfoBuilder

        public EncryptionInfo.Builder addEncryptionInfoBuilder​(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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEncryptionInfoBuilderList

        public List<EncryptionInfo.Builder> getEncryptionInfoBuilderList()
         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.
         
        repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getVersionRetentionPeriod

        public String getVersionRetentionPeriod()
         Output only. The period in which Cloud Spanner retains all versions of data
         for the database. This is the same as the value of version_retention_period
         database option set using
         [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
         if not set.
         
        string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getVersionRetentionPeriod in interface DatabaseOrBuilder
        Returns:
        The versionRetentionPeriod.
      • getVersionRetentionPeriodBytes

        public com.google.protobuf.ByteString getVersionRetentionPeriodBytes()
         Output only. The period in which Cloud Spanner retains all versions of data
         for the database. This is the same as the value of version_retention_period
         database option set using
         [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
         if not set.
         
        string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getVersionRetentionPeriodBytes in interface DatabaseOrBuilder
        Returns:
        The bytes for versionRetentionPeriod.
      • setVersionRetentionPeriod

        public Database.Builder setVersionRetentionPeriod​(String value)
         Output only. The period in which Cloud Spanner retains all versions of data
         for the database. This is the same as the value of version_retention_period
         database option set using
         [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
         if not set.
         
        string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The versionRetentionPeriod to set.
        Returns:
        This builder for chaining.
      • clearVersionRetentionPeriod

        public Database.Builder clearVersionRetentionPeriod()
         Output only. The period in which Cloud Spanner retains all versions of data
         for the database. This is the same as the value of version_retention_period
         database option set using
         [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
         if not set.
         
        string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setVersionRetentionPeriodBytes

        public Database.Builder setVersionRetentionPeriodBytes​(com.google.protobuf.ByteString value)
         Output only. The period in which Cloud Spanner retains all versions of data
         for the database. This is the same as the value of version_retention_period
         database option set using
         [UpdateDatabaseDdl][google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl]. Defaults to 1 hour,
         if not set.
         
        string version_retention_period = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for versionRetentionPeriod to set.
        Returns:
        This builder for chaining.
      • hasEarliestVersionTime

        public boolean hasEarliestVersionTime()
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasEarliestVersionTime in interface DatabaseOrBuilder
        Returns:
        Whether the earliestVersionTime field is set.
      • getEarliestVersionTime

        public com.google.protobuf.Timestamp getEarliestVersionTime()
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEarliestVersionTime in interface DatabaseOrBuilder
        Returns:
        The earliestVersionTime.
      • setEarliestVersionTime

        public Database.Builder setEarliestVersionTime​(com.google.protobuf.Timestamp value)
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setEarliestVersionTime

        public Database.Builder setEarliestVersionTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeEarliestVersionTime

        public Database.Builder mergeEarliestVersionTime​(com.google.protobuf.Timestamp value)
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearEarliestVersionTime

        public Database.Builder clearEarliestVersionTime()
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEarliestVersionTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEarliestVersionTimeBuilder()
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getEarliestVersionTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEarliestVersionTimeOrBuilder()
         Output only. Earliest timestamp at which older versions of the data can be
         read. This value is continuously updated by Cloud Spanner and becomes stale
         the moment it is queried. If you are using this value to recover data, make
         sure to account for the time from the moment when the value is queried to
         the moment when you initiate the recovery.
         
        .google.protobuf.Timestamp earliest_version_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEarliestVersionTimeOrBuilder in interface DatabaseOrBuilder
      • getDefaultLeader

        public String getDefaultLeader()
         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.
         
        string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDefaultLeader in interface DatabaseOrBuilder
        Returns:
        The defaultLeader.
      • getDefaultLeaderBytes

        public com.google.protobuf.ByteString getDefaultLeaderBytes()
         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.
         
        string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDefaultLeaderBytes in interface DatabaseOrBuilder
        Returns:
        The bytes for defaultLeader.
      • setDefaultLeader

        public Database.Builder setDefaultLeader​(String value)
         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.
         
        string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The defaultLeader to set.
        Returns:
        This builder for chaining.
      • clearDefaultLeader

        public Database.Builder clearDefaultLeader()
         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.
         
        string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setDefaultLeaderBytes

        public Database.Builder setDefaultLeaderBytes​(com.google.protobuf.ByteString value)
         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.
         
        string default_leader = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for defaultLeader to set.
        Returns:
        This builder for chaining.
      • getDatabaseDialectValue

        public int getDatabaseDialectValue()
         Output only. The dialect of the Cloud Spanner Database.
         
        .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDatabaseDialectValue in interface DatabaseOrBuilder
        Returns:
        The enum numeric value on the wire for databaseDialect.
      • setDatabaseDialectValue

        public Database.Builder setDatabaseDialectValue​(int value)
         Output only. The dialect of the Cloud Spanner Database.
         
        .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for databaseDialect to set.
        Returns:
        This builder for chaining.
      • getDatabaseDialect

        public DatabaseDialect getDatabaseDialect()
         Output only. The dialect of the Cloud Spanner Database.
         
        .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getDatabaseDialect in interface DatabaseOrBuilder
        Returns:
        The databaseDialect.
      • setDatabaseDialect

        public Database.Builder setDatabaseDialect​(DatabaseDialect value)
         Output only. The dialect of the Cloud Spanner Database.
         
        .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The databaseDialect to set.
        Returns:
        This builder for chaining.
      • clearDatabaseDialect

        public Database.Builder clearDatabaseDialect()
         Output only. The dialect of the Cloud Spanner Database.
         
        .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Database.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>
      • mergeUnknownFields

        public final Database.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Database.Builder>