Class ListResourceAllowancesResponse.Builder (0.41.0)

public static final class ListResourceAllowancesResponse.Builder extends GeneratedMessageV3.Builder<ListResourceAllowancesResponse.Builder> implements ListResourceAllowancesResponseOrBuilder

ListResourceAllowances Response.

Protobuf type google.cloud.batch.v1alpha.ListResourceAllowancesResponse

Static Methods

getDescriptor()

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

Methods

addAllResourceAllowances(Iterable<? extends ResourceAllowance> values)

public ListResourceAllowancesResponse.Builder addAllResourceAllowances(Iterable<? extends ResourceAllowance> values)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.batch.v1alpha.ResourceAllowance>
Returns
Type Description
ListResourceAllowancesResponse.Builder

addAllUnreachable(Iterable<String> values)

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

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addResourceAllowances(ResourceAllowance value)

public ListResourceAllowancesResponse.Builder addResourceAllowances(ResourceAllowance value)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
value ResourceAllowance
Returns
Type Description
ListResourceAllowancesResponse.Builder

addResourceAllowances(ResourceAllowance.Builder builderForValue)

public ListResourceAllowancesResponse.Builder addResourceAllowances(ResourceAllowance.Builder builderForValue)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
builderForValue ResourceAllowance.Builder
Returns
Type Description
ListResourceAllowancesResponse.Builder

addResourceAllowances(int index, ResourceAllowance value)

public ListResourceAllowancesResponse.Builder addResourceAllowances(int index, ResourceAllowance value)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameters
Name Description
index int
value ResourceAllowance
Returns
Type Description
ListResourceAllowancesResponse.Builder

addResourceAllowances(int index, ResourceAllowance.Builder builderForValue)

public ListResourceAllowancesResponse.Builder addResourceAllowances(int index, ResourceAllowance.Builder builderForValue)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameters
Name Description
index int
builderForValue ResourceAllowance.Builder
Returns
Type Description
ListResourceAllowancesResponse.Builder

addResourceAllowancesBuilder()

public ResourceAllowance.Builder addResourceAllowancesBuilder()

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Returns
Type Description
ResourceAllowance.Builder

addResourceAllowancesBuilder(int index)

public ResourceAllowance.Builder addResourceAllowancesBuilder(int index)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceAllowance.Builder

addUnreachable(String value)

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

This builder for chaining.

addUnreachableBytes(ByteString value)

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

This builder for chaining.

build()

public ListResourceAllowancesResponse build()
Returns
Type Description
ListResourceAllowancesResponse

buildPartial()

public ListResourceAllowancesResponse buildPartial()
Returns
Type Description
ListResourceAllowancesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListResourceAllowancesResponse.Builder clearNextPageToken()

Next page token.

string next_page_token = 2;

Returns
Type Description
ListResourceAllowancesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearResourceAllowances()

public ListResourceAllowancesResponse.Builder clearResourceAllowances()

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Returns
Type Description
ListResourceAllowancesResponse.Builder

clearUnreachable()

public ListResourceAllowancesResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListResourceAllowancesResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListResourceAllowancesResponse getDefaultInstanceForType()
Returns
Type Description
ListResourceAllowancesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Next page token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Next page token.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getResourceAllowances(int index)

public ResourceAllowance getResourceAllowances(int index)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceAllowance

getResourceAllowancesBuilder(int index)

public ResourceAllowance.Builder getResourceAllowancesBuilder(int index)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceAllowance.Builder

getResourceAllowancesBuilderList()

public List<ResourceAllowance.Builder> getResourceAllowancesBuilderList()

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Returns
Type Description
List<Builder>

getResourceAllowancesCount()

public int getResourceAllowancesCount()

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Returns
Type Description
int

getResourceAllowancesList()

public List<ResourceAllowance> getResourceAllowancesList()

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Returns
Type Description
List<ResourceAllowance>

getResourceAllowancesOrBuilder(int index)

public ResourceAllowanceOrBuilder getResourceAllowancesOrBuilder(int index)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
index int
Returns
Type Description
ResourceAllowanceOrBuilder

getResourceAllowancesOrBuilderList()

public List<? extends ResourceAllowanceOrBuilder> getResourceAllowancesOrBuilderList()

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Returns
Type Description
List<? extends com.google.cloud.batch.v1alpha.ResourceAllowanceOrBuilder>

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeResourceAllowances(int index)

public ListResourceAllowancesResponse.Builder removeResourceAllowances(int index)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameter
Name Description
index int
Returns
Type Description
ListResourceAllowancesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListResourceAllowancesResponse.Builder setNextPageToken(String value)

Next page token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListResourceAllowancesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListResourceAllowancesResponse.Builder setNextPageTokenBytes(ByteString value)

Next page token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListResourceAllowancesResponse.Builder

This builder for chaining.

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

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

setResourceAllowances(int index, ResourceAllowance value)

public ListResourceAllowancesResponse.Builder setResourceAllowances(int index, ResourceAllowance value)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameters
Name Description
index int
value ResourceAllowance
Returns
Type Description
ListResourceAllowancesResponse.Builder

setResourceAllowances(int index, ResourceAllowance.Builder builderForValue)

public ListResourceAllowancesResponse.Builder setResourceAllowances(int index, ResourceAllowance.Builder builderForValue)

ResourceAllowances.

repeated .google.cloud.batch.v1alpha.ResourceAllowance resource_allowances = 1;

Parameters
Name Description
index int
builderForValue ResourceAllowance.Builder
Returns
Type Description
ListResourceAllowancesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

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

This builder for chaining.