Enum AvroSerializationOptions.PicosTimestampPrecision
java.lang.Object
java.lang.Enum<AvroSerializationOptions.PicosTimestampPrecision>
com.google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AvroSerializationOptions.PicosTimestampPrecision>
- Enclosing class:
- AvroSerializationOptions
public static enum AvroSerializationOptions.PicosTimestampPrecision
extends Enum<AvroSerializationOptions.PicosTimestampPrecision>
implements com.google.protobuf.ProtocolMessageEnum
The precision of the timestamp value in the Avro message. This precision will **only** be applied to the column(s) with the `TIMESTAMP_PICOS` type.Protobuf enum
google.cloud.bigquery.storage.v1.AvroSerializationOptions.PicosTimestampPrecision-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUnspecified timestamp precision.Timestamp values returned by Read API will be truncated to microsecond level precision.Timestamp values returned by Read API will be truncated to nanosecond level precision.Read API will return full precision picosecond value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUnspecified timestamp precision.static final intTimestamp values returned by Read API will be truncated to microsecond level precision.static final intTimestamp values returned by Read API will be truncated to nanosecond level precision.static final intRead API will return full precision picosecond value. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AvroSerializationOptions.PicosTimestampPrecision>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PICOS_TIMESTAMP_PRECISION_UNSPECIFIED
public static final AvroSerializationOptions.PicosTimestampPrecision PICOS_TIMESTAMP_PRECISION_UNSPECIFIEDUnspecified timestamp precision. The default precision is microseconds.
PICOS_TIMESTAMP_PRECISION_UNSPECIFIED = 0; -
TIMESTAMP_PRECISION_MICROS
Timestamp values returned by Read API will be truncated to microsecond level precision. The value will be encoded as Avro TIMESTAMP type in a 64 bit integer.
TIMESTAMP_PRECISION_MICROS = 1; -
TIMESTAMP_PRECISION_NANOS
Timestamp values returned by Read API will be truncated to nanosecond level precision. The value will be encoded as Avro TIMESTAMP type in a 64 bit integer.
TIMESTAMP_PRECISION_NANOS = 2; -
TIMESTAMP_PRECISION_PICOS
Read API will return full precision picosecond value. The value will be encoded as a string which conforms to ISO 8601 format.
TIMESTAMP_PRECISION_PICOS = 3; -
UNRECOGNIZED
-
-
Field Details
-
PICOS_TIMESTAMP_PRECISION_UNSPECIFIED_VALUE
public static final int PICOS_TIMESTAMP_PRECISION_UNSPECIFIED_VALUEUnspecified timestamp precision. The default precision is microseconds.
PICOS_TIMESTAMP_PRECISION_UNSPECIFIED = 0;- See Also:
-
TIMESTAMP_PRECISION_MICROS_VALUE
public static final int TIMESTAMP_PRECISION_MICROS_VALUETimestamp values returned by Read API will be truncated to microsecond level precision. The value will be encoded as Avro TIMESTAMP type in a 64 bit integer.
TIMESTAMP_PRECISION_MICROS = 1;- See Also:
-
TIMESTAMP_PRECISION_NANOS_VALUE
public static final int TIMESTAMP_PRECISION_NANOS_VALUETimestamp values returned by Read API will be truncated to nanosecond level precision. The value will be encoded as Avro TIMESTAMP type in a 64 bit integer.
TIMESTAMP_PRECISION_NANOS = 2;- See Also:
-
TIMESTAMP_PRECISION_PICOS_VALUE
public static final int TIMESTAMP_PRECISION_PICOS_VALUERead API will return full precision picosecond value. The value will be encoded as a string which conforms to ISO 8601 format.
TIMESTAMP_PRECISION_PICOS = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<AvroSerializationOptions.PicosTimestampPrecision> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AvroSerializationOptions.PicosTimestampPrecision 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
-