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 PRIMITIVEA primitive field value.RECORDAFieldValuefor a field of typeLegacySQLTypeName.RECORD.REPEATEDAFieldValuefor a field withField.Mode.REPEATEDmode.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FieldValue.AttributevalueOf(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. AFieldValueis primitive when the corresponding field has typeLegacySQLTypeName.BYTES,LegacySQLTypeName.BOOLEAN,LegacySQLTypeName.STRING,LegacySQLTypeName.FLOAT,LegacySQLTypeName.INTEGER,LegacySQLTypeName.NUMERIC,LegacySQLTypeName.TIMESTAMP,LegacySQLTypeName.GEOGRAPHYor the value is set tonull.
-
REPEATED
public static final FieldValue.Attribute REPEATED
AFieldValuefor a field withField.Mode.REPEATEDmode.
-
RECORD
public static final FieldValue.Attribute RECORD
AFieldValuefor 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
-
-