Package flyteidl.core
Enum Execution.TaskExecution.Phase
- java.lang.Object
-
- java.lang.Enum<Execution.TaskExecution.Phase>
-
- flyteidl.core.Execution.TaskExecution.Phase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Execution.TaskExecution.Phase>
- Enclosing class:
- Execution.TaskExecution
public static enum Execution.TaskExecution.Phase extends Enum<Execution.TaskExecution.Phase> implements com.google.protobuf.ProtocolMessageEnum
Protobuf enumflyteidl.core.TaskExecution.Phase
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABORTEDABORTED = 4;FAILEDFAILED = 5;INITIALIZINGTo indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializingQUEUEDQUEUED = 1;RUNNINGRUNNING = 2;SUCCEEDEDSUCCEEDED = 3;UNDEFINEDUNDEFINED = 0;UNRECOGNIZEDWAITING_FOR_RESOURCESTo address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-
Field Summary
Fields Modifier and Type Field Description static intABORTED_VALUEABORTED = 4;static intFAILED_VALUEFAILED = 5;static intINITIALIZING_VALUETo indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializingprivate static com.google.protobuf.Internal.EnumLiteMap<Execution.TaskExecution.Phase>internalValueMapstatic intQUEUED_VALUEQUEUED = 1;static intRUNNING_VALUERUNNING = 2;static intSUCCEEDED_VALUESUCCEEDED = 3;static intUNDEFINED_VALUEUNDEFINED = 0;private intvalueprivate static Execution.TaskExecution.Phase[]VALUESstatic intWAITING_FOR_RESOURCES_VALUETo address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-
Constructor Summary
Constructors Modifier Constructor Description privatePhase(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Execution.TaskExecution.PhaseforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Execution.TaskExecution.Phase>internalGetValueMap()static Execution.TaskExecution.PhasevalueOf(int value)Deprecated.static Execution.TaskExecution.PhasevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Execution.TaskExecution.PhasevalueOf(String name)Returns the enum constant of this type with the specified name.static Execution.TaskExecution.Phase[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final Execution.TaskExecution.Phase UNDEFINED
UNDEFINED = 0;
-
QUEUED
public static final Execution.TaskExecution.Phase QUEUED
QUEUED = 1;
-
RUNNING
public static final Execution.TaskExecution.Phase RUNNING
RUNNING = 2;
-
SUCCEEDED
public static final Execution.TaskExecution.Phase SUCCEEDED
SUCCEEDED = 3;
-
ABORTED
public static final Execution.TaskExecution.Phase ABORTED
ABORTED = 4;
-
FAILED
public static final Execution.TaskExecution.Phase FAILED
FAILED = 5;
-
INITIALIZING
public static final Execution.TaskExecution.Phase INITIALIZING
To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
INITIALIZING = 6;
-
WAITING_FOR_RESOURCES
public static final Execution.TaskExecution.Phase WAITING_FOR_RESOURCES
To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
WAITING_FOR_RESOURCES = 7;
-
UNRECOGNIZED
public static final Execution.TaskExecution.Phase UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUE
UNDEFINED = 0;- See Also:
- Constant Field Values
-
QUEUED_VALUE
public static final int QUEUED_VALUE
QUEUED = 1;- See Also:
- Constant Field Values
-
RUNNING_VALUE
public static final int RUNNING_VALUE
RUNNING = 2;- See Also:
- Constant Field Values
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUE
SUCCEEDED = 3;- See Also:
- Constant Field Values
-
ABORTED_VALUE
public static final int ABORTED_VALUE
ABORTED = 4;- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
FAILED = 5;- See Also:
- Constant Field Values
-
INITIALIZING_VALUE
public static final int INITIALIZING_VALUE
To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
INITIALIZING = 6;- See Also:
- Constant Field Values
-
WAITING_FOR_RESOURCES_VALUE
public static final int WAITING_FOR_RESOURCES_VALUE
To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
WAITING_FOR_RESOURCES = 7;- See Also:
- Constant Field Values
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<Execution.TaskExecution.Phase> internalValueMap
-
VALUES
private static final Execution.TaskExecution.Phase[] VALUES
-
value
private final int value
-
-
Method Detail
-
values
public static Execution.TaskExecution.Phase[] 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 (Execution.TaskExecution.Phase c : Execution.TaskExecution.Phase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Execution.TaskExecution.Phase 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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Execution.TaskExecution.Phase 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 nameNullPointerException- if the argument is null
-
forNumber
public static Execution.TaskExecution.Phase 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<Execution.TaskExecution.Phase> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Execution.TaskExecution.Phase 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 nameNullPointerException- if the argument is null
-
-