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 LegacySQLTypeName.RECORD . |
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 LegacySQLTypeName.BYTES
, LegacySQLTypeName.BOOLEAN
, LegacySQLTypeName.STRING
, LegacySQLTypeName.FLOAT
, LegacySQLTypeName.INTEGER
, LegacySQLTypeName.NUMERIC
, LegacySQLTypeName.TIMESTAMP
, LegacySQLTypeName.GEOGRAPHY
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 LegacySQLTypeName.RECORD
.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 © 2019 Google LLC. All rights reserved.