Class NodeConfig.Builder (0.1.0)

public static final class NodeConfig.Builder extends GeneratedMessageV3.Builder<NodeConfig.Builder> implements NodeConfigOrBuilder

Represents configuration for nodes of the instance.

Protobuf type google.cloud.memorystore.v1beta.NodeConfig

Implements

NodeConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeConfig build()
Returns
Type Description
NodeConfig

buildPartial()

public NodeConfig buildPartial()
Returns
Type Description
NodeConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSizeGb()

public NodeConfig.Builder clearSizeGb()

Output only. Memory size in GB of the node.

double size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
NodeConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NodeConfig getDefaultInstanceForType()
Returns
Type Description
NodeConfig

getDescriptorForType()

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

getSizeGb()

public double getSizeGb()

Output only. Memory size in GB of the node.

double size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The sizeGb.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSizeGb(double value)

public NodeConfig.Builder setSizeGb(double value)

Output only. Memory size in GB of the node.

double size_gb = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value double

The sizeGb to set.

Returns
Type Description
NodeConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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