Enum JobStatus.State

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<JobStatus.State>
    Enclosing class:
    JobStatus

    public static enum JobStatus.State
    extends Enum<JobStatus.State>
    implements com.google.protobuf.ProtocolMessageEnum
     The job state.
     
    Protobuf enum google.cloud.dataproc.v1.JobStatus.State
    • Enum Constant Detail

      • STATE_UNSPECIFIED

        public static final JobStatus.State STATE_UNSPECIFIED
         The job state is unknown.
         
        STATE_UNSPECIFIED = 0;
      • PENDING

        public static final JobStatus.State PENDING
         The job is pending; it has been submitted, but is not yet running.
         
        PENDING = 1;
      • SETUP_DONE

        public static final JobStatus.State SETUP_DONE
         Job has been received by the service and completed initial setup;
         it will soon be submitted to the cluster.
         
        SETUP_DONE = 8;
      • RUNNING

        public static final JobStatus.State RUNNING
         The job is running on the cluster.
         
        RUNNING = 2;
      • CANCEL_PENDING

        public static final JobStatus.State CANCEL_PENDING
         A CancelJob request has been received, but is pending.
         
        CANCEL_PENDING = 3;
      • CANCEL_STARTED

        public static final JobStatus.State CANCEL_STARTED
         Transient in-flight resources have been canceled, and the request to
         cancel the running job has been issued to the cluster.
         
        CANCEL_STARTED = 7;
      • CANCELLED

        public static final JobStatus.State CANCELLED
         The job cancellation was successful.
         
        CANCELLED = 4;
      • DONE

        public static final JobStatus.State DONE
         The job has completed successfully.
         
        DONE = 5;
      • ERROR

        public static final JobStatus.State ERROR
         The job has completed, but encountered an error.
         
        ERROR = 6;
      • ATTEMPT_FAILURE

        public static final JobStatus.State ATTEMPT_FAILURE
         Job attempt has failed. The detail field contains failure details for
         this attempt.
        
         Applies to restartable jobs only.
         
        ATTEMPT_FAILURE = 9;
    • Field Detail

      • STATE_UNSPECIFIED_VALUE

        public static final int STATE_UNSPECIFIED_VALUE
         The job state is unknown.
         
        STATE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • PENDING_VALUE

        public static final int PENDING_VALUE
         The job is pending; it has been submitted, but is not yet running.
         
        PENDING = 1;
        See Also:
        Constant Field Values
      • SETUP_DONE_VALUE

        public static final int SETUP_DONE_VALUE
         Job has been received by the service and completed initial setup;
         it will soon be submitted to the cluster.
         
        SETUP_DONE = 8;
        See Also:
        Constant Field Values
      • RUNNING_VALUE

        public static final int RUNNING_VALUE
         The job is running on the cluster.
         
        RUNNING = 2;
        See Also:
        Constant Field Values
      • CANCEL_PENDING_VALUE

        public static final int CANCEL_PENDING_VALUE
         A CancelJob request has been received, but is pending.
         
        CANCEL_PENDING = 3;
        See Also:
        Constant Field Values
      • CANCEL_STARTED_VALUE

        public static final int CANCEL_STARTED_VALUE
         Transient in-flight resources have been canceled, and the request to
         cancel the running job has been issued to the cluster.
         
        CANCEL_STARTED = 7;
        See Also:
        Constant Field Values
      • CANCELLED_VALUE

        public static final int CANCELLED_VALUE
         The job cancellation was successful.
         
        CANCELLED = 4;
        See Also:
        Constant Field Values
      • DONE_VALUE

        public static final int DONE_VALUE
         The job has completed successfully.
         
        DONE = 5;
        See Also:
        Constant Field Values
      • ERROR_VALUE

        public static final int ERROR_VALUE
         The job has completed, but encountered an error.
         
        ERROR = 6;
        See Also:
        Constant Field Values
      • ATTEMPT_FAILURE_VALUE

        public static final int ATTEMPT_FAILURE_VALUE
         Job attempt has failed. The detail field contains failure details for
         this attempt.
        
         Applies to restartable jobs only.
         
        ATTEMPT_FAILURE = 9;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static JobStatus.State[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JobStatus.State c : JobStatus.State.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JobStatus.State valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static JobStatus.State valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static JobStatus.State forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<JobStatus.State> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static JobStatus.State valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null