public static enum Tensor.DataType extends Enum<Tensor.DataType> implements com.google.protobuf.ProtocolMessageEnum
Data type of the tensor.Protobuf enum
google.cloud.vertexai.v1.Tensor.DataType| Enum Constant and Description |
|---|
BOOL
Data types that all computation devices are expected to be
capable to support.
|
DATA_TYPE_UNSPECIFIED
Not a legal value for DataType.
|
DOUBLE
DOUBLE = 4; |
FLOAT
FLOAT = 3; |
INT16
INT16 = 6; |
INT32
INT32 = 7; |
INT64
INT64 = 8; |
INT8
INT8 = 5; |
STRING
STRING = 2; |
UINT16
UINT16 = 10; |
UINT32
UINT32 = 11; |
UINT64
UINT64 = 12; |
UINT8
UINT8 = 9; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOL_VALUE
Data types that all computation devices are expected to be
capable to support.
|
static int |
DATA_TYPE_UNSPECIFIED_VALUE
Not a legal value for DataType.
|
static int |
DOUBLE_VALUE
DOUBLE = 4; |
static int |
FLOAT_VALUE
FLOAT = 3; |
static int |
INT16_VALUE
INT16 = 6; |
static int |
INT32_VALUE
INT32 = 7; |
static int |
INT64_VALUE
INT64 = 8; |
static int |
INT8_VALUE
INT8 = 5; |
static int |
STRING_VALUE
STRING = 2; |
static int |
UINT16_VALUE
UINT16 = 10; |
static int |
UINT32_VALUE
UINT32 = 11; |
static int |
UINT64_VALUE
UINT64 = 12; |
static int |
UINT8_VALUE
UINT8 = 9; |
| Modifier and Type | Method and Description |
|---|---|
static Tensor.DataType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Tensor.DataType> |
internalGetValueMap() |
static Tensor.DataType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Tensor.DataType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Tensor.DataType |
valueOf(String name)
Returns 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.
|
public static final Tensor.DataType DATA_TYPE_UNSPECIFIED
Not a legal value for DataType. Used to indicate a DataType field has not been set.
DATA_TYPE_UNSPECIFIED = 0;public static final Tensor.DataType BOOL
Data types that all computation devices are expected to be capable to support.
BOOL = 1;public static final Tensor.DataType STRING
STRING = 2;public static final Tensor.DataType FLOAT
FLOAT = 3;public static final Tensor.DataType DOUBLE
DOUBLE = 4;public static final Tensor.DataType INT8
INT8 = 5;public static final Tensor.DataType INT16
INT16 = 6;public static final Tensor.DataType INT32
INT32 = 7;public static final Tensor.DataType INT64
INT64 = 8;public static final Tensor.DataType UINT8
UINT8 = 9;public static final Tensor.DataType UINT16
UINT16 = 10;public static final Tensor.DataType UINT32
UINT32 = 11;public static final Tensor.DataType UINT64
UINT64 = 12;public static final Tensor.DataType UNRECOGNIZED
public static final int DATA_TYPE_UNSPECIFIED_VALUE
Not a legal value for DataType. Used to indicate a DataType field has not been set.
DATA_TYPE_UNSPECIFIED = 0;public static final int BOOL_VALUE
Data types that all computation devices are expected to be capable to support.
BOOL = 1;public static final int STRING_VALUE
STRING = 2;public static final int FLOAT_VALUE
FLOAT = 3;public static final int DOUBLE_VALUE
DOUBLE = 4;public static final int INT8_VALUE
INT8 = 5;public static final int INT16_VALUE
INT16 = 6;public static final int INT32_VALUE
INT32 = 7;public static final int INT64_VALUE
INT64 = 8;public static final int UINT8_VALUE
UINT8 = 9;public static final int UINT16_VALUE
UINT16 = 10;public static final int UINT32_VALUE
UINT32 = 11;public static final int UINT64_VALUE
UINT64 = 12;public static Tensor.DataType[] values()
for (Tensor.DataType c : Tensor.DataType.values()) System.out.println(c);
public static Tensor.DataType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Tensor.DataType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Tensor.DataType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Tensor.DataType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Tensor.DataType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.