Class DbNodeProperties.Builder

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

public static final class DbNodeProperties.Builder extends com.google.protobuf.GeneratedMessage.Builder<DbNodeProperties.Builder> implements DbNodePropertiesOrBuilder
 Various properties and settings associated with Db node.
 
Protobuf type google.cloud.oracledatabase.v1.DbNodeProperties
  • 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<DbNodeProperties.Builder>
    • clear

      public DbNodeProperties.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<DbNodeProperties.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<DbNodeProperties.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DbNodeProperties.Builder mergeFrom(DbNodeProperties other)
    • isInitialized

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

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

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

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

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

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

      public DbNodeProperties.Builder setOcidBytes(com.google.protobuf.ByteString value)
       Output only. OCID of database node.
       
      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 node.
       
      int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOcpuCount in interface DbNodePropertiesOrBuilder
      Returns:
      The ocpuCount.
    • setOcpuCount

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

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

      public int getMemorySizeGb()
       Memory allocated in GBs.
       
      int32 memory_size_gb = 3;
      Specified by:
      getMemorySizeGb in interface DbNodePropertiesOrBuilder
      Returns:
      The memorySizeGb.
    • setMemorySizeGb

      public DbNodeProperties.Builder setMemorySizeGb(int value)
       Memory allocated in GBs.
       
      int32 memory_size_gb = 3;
      Parameters:
      value - The memorySizeGb to set.
      Returns:
      This builder for chaining.
    • clearMemorySizeGb

      public DbNodeProperties.Builder clearMemorySizeGb()
       Memory allocated in GBs.
       
      int32 memory_size_gb = 3;
      Returns:
      This builder for chaining.
    • getDbNodeStorageSizeGb

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

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

      public DbNodeProperties.Builder clearDbNodeStorageSizeGb()
       Optional. Local storage per database node.
       
      int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDbServerOcid

      public String getDbServerOcid()
       Optional. Database server OCID.
       
      string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDbServerOcid in interface DbNodePropertiesOrBuilder
      Returns:
      The dbServerOcid.
    • getDbServerOcidBytes

      public com.google.protobuf.ByteString getDbServerOcidBytes()
       Optional. Database server OCID.
       
      string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDbServerOcidBytes in interface DbNodePropertiesOrBuilder
      Returns:
      The bytes for dbServerOcid.
    • setDbServerOcid

      public DbNodeProperties.Builder setDbServerOcid(String value)
       Optional. Database server OCID.
       
      string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dbServerOcid to set.
      Returns:
      This builder for chaining.
    • clearDbServerOcid

      public DbNodeProperties.Builder clearDbServerOcid()
       Optional. Database server OCID.
       
      string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDbServerOcidBytes

      public DbNodeProperties.Builder setDbServerOcidBytes(com.google.protobuf.ByteString value)
       Optional. Database server OCID.
       
      string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for dbServerOcid to set.
      Returns:
      This builder for chaining.
    • getHostname

      public String getHostname()
       Optional. DNS
       
      string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostname in interface DbNodePropertiesOrBuilder
      Returns:
      The hostname.
    • getHostnameBytes

      public com.google.protobuf.ByteString getHostnameBytes()
       Optional. DNS
       
      string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getHostnameBytes in interface DbNodePropertiesOrBuilder
      Returns:
      The bytes for hostname.
    • setHostname

      public DbNodeProperties.Builder setHostname(String value)
       Optional. DNS
       
      string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The hostname to set.
      Returns:
      This builder for chaining.
    • clearHostname

      public DbNodeProperties.Builder clearHostname()
       Optional. DNS
       
      string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setHostnameBytes

      public DbNodeProperties.Builder setHostnameBytes(com.google.protobuf.ByteString value)
       Optional. DNS
       
      string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for hostname to set.
      Returns:
      This builder for chaining.
    • getStateValue

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

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

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

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

      public int getTotalCpuCoreCount()
       Total CPU core count of the database node.
       
      int32 total_cpu_core_count = 10;
      Specified by:
      getTotalCpuCoreCount in interface DbNodePropertiesOrBuilder
      Returns:
      The totalCpuCoreCount.
    • setTotalCpuCoreCount

      public DbNodeProperties.Builder setTotalCpuCoreCount(int value)
       Total CPU core count of the database node.
       
      int32 total_cpu_core_count = 10;
      Parameters:
      value - The totalCpuCoreCount to set.
      Returns:
      This builder for chaining.
    • clearTotalCpuCoreCount

      public DbNodeProperties.Builder clearTotalCpuCoreCount()
       Total CPU core count of the database node.
       
      int32 total_cpu_core_count = 10;
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface DbNodePropertiesOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface DbNodePropertiesOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public DbNodeProperties.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public DbNodeProperties.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public DbNodeProperties.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public DbNodeProperties.Builder clearCreateTime()
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The date and time that the database node was created.
       
      .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface DbNodePropertiesOrBuilder