Package com.google.cloud.dataplex.v1
Enum Schema.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Schema.Type>
- Enclosing class:
- Schema
public static enum Schema.Type
extends Enum<Schema.Type>
implements com.google.protobuf.ProtocolMessageEnum
Type information for fields in schemas and partition schemas.Protobuf enum
google.cloud.dataplex.v1.Schema.Type-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSequence of bytes field.Boolean field.Single byte numeric field.Date field.Real value numeric field.Double precision numeric field.Floating point numeric field.16-bit numeric field.32-bit numeric field.64-bit numeric field.Null field that does not have values.Structured field.Sequence of characters field.Time field.Date and time field.SchemaType unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSequence of bytes field.static final intBoolean field.static final intSingle byte numeric field.static final intDate field.static final intReal value numeric field.static final intDouble precision numeric field.static final intFloating point numeric field.static final int16-bit numeric field.static final int32-bit numeric field.static final int64-bit numeric field.static final intNull field that does not have values.static final intStructured field.static final intSequence of characters field.static final intTime field.static final intDate and time field.static final intSchemaType unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic Schema.TypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Schema.Type>static Schema.TypevalueOf(int value) Deprecated.static Schema.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Schema.TypeReturns the enum constant of this type with the specified name.static Schema.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
TYPE_UNSPECIFIED
SchemaType unspecified.
TYPE_UNSPECIFIED = 0; -
BOOLEAN
Boolean field.
BOOLEAN = 1; -
BYTE
Single byte numeric field.
BYTE = 2; -
INT16
16-bit numeric field.
INT16 = 3; -
INT32
32-bit numeric field.
INT32 = 4; -
INT64
64-bit numeric field.
INT64 = 5; -
FLOAT
Floating point numeric field.
FLOAT = 6; -
DOUBLE
Double precision numeric field.
DOUBLE = 7; -
DECIMAL
Real value numeric field.
DECIMAL = 8; -
STRING
Sequence of characters field.
STRING = 9; -
BINARY
Sequence of bytes field.
BINARY = 10; -
TIMESTAMP
Date and time field.
TIMESTAMP = 11; -
DATE
Date field.
DATE = 12; -
TIME
Time field.
TIME = 13; -
RECORD
Structured field. Nested fields that define the structure of the map. If all nested fields are nullable, this field represents a union.
RECORD = 14; -
NULL
Null field that does not have values.
NULL = 100; -
UNRECOGNIZED
-
-
Field Details
-
TYPE_UNSPECIFIED_VALUE
public static final int TYPE_UNSPECIFIED_VALUESchemaType unspecified.
TYPE_UNSPECIFIED = 0;- See Also:
-
BOOLEAN_VALUE
public static final int BOOLEAN_VALUEBoolean field.
BOOLEAN = 1;- See Also:
-
BYTE_VALUE
public static final int BYTE_VALUESingle byte numeric field.
BYTE = 2;- See Also:
-
INT16_VALUE
public static final int INT16_VALUE16-bit numeric field.
INT16 = 3;- See Also:
-
INT32_VALUE
public static final int INT32_VALUE32-bit numeric field.
INT32 = 4;- See Also:
-
INT64_VALUE
public static final int INT64_VALUE64-bit numeric field.
INT64 = 5;- See Also:
-
FLOAT_VALUE
public static final int FLOAT_VALUEFloating point numeric field.
FLOAT = 6;- See Also:
-
DOUBLE_VALUE
public static final int DOUBLE_VALUEDouble precision numeric field.
DOUBLE = 7;- See Also:
-
DECIMAL_VALUE
public static final int DECIMAL_VALUEReal value numeric field.
DECIMAL = 8;- See Also:
-
STRING_VALUE
public static final int STRING_VALUESequence of characters field.
STRING = 9;- See Also:
-
BINARY_VALUE
public static final int BINARY_VALUESequence of bytes field.
BINARY = 10;- See Also:
-
TIMESTAMP_VALUE
public static final int TIMESTAMP_VALUEDate and time field.
TIMESTAMP = 11;- See Also:
-
DATE_VALUE
public static final int DATE_VALUEDate field.
DATE = 12;- See Also:
-
TIME_VALUE
public static final int TIME_VALUETime field.
TIME = 13;- See Also:
-
RECORD_VALUE
public static final int RECORD_VALUEStructured field. Nested fields that define the structure of the map. If all nested fields are nullable, this field represents a union.
RECORD = 14;- See Also:
-
NULL_VALUE
public static final int NULL_VALUENull field that does not have values.
NULL = 100;- 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
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
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:
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
-