public final class CapacityCommitment extends com.google.protobuf.GeneratedMessageV3 implements CapacityCommitmentOrBuilder
Capacity commitment is a way to purchase compute capacity for BigQuery jobs (in the form of slots) with some committed period of usage. Annual commitments renew by default. Commitments can be removed after their commitment end time passes. In order to remove annual commitment, its plan needs to be changed to monthly or flex first. A capacity commitment resource exists as a child resource of the admin project.Protobuf type
google.cloud.bigquery.reservation.v1.CapacityCommitment| Modifier and Type | Class and Description |
|---|---|
static class |
CapacityCommitment.Builder
Capacity commitment is a way to purchase compute capacity for BigQuery jobs
(in the form of slots) with some committed period of usage.
|
static class |
CapacityCommitment.CommitmentPlan
Commitment plan defines the current committed period.
|
static class |
CapacityCommitment.State
Capacity commitment can either become ACTIVE right away or transition
from PENDING to ACTIVE or FAILED.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
COMMITMENT_END_TIME_FIELD_NUMBER |
static int |
COMMITMENT_START_TIME_FIELD_NUMBER |
static int |
EDITION_FIELD_NUMBER |
static int |
FAILURE_STATUS_FIELD_NUMBER |
static int |
MULTI_REGION_AUXILIARY_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
PLAN_FIELD_NUMBER |
static int |
RENEWAL_PLAN_FIELD_NUMBER |
static int |
SLOT_COUNT_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
com.google.protobuf.Timestamp |
getCommitmentEndTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCommitmentEndTimeOrBuilder()
Output only.
|
com.google.protobuf.Timestamp |
getCommitmentStartTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCommitmentStartTimeOrBuilder()
Output only.
|
static CapacityCommitment |
getDefaultInstance() |
CapacityCommitment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Edition |
getEdition()
Edition of the capacity commitment.
|
int |
getEditionValue()
Edition of the capacity commitment.
|
com.google.rpc.Status |
getFailureStatus()
Output only.
|
com.google.rpc.StatusOrBuilder |
getFailureStatusOrBuilder()
Output only.
|
boolean |
getMultiRegionAuxiliary()
Applicable only for commitments located within one of the BigQuery
multi-regions (US or EU).
|
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<CapacityCommitment> |
getParserForType() |
CapacityCommitment.CommitmentPlan |
getPlan()
Capacity commitment commitment plan.
|
int |
getPlanValue()
Capacity commitment commitment plan.
|
CapacityCommitment.CommitmentPlan |
getRenewalPlan()
The plan this capacity commitment is converted to after commitment_end_time
passes.
|
int |
getRenewalPlanValue()
The plan this capacity commitment is converted to after commitment_end_time
passes.
|
int |
getSerializedSize() |
long |
getSlotCount()
Number of slots in this commitment.
|
CapacityCommitment.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
boolean |
hasCommitmentEndTime()
Output only.
|
boolean |
hasCommitmentStartTime()
Output only.
|
boolean |
hasFailureStatus()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CapacityCommitment.Builder |
newBuilder() |
static CapacityCommitment.Builder |
newBuilder(CapacityCommitment prototype) |
CapacityCommitment.Builder |
newBuilderForType() |
protected CapacityCommitment.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CapacityCommitment |
parseDelimitedFrom(InputStream input) |
static CapacityCommitment |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CapacityCommitment |
parseFrom(byte[] data) |
static CapacityCommitment |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CapacityCommitment |
parseFrom(ByteBuffer data) |
static CapacityCommitment |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CapacityCommitment |
parseFrom(com.google.protobuf.ByteString data) |
static CapacityCommitment |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CapacityCommitment |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CapacityCommitment |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CapacityCommitment |
parseFrom(InputStream input) |
static CapacityCommitment |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CapacityCommitment> |
parser() |
CapacityCommitment.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int SLOT_COUNT_FIELD_NUMBER
public static final int PLAN_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int COMMITMENT_START_TIME_FIELD_NUMBER
public static final int COMMITMENT_END_TIME_FIELD_NUMBER
public static final int FAILURE_STATUS_FIELD_NUMBER
public static final int RENEWAL_PLAN_FIELD_NUMBER
public static final int MULTI_REGION_AUXILIARY_FIELD_NUMBER
public static final int EDITION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Output only. The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123` The commitment_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getName in interface CapacityCommitmentOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the capacity commitment, e.g., `projects/myproject/locations/US/capacityCommitments/123` The commitment_id must only contain lower case alphanumeric characters or dashes. It must start with a letter and must not end with a dash. Its maximum length is 64 characters.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];getNameBytes in interface CapacityCommitmentOrBuilderpublic long getSlotCount()
Number of slots in this commitment.
int64 slot_count = 2;getSlotCount in interface CapacityCommitmentOrBuilderpublic int getPlanValue()
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;getPlanValue in interface CapacityCommitmentOrBuilderpublic CapacityCommitment.CommitmentPlan getPlan()
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;getPlan in interface CapacityCommitmentOrBuilderpublic int getStateValue()
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface CapacityCommitmentOrBuilderpublic CapacityCommitment.State getState()
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface CapacityCommitmentOrBuilderpublic boolean hasCommitmentStartTime()
Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
.google.protobuf.Timestamp commitment_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCommitmentStartTime in interface CapacityCommitmentOrBuilderpublic com.google.protobuf.Timestamp getCommitmentStartTime()
Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
.google.protobuf.Timestamp commitment_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCommitmentStartTime in interface CapacityCommitmentOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCommitmentStartTimeOrBuilder()
Output only. The start of the current commitment period. It is applicable only for ACTIVE capacity commitments.
.google.protobuf.Timestamp commitment_start_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCommitmentStartTimeOrBuilder in interface CapacityCommitmentOrBuilderpublic boolean hasCommitmentEndTime()
Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.
.google.protobuf.Timestamp commitment_end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCommitmentEndTime in interface CapacityCommitmentOrBuilderpublic com.google.protobuf.Timestamp getCommitmentEndTime()
Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.
.google.protobuf.Timestamp commitment_end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCommitmentEndTime in interface CapacityCommitmentOrBuilderpublic com.google.protobuf.TimestampOrBuilder getCommitmentEndTimeOrBuilder()
Output only. The end of the current commitment period. It is applicable only for ACTIVE capacity commitments.
.google.protobuf.Timestamp commitment_end_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCommitmentEndTimeOrBuilder in interface CapacityCommitmentOrBuilderpublic boolean hasFailureStatus()
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasFailureStatus in interface CapacityCommitmentOrBuilderpublic com.google.rpc.Status getFailureStatus()
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFailureStatus in interface CapacityCommitmentOrBuilderpublic com.google.rpc.StatusOrBuilder getFailureStatusOrBuilder()
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
getFailureStatusOrBuilder in interface CapacityCommitmentOrBuilderpublic int getRenewalPlanValue()
The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan renewal_plan = 8;
getRenewalPlanValue in interface CapacityCommitmentOrBuilderpublic CapacityCommitment.CommitmentPlan getRenewalPlan()
The plan this capacity commitment is converted to after commitment_end_time passes. Once the plan is changed, committed period is extended according to commitment plan. Only applicable for ANNUAL and TRIAL commitments.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan renewal_plan = 8;
getRenewalPlan in interface CapacityCommitmentOrBuilderpublic boolean getMultiRegionAuxiliary()
Applicable only for commitments located within one of the BigQuery multi-regions (US or EU). If set to true, this commitment is placed in the organization's secondary region which is designated for disaster recovery purposes. If false, this commitment is placed in the organization's default region. NOTE: this is a preview feature. Project must be allow-listed in order to set this field.
bool multi_region_auxiliary = 10;getMultiRegionAuxiliary in interface CapacityCommitmentOrBuilderpublic int getEditionValue()
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;getEditionValue in interface CapacityCommitmentOrBuilderpublic Edition getEdition()
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;getEdition in interface CapacityCommitmentOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CapacityCommitment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CapacityCommitment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CapacityCommitment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CapacityCommitment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CapacityCommitment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CapacityCommitment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CapacityCommitment parseFrom(InputStream input) throws IOException
IOExceptionpublic static CapacityCommitment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CapacityCommitment parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CapacityCommitment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CapacityCommitment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CapacityCommitment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CapacityCommitment.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CapacityCommitment.Builder newBuilder()
public static CapacityCommitment.Builder newBuilder(CapacityCommitment prototype)
public CapacityCommitment.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CapacityCommitment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CapacityCommitment getDefaultInstance()
public static com.google.protobuf.Parser<CapacityCommitment> parser()
public com.google.protobuf.Parser<CapacityCommitment> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CapacityCommitment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.