Class NodeInfo.Builder (2.43.0)

public static final class NodeInfo.Builder extends GeneratedMessageV3.Builder<NodeInfo.Builder> implements NodeInfoOrBuilder

Node specific properties.

Protobuf type google.cloud.redis.v1.NodeInfo

Implements

NodeInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeInfo build()
Returns
TypeDescription
NodeInfo

buildPartial()

public NodeInfo buildPartial()
Returns
TypeDescription
NodeInfo

clear()

public NodeInfo.Builder clear()
Returns
TypeDescription
NodeInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public NodeInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
NodeInfo.Builder
Overrides

clearId()

public NodeInfo.Builder clearId()

Output only. Node identifying string. e.g. 'node-0', 'node-1'

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

Returns
TypeDescription
NodeInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearZone()

public NodeInfo.Builder clearZone()

Output only. Location of the node.

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

Returns
TypeDescription
NodeInfo.Builder

This builder for chaining.

clone()

public NodeInfo.Builder clone()
Returns
TypeDescription
NodeInfo.Builder
Overrides

getDefaultInstanceForType()

public NodeInfo getDefaultInstanceForType()
Returns
TypeDescription
NodeInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Output only. Node identifying string. e.g. 'node-0', 'node-1'

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

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. Node identifying string. e.g. 'node-0', 'node-1'

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

Returns
TypeDescription
ByteString

The bytes for id.

getZone()

public String getZone()

Output only. Location of the node.

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

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

Output only. Location of the node.

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

Returns
TypeDescription
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeInfo other)

public NodeInfo.Builder mergeFrom(NodeInfo other)
Parameter
NameDescription
otherNodeInfo
Returns
TypeDescription
NodeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public NodeInfo.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NodeInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public NodeInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NodeInfo.Builder
Overrides

setId(String value)

public NodeInfo.Builder setId(String value)

Output only. Node identifying string. e.g. 'node-0', 'node-1'

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

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
NodeInfo.Builder

This builder for chaining.

setIdBytes(ByteString value)

public NodeInfo.Builder setIdBytes(ByteString value)

Output only. Node identifying string. e.g. 'node-0', 'node-1'

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

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
NodeInfo.Builder

This builder for chaining.

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

public NodeInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setZone(String value)

public NodeInfo.Builder setZone(String value)

Output only. Location of the node.

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

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
NodeInfo.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public NodeInfo.Builder setZoneBytes(ByteString value)

Output only. Location of the node.

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

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
NodeInfo.Builder

This builder for chaining.