Class MergeCapacityCommitmentsRequest.Builder (2.45.0)

public static final class MergeCapacityCommitmentsRequest.Builder extends GeneratedMessageV3.Builder<MergeCapacityCommitmentsRequest.Builder> implements MergeCapacityCommitmentsRequestOrBuilder

The request for ReservationService.MergeCapacityCommitments.

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

Static Methods

getDescriptor()

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

Methods

addAllCapacityCommitmentIds(Iterable<String> values)

public MergeCapacityCommitmentsRequest.Builder addAllCapacityCommitmentIds(Iterable<String> values)

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Parameter
Name Description
values Iterable<String>

The capacityCommitmentIds to add.

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

addCapacityCommitmentIds(String value)

public MergeCapacityCommitmentsRequest.Builder addCapacityCommitmentIds(String value)

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Parameter
Name Description
value String

The capacityCommitmentIds to add.

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

addCapacityCommitmentIdsBytes(ByteString value)

public MergeCapacityCommitmentsRequest.Builder addCapacityCommitmentIdsBytes(ByteString value)

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Parameter
Name Description
value ByteString

The bytes of the capacityCommitmentIds to add.

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MergeCapacityCommitmentsRequest build()
Returns
Type Description
MergeCapacityCommitmentsRequest

buildPartial()

public MergeCapacityCommitmentsRequest buildPartial()
Returns
Type Description
MergeCapacityCommitmentsRequest

clear()

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

clearCapacityCommitmentIds()

public MergeCapacityCommitmentsRequest.Builder clearCapacityCommitmentIds()

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public MergeCapacityCommitmentsRequest.Builder clearParent()

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

string parent = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

clone()

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

getCapacityCommitmentIds(int index)

public String getCapacityCommitmentIds(int index)

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The capacityCommitmentIds at the given index.

getCapacityCommitmentIdsBytes(int index)

public ByteString getCapacityCommitmentIdsBytes(int index)

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the capacityCommitmentIds at the given index.

getCapacityCommitmentIdsCount()

public int getCapacityCommitmentIdsCount()

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Returns
Type Description
int

The count of capacityCommitmentIds.

getCapacityCommitmentIdsList()

public ProtocolStringList getCapacityCommitmentIdsList()

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Returns
Type Description
ProtocolStringList

A list containing the capacityCommitmentIds.

getDefaultInstanceForType()

public MergeCapacityCommitmentsRequest getDefaultInstanceForType()
Returns
Type Description
MergeCapacityCommitmentsRequest

getDescriptorForType()

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

getParent()

public String getParent()

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

string parent = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

string parent = 1 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MergeCapacityCommitmentsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCapacityCommitmentIds(int index, String value)

public MergeCapacityCommitmentsRequest.Builder setCapacityCommitmentIds(int index, String value)

Ids of capacity commitments to merge. These capacity commitments must exist under admin project and location specified in the parent. ID is the last portion of capacity commitment name e.g., 'abc' for projects/myproject/locations/US/capacityCommitments/abc

repeated string capacity_commitment_ids = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The capacityCommitmentIds to set.

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public MergeCapacityCommitmentsRequest.Builder setParent(String value)

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

string parent = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public MergeCapacityCommitmentsRequest.Builder setParentBytes(ByteString value)

Parent resource that identifies admin project and location e.g., projects/myproject/locations/us

string parent = 1 [(.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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