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

  1. Object
  2. Enum<JsonFormat.Shape>
  3. JsonFormat.Shape

ImplementsComparable<JsonFormat.Shape>

A JSON shape for a scalar value.

Enum constants

DEFAULTThe type’s own form: a number, or a date as epoch milliseconds.
STRINGA string: a number’s digits, or a date in ISO-8601.
NUMBERA 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

DEFAULT
The type’s own form: a number, or a date as epoch milliseconds.

STRING

STRING
A string: a number’s digits, or a date in ISO-8601.

NUMBER

NUMBER
A number: a date as epoch milliseconds.

Method details

values

public static JsonFormat.Shape[] values()

valueOf

public static JsonFormat.Shape valueOf(String name)