Class DbServerProperties.Builder

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

public static final class DbServerProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<DbServerProperties.Builder> implements DbServerPropertiesOrBuilder
 Various properties and settings associated with Exadata database server.
 
Protobuf type google.cloud.oracledatabase.v1.DbServerProperties
  • 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<DbServerProperties.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<DbServerProperties.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<DbServerProperties.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DbServerProperties.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<DbServerProperties.Builder>
      Throws:
      IOException
    • getOcid

      public String getOcid()
       Output only. OCID of database server.
       
      string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOcid in interface DbServerPropertiesOrBuilder
      Returns:
      The ocid.
    • getOcidBytes

      public com.google.protobuf.ByteString getOcidBytes()
       Output only. OCID of database server.
       
      string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getOcidBytes in interface DbServerPropertiesOrBuilder
      Returns:
      The bytes for ocid.
    • setOcid

      public DbServerProperties.Builder setOcid(String value)
       Output only. OCID of database server.
       
      string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The ocid to set.
      Returns:
      This builder for chaining.
    • clearOcid

      public DbServerProperties.Builder clearOcid()
       Output only. OCID of database server.
       
      string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setOcidBytes

      public DbServerProperties.Builder setOcidBytes(com.google.protobuf.ByteString value)
       Output only. OCID of database server.
       
      string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for ocid to set.
      Returns:
      This builder for chaining.
    • getOcpuCount

      public int getOcpuCount()
       Optional. OCPU count per database.
       
      int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOcpuCount in interface DbServerPropertiesOrBuilder
      Returns:
      The ocpuCount.
    • setOcpuCount

      public DbServerProperties.Builder setOcpuCount(int value)
       Optional. OCPU count per database.
       
      int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ocpuCount to set.
      Returns:
      This builder for chaining.
    • clearOcpuCount

      public DbServerProperties.Builder clearOcpuCount()
       Optional. OCPU count per database.
       
      int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMaxOcpuCount

      public int getMaxOcpuCount()
       Optional. Maximum OCPU count per database.
       
      int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxOcpuCount in interface DbServerPropertiesOrBuilder
      Returns:
      The maxOcpuCount.
    • setMaxOcpuCount

      public DbServerProperties.Builder setMaxOcpuCount(int value)
       Optional. Maximum OCPU count per database.
       
      int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxOcpuCount to set.
      Returns:
      This builder for chaining.
    • clearMaxOcpuCount

      public DbServerProperties.Builder clearMaxOcpuCount()
       Optional. Maximum OCPU count per database.
       
      int32 max_ocpu_count = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMemorySizeGb

      public int getMemorySizeGb()
       Optional. Memory allocated in GBs.
       
      int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMemorySizeGb in interface DbServerPropertiesOrBuilder
      Returns:
      The memorySizeGb.
    • setMemorySizeGb

      public DbServerProperties.Builder setMemorySizeGb(int value)
       Optional. Memory allocated in GBs.
       
      int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The memorySizeGb to set.
      Returns:
      This builder for chaining.
    • clearMemorySizeGb

      public DbServerProperties.Builder clearMemorySizeGb()
       Optional. Memory allocated in GBs.
       
      int32 memory_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMaxMemorySizeGb

      public int getMaxMemorySizeGb()
       Optional. Maximum memory allocated in GBs.
       
      int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxMemorySizeGb in interface DbServerPropertiesOrBuilder
      Returns:
      The maxMemorySizeGb.
    • setMaxMemorySizeGb

      public DbServerProperties.Builder setMaxMemorySizeGb(int value)
       Optional. Maximum memory allocated in GBs.
       
      int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxMemorySizeGb to set.
      Returns:
      This builder for chaining.
    • clearMaxMemorySizeGb

      public DbServerProperties.Builder clearMaxMemorySizeGb()
       Optional. Maximum memory allocated in GBs.
       
      int32 max_memory_size_gb = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDbNodeStorageSizeGb

      public int getDbNodeStorageSizeGb()
       Optional. Local storage per VM.
       
      int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDbNodeStorageSizeGb in interface DbServerPropertiesOrBuilder
      Returns:
      The dbNodeStorageSizeGb.
    • setDbNodeStorageSizeGb

      public DbServerProperties.Builder setDbNodeStorageSizeGb(int value)
       Optional. Local storage per VM.
       
      int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dbNodeStorageSizeGb to set.
      Returns:
      This builder for chaining.
    • clearDbNodeStorageSizeGb

      public DbServerProperties.Builder clearDbNodeStorageSizeGb()
       Optional. Local storage per VM.
       
      int32 db_node_storage_size_gb = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getMaxDbNodeStorageSizeGb

      public int getMaxDbNodeStorageSizeGb()
       Optional. Maximum local storage per VM.
       
      int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMaxDbNodeStorageSizeGb in interface DbServerPropertiesOrBuilder
      Returns:
      The maxDbNodeStorageSizeGb.
    • setMaxDbNodeStorageSizeGb

      public DbServerProperties.Builder setMaxDbNodeStorageSizeGb(int value)
       Optional. Maximum local storage per VM.
       
      int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The maxDbNodeStorageSizeGb to set.
      Returns:
      This builder for chaining.
    • clearMaxDbNodeStorageSizeGb

      public DbServerProperties.Builder clearMaxDbNodeStorageSizeGb()
       Optional. Maximum local storage per VM.
       
      int32 max_db_node_storage_size_gb = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getVmCount

      public int getVmCount()
       Optional. Vm count per database.
       
      int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVmCount in interface DbServerPropertiesOrBuilder
      Returns:
      The vmCount.
    • setVmCount

      public DbServerProperties.Builder setVmCount(int value)
       Optional. Vm count per database.
       
      int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The vmCount to set.
      Returns:
      This builder for chaining.
    • clearVmCount

      public DbServerProperties.Builder clearVmCount()
       Optional. Vm count per database.
       
      int32 vm_count = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the database server.
       
      .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface DbServerPropertiesOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public DbServerProperties.Builder setStateValue(int value)
       Output only. State of the database server.
       
      .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.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 DbServerProperties.State getState()
       Output only. State of the database server.
       
      .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface DbServerPropertiesOrBuilder
      Returns:
      The state.
    • setState

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

      public DbServerProperties.Builder clearState()
       Output only. State of the database server.
       
      .google.cloud.oracledatabase.v1.DbServerProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getDbNodeIdsList

      public com.google.protobuf.ProtocolStringList getDbNodeIdsList()
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDbNodeIdsList in interface DbServerPropertiesOrBuilder
      Returns:
      A list containing the dbNodeIds.
    • getDbNodeIdsCount

      public int getDbNodeIdsCount()
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDbNodeIdsCount in interface DbServerPropertiesOrBuilder
      Returns:
      The count of dbNodeIds.
    • getDbNodeIds

      public String getDbNodeIds(int index)
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDbNodeIds in interface DbServerPropertiesOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dbNodeIds at the given index.
    • getDbNodeIdsBytes

      public com.google.protobuf.ByteString getDbNodeIdsBytes(int index)
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getDbNodeIdsBytes in interface DbServerPropertiesOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dbNodeIds at the given index.
    • setDbNodeIds

      public DbServerProperties.Builder setDbNodeIds(int index, String value)
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The dbNodeIds to set.
      Returns:
      This builder for chaining.
    • addDbNodeIds

      public DbServerProperties.Builder addDbNodeIds(String value)
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The dbNodeIds to add.
      Returns:
      This builder for chaining.
    • addAllDbNodeIds

      public DbServerProperties.Builder addAllDbNodeIds(Iterable<String> values)
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The dbNodeIds to add.
      Returns:
      This builder for chaining.
    • clearDbNodeIds

      public DbServerProperties.Builder clearDbNodeIds()
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addDbNodeIdsBytes

      public DbServerProperties.Builder addDbNodeIdsBytes(com.google.protobuf.ByteString value)
       Output only. OCID of database nodes associated with the database server.
       
      repeated string db_node_ids = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the dbNodeIds to add.
      Returns:
      This builder for chaining.