Class JobMetadata.Builder

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

    public static final class JobMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JobMetadata.Builder>
    implements JobMetadataOrBuilder
     Job Operation metadata.
     
    Protobuf type google.cloud.dataproc.v1.JobMetadata
    • 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<JobMetadata.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public JobMetadata.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<JobMetadata.Builder>
        Throws:
        IOException
      • getJobId

        public String getJobId()
         Output only. The job id.
         
        string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getJobId in interface JobMetadataOrBuilder
        Returns:
        The jobId.
      • getJobIdBytes

        public com.google.protobuf.ByteString getJobIdBytes()
         Output only. The job id.
         
        string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getJobIdBytes in interface JobMetadataOrBuilder
        Returns:
        The bytes for jobId.
      • setJobId

        public JobMetadata.Builder setJobId​(String value)
         Output only. The job id.
         
        string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The jobId to set.
        Returns:
        This builder for chaining.
      • clearJobId

        public JobMetadata.Builder clearJobId()
         Output only. The job id.
         
        string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setJobIdBytes

        public JobMetadata.Builder setJobIdBytes​(com.google.protobuf.ByteString value)
         Output only. The job id.
         
        string job_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for jobId to set.
        Returns:
        This builder for chaining.
      • hasStatus

        public boolean hasStatus()
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStatus in interface JobMetadataOrBuilder
        Returns:
        Whether the status field is set.
      • getStatus

        public JobStatus getStatus()
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStatus in interface JobMetadataOrBuilder
        Returns:
        The status.
      • setStatus

        public JobMetadata.Builder setStatus​(JobStatus value)
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStatus

        public JobMetadata.Builder setStatus​(JobStatus.Builder builderForValue)
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStatus

        public JobMetadata.Builder mergeStatus​(JobStatus value)
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStatus

        public JobMetadata.Builder clearStatus()
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStatusBuilder

        public JobStatus.Builder getStatusBuilder()
         Output only. Most recent job status.
         
        .google.cloud.dataproc.v1.JobStatus status = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getOperationType

        public String getOperationType()
         Output only. Operation type.
         
        string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperationType in interface JobMetadataOrBuilder
        Returns:
        The operationType.
      • getOperationTypeBytes

        public com.google.protobuf.ByteString getOperationTypeBytes()
         Output only. Operation type.
         
        string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getOperationTypeBytes in interface JobMetadataOrBuilder
        Returns:
        The bytes for operationType.
      • setOperationType

        public JobMetadata.Builder setOperationType​(String value)
         Output only. Operation type.
         
        string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The operationType to set.
        Returns:
        This builder for chaining.
      • clearOperationType

        public JobMetadata.Builder clearOperationType()
         Output only. Operation type.
         
        string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setOperationTypeBytes

        public JobMetadata.Builder setOperationTypeBytes​(com.google.protobuf.ByteString value)
         Output only. Operation type.
         
        string operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for operationType to set.
        Returns:
        This builder for chaining.
      • hasStartTime

        public boolean hasStartTime()
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStartTime in interface JobMetadataOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStartTime in interface JobMetadataOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public JobMetadata.Builder setStartTime​(com.google.protobuf.Timestamp value)
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStartTime

        public JobMetadata.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStartTime

        public JobMetadata.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStartTime

        public JobMetadata.Builder clearStartTime()
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         Output only. Job submission time.
         
        .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStartTimeOrBuilder in interface JobMetadataOrBuilder
      • setUnknownFields

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

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