Class ListQueuedResourcesResponse.Builder (2.36.0)

public static final class ListQueuedResourcesResponse.Builder extends GeneratedMessageV3.Builder<ListQueuedResourcesResponse.Builder> implements ListQueuedResourcesResponseOrBuilder

Response for ListQueuedResources.

Protobuf type google.cloud.tpu.v2alpha1.ListQueuedResourcesResponse

Static Methods

getDescriptor()

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

Methods

addAllQueuedResources(Iterable<? extends QueuedResource> values)

public ListQueuedResourcesResponse.Builder addAllQueuedResources(Iterable<? extends QueuedResource> values)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.tpu.v2alpha1.QueuedResource>
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addQueuedResources(QueuedResource value)

public ListQueuedResourcesResponse.Builder addQueuedResources(QueuedResource value)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
valueQueuedResource
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

addQueuedResources(QueuedResource.Builder builderForValue)

public ListQueuedResourcesResponse.Builder addQueuedResources(QueuedResource.Builder builderForValue)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
builderForValueQueuedResource.Builder
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

addQueuedResources(int index, QueuedResource value)

public ListQueuedResourcesResponse.Builder addQueuedResources(int index, QueuedResource value)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameters
NameDescription
indexint
valueQueuedResource
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

addQueuedResources(int index, QueuedResource.Builder builderForValue)

public ListQueuedResourcesResponse.Builder addQueuedResources(int index, QueuedResource.Builder builderForValue)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameters
NameDescription
indexint
builderForValueQueuedResource.Builder
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

addQueuedResourcesBuilder()

public QueuedResource.Builder addQueuedResourcesBuilder()

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Returns
TypeDescription
QueuedResource.Builder

addQueuedResourcesBuilder(int index)

public QueuedResource.Builder addQueuedResourcesBuilder(int index)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QueuedResource.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListQueuedResourcesResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
NameDescription
valueString

The unreachable to add.

Returns
TypeDescription
ListQueuedResourcesResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListQueuedResourcesResponse build()
Returns
TypeDescription
ListQueuedResourcesResponse

buildPartial()

public ListQueuedResourcesResponse buildPartial()
Returns
TypeDescription
ListQueuedResourcesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListQueuedResourcesResponse.Builder clearNextPageToken()

The next page token or empty if none.

string next_page_token = 2;

Returns
TypeDescription
ListQueuedResourcesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearQueuedResources()

public ListQueuedResourcesResponse.Builder clearQueuedResources()

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Returns
TypeDescription
ListQueuedResourcesResponse.Builder

clearUnreachable()

public ListQueuedResourcesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
TypeDescription
ListQueuedResourcesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListQueuedResourcesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListQueuedResourcesResponse

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.

getQueuedResources(int index)

public QueuedResource getQueuedResources(int index)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QueuedResource

getQueuedResourcesBuilder(int index)

public QueuedResource.Builder getQueuedResourcesBuilder(int index)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QueuedResource.Builder

getQueuedResourcesBuilderList()

public List<QueuedResource.Builder> getQueuedResourcesBuilderList()

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Returns
TypeDescription
List<Builder>

getQueuedResourcesCount()

public int getQueuedResourcesCount()

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Returns
TypeDescription
int

getQueuedResourcesList()

public List<QueuedResource> getQueuedResourcesList()

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Returns
TypeDescription
List<QueuedResource>

getQueuedResourcesOrBuilder(int index)

public QueuedResourceOrBuilder getQueuedResourcesOrBuilder(int index)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
QueuedResourceOrBuilder

getQueuedResourcesOrBuilderList()

public List<? extends QueuedResourceOrBuilder> getQueuedResourcesOrBuilderList()

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Returns
TypeDescription
List<? extends com.google.cloud.tpu.v2alpha1.QueuedResourceOrBuilder>

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

public ListQueuedResourcesResponse.Builder mergeFrom(ListQueuedResourcesResponse other)
Parameter
NameDescription
otherListQueuedResourcesResponse
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeQueuedResources(int index)

public ListQueuedResourcesResponse.Builder removeQueuedResources(int index)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

setQueuedResources(int index, QueuedResource value)

public ListQueuedResourcesResponse.Builder setQueuedResources(int index, QueuedResource value)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameters
NameDescription
indexint
valueQueuedResource
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

setQueuedResources(int index, QueuedResource.Builder builderForValue)

public ListQueuedResourcesResponse.Builder setQueuedResources(int index, QueuedResource.Builder builderForValue)

The listed queued resources.

repeated .google.cloud.tpu.v2alpha1.QueuedResource queued_resources = 1;

Parameters
NameDescription
indexint
builderForValueQueuedResource.Builder
Returns
TypeDescription
ListQueuedResourcesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.