Class MergeCapacityCommitmentsRequest (2.17.0)

public final class MergeCapacityCommitmentsRequest extends GeneratedMessageV3 implements MergeCapacityCommitmentsRequestOrBuilder

The request for ReservationService.MergeCapacityCommitments.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MergeCapacityCommitmentsRequest

Static Fields

CAPACITY_COMMITMENT_IDS_FIELD_NUMBER

public static final int CAPACITY_COMMITMENT_IDS_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static MergeCapacityCommitmentsRequest getDefaultInstance()
Returns
TypeDescription
MergeCapacityCommitmentsRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static MergeCapacityCommitmentsRequest.Builder newBuilder()
Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

newBuilder(MergeCapacityCommitmentsRequest prototype)

public static MergeCapacityCommitmentsRequest.Builder newBuilder(MergeCapacityCommitmentsRequest prototype)
Parameter
NameDescription
prototypeMergeCapacityCommitmentsRequest
Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

parseDelimitedFrom(InputStream input)

public static MergeCapacityCommitmentsRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MergeCapacityCommitmentsRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static MergeCapacityCommitmentsRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static MergeCapacityCommitmentsRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static MergeCapacityCommitmentsRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static MergeCapacityCommitmentsRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static MergeCapacityCommitmentsRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static MergeCapacityCommitmentsRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static MergeCapacityCommitmentsRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static MergeCapacityCommitmentsRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static MergeCapacityCommitmentsRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static MergeCapacityCommitmentsRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MergeCapacityCommitmentsRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<MergeCapacityCommitmentsRequest> parser()
Returns
TypeDescription
Parser<MergeCapacityCommitmentsRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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.

getParserForType()

public Parser<MergeCapacityCommitmentsRequest> getParserForType()
Returns
TypeDescription
Parser<MergeCapacityCommitmentsRequest>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public MergeCapacityCommitmentsRequest.Builder newBuilderForType()
Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected MergeCapacityCommitmentsRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public MergeCapacityCommitmentsRequest.Builder toBuilder()
Returns
TypeDescription
MergeCapacityCommitmentsRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException