Class ListCapacityCommitmentsResponse.Builder (2.6.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.bigquery.reservation.v1.CapacityCommitment>
Returns
TypeDescription
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
NameDescription
valueCapacityCommitment
Returns
TypeDescription
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
NameDescription
builderForValueCapacityCommitment.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCapacityCommitment
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCapacityCommitment.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CapacityCommitment.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCapacityCommitmentsResponse build()
Returns
TypeDescription
ListCapacityCommitmentsResponse

buildPartial()

public ListCapacityCommitmentsResponse buildPartial()
Returns
TypeDescription
ListCapacityCommitmentsResponse

clear()

public ListCapacityCommitmentsResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
ListCapacityCommitmentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCapacityCommitmentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListCapacityCommitmentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ListCapacityCommitmentsResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.bigquery.reservation.v1.CapacityCommitmentOrBuilder>

getDefaultInstanceForType()

public ListCapacityCommitmentsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCapacityCommitmentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCapacityCommitmentsResponse other)

public ListCapacityCommitmentsResponse.Builder mergeFrom(ListCapacityCommitmentsResponse other)
Parameter
NameDescription
otherListCapacityCommitmentsResponse
Returns
TypeDescription
ListCapacityCommitmentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCapacityCommitmentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCapacityCommitment
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCapacityCommitment.Builder
Returns
TypeDescription
ListCapacityCommitmentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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