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
     Valid Job states.
     
    Protobuf enum google.cloud.batch.v1alpha.JobStatus.State
    • Enum Constant Detail

      • STATE_UNSPECIFIED

        public static final JobStatus.State STATE_UNSPECIFIED
         Job state unspecified.
         
        STATE_UNSPECIFIED = 0;
      • QUEUED

        public static final JobStatus.State QUEUED
         Job is admitted (validated and persisted) and waiting for resources.
         
        QUEUED = 1;
      • SCHEDULED

        public static final JobStatus.State SCHEDULED
         Job is scheduled to run as soon as resource allocation is ready.
         The resource allocation may happen at a later time but with a high
         chance to succeed.
         
        SCHEDULED = 2;
      • RUNNING

        public static final JobStatus.State RUNNING
         Resource allocation has been successful. At least one Task in the Job is
         RUNNING.
         
        RUNNING = 3;
      • SUCCEEDED

        public static final JobStatus.State SUCCEEDED
         All Tasks in the Job have finished successfully.
         
        SUCCEEDED = 4;
      • FAILED

        public static final JobStatus.State FAILED
         At least one Task in the Job has failed.
         
        FAILED = 5;
      • DELETION_IN_PROGRESS

        public static final JobStatus.State DELETION_IN_PROGRESS
         The Job will be deleted, but has not been deleted yet. Typically this is
         because resources used by the Job are still being cleaned up.
         
        DELETION_IN_PROGRESS = 6;
    • Field Detail

      • STATE_UNSPECIFIED_VALUE

        public static final int STATE_UNSPECIFIED_VALUE
         Job state unspecified.
         
        STATE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • QUEUED_VALUE

        public static final int QUEUED_VALUE
         Job is admitted (validated and persisted) and waiting for resources.
         
        QUEUED = 1;
        See Also:
        Constant Field Values
      • SCHEDULED_VALUE

        public static final int SCHEDULED_VALUE
         Job is scheduled to run as soon as resource allocation is ready.
         The resource allocation may happen at a later time but with a high
         chance to succeed.
         
        SCHEDULED = 2;
        See Also:
        Constant Field Values
      • RUNNING_VALUE

        public static final int RUNNING_VALUE
         Resource allocation has been successful. At least one Task in the Job is
         RUNNING.
         
        RUNNING = 3;
        See Also:
        Constant Field Values
      • SUCCEEDED_VALUE

        public static final int SUCCEEDED_VALUE
         All Tasks in the Job have finished successfully.
         
        SUCCEEDED = 4;
        See Also:
        Constant Field Values
      • FAILED_VALUE

        public static final int FAILED_VALUE
         At least one Task in the Job has failed.
         
        FAILED = 5;
        See Also:
        Constant Field Values
      • DELETION_IN_PROGRESS_VALUE

        public static final int DELETION_IN_PROGRESS_VALUE
         The Job will be deleted, but has not been deleted yet. Typically this is
         because resources used by the Job are still being cleaned up.
         
        DELETION_IN_PROGRESS = 6;
        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