Class Assignment.Builder

  • All Implemented Interfaces:
    AssignmentOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Assignment

    public static final class Assignment.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Assignment.Builder>
    implements AssignmentOrBuilder
     An assignment allows a project to submit jobs
     of a certain type using slots from the specified reservation.
     
    Protobuf type google.cloud.bigquery.reservation.v1.Assignment
    • 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<Assignment.Builder>
      • clear

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

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

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

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

        public Assignment.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<Assignment.Builder>
      • setField

        public Assignment.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<Assignment.Builder>
      • clearField

        public Assignment.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<Assignment.Builder>
      • clearOneof

        public Assignment.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<Assignment.Builder>
      • setRepeatedField

        public Assignment.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<Assignment.Builder>
      • addRepeatedField

        public Assignment.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<Assignment.Builder>
      • mergeFrom

        public Assignment.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<Assignment.Builder>
      • isInitialized

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

        public Assignment.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<Assignment.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. Name of the resource. E.g.:
         `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
         The assignment_id must only contain lower case alphanumeric characters or
         dashes and the max length is 64 characters.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface AssignmentOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. Name of the resource. E.g.:
         `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
         The assignment_id must only contain lower case alphanumeric characters or
         dashes and the max length is 64 characters.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface AssignmentOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Assignment.Builder setName​(String value)
         Output only. Name of the resource. E.g.:
         `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
         The assignment_id must only contain lower case alphanumeric characters or
         dashes and the max 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 Assignment.Builder clearName()
         Output only. Name of the resource. E.g.:
         `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
         The assignment_id must only contain lower case alphanumeric characters or
         dashes and the max length is 64 characters.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Assignment.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. Name of the resource. E.g.:
         `projects/myproject/locations/US/reservations/team1-prod/assignments/123`.
         The assignment_id must only contain lower case alphanumeric characters or
         dashes and the max 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.
      • getAssignee

        public String getAssignee()
         The resource which will use the reservation. E.g.
         `projects/myproject`, `folders/123`, or `organizations/456`.
         
        string assignee = 4;
        Specified by:
        getAssignee in interface AssignmentOrBuilder
        Returns:
        The assignee.
      • getAssigneeBytes

        public com.google.protobuf.ByteString getAssigneeBytes()
         The resource which will use the reservation. E.g.
         `projects/myproject`, `folders/123`, or `organizations/456`.
         
        string assignee = 4;
        Specified by:
        getAssigneeBytes in interface AssignmentOrBuilder
        Returns:
        The bytes for assignee.
      • setAssignee

        public Assignment.Builder setAssignee​(String value)
         The resource which will use the reservation. E.g.
         `projects/myproject`, `folders/123`, or `organizations/456`.
         
        string assignee = 4;
        Parameters:
        value - The assignee to set.
        Returns:
        This builder for chaining.
      • clearAssignee

        public Assignment.Builder clearAssignee()
         The resource which will use the reservation. E.g.
         `projects/myproject`, `folders/123`, or `organizations/456`.
         
        string assignee = 4;
        Returns:
        This builder for chaining.
      • setAssigneeBytes

        public Assignment.Builder setAssigneeBytes​(com.google.protobuf.ByteString value)
         The resource which will use the reservation. E.g.
         `projects/myproject`, `folders/123`, or `organizations/456`.
         
        string assignee = 4;
        Parameters:
        value - The bytes for assignee to set.
        Returns:
        This builder for chaining.
      • getJobTypeValue

        public int getJobTypeValue()
         Which type of jobs will use the reservation.
         
        .google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
        Specified by:
        getJobTypeValue in interface AssignmentOrBuilder
        Returns:
        The enum numeric value on the wire for jobType.
      • setJobTypeValue

        public Assignment.Builder setJobTypeValue​(int value)
         Which type of jobs will use the reservation.
         
        .google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
        Parameters:
        value - The enum numeric value on the wire for jobType to set.
        Returns:
        This builder for chaining.
      • getJobType

        public Assignment.JobType getJobType()
         Which type of jobs will use the reservation.
         
        .google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
        Specified by:
        getJobType in interface AssignmentOrBuilder
        Returns:
        The jobType.
      • setJobType

        public Assignment.Builder setJobType​(Assignment.JobType value)
         Which type of jobs will use the reservation.
         
        .google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
        Parameters:
        value - The jobType to set.
        Returns:
        This builder for chaining.
      • clearJobType

        public Assignment.Builder clearJobType()
         Which type of jobs will use the reservation.
         
        .google.cloud.bigquery.reservation.v1.Assignment.JobType job_type = 3;
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. State of the assignment.
         
        .google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface AssignmentOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Assignment.Builder setStateValue​(int value)
         Output only. State of the assignment.
         
        .google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.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 Assignment.State getState()
         Output only. State of the assignment.
         
        .google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface AssignmentOrBuilder
        Returns:
        The state.
      • setState

        public Assignment.Builder setState​(Assignment.State value)
         Output only. State of the assignment.
         
        .google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Assignment.Builder clearState()
         Output only. State of the assignment.
         
        .google.cloud.bigquery.reservation.v1.Assignment.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Assignment.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<Assignment.Builder>
      • mergeUnknownFields

        public final Assignment.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<Assignment.Builder>