Enum WriteDisposition
- java.lang.Object
-
- java.lang.Enum<WriteDisposition>
-
- com.google.cloud.bigquery.datatransfer.v1.WriteDisposition
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<WriteDisposition>
public enum WriteDisposition extends Enum<WriteDisposition> implements com.google.protobuf.ProtocolMessageEnum
Options for writing to the table. The WRITE_EMPTY option is intentionally excluded from the enum and is not supported by the data transfer service.
Protobuf enumgoogle.cloud.bigquery.datatransfer.v1.WriteDisposition
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UNRECOGNIZED
WRITE_APPEND
the data is appended to the table.WRITE_DISPOSITION_UNSPECIFIED
The default writeDispostionWRITE_TRUNCATE
overwrites the table data.
-
Field Summary
Fields Modifier and Type Field Description static int
WRITE_APPEND_VALUE
the data is appended to the table.static int
WRITE_DISPOSITION_UNSPECIFIED_VALUE
The default writeDispostionstatic int
WRITE_TRUNCATE_VALUE
overwrites the table data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static WriteDisposition
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<WriteDisposition>
internalGetValueMap()
static WriteDisposition
valueOf(int value)
Deprecated.static WriteDisposition
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static WriteDisposition
valueOf(String name)
Returns the enum constant of this type with the specified name.static WriteDisposition[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WRITE_DISPOSITION_UNSPECIFIED
public static final WriteDisposition WRITE_DISPOSITION_UNSPECIFIED
The default writeDispostion
WRITE_DISPOSITION_UNSPECIFIED = 0;
-
WRITE_TRUNCATE
public static final WriteDisposition WRITE_TRUNCATE
overwrites the table data.
WRITE_TRUNCATE = 1;
-
WRITE_APPEND
public static final WriteDisposition WRITE_APPEND
the data is appended to the table. Note duplication might happen if this mode is used.
WRITE_APPEND = 2;
-
UNRECOGNIZED
public static final WriteDisposition UNRECOGNIZED
-
-
Field Detail
-
WRITE_DISPOSITION_UNSPECIFIED_VALUE
public static final int WRITE_DISPOSITION_UNSPECIFIED_VALUE
The default writeDispostion
WRITE_DISPOSITION_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
WRITE_TRUNCATE_VALUE
public static final int WRITE_TRUNCATE_VALUE
overwrites the table data.
WRITE_TRUNCATE = 1;
- See Also:
- Constant Field Values
-
WRITE_APPEND_VALUE
public static final int WRITE_APPEND_VALUE
the data is appended to the table. Note duplication might happen if this mode is used.
WRITE_APPEND = 2;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static WriteDisposition[] 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 (WriteDisposition c : WriteDisposition.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WriteDisposition 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
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static WriteDisposition valueOf(int value)
Deprecated.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:
value
- 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
-
forNumber
public static WriteDisposition forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<WriteDisposition> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static WriteDisposition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc
- 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
-
-