Class NodeInfo.Builder (2.81.0)

publicstaticfinalclass NodeInfo.BuilderextendsGeneratedMessageV3.Builder<NodeInfo.Builder>implementsNodeInfoOrBuilder

Node specific properties.

Protobuf type google.cloud.redis.v1.NodeInfo

Implements

NodeInfoOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicNodeInfo.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeInfo.Builder
Overrides

build()

publicNodeInfobuild()
Returns
Type Description
NodeInfo

buildPartial()

publicNodeInfobuildPartial()
Returns
Type Description
NodeInfo

clear()

publicNodeInfo.Builderclear()
Returns
Type Description
NodeInfo.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicNodeInfo.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NodeInfo.Builder
Overrides

clearId()

publicNodeInfo.BuilderclearId()

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

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

Returns
Type Description
NodeInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicNodeInfo.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NodeInfo.Builder
Overrides

clearZone()

publicNodeInfo.BuilderclearZone()

Output only. Location of the node.

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

Returns
Type Description
NodeInfo.Builder

This builder for chaining.

clone()

publicNodeInfo.Builderclone()
Returns
Type Description
NodeInfo.Builder
Overrides

getDefaultInstanceForType()

publicNodeInfogetDefaultInstanceForType()
Returns
Type Description
NodeInfo

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getId()

publicStringgetId()

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

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

Returns
Type Description
String

The id.

getIdBytes()

publicByteStringgetIdBytes()

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

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

Returns
Type Description
ByteString

The bytes for id.

getZone()

publicStringgetZone()

Output only. Location of the node.

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

Returns
Type Description
String

The zone.

getZoneBytes()

publicByteStringgetZoneBytes()

Output only. Location of the node.

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

Returns
Type Description
ByteString

The bytes for zone.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeInfo other)

publicNodeInfo.BuildermergeFrom(NodeInfoother)
Parameter
Name Description
other NodeInfo
Returns
Type Description
NodeInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicNodeInfo.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NodeInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicNodeInfo.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
NodeInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalNodeInfo.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeInfo.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicNodeInfo.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NodeInfo.Builder
Overrides

setId(String value)

publicNodeInfo.BuildersetId(Stringvalue)

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

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

Parameter
Name Description
value String

The id to set.

Returns
Type Description
NodeInfo.Builder

This builder for chaining.

setIdBytes(ByteString value)

publicNodeInfo.BuildersetIdBytes(ByteStringvalue)

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

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

Parameter
Name Description
value ByteString

The bytes for id to set.

Returns
Type Description
NodeInfo.Builder

This builder for chaining.

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

publicNodeInfo.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NodeInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalNodeInfo.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NodeInfo.Builder
Overrides

setZone(String value)

publicNodeInfo.BuildersetZone(Stringvalue)

Output only. Location of the node.

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

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
NodeInfo.Builder

This builder for chaining.

setZoneBytes(ByteString value)

publicNodeInfo.BuildersetZoneBytes(ByteStringvalue)

Output only. Location of the node.

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

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
NodeInfo.Builder

This builder for chaining.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.