Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public enum JsonFormat.Shape
- Object
- Enum<JsonFormat.Shape>
- JsonFormat.Shape
ImplementsComparable<JsonFormat.Shape>
A JSON shape for a scalar value.
Enum constants
DEFAULT | The type’s own form: a number, or a date as epoch milliseconds. |
STRING | A string: a number’s digits, or a date in ISO-8601. |
NUMBER | A number: a date as epoch milliseconds. |
Methods
public static JsonFormat.Shape[] values() | |
public static JsonFormat.Shape valueOf(String name) |
Inherited methods
Enum constant details
DEFAULT
DEFAULTThe type’s own form: a number, or a date as epoch milliseconds.
STRING
STRINGA string: a number’s digits, or a date in ISO-8601.
NUMBER
NUMBERA number: a date as epoch milliseconds.
Method details
values
public static JsonFormat.Shape[] values()valueOf
public static JsonFormat.Shape valueOf(String name)