Package flyteidl.core
Enum Tasks.Resources.ResourceName
- java.lang.Object
-
- java.lang.Enum<Tasks.Resources.ResourceName>
-
- flyteidl.core.Tasks.Resources.ResourceName
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Tasks.Resources.ResourceName>
- Enclosing class:
- Tasks.Resources
public static enum Tasks.Resources.ResourceName extends Enum<Tasks.Resources.ResourceName> implements com.google.protobuf.ProtocolMessageEnum
Known resource names.
Protobuf enumflyteidl.core.Resources.ResourceName
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CPUCPU = 1;EPHEMERAL_STORAGEFor Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.GPUGPU = 2;MEMORYMEMORY = 3;STORAGESTORAGE = 4;UNKNOWNUNKNOWN = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCPU_VALUECPU = 1;static intEPHEMERAL_STORAGE_VALUEFor Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.static intGPU_VALUEGPU = 2;private static com.google.protobuf.Internal.EnumLiteMap<Tasks.Resources.ResourceName>internalValueMapstatic intMEMORY_VALUEMEMORY = 3;static intSTORAGE_VALUESTORAGE = 4;static intUNKNOWN_VALUEUNKNOWN = 0;private intvalueprivate static Tasks.Resources.ResourceName[]VALUES
-
Constructor Summary
Constructors Modifier Constructor Description privateResourceName(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Tasks.Resources.ResourceNameforNumber(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<Tasks.Resources.ResourceName>internalGetValueMap()static Tasks.Resources.ResourceNamevalueOf(int value)Deprecated.static Tasks.Resources.ResourceNamevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Tasks.Resources.ResourceNamevalueOf(String name)Returns the enum constant of this type with the specified name.static Tasks.Resources.ResourceName[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Tasks.Resources.ResourceName UNKNOWN
UNKNOWN = 0;
-
CPU
public static final Tasks.Resources.ResourceName CPU
CPU = 1;
-
GPU
public static final Tasks.Resources.ResourceName GPU
GPU = 2;
-
MEMORY
public static final Tasks.Resources.ResourceName MEMORY
MEMORY = 3;
-
STORAGE
public static final Tasks.Resources.ResourceName STORAGE
STORAGE = 4;
-
EPHEMERAL_STORAGE
public static final Tasks.Resources.ResourceName EPHEMERAL_STORAGE
For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.
EPHEMERAL_STORAGE = 5;
-
UNRECOGNIZED
public static final Tasks.Resources.ResourceName UNRECOGNIZED
-
-
Field Detail
-
UNKNOWN_VALUE
public static final int UNKNOWN_VALUE
UNKNOWN = 0;- See Also:
- Constant Field Values
-
CPU_VALUE
public static final int CPU_VALUE
CPU = 1;- See Also:
- Constant Field Values
-
GPU_VALUE
public static final int GPU_VALUE
GPU = 2;- See Also:
- Constant Field Values
-
MEMORY_VALUE
public static final int MEMORY_VALUE
MEMORY = 3;- See Also:
- Constant Field Values
-
STORAGE_VALUE
public static final int STORAGE_VALUE
STORAGE = 4;- See Also:
- Constant Field Values
-
EPHEMERAL_STORAGE_VALUE
public static final int EPHEMERAL_STORAGE_VALUE
For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.
EPHEMERAL_STORAGE = 5;- See Also:
- Constant Field Values
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<Tasks.Resources.ResourceName> internalValueMap
-
VALUES
private static final Tasks.Resources.ResourceName[] VALUES
-
value
private final int value
-
-
Method Detail
-
values
public static Tasks.Resources.ResourceName[] 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 (Tasks.Resources.ResourceName c : Tasks.Resources.ResourceName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tasks.Resources.ResourceName 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 Tasks.Resources.ResourceName 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 Tasks.Resources.ResourceName 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<Tasks.Resources.ResourceName> 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 Tasks.Resources.ResourceName 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
-
-