Package com.google.cloud.bigquery
Enum FieldValue.Attribute
- java.lang.Object
-
- java.lang.Enum<FieldValue.Attribute>
-
- com.google.cloud.bigquery.FieldValue.Attribute
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldValue.Attribute>
- Enclosing class:
- FieldValue
public static enum FieldValue.Attribute extends Enum<FieldValue.Attribute>
The field value's attribute, giving information on the field's content type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PRIMITIVE
A primitive field value.RECORD
AFieldValue
for a field of typeLegacySQLTypeName.RECORD
.REPEATED
AFieldValue
for a field withField.Mode.REPEATED
mode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
PRIMITIVE
public static final FieldValue.Attribute PRIMITIVE
A primitive field value. AFieldValue
is primitive when the corresponding field has typeLegacySQLTypeName.BYTES
,LegacySQLTypeName.BOOLEAN
,LegacySQLTypeName.STRING
,LegacySQLTypeName.FLOAT
,LegacySQLTypeName.INTEGER
,LegacySQLTypeName.NUMERIC
,LegacySQLTypeName.TIMESTAMP
,LegacySQLTypeName.GEOGRAPHY
or the value is set tonull
.
-
REPEATED
public static final FieldValue.Attribute REPEATED
AFieldValue
for a field withField.Mode.REPEATED
mode.
-
RECORD
public static final FieldValue.Attribute RECORD
AFieldValue
for a field of typeLegacySQLTypeName.RECORD
.
-
-
Method Detail
-
values
public static FieldValue.Attribute[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FieldValue.Attribute c : FieldValue.Attribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldValue.Attribute valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-