Class DatabaseProperties.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DatabaseProperties.Builder>
com.google.cloud.oracledatabase.v1.DatabaseProperties.Builder
All Implemented Interfaces:
DatabasePropertiesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DatabaseProperties

public static final class DatabaseProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<DatabaseProperties.Builder> implements DatabasePropertiesOrBuilder
 The properties of a Database.
 
Protobuf type google.cloud.oracledatabase.v1.DatabaseProperties
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DatabaseProperties.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.GeneratedMessage.Builder<DatabaseProperties.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.GeneratedMessage.Builder<DatabaseProperties.Builder>
    • getDefaultInstanceForType

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

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

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

      public DatabaseProperties.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<DatabaseProperties.Builder>
    • mergeFrom

    • isInitialized

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

      public DatabaseProperties.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<DatabaseProperties.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       Output only. State of the Database.
       
      .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface DatabasePropertiesOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public DatabaseProperties.Builder setStateValue(int value)
       Output only. State of the Database.
       
      .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.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

       Output only. State of the Database.
       
      .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface DatabasePropertiesOrBuilder
      Returns:
      The state.
    • setState

       Output only. State of the Database.
       
      .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public DatabaseProperties.Builder clearState()
       Output only. State of the Database.
       
      .google.cloud.oracledatabase.v1.DatabaseProperties.DatabaseLifecycleState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDbVersion

      public String getDbVersion()
       Required. The Oracle Database version.
       
      string db_version = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDbVersion in interface DatabasePropertiesOrBuilder
      Returns:
      The dbVersion.
    • getDbVersionBytes

      public com.google.protobuf.ByteString getDbVersionBytes()
       Required. The Oracle Database version.
       
      string db_version = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDbVersionBytes in interface DatabasePropertiesOrBuilder
      Returns:
      The bytes for dbVersion.
    • setDbVersion

      public DatabaseProperties.Builder setDbVersion(String value)
       Required. The Oracle Database version.
       
      string db_version = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The dbVersion to set.
      Returns:
      This builder for chaining.
    • clearDbVersion

      public DatabaseProperties.Builder clearDbVersion()
       Required. The Oracle Database version.
       
      string db_version = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDbVersionBytes

      public DatabaseProperties.Builder setDbVersionBytes(com.google.protobuf.ByteString value)
       Required. The Oracle Database version.
       
      string db_version = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for dbVersion to set.
      Returns:
      This builder for chaining.
    • hasDbBackupConfig

      public boolean hasDbBackupConfig()
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasDbBackupConfig in interface DatabasePropertiesOrBuilder
      Returns:
      Whether the dbBackupConfig field is set.
    • getDbBackupConfig

      public DbBackupConfig getDbBackupConfig()
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDbBackupConfig in interface DatabasePropertiesOrBuilder
      Returns:
      The dbBackupConfig.
    • setDbBackupConfig

      public DatabaseProperties.Builder setDbBackupConfig(DbBackupConfig value)
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setDbBackupConfig

      public DatabaseProperties.Builder setDbBackupConfig(DbBackupConfig.Builder builderForValue)
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeDbBackupConfig

      public DatabaseProperties.Builder mergeDbBackupConfig(DbBackupConfig value)
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearDbBackupConfig

      public DatabaseProperties.Builder clearDbBackupConfig()
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDbBackupConfigBuilder

      public DbBackupConfig.Builder getDbBackupConfigBuilder()
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getDbBackupConfigOrBuilder

      public DbBackupConfigOrBuilder getDbBackupConfigOrBuilder()
       Optional. Backup options for the Database.
       
      .google.cloud.oracledatabase.v1.DbBackupConfig db_backup_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDbBackupConfigOrBuilder in interface DatabasePropertiesOrBuilder
    • hasDatabaseManagementConfig

      public boolean hasDatabaseManagementConfig()
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasDatabaseManagementConfig in interface DatabasePropertiesOrBuilder
      Returns:
      Whether the databaseManagementConfig field is set.
    • getDatabaseManagementConfig

      public DatabaseManagementConfig getDatabaseManagementConfig()
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDatabaseManagementConfig in interface DatabasePropertiesOrBuilder
      Returns:
      The databaseManagementConfig.
    • setDatabaseManagementConfig

      public DatabaseProperties.Builder setDatabaseManagementConfig(DatabaseManagementConfig value)
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setDatabaseManagementConfig

      public DatabaseProperties.Builder setDatabaseManagementConfig(DatabaseManagementConfig.Builder builderForValue)
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeDatabaseManagementConfig

      public DatabaseProperties.Builder mergeDatabaseManagementConfig(DatabaseManagementConfig value)
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearDatabaseManagementConfig

      public DatabaseProperties.Builder clearDatabaseManagementConfig()
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDatabaseManagementConfigBuilder

      public DatabaseManagementConfig.Builder getDatabaseManagementConfigBuilder()
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getDatabaseManagementConfigOrBuilder

      public DatabaseManagementConfigOrBuilder getDatabaseManagementConfigOrBuilder()
       Output only. The Database Management config.
       
      .google.cloud.oracledatabase.v1.DatabaseManagementConfig database_management_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDatabaseManagementConfigOrBuilder in interface DatabasePropertiesOrBuilder