Class 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 type google.cloud.bigquery.reservation.v1.CapacityCommitment
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • clear

        public CapacityCommitment.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • getDefaultInstanceForType

        public CapacityCommitment getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CapacityCommitment build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CapacityCommitment buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public CapacityCommitment.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • setField

        public CapacityCommitment.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • clearField

        public CapacityCommitment.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • clearOneof

        public CapacityCommitment.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • addRepeatedField

        public CapacityCommitment.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                           Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • mergeFrom

        public CapacityCommitment.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CapacityCommitment.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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.
      • 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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
      • 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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
      • 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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
      • 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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface CapacityCommitmentOrBuilder
        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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>
      • mergeUnknownFields

        public final CapacityCommitment.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CapacityCommitment.Builder>