Class ListNodesResponse.Builder (2.29.0)

public static final class ListNodesResponse.Builder extends GeneratedMessageV3.Builder<ListNodesResponse.Builder> implements ListNodesResponseOrBuilder

Response for ListNodes.

Protobuf type google.cloud.tpu.v1.ListNodesResponse

Static Methods

getDescriptor()

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

Methods

addAllNodes(Iterable<? extends Node> values)

public ListNodesResponse.Builder addAllNodes(Iterable<? extends Node> values)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.tpu.v1.Node>
Returns
TypeDescription
ListNodesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListNodesResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valuesIterable<String>

The unreachable to add.

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

addNodes(Node value)

public ListNodesResponse.Builder addNodes(Node value)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
valueNode
Returns
TypeDescription
ListNodesResponse.Builder

addNodes(Node.Builder builderForValue)

public ListNodesResponse.Builder addNodes(Node.Builder builderForValue)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
builderForValueNode.Builder
Returns
TypeDescription
ListNodesResponse.Builder

addNodes(int index, Node value)

public ListNodesResponse.Builder addNodes(int index, Node value)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameters
NameDescription
indexint
valueNode
Returns
TypeDescription
ListNodesResponse.Builder

addNodes(int index, Node.Builder builderForValue)

public ListNodesResponse.Builder addNodes(int index, Node.Builder builderForValue)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameters
NameDescription
indexint
builderForValueNode.Builder
Returns
TypeDescription
ListNodesResponse.Builder

addNodesBuilder()

public Node.Builder addNodesBuilder()

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Returns
TypeDescription
Node.Builder

addNodesBuilder(int index)

public Node.Builder addNodesBuilder(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Node.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListNodesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListNodesResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

build()

public ListNodesResponse build()
Returns
TypeDescription
ListNodesResponse

buildPartial()

public ListNodesResponse buildPartial()
Returns
TypeDescription
ListNodesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListNodesResponse.Builder clearNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

clearNodes()

public ListNodesResponse.Builder clearNodes()

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Returns
TypeDescription
ListNodesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListNodesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListNodesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListNodesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next page token or empty if none.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getNodes(int index)

public Node getNodes(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Node

getNodesBuilder(int index)

public Node.Builder getNodesBuilder(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Node.Builder

getNodesBuilderList()

public List<Node.Builder> getNodesBuilderList()

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Returns
TypeDescription
List<Builder>

getNodesCount()

public int getNodesCount()

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Returns
TypeDescription
int

getNodesList()

public List<Node> getNodesList()

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Returns
TypeDescription
List<Node>

getNodesOrBuilder(int index)

public NodeOrBuilder getNodesOrBuilder(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodeOrBuilder

getNodesOrBuilderList()

public List<? extends NodeOrBuilder> getNodesOrBuilderList()

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Returns
TypeDescription
List<? extends com.google.cloud.tpu.v1.NodeOrBuilder>

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListNodesResponse other)

public ListNodesResponse.Builder mergeFrom(ListNodesResponse other)
Parameter
NameDescription
otherListNodesResponse
Returns
TypeDescription
ListNodesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNodes(int index)

public ListNodesResponse.Builder removeNodes(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListNodesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListNodesResponse.Builder setNextPageToken(String value)

The next page token or empty if none.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListNodesResponse.Builder setNextPageTokenBytes(ByteString value)

The next page token or empty if none.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.

setNodes(int index, Node value)

public ListNodesResponse.Builder setNodes(int index, Node value)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameters
NameDescription
indexint
valueNode
Returns
TypeDescription
ListNodesResponse.Builder

setNodes(int index, Node.Builder builderForValue)

public ListNodesResponse.Builder setNodes(int index, Node.Builder builderForValue)

The listed nodes.

repeated .google.cloud.tpu.v1.Node nodes = 1;

Parameters
NameDescription
indexint
builderForValueNode.Builder
Returns
TypeDescription
ListNodesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListNodesResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListNodesResponse.Builder

This builder for chaining.