Enum ValueType

java.lang.Object
java.lang.Enum<ValueType>
com.google.cloud.datastore.ValueType
All Implemented Interfaces:
Serializable, Comparable<ValueType>

public enum ValueType extends Enum<ValueType>
The type of a Datastore property.
See Also:
  • Enum Constant Details

    • NULL

      public static final ValueType NULL
      Represents a null value.
    • STRING

      public static final ValueType STRING
      Represents a string value.
    • ENTITY

      public static final ValueType ENTITY
      Represents an entity value.
    • LIST

      public static final ValueType LIST
      Represents a list of Values.
    • KEY

      public static final ValueType KEY
      Represents a key as a value.
    • LONG

      public static final ValueType LONG
      Represents a long value.
    • DOUBLE

      public static final ValueType DOUBLE
      Represents a double value.
    • BOOLEAN

      public static final ValueType BOOLEAN
      Represents a boolean value.
    • TIMESTAMP

      public static final ValueType TIMESTAMP
      Represents a Timestamp value.
    • BLOB

      public static final ValueType BLOB
      Represents a Blob value.
    • RAW_VALUE

      public static final ValueType RAW_VALUE
      Represents a raw/unparsed value.
    • LAT_LNG

      public static final ValueType LAT_LNG
      Represents a LatLng value.
  • Method Details

    • values

      public static ValueType[] 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 ValueType 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