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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CapacityCommitment
build()
CapacityCommitment
buildPartial()
CapacityCommitment.Builder
clear()
CapacityCommitment.Builder
clearCommitmentEndTime()
Output only.CapacityCommitment.Builder
clearCommitmentStartTime()
Output only.CapacityCommitment.Builder
clearEdition()
Edition of the capacity commitment.CapacityCommitment.Builder
clearFailureStatus()
Output only.CapacityCommitment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CapacityCommitment.Builder
clearMultiRegionAuxiliary()
Applicable only for commitments located within one of the BigQuery multi-regions (US or EU).CapacityCommitment.Builder
clearName()
Output only.CapacityCommitment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CapacityCommitment.Builder
clearPlan()
Capacity commitment commitment plan.CapacityCommitment.Builder
clearRenewalPlan()
The plan this capacity commitment is converted to after commitment_end_time passes.CapacityCommitment.Builder
clearSlotCount()
Number of slots in this commitment.CapacityCommitment.Builder
clearState()
Output only.CapacityCommitment.Builder
clone()
com.google.protobuf.Timestamp
getCommitmentEndTime()
Output only.com.google.protobuf.Timestamp.Builder
getCommitmentEndTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCommitmentEndTimeOrBuilder()
Output only.com.google.protobuf.Timestamp
getCommitmentStartTime()
Output only.com.google.protobuf.Timestamp.Builder
getCommitmentStartTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCommitmentStartTimeOrBuilder()
Output only.CapacityCommitment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
Edition
getEdition()
Edition of the capacity commitment.int
getEditionValue()
Edition of the capacity commitment.com.google.rpc.Status
getFailureStatus()
Output only.com.google.rpc.Status.Builder
getFailureStatusBuilder()
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.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.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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CapacityCommitment.Builder
mergeCommitmentEndTime(com.google.protobuf.Timestamp value)
Output only.CapacityCommitment.Builder
mergeCommitmentStartTime(com.google.protobuf.Timestamp value)
Output only.CapacityCommitment.Builder
mergeFailureStatus(com.google.rpc.Status value)
Output only.CapacityCommitment.Builder
mergeFrom(CapacityCommitment other)
CapacityCommitment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CapacityCommitment.Builder
mergeFrom(com.google.protobuf.Message other)
CapacityCommitment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CapacityCommitment.Builder
setCommitmentEndTime(com.google.protobuf.Timestamp value)
Output only.CapacityCommitment.Builder
setCommitmentEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.CapacityCommitment.Builder
setCommitmentStartTime(com.google.protobuf.Timestamp value)
Output only.CapacityCommitment.Builder
setCommitmentStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.CapacityCommitment.Builder
setEdition(Edition value)
Edition of the capacity commitment.CapacityCommitment.Builder
setEditionValue(int value)
Edition of the capacity commitment.CapacityCommitment.Builder
setFailureStatus(com.google.rpc.Status value)
Output only.CapacityCommitment.Builder
setFailureStatus(com.google.rpc.Status.Builder builderForValue)
Output only.CapacityCommitment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CapacityCommitment.Builder
setMultiRegionAuxiliary(boolean value)
Applicable only for commitments located within one of the BigQuery multi-regions (US or EU).CapacityCommitment.Builder
setName(String value)
Output only.CapacityCommitment.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.CapacityCommitment.Builder
setPlan(CapacityCommitment.CommitmentPlan value)
Capacity commitment commitment plan.CapacityCommitment.Builder
setPlanValue(int value)
Capacity commitment commitment plan.CapacityCommitment.Builder
setRenewalPlan(CapacityCommitment.CommitmentPlan value)
The plan this capacity commitment is converted to after commitment_end_time passes.CapacityCommitment.Builder
setRenewalPlanValue(int value)
The plan this capacity commitment is converted to after commitment_end_time passes.CapacityCommitment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CapacityCommitment.Builder
setSlotCount(long value)
Number of slots in this commitment.CapacityCommitment.Builder
setState(CapacityCommitment.State value)
Output only.CapacityCommitment.Builder
setStateValue(int value)
Output only.CapacityCommitment.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
clear
public CapacityCommitment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
getDefaultInstanceForType
public CapacityCommitment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CapacityCommitment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CapacityCommitment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CapacityCommitment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
setField
public CapacityCommitment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
clearField
public CapacityCommitment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
clearOneof
public CapacityCommitment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
setRepeatedField
public CapacityCommitment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
addRepeatedField
public CapacityCommitment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
mergeFrom
public CapacityCommitment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CapacityCommitment.Builder>
-
mergeFrom
public CapacityCommitment.Builder mergeFrom(CapacityCommitment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getName
in 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:
getNameBytes
in 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:
getSlotCount
in 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:
getPlanValue
in 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:
getPlan
in 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:
getStateValue
in 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:
getState
in 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:
hasCommitmentStartTime
in 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:
getCommitmentStartTime
in 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:
getCommitmentStartTimeOrBuilder
in 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:
hasCommitmentEndTime
in 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:
getCommitmentEndTime
in 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:
getCommitmentEndTimeOrBuilder
in 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:
hasFailureStatus
in 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:
getFailureStatus
in 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:
getFailureStatusOrBuilder
in 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:
getRenewalPlanValue
in 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:
getRenewalPlan
in 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:
getMultiRegionAuxiliary
in 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:
getEditionValue
in 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:
getEdition
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
mergeUnknownFields
public final CapacityCommitment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
-
-