Enum JobStatus.State

java.lang.Object
java.lang.Enum<JobStatus.State>
com.google.cloud.batch.v1alpha.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 Details

    • 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;
    • CANCELLATION_IN_PROGRESS

      public static final JobStatus.State CANCELLATION_IN_PROGRESS
       The Job cancellation is in progress, this is because the resources used
       by the Job are still being cleaned up.
       
      CANCELLATION_IN_PROGRESS = 7;
    • CANCELLED

      public static final JobStatus.State CANCELLED
       The Job has been cancelled, the task executions were stopped and the
       resources were cleaned up.
       
      CANCELLED = 8;
    • UNRECOGNIZED

      public static final JobStatus.State UNRECOGNIZED
  • Field Details

    • STATE_UNSPECIFIED_VALUE

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

      public static final int QUEUED_VALUE
       Job is admitted (validated and persisted) and waiting for resources.
       
      QUEUED = 1;
      See Also:
    • 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:
    • 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:
    • SUCCEEDED_VALUE

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

      public static final int FAILED_VALUE
       At least one Task in the Job has failed.
       
      FAILED = 5;
      See Also:
    • 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:
    • CANCELLATION_IN_PROGRESS_VALUE

      public static final int CANCELLATION_IN_PROGRESS_VALUE
       The Job cancellation is in progress, this is because the resources used
       by the Job are still being cleaned up.
       
      CANCELLATION_IN_PROGRESS = 7;
      See Also:
    • CANCELLED_VALUE

      public static final int CANCELLED_VALUE
       The Job has been cancelled, the task executions were stopped and the
       resources were cleaned up.
       
      CANCELLED = 8;
      See Also:
  • Method Details

    • values

      public static JobStatus.State[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 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