Class Instance.Node.Builder (2.54.0)

public static final class Instance.Node.Builder extends GeneratedMessageV3.Builder<Instance.Node.Builder> implements Instance.NodeOrBuilder

Protobuf type google.cloud.memcache.v1beta2.Instance.Node

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Instance.Node build()
Returns
Type Description
Instance.Node

buildPartial()

public Instance.Node buildPartial()
Returns
Type Description
Instance.Node

clear()

public Instance.Node.Builder clear()
Returns
Type Description
Instance.Node.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearHost()

public Instance.Node.Builder clearHost()

Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.

string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

clearNodeId()

public Instance.Node.Builder clearNodeId()

Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.

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

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParameters()

public Instance.Node.Builder clearParameters()

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Returns
Type Description
Instance.Node.Builder

clearPort()

public Instance.Node.Builder clearPort()

Output only. The port number of the Memcached server on this node.

int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

clearState()

public Instance.Node.Builder clearState()

Output only. Current state of the Memcached node.

.google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

clearUpdateAvailable()

public Instance.Node.Builder clearUpdateAvailable()

Output only. Returns true if there is an update waiting to be applied

bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

clearZone()

public Instance.Node.Builder clearZone()

Output only. Location (GCP Zone) for the Memcached node.

string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

clone()

public Instance.Node.Builder clone()
Returns
Type Description
Instance.Node.Builder
Overrides

getDefaultInstanceForType()

public Instance.Node getDefaultInstanceForType()
Returns
Type Description
Instance.Node

getDescriptorForType()

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

getHost()

public String getHost()

Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.

string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The host.

getHostBytes()

public ByteString getHostBytes()

Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.

string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for host.

getNodeId()

public String getNodeId()

Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.

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

Returns
Type Description
String

The nodeId.

getNodeIdBytes()

public ByteString getNodeIdBytes()

Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.

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

Returns
Type Description
ByteString

The bytes for nodeId.

getParameters()

public MemcacheParameters getParameters()

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Returns
Type Description
MemcacheParameters

The parameters.

getParametersBuilder()

public MemcacheParameters.Builder getParametersBuilder()

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Returns
Type Description
MemcacheParameters.Builder

getParametersOrBuilder()

public MemcacheParametersOrBuilder getParametersOrBuilder()

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Returns
Type Description
MemcacheParametersOrBuilder

getPort()

public int getPort()

Output only. The port number of the Memcached server on this node.

int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The port.

getState()

public Instance.Node.State getState()

Output only. Current state of the Memcached node.

.google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Instance.Node.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the Memcached node.

.google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateAvailable()

public boolean getUpdateAvailable()

Output only. Returns true if there is an update waiting to be applied

bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The updateAvailable.

getZone()

public String getZone()

Output only. Location (GCP Zone) for the Memcached node.

string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. Location (GCP Zone) for the Memcached node.

string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for zone.

hasParameters()

public boolean hasParameters()

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Returns
Type Description
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.Node other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeParameters(MemcacheParameters value)

public Instance.Node.Builder mergeParameters(MemcacheParameters value)

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Parameter
Name Description
value MemcacheParameters
Returns
Type Description
Instance.Node.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setHost(String value)

public Instance.Node.Builder setHost(String value)

Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.

string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The host to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setHostBytes(ByteString value)

public Instance.Node.Builder setHostBytes(ByteString value)

Output only. Hostname or IP address of the Memcached node used by the clients to connect to the Memcached server on this node.

string host = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for host to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setNodeId(String value)

public Instance.Node.Builder setNodeId(String value)

Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.

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

Parameter
Name Description
value String

The nodeId to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setNodeIdBytes(ByteString value)

public Instance.Node.Builder setNodeIdBytes(ByteString value)

Output only. Identifier of the Memcached node. The node id does not include project or location like the Memcached instance name.

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

Parameter
Name Description
value ByteString

The bytes for nodeId to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setParameters(MemcacheParameters value)

public Instance.Node.Builder setParameters(MemcacheParameters value)

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Parameter
Name Description
value MemcacheParameters
Returns
Type Description
Instance.Node.Builder

setParameters(MemcacheParameters.Builder builderForValue)

public Instance.Node.Builder setParameters(MemcacheParameters.Builder builderForValue)

User defined parameters currently applied to the node.

.google.cloud.memcache.v1beta2.MemcacheParameters parameters = 6;

Parameter
Name Description
builderForValue MemcacheParameters.Builder
Returns
Type Description
Instance.Node.Builder

setPort(int value)

public Instance.Node.Builder setPort(int value)

Output only. The port number of the Memcached server on this node.

int32 port = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The port to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

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

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

setState(Instance.Node.State value)

public Instance.Node.Builder setState(Instance.Node.State value)

Output only. Current state of the Memcached node.

.google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Instance.Node.State

The state to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setStateValue(int value)

public Instance.Node.Builder setStateValue(int value)

Output only. Current state of the Memcached node.

.google.cloud.memcache.v1beta2.Instance.Node.State state = 3 [(.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
Instance.Node.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateAvailable(boolean value)

public Instance.Node.Builder setUpdateAvailable(boolean value)

Output only. Returns true if there is an update waiting to be applied

bool update_available = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The updateAvailable to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setZone(String value)

public Instance.Node.Builder setZone(String value)

Output only. Location (GCP Zone) for the Memcached node.

string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public Instance.Node.Builder setZoneBytes(ByteString value)

Output only. Location (GCP Zone) for the Memcached node.

string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
Instance.Node.Builder

This builder for chaining.