Class JobStatus.Builder

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

    public static final class JobStatus.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<JobStatus.Builder>
    implements JobStatusOrBuilder
     Dataproc job status.
     
    Protobuf type google.cloud.dataproc.v1.JobStatus
    • 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<JobStatus.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public JobStatus.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<JobStatus.Builder>
        Throws:
        IOException
      • getStateValue

        public int getStateValue()
         Output only. A state message specifying the overall job state.
         
        .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface JobStatusOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public JobStatus.Builder setStateValue​(int value)
         Output only. A state message specifying the overall job state.
         
        .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.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 JobStatus.State getState()
         Output only. A state message specifying the overall job state.
         
        .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface JobStatusOrBuilder
        Returns:
        The state.
      • setState

        public JobStatus.Builder setState​(JobStatus.State value)
         Output only. A state message specifying the overall job state.
         
        .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public JobStatus.Builder clearState()
         Output only. A state message specifying the overall job state.
         
        .google.cloud.dataproc.v1.JobStatus.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getDetails

        public String getDetails()
         Optional. Output only. Job state details, such as an error
         description if the state is <code>ERROR</code>.
         
        string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDetails in interface JobStatusOrBuilder
        Returns:
        The details.
      • getDetailsBytes

        public com.google.protobuf.ByteString getDetailsBytes()
         Optional. Output only. Job state details, such as an error
         description if the state is <code>ERROR</code>.
         
        string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDetailsBytes in interface JobStatusOrBuilder
        Returns:
        The bytes for details.
      • setDetails

        public JobStatus.Builder setDetails​(String value)
         Optional. Output only. Job state details, such as an error
         description if the state is <code>ERROR</code>.
         
        string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The details to set.
        Returns:
        This builder for chaining.
      • clearDetails

        public JobStatus.Builder clearDetails()
         Optional. Output only. Job state details, such as an error
         description if the state is <code>ERROR</code>.
         
        string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDetailsBytes

        public JobStatus.Builder setDetailsBytes​(com.google.protobuf.ByteString value)
         Optional. Output only. Job state details, such as an error
         description if the state is <code>ERROR</code>.
         
        string details = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for details to set.
        Returns:
        This builder for chaining.
      • hasStateStartTime

        public boolean hasStateStartTime()
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStateStartTime in interface JobStatusOrBuilder
        Returns:
        Whether the stateStartTime field is set.
      • getStateStartTime

        public com.google.protobuf.Timestamp getStateStartTime()
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateStartTime in interface JobStatusOrBuilder
        Returns:
        The stateStartTime.
      • setStateStartTime

        public JobStatus.Builder setStateStartTime​(com.google.protobuf.Timestamp value)
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setStateStartTime

        public JobStatus.Builder setStateStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeStateStartTime

        public JobStatus.Builder mergeStateStartTime​(com.google.protobuf.Timestamp value)
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearStateStartTime

        public JobStatus.Builder clearStateStartTime()
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStateStartTimeBuilder()
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getStateStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStateStartTimeOrBuilder()
         Output only. The time when this state was entered.
         
        .google.protobuf.Timestamp state_start_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateStartTimeOrBuilder in interface JobStatusOrBuilder
      • getSubstateValue

        public int getSubstateValue()
         Output only. Additional state information, which includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSubstateValue in interface JobStatusOrBuilder
        Returns:
        The enum numeric value on the wire for substate.
      • setSubstateValue

        public JobStatus.Builder setSubstateValue​(int value)
         Output only. Additional state information, which includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for substate to set.
        Returns:
        This builder for chaining.
      • getSubstate

        public JobStatus.Substate getSubstate()
         Output only. Additional state information, which includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getSubstate in interface JobStatusOrBuilder
        Returns:
        The substate.
      • setSubstate

        public JobStatus.Builder setSubstate​(JobStatus.Substate value)
         Output only. Additional state information, which includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The substate to set.
        Returns:
        This builder for chaining.
      • clearSubstate

        public JobStatus.Builder clearSubstate()
         Output only. Additional state information, which includes
         status reported by the agent.
         
        .google.cloud.dataproc.v1.JobStatus.Substate substate = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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