public enum StateField extends java.lang.Enum<StateField> implements StorageField
StorageField
Enum Constant and Description |
---|
bytes
The field to store the serialized bytes of the entity state.
|
type_url
The field to store
TypeUrl of an entity state. |
Modifier and Type | Method and Description |
---|---|
static StateField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StateField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final StateField type_url
TypeUrl
of an entity state.
This type information is used to deserialize binary data stored in the
StateField.bytes
field.
TypeUrl
public static final StateField bytes
This is the way to store objects of custom types within a strongly-typed storage (e.g. relational database) and make the read/write operations easy requiring no reflection.
MessageLite.toByteArray()
,
Any.getValue()
public static StateField[] values()
for (StateField c : StateField.values()) System.out.println(c);
public static StateField valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null