Class CreateCapacityCommitmentRequest.Builder

    • 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<CreateCapacityCommitmentRequest.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<CreateCapacityCommitmentRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateCapacityCommitmentRequest.Builder>
      • getParent

        public String getParent()
         Required. Resource name of the parent reservation. E.g.,
            `projects/myproject/locations/US`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface CreateCapacityCommitmentRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. Resource name of the parent reservation. E.g.,
            `projects/myproject/locations/US`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface CreateCapacityCommitmentRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateCapacityCommitmentRequest.Builder setParent​(String value)
         Required. Resource name of the parent reservation. E.g.,
            `projects/myproject/locations/US`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public CreateCapacityCommitmentRequest.Builder clearParent()
         Required. Resource name of the parent reservation. E.g.,
            `projects/myproject/locations/US`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateCapacityCommitmentRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. Resource name of the parent reservation. E.g.,
            `projects/myproject/locations/US`
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • hasCapacityCommitment

        public boolean hasCapacityCommitment()
         Content of the capacity commitment to create.
         
        .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
        Specified by:
        hasCapacityCommitment in interface CreateCapacityCommitmentRequestOrBuilder
        Returns:
        Whether the capacityCommitment field is set.
      • clearCapacityCommitment

        public CreateCapacityCommitmentRequest.Builder clearCapacityCommitment()
         Content of the capacity commitment to create.
         
        .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
      • getCapacityCommitmentBuilder

        public CapacityCommitment.Builder getCapacityCommitmentBuilder()
         Content of the capacity commitment to create.
         
        .google.cloud.bigquery.reservation.v1.CapacityCommitment capacity_commitment = 2;
      • getEnforceSingleAdminProjectPerOrg

        public boolean getEnforceSingleAdminProjectPerOrg()
         If true, fail the request if another project in the organization has a
         capacity commitment.
         
        bool enforce_single_admin_project_per_org = 4;
        Specified by:
        getEnforceSingleAdminProjectPerOrg in interface CreateCapacityCommitmentRequestOrBuilder
        Returns:
        The enforceSingleAdminProjectPerOrg.
      • setEnforceSingleAdminProjectPerOrg

        public CreateCapacityCommitmentRequest.Builder setEnforceSingleAdminProjectPerOrg​(boolean value)
         If true, fail the request if another project in the organization has a
         capacity commitment.
         
        bool enforce_single_admin_project_per_org = 4;
        Parameters:
        value - The enforceSingleAdminProjectPerOrg to set.
        Returns:
        This builder for chaining.
      • clearEnforceSingleAdminProjectPerOrg

        public CreateCapacityCommitmentRequest.Builder clearEnforceSingleAdminProjectPerOrg()
         If true, fail the request if another project in the organization has a
         capacity commitment.
         
        bool enforce_single_admin_project_per_org = 4;
        Returns:
        This builder for chaining.
      • getCapacityCommitmentId

        public String getCapacityCommitmentId()
         The optional capacity commitment ID. Capacity commitment name will be
         generated automatically if this field is empty.
         This field must only contain lower case alphanumeric characters or dashes.
         The first and last character cannot be a dash. Max length is 64 characters.
         NOTE: this ID won't be kept if the capacity commitment is split or merged.
         
        string capacity_commitment_id = 5;
        Specified by:
        getCapacityCommitmentId in interface CreateCapacityCommitmentRequestOrBuilder
        Returns:
        The capacityCommitmentId.
      • getCapacityCommitmentIdBytes

        public com.google.protobuf.ByteString getCapacityCommitmentIdBytes()
         The optional capacity commitment ID. Capacity commitment name will be
         generated automatically if this field is empty.
         This field must only contain lower case alphanumeric characters or dashes.
         The first and last character cannot be a dash. Max length is 64 characters.
         NOTE: this ID won't be kept if the capacity commitment is split or merged.
         
        string capacity_commitment_id = 5;
        Specified by:
        getCapacityCommitmentIdBytes in interface CreateCapacityCommitmentRequestOrBuilder
        Returns:
        The bytes for capacityCommitmentId.
      • setCapacityCommitmentId

        public CreateCapacityCommitmentRequest.Builder setCapacityCommitmentId​(String value)
         The optional capacity commitment ID. Capacity commitment name will be
         generated automatically if this field is empty.
         This field must only contain lower case alphanumeric characters or dashes.
         The first and last character cannot be a dash. Max length is 64 characters.
         NOTE: this ID won't be kept if the capacity commitment is split or merged.
         
        string capacity_commitment_id = 5;
        Parameters:
        value - The capacityCommitmentId to set.
        Returns:
        This builder for chaining.
      • clearCapacityCommitmentId

        public CreateCapacityCommitmentRequest.Builder clearCapacityCommitmentId()
         The optional capacity commitment ID. Capacity commitment name will be
         generated automatically if this field is empty.
         This field must only contain lower case alphanumeric characters or dashes.
         The first and last character cannot be a dash. Max length is 64 characters.
         NOTE: this ID won't be kept if the capacity commitment is split or merged.
         
        string capacity_commitment_id = 5;
        Returns:
        This builder for chaining.
      • setCapacityCommitmentIdBytes

        public CreateCapacityCommitmentRequest.Builder setCapacityCommitmentIdBytes​(com.google.protobuf.ByteString value)
         The optional capacity commitment ID. Capacity commitment name will be
         generated automatically if this field is empty.
         This field must only contain lower case alphanumeric characters or dashes.
         The first and last character cannot be a dash. Max length is 64 characters.
         NOTE: this ID won't be kept if the capacity commitment is split or merged.
         
        string capacity_commitment_id = 5;
        Parameters:
        value - The bytes for capacityCommitmentId to set.
        Returns:
        This builder for chaining.