Class Instance.Node.Builder (2.3.2)

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

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.Node.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Instance.Node.Builder
Overrides

build()

public Instance.Node build()
Returns
TypeDescription
Instance.Node

buildPartial()

public Instance.Node buildPartial()
Returns
TypeDescription
Instance.Node

clear()

public Instance.Node.Builder clear()
Returns
TypeDescription
Instance.Node.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Instance.Node.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Instance.Node.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.Node.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Instance.Node.Builder
Overrides

clearParameters()

public Instance.Node.Builder clearParameters()

User defined parameters currently applied to the node.

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

Returns
TypeDescription
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
TypeDescription
Instance.Node.Builder

This builder for chaining.

clearState()

public Instance.Node.Builder clearState()

Output only. Current state of the Memcached node.

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

Returns
TypeDescription
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
TypeDescription
Instance.Node.Builder

This builder for chaining.

clone()

public Instance.Node.Builder clone()
Returns
TypeDescription
Instance.Node.Builder
Overrides

getDefaultInstanceForType()

public Instance.Node getDefaultInstanceForType()
Returns
TypeDescription
Instance.Node

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nodeId.

getParameters()

public MemcacheParameters getParameters()

User defined parameters currently applied to the node.

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

Returns
TypeDescription
MemcacheParameters

The parameters.

getParametersBuilder()

public MemcacheParameters.Builder getParametersBuilder()

User defined parameters currently applied to the node.

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

Returns
TypeDescription
MemcacheParameters.Builder

getParametersOrBuilder()

public MemcacheParametersOrBuilder getParametersOrBuilder()

User defined parameters currently applied to the node.

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

Returns
TypeDescription
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
TypeDescription
int

The port.

getState()

public Instance.Node.State getState()

Output only. Current state of the Memcached node.

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

Returns
TypeDescription
Instance.Node.State

The state.

getStateValue()

public int getStateValue()

Output only. Current state of the Memcached node.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getZone()

public String getZone()

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

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

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for zone.

hasParameters()

public boolean hasParameters()

User defined parameters currently applied to the node.

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

Returns
TypeDescription
boolean

Whether the parameters field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Instance.Node other)

public Instance.Node.Builder mergeFrom(Instance.Node other)
Parameter
NameDescription
otherInstance.Node
Returns
TypeDescription
Instance.Node.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Instance.Node.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.Node.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Instance.Node.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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.v1.MemcacheParameters parameters = 6;

Parameter
NameDescription
valueMemcacheParameters
Returns
TypeDescription
Instance.Node.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Node.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Instance.Node.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.Node.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The host to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for host to set.

Returns
TypeDescription
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
NameDescription
valueString

The nodeId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nodeId to set.

Returns
TypeDescription
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.v1.MemcacheParameters parameters = 6;

Parameter
NameDescription
valueMemcacheParameters
Returns
TypeDescription
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.v1.MemcacheParameters parameters = 6;

Parameter
NameDescription
builderForValueMemcacheParameters.Builder
Returns
TypeDescription
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
NameDescription
valueint

The port to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueInstance.Node.State

The state to set.

Returns
TypeDescription
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.v1.Instance.Node.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.Node.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Instance.Node.Builder
Overrides

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
NameDescription
valueString

The zone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
Instance.Node.Builder

This builder for chaining.