Class ListAcceleratorTypesResponse.Builder (2.49.0)

public static final class ListAcceleratorTypesResponse.Builder extends GeneratedMessageV3.Builder<ListAcceleratorTypesResponse.Builder> implements ListAcceleratorTypesResponseOrBuilder

Response for ListAcceleratorTypes.

Protobuf type google.cloud.tpu.v1.ListAcceleratorTypesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAcceleratorTypes(AcceleratorType value)

public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(AcceleratorType value)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
value AcceleratorType
Returns
Type Description
ListAcceleratorTypesResponse.Builder

addAcceleratorTypes(AcceleratorType.Builder builderForValue)

public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(AcceleratorType.Builder builderForValue)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
builderForValue AcceleratorType.Builder
Returns
Type Description
ListAcceleratorTypesResponse.Builder

addAcceleratorTypes(int index, AcceleratorType value)

public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(int index, AcceleratorType value)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameters
Name Description
index int
value AcceleratorType
Returns
Type Description
ListAcceleratorTypesResponse.Builder

addAcceleratorTypes(int index, AcceleratorType.Builder builderForValue)

public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(int index, AcceleratorType.Builder builderForValue)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameters
Name Description
index int
builderForValue AcceleratorType.Builder
Returns
Type Description
ListAcceleratorTypesResponse.Builder

addAcceleratorTypesBuilder()

public AcceleratorType.Builder addAcceleratorTypesBuilder()

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Returns
Type Description
AcceleratorType.Builder

addAcceleratorTypesBuilder(int index)

public AcceleratorType.Builder addAcceleratorTypesBuilder(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorType.Builder

addAllAcceleratorTypes(Iterable<? extends AcceleratorType> values)

public ListAcceleratorTypesResponse.Builder addAllAcceleratorTypes(Iterable<? extends AcceleratorType> values)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.tpu.v1.AcceleratorType>
Returns
Type Description
ListAcceleratorTypesResponse.Builder

addAllUnreachable(Iterable<String> values)

public ListAcceleratorTypesResponse.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
ListAcceleratorTypesResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListAcceleratorTypesResponse.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
ListAcceleratorTypesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListAcceleratorTypesResponse.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
ListAcceleratorTypesResponse.Builder

This builder for chaining.

build()

public ListAcceleratorTypesResponse build()
Returns
Type Description
ListAcceleratorTypesResponse

buildPartial()

public ListAcceleratorTypesResponse buildPartial()
Returns
Type Description
ListAcceleratorTypesResponse

clear()

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

clearAcceleratorTypes()

public ListAcceleratorTypesResponse.Builder clearAcceleratorTypes()

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Returns
Type Description
ListAcceleratorTypesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAcceleratorTypesResponse.Builder clearNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
Type Description
ListAcceleratorTypesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListAcceleratorTypesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListAcceleratorTypesResponse.Builder

This builder for chaining.

clone()

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

getAcceleratorTypes(int index)

public AcceleratorType getAcceleratorTypes(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorType

getAcceleratorTypesBuilder(int index)

public AcceleratorType.Builder getAcceleratorTypesBuilder(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorType.Builder

getAcceleratorTypesBuilderList()

public List<AcceleratorType.Builder> getAcceleratorTypesBuilderList()

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Returns
Type Description
List<Builder>

getAcceleratorTypesCount()

public int getAcceleratorTypesCount()

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Returns
Type Description
int

getAcceleratorTypesList()

public List<AcceleratorType> getAcceleratorTypesList()

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Returns
Type Description
List<AcceleratorType>

getAcceleratorTypesOrBuilder(int index)

public AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
index int
Returns
Type Description
AcceleratorTypeOrBuilder

getAcceleratorTypesOrBuilderList()

public List<? extends AcceleratorTypeOrBuilder> getAcceleratorTypesOrBuilderList()

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Returns
Type Description
List<? extends com.google.cloud.tpu.v1.AcceleratorTypeOrBuilder>

getDefaultInstanceForType()

public ListAcceleratorTypesResponse getDefaultInstanceForType()
Returns
Type Description
ListAcceleratorTypesResponse

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.

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(ListAcceleratorTypesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAcceleratorTypes(int index)

public ListAcceleratorTypesResponse.Builder removeAcceleratorTypes(int index)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAcceleratorTypesResponse.Builder

setAcceleratorTypes(int index, AcceleratorType value)

public ListAcceleratorTypesResponse.Builder setAcceleratorTypes(int index, AcceleratorType value)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameters
Name Description
index int
value AcceleratorType
Returns
Type Description
ListAcceleratorTypesResponse.Builder

setAcceleratorTypes(int index, AcceleratorType.Builder builderForValue)

public ListAcceleratorTypesResponse.Builder setAcceleratorTypes(int index, AcceleratorType.Builder builderForValue)

The listed nodes.

repeated .google.cloud.tpu.v1.AcceleratorType accelerator_types = 1;

Parameters
Name Description
index int
builderForValue AcceleratorType.Builder
Returns
Type Description
ListAcceleratorTypesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAcceleratorTypesResponse.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
ListAcceleratorTypesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAcceleratorTypesResponse.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
ListAcceleratorTypesResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final ListAcceleratorTypesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListAcceleratorTypesResponse.Builder
Overrides

setUnreachable(int index, String value)

public ListAcceleratorTypesResponse.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
ListAcceleratorTypesResponse.Builder

This builder for chaining.