public static enum BigQueryIO.Write.SchemaUpdateOption extends java.lang.Enum<BigQueryIO.Write.SchemaUpdateOption>
Not supported for Method#STREAMING_INSERTS
.
Note from the BigQuery API doc -- Schema update options are supported in two cases: when writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and the destination table is a partition of a table, specified by partition decorators.
Enum Constant and Description |
---|
ALLOW_FIELD_ADDITION
Allow adding a nullable field to the schema.
|
ALLOW_FIELD_RELAXATION
Allow relaxing a required field in the original schema to nullable.
|
Modifier and Type | Method and Description |
---|---|
static BigQueryIO.Write.SchemaUpdateOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BigQueryIO.Write.SchemaUpdateOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BigQueryIO.Write.SchemaUpdateOption ALLOW_FIELD_ADDITION
public static final BigQueryIO.Write.SchemaUpdateOption ALLOW_FIELD_RELAXATION
public static BigQueryIO.Write.SchemaUpdateOption[] values()
for (BigQueryIO.Write.SchemaUpdateOption c : BigQueryIO.Write.SchemaUpdateOption.values()) System.out.println(c);
public static BigQueryIO.Write.SchemaUpdateOption valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null