Class ListCapacityCommitmentsResponse.Builder (2.43.0)

public static final class ListCapacityCommitmentsResponse.Builder extends GeneratedMessageV3.Builder<ListCapacityCommitmentsResponse.Builder> implements ListCapacityCommitmentsResponseOrBuilder

The response for ReservationService.ListCapacityCommitments.

Protobuf type google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse

Static Methods

getDescriptor()

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

Methods

addAllCapacityCommitments(Iterable<? extends CapacityCommitment> values)

public ListCapacityCommitmentsResponse.Builder addAllCapacityCommitments(Iterable<? extends CapacityCommitment> values)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.bigquery.reservation.v1.CapacityCommitment>
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

addCapacityCommitments(CapacityCommitment value)

public ListCapacityCommitmentsResponse.Builder addCapacityCommitments(CapacityCommitment value)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
value CapacityCommitment
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

addCapacityCommitments(CapacityCommitment.Builder builderForValue)

public ListCapacityCommitmentsResponse.Builder addCapacityCommitments(CapacityCommitment.Builder builderForValue)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
builderForValue CapacityCommitment.Builder
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

addCapacityCommitments(int index, CapacityCommitment value)

public ListCapacityCommitmentsResponse.Builder addCapacityCommitments(int index, CapacityCommitment value)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameters
Name Description
index int
value CapacityCommitment
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

addCapacityCommitments(int index, CapacityCommitment.Builder builderForValue)

public ListCapacityCommitmentsResponse.Builder addCapacityCommitments(int index, CapacityCommitment.Builder builderForValue)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameters
Name Description
index int
builderForValue CapacityCommitment.Builder
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

addCapacityCommitmentsBuilder()

public CapacityCommitment.Builder addCapacityCommitmentsBuilder()

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Returns
Type Description
CapacityCommitment.Builder

addCapacityCommitmentsBuilder(int index)

public CapacityCommitment.Builder addCapacityCommitmentsBuilder(int index)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
index int
Returns
Type Description
CapacityCommitment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCapacityCommitmentsResponse build()
Returns
Type Description
ListCapacityCommitmentsResponse

buildPartial()

public ListCapacityCommitmentsResponse buildPartial()
Returns
Type Description
ListCapacityCommitmentsResponse

clear()

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

clearCapacityCommitments()

public ListCapacityCommitmentsResponse.Builder clearCapacityCommitments()

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Returns
Type Description
ListCapacityCommitmentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCapacityCommitmentsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListCapacityCommitmentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCapacityCommitments(int index)

public CapacityCommitment getCapacityCommitments(int index)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
index int
Returns
Type Description
CapacityCommitment

getCapacityCommitmentsBuilder(int index)

public CapacityCommitment.Builder getCapacityCommitmentsBuilder(int index)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
index int
Returns
Type Description
CapacityCommitment.Builder

getCapacityCommitmentsBuilderList()

public List<CapacityCommitment.Builder> getCapacityCommitmentsBuilderList()

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Returns
Type Description
List<Builder>

getCapacityCommitmentsCount()

public int getCapacityCommitmentsCount()

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Returns
Type Description
int

getCapacityCommitmentsList()

public List<CapacityCommitment> getCapacityCommitmentsList()

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Returns
Type Description
List<CapacityCommitment>

getCapacityCommitmentsOrBuilder(int index)

public CapacityCommitmentOrBuilder getCapacityCommitmentsOrBuilder(int index)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
index int
Returns
Type Description
CapacityCommitmentOrBuilder

getCapacityCommitmentsOrBuilderList()

public List<? extends CapacityCommitmentOrBuilder> getCapacityCommitmentsOrBuilderList()

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Returns
Type Description
List<? extends com.google.cloud.bigquery.reservation.v1.CapacityCommitmentOrBuilder>

getDefaultInstanceForType()

public ListCapacityCommitmentsResponse getDefaultInstanceForType()
Returns
Type Description
ListCapacityCommitmentsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListCapacityCommitmentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCapacityCommitments(int index)

public ListCapacityCommitmentsResponse.Builder removeCapacityCommitments(int index)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

setCapacityCommitments(int index, CapacityCommitment value)

public ListCapacityCommitmentsResponse.Builder setCapacityCommitments(int index, CapacityCommitment value)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameters
Name Description
index int
value CapacityCommitment
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

setCapacityCommitments(int index, CapacityCommitment.Builder builderForValue)

public ListCapacityCommitmentsResponse.Builder setCapacityCommitments(int index, CapacityCommitment.Builder builderForValue)

List of capacity commitments visible to the user.

repeated .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitments = 1;

Parameters
Name Description
index int
builderForValue CapacityCommitment.Builder
Returns
Type Description
ListCapacityCommitmentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCapacityCommitmentsResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCapacityCommitmentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCapacityCommitmentsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCapacityCommitmentsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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