Class JobReference.Builder

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

    public static final class JobReference.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JobReference.Builder>
    implements JobReferenceOrBuilder
     Encapsulates the full scoping used to reference a job.
     
    Protobuf type google.cloud.dataproc.v1.JobReference
    • 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<JobReference.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public JobReference.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<JobReference.Builder>
        Throws:
        IOException
      • getProjectId

        public String getProjectId()
         Optional. The ID of the Google Cloud Platform project that the job belongs
         to. If specified, must match the request project ID.
         
        string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getProjectId in interface JobReferenceOrBuilder
        Returns:
        The projectId.
      • getProjectIdBytes

        public com.google.protobuf.ByteString getProjectIdBytes()
         Optional. The ID of the Google Cloud Platform project that the job belongs
         to. If specified, must match the request project ID.
         
        string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getProjectIdBytes in interface JobReferenceOrBuilder
        Returns:
        The bytes for projectId.
      • setProjectId

        public JobReference.Builder setProjectId​(String value)
         Optional. The ID of the Google Cloud Platform project that the job belongs
         to. If specified, must match the request project ID.
         
        string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The projectId to set.
        Returns:
        This builder for chaining.
      • clearProjectId

        public JobReference.Builder clearProjectId()
         Optional. The ID of the Google Cloud Platform project that the job belongs
         to. If specified, must match the request project ID.
         
        string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setProjectIdBytes

        public JobReference.Builder setProjectIdBytes​(com.google.protobuf.ByteString value)
         Optional. The ID of the Google Cloud Platform project that the job belongs
         to. If specified, must match the request project ID.
         
        string project_id = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for projectId to set.
        Returns:
        This builder for chaining.
      • getJobId

        public String getJobId()
         Optional. The job ID, which must be unique within the project.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), or hyphens (-). The maximum length is 100 characters.
        
         If not specified by the caller, the job ID will be provided by the server.
         
        string job_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJobId in interface JobReferenceOrBuilder
        Returns:
        The jobId.
      • getJobIdBytes

        public com.google.protobuf.ByteString getJobIdBytes()
         Optional. The job ID, which must be unique within the project.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), or hyphens (-). The maximum length is 100 characters.
        
         If not specified by the caller, the job ID will be provided by the server.
         
        string job_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJobIdBytes in interface JobReferenceOrBuilder
        Returns:
        The bytes for jobId.
      • setJobId

        public JobReference.Builder setJobId​(String value)
         Optional. The job ID, which must be unique within the project.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), or hyphens (-). The maximum length is 100 characters.
        
         If not specified by the caller, the job ID will be provided by the server.
         
        string job_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The jobId to set.
        Returns:
        This builder for chaining.
      • clearJobId

        public JobReference.Builder clearJobId()
         Optional. The job ID, which must be unique within the project.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), or hyphens (-). The maximum length is 100 characters.
        
         If not specified by the caller, the job ID will be provided by the server.
         
        string job_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setJobIdBytes

        public JobReference.Builder setJobIdBytes​(com.google.protobuf.ByteString value)
         Optional. The job ID, which must be unique within the project.
        
         The ID must contain only letters (a-z, A-Z), numbers (0-9),
         underscores (_), or hyphens (-). The maximum length is 100 characters.
        
         If not specified by the caller, the job ID will be provided by the server.
         
        string job_id = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for jobId to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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