Class DbNodeProperties.Builder (0.4.0)

public static final class DbNodeProperties.Builder extends GeneratedMessageV3.Builder<DbNodeProperties.Builder> implements DbNodePropertiesOrBuilder

Various properties and settings associated with Db node.

Protobuf type google.cloud.oracledatabase.v1.DbNodeProperties

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DbNodeProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DbNodeProperties.Builder
Overrides

build()

public DbNodeProperties build()
Returns
Type Description
DbNodeProperties

buildPartial()

public DbNodeProperties buildPartial()
Returns
Type Description
DbNodeProperties

clear()

public DbNodeProperties.Builder clear()
Returns
Type Description
DbNodeProperties.Builder
Overrides

clearDbNodeStorageSizeGb()

public DbNodeProperties.Builder clearDbNodeStorageSizeGb()

Optional. Local storage per database node.

int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

clearDbServerOcid()

public DbNodeProperties.Builder clearDbServerOcid()

Optional. Database server OCID.

string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DbNodeProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DbNodeProperties.Builder
Overrides

clearHostname()

public DbNodeProperties.Builder clearHostname()

Optional. DNS

string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

clearMemorySizeGb()

public DbNodeProperties.Builder clearMemorySizeGb()

Memory allocated in GBs.

int32 memory_size_gb = 3;

Returns
Type Description
DbNodeProperties.Builder

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
Type Description
DbNodeProperties.Builder

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
Type Description
DbNodeProperties.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DbNodeProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DbNodeProperties.Builder
Overrides

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
Type Description
DbNodeProperties.Builder

This builder for chaining.

clearTotalCpuCoreCount()

public DbNodeProperties.Builder clearTotalCpuCoreCount()

Total CPU core count of the database node.

int32 total_cpu_core_count = 10;

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

clone()

public DbNodeProperties.Builder clone()
Returns
Type Description
DbNodeProperties.Builder
Overrides

getDbNodeStorageSizeGb()

public int getDbNodeStorageSizeGb()

Optional. Local storage per database node.

int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The dbNodeStorageSizeGb.

getDbServerOcid()

public String getDbServerOcid()

Optional. Database server OCID.

string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The dbServerOcid.

getDbServerOcidBytes()

public ByteString getDbServerOcidBytes()

Optional. Database server OCID.

string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dbServerOcid.

getDefaultInstanceForType()

public DbNodeProperties getDefaultInstanceForType()
Returns
Type Description
DbNodeProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHostname()

public String getHostname()

Optional. DNS

string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Optional. DNS

string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for hostname.

getMemorySizeGb()

public int getMemorySizeGb()

Memory allocated in GBs.

int32 memory_size_gb = 3;

Returns
Type Description
int

The memorySizeGb.

getOcid()

public String getOcid()

Output only. OCID of database node.

string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The ocid.

getOcidBytes()

public ByteString getOcidBytes()

Output only. OCID of database node.

string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for ocid.

getOcpuCount()

public int getOcpuCount()

Optional. OCPU count per database node.

int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The ocpuCount.

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];

Returns
Type Description
DbNodeProperties.State

The state.

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];

Returns
Type Description
int

The enum numeric value on the wire for state.

getTotalCpuCoreCount()

public int getTotalCpuCoreCount()

Total CPU core count of the database node.

int32 total_cpu_core_count = 10;

Returns
Type Description
int

The totalCpuCoreCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DbNodeProperties other)

public DbNodeProperties.Builder mergeFrom(DbNodeProperties other)
Parameter
Name Description
other DbNodeProperties
Returns
Type Description
DbNodeProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DbNodeProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DbNodeProperties.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DbNodeProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DbNodeProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DbNodeProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DbNodeProperties.Builder
Overrides

setDbNodeStorageSizeGb(int value)

public DbNodeProperties.Builder setDbNodeStorageSizeGb(int value)

Optional. Local storage per database node.

int32 db_node_storage_size_gb = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The dbNodeStorageSizeGb to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setDbServerOcid(String value)

public DbNodeProperties.Builder setDbServerOcid(String value)

Optional. Database server OCID.

string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The dbServerOcid to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setDbServerOcidBytes(ByteString value)

public DbNodeProperties.Builder setDbServerOcidBytes(ByteString value)

Optional. Database server OCID.

string db_server_ocid = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for dbServerOcid to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DbNodeProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DbNodeProperties.Builder
Overrides

setHostname(String value)

public DbNodeProperties.Builder setHostname(String value)

Optional. DNS

string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public DbNodeProperties.Builder setHostnameBytes(ByteString value)

Optional. DNS

string hostname = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setMemorySizeGb(int value)

public DbNodeProperties.Builder setMemorySizeGb(int value)

Memory allocated in GBs.

int32 memory_size_gb = 3;

Parameter
Name Description
value int

The memorySizeGb to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setOcid(String value)

public DbNodeProperties.Builder setOcid(String value)

Output only. OCID of database node.

string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The ocid to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setOcidBytes(ByteString value)

public DbNodeProperties.Builder setOcidBytes(ByteString value)

Output only. OCID of database node.

string ocid = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for ocid to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setOcpuCount(int value)

public DbNodeProperties.Builder setOcpuCount(int value)

Optional. OCPU count per database node.

int32 ocpu_count = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The ocpuCount to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DbNodeProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DbNodeProperties.Builder
Overrides

setState(DbNodeProperties.State value)

public DbNodeProperties.Builder setState(DbNodeProperties.State value)

Output only. State of the database node.

.google.cloud.oracledatabase.v1.DbNodeProperties.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DbNodeProperties.State

The state to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setTotalCpuCoreCount(int value)

public DbNodeProperties.Builder setTotalCpuCoreCount(int value)

Total CPU core count of the database node.

int32 total_cpu_core_count = 10;

Parameter
Name Description
value int

The totalCpuCoreCount to set.

Returns
Type Description
DbNodeProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DbNodeProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DbNodeProperties.Builder
Overrides