Class ListAcceleratorTypesResponse.Builder (2.14.0)

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

Response for ListAcceleratorTypes.

Protobuf type google.cloud.tpu.v2.ListAcceleratorTypesResponse

Static Methods

getDescriptor()

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

Methods

addAcceleratorTypes(AcceleratorType value)

public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(AcceleratorType value)

The listed nodes.

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

Parameter
NameDescription
valueAcceleratorType
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

addAcceleratorTypes(AcceleratorType.Builder builderForValue)

public ListAcceleratorTypesResponse.Builder addAcceleratorTypes(AcceleratorType.Builder builderForValue)

The listed nodes.

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

Parameter
NameDescription
builderForValueAcceleratorType.Builder
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

addAcceleratorTypes(int index, AcceleratorType value)

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

The listed nodes.

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

Parameters
NameDescription
indexint
valueAcceleratorType
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

addAcceleratorTypes(int index, AcceleratorType.Builder builderForValue)

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

The listed nodes.

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

Parameters
NameDescription
indexint
builderForValueAcceleratorType.Builder
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

addAcceleratorTypesBuilder()

public AcceleratorType.Builder addAcceleratorTypesBuilder()

The listed nodes.

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

Returns
TypeDescription
AcceleratorType.Builder

addAcceleratorTypesBuilder(int index)

public AcceleratorType.Builder addAcceleratorTypesBuilder(int index)

The listed nodes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorType.Builder

addAllAcceleratorTypes(Iterable<? extends AcceleratorType> values)

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

The listed nodes.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.tpu.v2.AcceleratorType>
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListAcceleratorTypesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the unreachable to add.

Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

This builder for chaining.

build()

public ListAcceleratorTypesResponse build()
Returns
TypeDescription
ListAcceleratorTypesResponse

buildPartial()

public ListAcceleratorTypesResponse buildPartial()
Returns
TypeDescription
ListAcceleratorTypesResponse

clear()

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

clearAcceleratorTypes()

public ListAcceleratorTypesResponse.Builder clearAcceleratorTypes()

The listed nodes.

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

Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAcceleratorTypesResponse.Builder clearNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListAcceleratorTypesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

This builder for chaining.

clone()

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

getAcceleratorTypes(int index)

public AcceleratorType getAcceleratorTypes(int index)

The listed nodes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorType

getAcceleratorTypesBuilder(int index)

public AcceleratorType.Builder getAcceleratorTypesBuilder(int index)

The listed nodes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorType.Builder

getAcceleratorTypesBuilderList()

public List<AcceleratorType.Builder> getAcceleratorTypesBuilderList()

The listed nodes.

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

Returns
TypeDescription
List<Builder>

getAcceleratorTypesCount()

public int getAcceleratorTypesCount()

The listed nodes.

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

Returns
TypeDescription
int

getAcceleratorTypesList()

public List<AcceleratorType> getAcceleratorTypesList()

The listed nodes.

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

Returns
TypeDescription
List<AcceleratorType>

getAcceleratorTypesOrBuilder(int index)

public AcceleratorTypeOrBuilder getAcceleratorTypesOrBuilder(int index)

The listed nodes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorTypeOrBuilder

getAcceleratorTypesOrBuilderList()

public List<? extends AcceleratorTypeOrBuilder> getAcceleratorTypesOrBuilderList()

The listed nodes.

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

Returns
TypeDescription
List<? extends com.google.cloud.tpu.v2.AcceleratorTypeOrBuilder>

getDefaultInstanceForType()

public ListAcceleratorTypesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListAcceleratorTypesResponse

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.

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

public ListAcceleratorTypesResponse.Builder mergeFrom(ListAcceleratorTypesResponse other)
Parameter
NameDescription
otherListAcceleratorTypesResponse
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAcceleratorTypes(int index)

public ListAcceleratorTypesResponse.Builder removeAcceleratorTypes(int index)

The listed nodes.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

setAcceleratorTypes(int index, AcceleratorType value)

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

The listed nodes.

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

Parameters
NameDescription
indexint
valueAcceleratorType
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

setAcceleratorTypes(int index, AcceleratorType.Builder builderForValue)

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

The listed nodes.

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

Parameters
NameDescription
indexint
builderForValueAcceleratorType.Builder
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListAcceleratorTypesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListAcceleratorTypesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListAcceleratorTypesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The unreachable to set.

Returns
TypeDescription
ListAcceleratorTypesResponse.Builder

This builder for chaining.