Class MergeCapacityCommitmentsRequest.Builder (2.19.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
TypeDescription
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
NameDescription
valuesIterable<String>

The capacityCommitmentIds to add.

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

The capacityCommitmentIds to add.

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

The bytes of the capacityCommitmentIds to add.

Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MergeCapacityCommitmentsRequest build()
Returns
TypeDescription
MergeCapacityCommitmentsRequest

buildPartial()

public MergeCapacityCommitmentsRequest buildPartial()
Returns
TypeDescription
MergeCapacityCommitmentsRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public MergeCapacityCommitmentsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

clone()

public MergeCapacityCommitmentsRequest.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the capacityCommitmentIds.

getDefaultInstanceForType()

public MergeCapacityCommitmentsRequest getDefaultInstanceForType()
Returns
TypeDescription
MergeCapacityCommitmentsRequest

getDescriptorForType()

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

The bytes for parent.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MergeCapacityCommitmentsRequest other)

public MergeCapacityCommitmentsRequest.Builder mergeFrom(MergeCapacityCommitmentsRequest other)
Parameter
NameDescription
otherMergeCapacityCommitmentsRequest
Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The index to set the value at.

valueString

The capacityCommitmentIds to set.

Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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