Enum Tensor.DataType

java.lang.Object
java.lang.Enum<Tensor.DataType>
com.google.cloud.aiplatform.v1.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 Details

    • DATA_TYPE_UNSPECIFIED

      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;
    • BOOL

      public static final Tensor.DataType BOOL
       Data types that all computation devices are expected to be
       capable to support.
       
      BOOL = 1;
    • STRING

      public static final Tensor.DataType STRING
      STRING = 2;
    • FLOAT

      public static final Tensor.DataType FLOAT
      FLOAT = 3;
    • DOUBLE

      public static final Tensor.DataType DOUBLE
      DOUBLE = 4;
    • INT8

      public static final Tensor.DataType INT8
      INT8 = 5;
    • INT16

      public static final Tensor.DataType INT16
      INT16 = 6;
    • INT32

      public static final Tensor.DataType INT32
      INT32 = 7;
    • INT64

      public static final Tensor.DataType INT64
      INT64 = 8;
    • UINT8

      public static final Tensor.DataType UINT8
      UINT8 = 9;
    • UINT16

      public static final Tensor.DataType UINT16
      UINT16 = 10;
    • UINT32

      public static final Tensor.DataType UINT32
      UINT32 = 11;
    • UINT64

      public static final Tensor.DataType UINT64
      UINT64 = 12;
    • UNRECOGNIZED

      public static final Tensor.DataType UNRECOGNIZED
  • Field Details

    • DATA_TYPE_UNSPECIFIED_VALUE

      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;
      See Also:
    • BOOL_VALUE

      public static final int BOOL_VALUE
       Data types that all computation devices are expected to be
       capable to support.
       
      BOOL = 1;
      See Also:
    • STRING_VALUE

      public static final int STRING_VALUE
      STRING = 2;
      See Also:
    • FLOAT_VALUE

      public static final int FLOAT_VALUE
      FLOAT = 3;
      See Also:
    • DOUBLE_VALUE

      public static final int DOUBLE_VALUE
      DOUBLE = 4;
      See Also:
    • INT8_VALUE

      public static final int INT8_VALUE
      INT8 = 5;
      See Also:
    • INT16_VALUE

      public static final int INT16_VALUE
      INT16 = 6;
      See Also:
    • INT32_VALUE

      public static final int INT32_VALUE
      INT32 = 7;
      See Also:
    • INT64_VALUE

      public static final int INT64_VALUE
      INT64 = 8;
      See Also:
    • UINT8_VALUE

      public static final int UINT8_VALUE
      UINT8 = 9;
      See Also:
    • UINT16_VALUE

      public static final int UINT16_VALUE
      UINT16 = 10;
      See Also:
    • UINT32_VALUE

      public static final int UINT32_VALUE
      UINT32 = 11;
      See Also:
    • UINT64_VALUE

      public static final int UINT64_VALUE
      UINT64 = 12;
      See Also:
  • Method Details

    • values

      public static Tensor.DataType[] 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

      public static Tensor.DataType 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static Tensor.DataType 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static Tensor.DataType 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<Tensor.DataType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static Tensor.DataType 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 name
      NullPointerException - if the argument is null