Package com.google.cloud.tpu.v2
Enum AcceleratorConfig.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AcceleratorConfig.Type>
- Enclosing class:
- AcceleratorConfig
public static enum AcceleratorConfig.Type
extends Enum<AcceleratorConfig.Type>
implements com.google.protobuf.ProtocolMessageEnum
TPU type.Protobuf enum
google.cloud.tpu.v2.AcceleratorConfig.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified version.TPU v2.TPU v3.TPU v4.TPU v5lite pod.TPU v5p.TPU v6e. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified version.static final intTPU v2.static final intTPU v3.static final intTPU v4.static final intTPU v5lite pod.static final intTPU v5p.static final intTPU v6e. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcceleratorConfig.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AcceleratorConfig.Type>static AcceleratorConfig.TypevalueOf(int value) Deprecated.static AcceleratorConfig.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static AcceleratorConfig.TypeReturns the enum constant of this type with the specified name.static AcceleratorConfig.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
Unspecified version.
TYPE_UNSPECIFIED = 0; -
V2
TPU v2.
V2 = 2; -
V3
TPU v3.
V3 = 4; -
V4
TPU v4.
V4 = 7; -
V5LITE_POD
TPU v5lite pod.
V5LITE_POD = 9; -
V5P
TPU v5p.
V5P = 10; -
V6E
TPU v6e.
V6E = 11; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUEUnspecified version.
TYPE_UNSPECIFIED = 0;- See Also:
-
V2_VALUE
public static final int V2_VALUETPU v2.
V2 = 2;- See Also:
-
V3_VALUE
public static final int V3_VALUETPU v3.
V3 = 4;- See Also:
-
V4_VALUE
public static final int V4_VALUETPU v4.
V4 = 7;- See Also:
-
V5LITE_POD_VALUE
public static final int V5LITE_POD_VALUETPU v5lite pod.
V5LITE_POD = 9;- See Also:
-
V5P_VALUE
public static final int V5P_VALUETPU v5p.
V5P = 10;- See Also:
-
V6E_VALUE
public static final int V6E_VALUETPU v6e.
V6E = 11;- See Also:
-
-
Method Details
-
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
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.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
- 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<AcceleratorConfig.Type> 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AcceleratorConfig.Type 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
-