Class CapacityCommitment.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
- com.google.cloud.bigquery.reservation.v1.CapacityCommitment.Builder
-
- All Implemented Interfaces:
CapacityCommitmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CapacityCommitment
public static final class CapacityCommitment.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder> 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 typegoogle.cloud.bigquery.reservation.v1.CapacityCommitment
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CapacityCommitment.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CapacityCommitmentbuild()CapacityCommitmentbuildPartial()CapacityCommitment.Builderclear()CapacityCommitment.BuilderclearCommitmentEndTime()Output only.CapacityCommitment.BuilderclearCommitmentStartTime()Output only.CapacityCommitment.BuilderclearEdition()Edition of the capacity commitment.CapacityCommitment.BuilderclearFailureStatus()Output only.CapacityCommitment.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CapacityCommitment.BuilderclearMultiRegionAuxiliary()Applicable only for commitments located within one of the BigQuery multi-regions (US or EU).CapacityCommitment.BuilderclearName()Output only.CapacityCommitment.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CapacityCommitment.BuilderclearPlan()Capacity commitment commitment plan.CapacityCommitment.BuilderclearRenewalPlan()The plan this capacity commitment is converted to after commitment_end_time passes.CapacityCommitment.BuilderclearSlotCount()Number of slots in this commitment.CapacityCommitment.BuilderclearState()Output only.CapacityCommitment.Builderclone()com.google.protobuf.TimestampgetCommitmentEndTime()Output only.com.google.protobuf.Timestamp.BuildergetCommitmentEndTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCommitmentEndTimeOrBuilder()Output only.com.google.protobuf.TimestampgetCommitmentStartTime()Output only.com.google.protobuf.Timestamp.BuildergetCommitmentStartTimeBuilder()Output only.com.google.protobuf.TimestampOrBuildergetCommitmentStartTimeOrBuilder()Output only.CapacityCommitmentgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()EditiongetEdition()Edition of the capacity commitment.intgetEditionValue()Edition of the capacity commitment.com.google.rpc.StatusgetFailureStatus()Output only.com.google.rpc.Status.BuildergetFailureStatusBuilder()Output only.com.google.rpc.StatusOrBuildergetFailureStatusOrBuilder()Output only.booleangetMultiRegionAuxiliary()Applicable only for commitments located within one of the BigQuery multi-regions (US or EU).StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.CapacityCommitment.CommitmentPlangetPlan()Capacity commitment commitment plan.intgetPlanValue()Capacity commitment commitment plan.CapacityCommitment.CommitmentPlangetRenewalPlan()The plan this capacity commitment is converted to after commitment_end_time passes.intgetRenewalPlanValue()The plan this capacity commitment is converted to after commitment_end_time passes.longgetSlotCount()Number of slots in this commitment.CapacityCommitment.StategetState()Output only.intgetStateValue()Output only.booleanhasCommitmentEndTime()Output only.booleanhasCommitmentStartTime()Output only.booleanhasFailureStatus()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CapacityCommitment.BuildermergeCommitmentEndTime(com.google.protobuf.Timestamp value)Output only.CapacityCommitment.BuildermergeCommitmentStartTime(com.google.protobuf.Timestamp value)Output only.CapacityCommitment.BuildermergeFailureStatus(com.google.rpc.Status value)Output only.CapacityCommitment.BuildermergeFrom(CapacityCommitment other)CapacityCommitment.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CapacityCommitment.BuildermergeFrom(com.google.protobuf.Message other)CapacityCommitment.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CapacityCommitment.BuildersetCommitmentEndTime(com.google.protobuf.Timestamp value)Output only.CapacityCommitment.BuildersetCommitmentEndTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.CapacityCommitment.BuildersetCommitmentStartTime(com.google.protobuf.Timestamp value)Output only.CapacityCommitment.BuildersetCommitmentStartTime(com.google.protobuf.Timestamp.Builder builderForValue)Output only.CapacityCommitment.BuildersetEdition(Edition value)Edition of the capacity commitment.CapacityCommitment.BuildersetEditionValue(int value)Edition of the capacity commitment.CapacityCommitment.BuildersetFailureStatus(com.google.rpc.Status value)Output only.CapacityCommitment.BuildersetFailureStatus(com.google.rpc.Status.Builder builderForValue)Output only.CapacityCommitment.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CapacityCommitment.BuildersetMultiRegionAuxiliary(boolean value)Applicable only for commitments located within one of the BigQuery multi-regions (US or EU).CapacityCommitment.BuildersetName(String value)Output only.CapacityCommitment.BuildersetNameBytes(com.google.protobuf.ByteString value)Output only.CapacityCommitment.BuildersetPlan(CapacityCommitment.CommitmentPlan value)Capacity commitment commitment plan.CapacityCommitment.BuildersetPlanValue(int value)Capacity commitment commitment plan.CapacityCommitment.BuildersetRenewalPlan(CapacityCommitment.CommitmentPlan value)The plan this capacity commitment is converted to after commitment_end_time passes.CapacityCommitment.BuildersetRenewalPlanValue(int value)The plan this capacity commitment is converted to after commitment_end_time passes.CapacityCommitment.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CapacityCommitment.BuildersetSlotCount(long value)Number of slots in this commitment.CapacityCommitment.BuildersetState(CapacityCommitment.State value)Output only.CapacityCommitment.BuildersetStateValue(int value)Output only.CapacityCommitment.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
clear
public CapacityCommitment.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
getDefaultInstanceForType
public CapacityCommitment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CapacityCommitment build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CapacityCommitment buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CapacityCommitment.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
setField
public CapacityCommitment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
clearField
public CapacityCommitment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
clearOneof
public CapacityCommitment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
setRepeatedField
public CapacityCommitment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
addRepeatedField
public CapacityCommitment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
mergeFrom
public CapacityCommitment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CapacityCommitment.Builder>
-
mergeFrom
public CapacityCommitment.Builder mergeFrom(CapacityCommitment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
mergeFrom
public CapacityCommitment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CapacityCommitment.Builder>- Throws:
IOException
-
getName
public 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];- Specified by:
getNamein interfaceCapacityCommitmentOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceCapacityCommitmentOrBuilder- Returns:
- The bytes for name.
-
setName
public CapacityCommitment.Builder setName(String value)
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public CapacityCommitment.Builder clearName()
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];- Returns:
- This builder for chaining.
-
setNameBytes
public CapacityCommitment.Builder setNameBytes(com.google.protobuf.ByteString value)
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getSlotCount
public long getSlotCount()
Number of slots in this commitment.
int64 slot_count = 2;- Specified by:
getSlotCountin interfaceCapacityCommitmentOrBuilder- Returns:
- The slotCount.
-
setSlotCount
public CapacityCommitment.Builder setSlotCount(long value)
Number of slots in this commitment.
int64 slot_count = 2;- Parameters:
value- The slotCount to set.- Returns:
- This builder for chaining.
-
clearSlotCount
public CapacityCommitment.Builder clearSlotCount()
Number of slots in this commitment.
int64 slot_count = 2;- Returns:
- This builder for chaining.
-
getPlanValue
public int getPlanValue()
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;- Specified by:
getPlanValuein interfaceCapacityCommitmentOrBuilder- Returns:
- The enum numeric value on the wire for plan.
-
setPlanValue
public CapacityCommitment.Builder setPlanValue(int value)
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;- Parameters:
value- The enum numeric value on the wire for plan to set.- Returns:
- This builder for chaining.
-
getPlan
public CapacityCommitment.CommitmentPlan getPlan()
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;- Specified by:
getPlanin interfaceCapacityCommitmentOrBuilder- Returns:
- The plan.
-
setPlan
public CapacityCommitment.Builder setPlan(CapacityCommitment.CommitmentPlan value)
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;- Parameters:
value- The plan to set.- Returns:
- This builder for chaining.
-
clearPlan
public CapacityCommitment.Builder clearPlan()
Capacity commitment commitment plan.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.CommitmentPlan plan = 3;- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceCapacityCommitmentOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public CapacityCommitment.Builder setStateValue(int value)
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public CapacityCommitment.State getState()
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceCapacityCommitmentOrBuilder- Returns:
- The state.
-
setState
public CapacityCommitment.Builder setState(CapacityCommitment.State value)
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public CapacityCommitment.Builder clearState()
Output only. State of the commitment.
.google.cloud.bigquery.reservation.v1.CapacityCommitment.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
hasCommitmentStartTime
public 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];- Specified by:
hasCommitmentStartTimein interfaceCapacityCommitmentOrBuilder- Returns:
- Whether the commitmentStartTime field is set.
-
getCommitmentStartTime
public 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];- Specified by:
getCommitmentStartTimein interfaceCapacityCommitmentOrBuilder- Returns:
- The commitmentStartTime.
-
setCommitmentStartTime
public CapacityCommitment.Builder setCommitmentStartTime(com.google.protobuf.Timestamp value)
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];
-
setCommitmentStartTime
public CapacityCommitment.Builder setCommitmentStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
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];
-
mergeCommitmentStartTime
public CapacityCommitment.Builder mergeCommitmentStartTime(com.google.protobuf.Timestamp value)
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];
-
clearCommitmentStartTime
public CapacityCommitment.Builder clearCommitmentStartTime()
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];
-
getCommitmentStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getCommitmentStartTimeBuilder()
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
public 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];- Specified by:
getCommitmentStartTimeOrBuilderin interfaceCapacityCommitmentOrBuilder
-
hasCommitmentEndTime
public 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];- Specified by:
hasCommitmentEndTimein interfaceCapacityCommitmentOrBuilder- Returns:
- Whether the commitmentEndTime field is set.
-
getCommitmentEndTime
public 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];- Specified by:
getCommitmentEndTimein interfaceCapacityCommitmentOrBuilder- Returns:
- The commitmentEndTime.
-
setCommitmentEndTime
public CapacityCommitment.Builder setCommitmentEndTime(com.google.protobuf.Timestamp value)
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];
-
setCommitmentEndTime
public CapacityCommitment.Builder setCommitmentEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
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];
-
mergeCommitmentEndTime
public CapacityCommitment.Builder mergeCommitmentEndTime(com.google.protobuf.Timestamp value)
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];
-
clearCommitmentEndTime
public CapacityCommitment.Builder clearCommitmentEndTime()
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];
-
getCommitmentEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getCommitmentEndTimeBuilder()
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
public 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];- Specified by:
getCommitmentEndTimeOrBuilderin interfaceCapacityCommitmentOrBuilder
-
hasFailureStatus
public 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];- Specified by:
hasFailureStatusin interfaceCapacityCommitmentOrBuilder- Returns:
- Whether the failureStatus field is set.
-
getFailureStatus
public 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];- Specified by:
getFailureStatusin interfaceCapacityCommitmentOrBuilder- Returns:
- The failureStatus.
-
setFailureStatus
public CapacityCommitment.Builder setFailureStatus(com.google.rpc.Status value)
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setFailureStatus
public CapacityCommitment.Builder setFailureStatus(com.google.rpc.Status.Builder builderForValue)
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeFailureStatus
public CapacityCommitment.Builder mergeFailureStatus(com.google.rpc.Status value)
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearFailureStatus
public CapacityCommitment.Builder clearFailureStatus()
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getFailureStatusBuilder
public com.google.rpc.Status.Builder getFailureStatusBuilder()
Output only. For FAILED commitment plan, provides the reason of failure.
.google.rpc.Status failure_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getFailureStatusOrBuilder
public 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];- Specified by:
getFailureStatusOrBuilderin interfaceCapacityCommitmentOrBuilder
-
getRenewalPlanValue
public 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;- Specified by:
getRenewalPlanValuein interfaceCapacityCommitmentOrBuilder- Returns:
- The enum numeric value on the wire for renewalPlan.
-
setRenewalPlanValue
public CapacityCommitment.Builder setRenewalPlanValue(int value)
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;- Parameters:
value- The enum numeric value on the wire for renewalPlan to set.- Returns:
- This builder for chaining.
-
getRenewalPlan
public 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;- Specified by:
getRenewalPlanin interfaceCapacityCommitmentOrBuilder- Returns:
- The renewalPlan.
-
setRenewalPlan
public CapacityCommitment.Builder setRenewalPlan(CapacityCommitment.CommitmentPlan value)
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;- Parameters:
value- The renewalPlan to set.- Returns:
- This builder for chaining.
-
clearRenewalPlan
public CapacityCommitment.Builder clearRenewalPlan()
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;- Returns:
- This builder for chaining.
-
getMultiRegionAuxiliary
public 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;- Specified by:
getMultiRegionAuxiliaryin interfaceCapacityCommitmentOrBuilder- Returns:
- The multiRegionAuxiliary.
-
setMultiRegionAuxiliary
public CapacityCommitment.Builder setMultiRegionAuxiliary(boolean value)
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;- Parameters:
value- The multiRegionAuxiliary to set.- Returns:
- This builder for chaining.
-
clearMultiRegionAuxiliary
public CapacityCommitment.Builder clearMultiRegionAuxiliary()
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;- Returns:
- This builder for chaining.
-
getEditionValue
public int getEditionValue()
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;- Specified by:
getEditionValuein interfaceCapacityCommitmentOrBuilder- Returns:
- The enum numeric value on the wire for edition.
-
setEditionValue
public CapacityCommitment.Builder setEditionValue(int value)
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;- Parameters:
value- The enum numeric value on the wire for edition to set.- Returns:
- This builder for chaining.
-
getEdition
public Edition getEdition()
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;- Specified by:
getEditionin interfaceCapacityCommitmentOrBuilder- Returns:
- The edition.
-
setEdition
public CapacityCommitment.Builder setEdition(Edition value)
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;- Parameters:
value- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
public CapacityCommitment.Builder clearEdition()
Edition of the capacity commitment.
.google.cloud.bigquery.reservation.v1.Edition edition = 12;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CapacityCommitment.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
mergeUnknownFields
public final CapacityCommitment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
-