public static enum FieldValue.Attribute extends Enum<FieldValue.Attribute>
Enum Constant and Description |
---|
PRIMITIVE
A primitive field value.
|
RECORD
A
FieldValue for a field of type Field.Type.record(Field...) . |
REPEATED
A
FieldValue for a field with Field.Mode.REPEATED mode. |
Modifier and Type | Method and Description |
---|---|
static FieldValue.Attribute |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldValue.Attribute[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldValue.Attribute PRIMITIVE
FieldValue
is primitive when the corresponding field has
type Field.Type.bytes()
, Field.Type.bool()
, Field.Type.string()
,
Field.Type.floatingPoint()
, Field.Type.integer()
,
Field.Type.timestamp()
or the value is set to null
.public static final FieldValue.Attribute REPEATED
FieldValue
for a field with Field.Mode.REPEATED
mode.public static final FieldValue.Attribute RECORD
FieldValue
for a field of type Field.Type.record(Field...)
.public static FieldValue.Attribute[] values()
for (FieldValue.Attribute c : FieldValue.Attribute.values()) System.out.println(c);
public static FieldValue.Attribute valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016 Google. All rights reserved.