Package com.google.cloud.aiplatform.v1
Enum Tensor.DataType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Tensor.DataType>
- Enclosing class:
- Tensor
public static enum Tensor.DataType
extends Enum<Tensor.DataType>
implements com.google.protobuf.ProtocolMessageEnum
Data type of the tensor.Protobuf enum
google.cloud.aiplatform.v1.Tensor.DataType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionData types that all computation devices are expected to be capable to support.Not a legal value for DataType.DOUBLE = 4;FLOAT = 3;INT16 = 6;INT32 = 7;INT64 = 8;INT8 = 5;STRING = 2;UINT16 = 10;UINT32 = 11;UINT64 = 12;UINT8 = 9; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intData types that all computation devices are expected to be capable to support.static final intNot a legal value for DataType.static final intDOUBLE = 4;static final intFLOAT = 3;static final intINT16 = 6;static final intINT32 = 7;static final intINT64 = 8;static final intINT8 = 5;static final intSTRING = 2;static final intUINT16 = 10;static final intUINT32 = 11;static final intUINT64 = 12;static final intUINT8 = 9; -
Method Summary
Modifier and TypeMethodDescriptionstatic Tensor.DataTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Tensor.DataType>static Tensor.DataTypevalueOf(int value) Deprecated.static Tensor.DataTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Tensor.DataTypeReturns the enum constant of this type with the specified name.static Tensor.DataType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATA_TYPE_UNSPECIFIED
Not a legal value for DataType. Used to indicate a DataType field has not been set.
DATA_TYPE_UNSPECIFIED = 0; -
BOOL
Data types that all computation devices are expected to be capable to support.
BOOL = 1; -
STRING
STRING = 2; -
FLOAT
FLOAT = 3; -
DOUBLE
DOUBLE = 4; -
INT8
INT8 = 5; -
INT16
INT16 = 6; -
INT32
INT32 = 7; -
INT64
INT64 = 8; -
UINT8
UINT8 = 9; -
UINT16
UINT16 = 10; -
UINT32
UINT32 = 11; -
UINT64
UINT64 = 12; -
UNRECOGNIZED
-
-
Field Details
-
DATA_TYPE_UNSPECIFIED_VALUE
public static final int DATA_TYPE_UNSPECIFIED_VALUENot a legal value for DataType. Used to indicate a DataType field has not been set.
DATA_TYPE_UNSPECIFIED = 0;- See Also:
-
BOOL_VALUE
public static final int BOOL_VALUEData types that all computation devices are expected to be capable to support.
BOOL = 1;- See Also:
-
STRING_VALUE
public static final int STRING_VALUESTRING = 2;- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEFLOAT = 3;- See Also:
-
DOUBLE_VALUE
public static final int DOUBLE_VALUEDOUBLE = 4;- See Also:
-
INT8_VALUE
public static final int INT8_VALUEINT8 = 5;- See Also:
-
INT16_VALUE
public static final int INT16_VALUEINT16 = 6;- See Also:
-
INT32_VALUE
public static final int INT32_VALUEINT32 = 7;- See Also:
-
INT64_VALUE
public static final int INT64_VALUEINT64 = 8;- See Also:
-
UINT8_VALUE
public static final int UINT8_VALUEUINT8 = 9;- See Also:
-
UINT16_VALUE
public static final int UINT16_VALUEUINT16 = 10;- See Also:
-
UINT32_VALUE
public static final int UINT32_VALUEUINT32 = 11;- See Also:
-
UINT64_VALUE
public static final int UINT64_VALUEUINT64 = 12;- 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
-
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
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
-