Class ListNodesResponse.Builder (2.56.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
Type Description
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
Name Description
values Iterable<? extends com.google.cloud.tpu.v1.Node>
Returns
Type Description
ListNodesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
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
Name Description
value Node
Returns
Type Description
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
Name Description
builderForValue Node.Builder
Returns
Type Description
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
Name Description
index int
value Node
Returns
Type Description
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
Name Description
index int
builderForValue Node.Builder
Returns
Type Description
ListNodesResponse.Builder

addNodesBuilder()

public Node.Builder addNodesBuilder()

The listed nodes.

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

Returns
Type Description
Node.Builder

addNodesBuilder(int index)

public Node.Builder addNodesBuilder(int index)

The listed nodes.

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

Parameter
Name Description
index int
Returns
Type Description
Node.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListNodesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListNodesResponse.Builder

This builder for chaining.

build()

public ListNodesResponse build()
Returns
Type Description
ListNodesResponse

buildPartial()

public ListNodesResponse buildPartial()
Returns
Type Description
ListNodesResponse

clear()

public ListNodesResponse.Builder clear()
Returns
Type Description
ListNodesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListNodesResponse.Builder clearNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
Type Description
ListNodesResponse.Builder

This builder for chaining.

clearNodes()

public ListNodesResponse.Builder clearNodes()

The listed nodes.

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

Returns
Type Description
ListNodesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListNodesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListNodesResponse.Builder

This builder for chaining.

clone()

public ListNodesResponse.Builder clone()
Returns
Type Description
ListNodesResponse.Builder
Overrides

getDefaultInstanceForType()

public ListNodesResponse getDefaultInstanceForType()
Returns
Type Description
ListNodesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next page token or empty if none.

string next_page_token = 2;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
Node

getNodesBuilder(int index)

public Node.Builder getNodesBuilder(int index)

The listed nodes.

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

Parameter
Name Description
index int
Returns
Type Description
Node.Builder

getNodesBuilderList()

public List<Node.Builder> getNodesBuilderList()

The listed nodes.

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

Returns
Type Description
List<Builder>

getNodesCount()

public int getNodesCount()

The listed nodes.

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

Returns
Type Description
int

getNodesList()

public List<Node> getNodesList()

The listed nodes.

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

Returns
Type Description
List<Node>

getNodesOrBuilder(int index)

public NodeOrBuilder getNodesOrBuilder(int index)

The listed nodes.

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

Parameter
Name Description
index int
Returns
Type Description
NodeOrBuilder

getNodesOrBuilderList()

public List<? extends NodeOrBuilder> getNodesOrBuilderList()

The listed nodes.

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

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListNodesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeNodes(int index)

public ListNodesResponse.Builder removeNodes(int index)

The listed nodes.

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

Parameter
Name Description
index int
Returns
Type Description
ListNodesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListNodesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The nextPageToken to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
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
Name Description
index int
value Node
Returns
Type Description
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
Name Description
index int
builderForValue Node.Builder
Returns
Type Description
ListNodesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListNodesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListNodesResponse.Builder

This builder for chaining.