Package com.google.cloud.automl.v1beta1
Class DataType
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.automl.v1beta1.DataType
-
- All Implemented Interfaces:
DataTypeOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class DataType extends com.google.protobuf.GeneratedMessageV3 implements DataTypeOrBuilder
Indicated the type of data that can be stored in a structured data entity (e.g. a table).
Protobuf typegoogle.cloud.automl.v1beta1.DataType- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDataType.BuilderIndicated the type of data that can be stored in a structured data entity (e.g.static classDataType.DetailsCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intLIST_ELEMENT_TYPE_FIELD_NUMBERstatic intNULLABLE_FIELD_NUMBERstatic intSTRUCT_TYPE_FIELD_NUMBERstatic intTIME_FORMAT_FIELD_NUMBERstatic intTYPE_CODE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static DataTypegetDefaultInstance()DataTypegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()DataType.DetailsCasegetDetailsCase()DataTypegetListElementType()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.DataTypeOrBuildergetListElementTypeOrBuilder()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.booleangetNullable()If true, this DataType can also be `NULL`.com.google.protobuf.Parser<DataType>getParserForType()intgetSerializedSize()StructTypegetStructType()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.StructTypeOrBuildergetStructTypeOrBuilder()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.StringgetTimeFormat()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed.com.google.protobuf.ByteStringgetTimeFormatBytes()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed.TypeCodegetTypeCode()Required.intgetTypeCodeValue()Required.inthashCode()booleanhasListElementType()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.booleanhasStructType()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.booleanhasTimeFormat()If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DataType.BuildernewBuilder()static DataType.BuildernewBuilder(DataType prototype)DataType.BuildernewBuilderForType()protected DataType.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DataTypeparseDelimitedFrom(InputStream input)static DataTypeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataTypeparseFrom(byte[] data)static DataTypeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataTypeparseFrom(com.google.protobuf.ByteString data)static DataTypeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataTypeparseFrom(com.google.protobuf.CodedInputStream input)static DataTypeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataTypeparseFrom(InputStream input)static DataTypeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DataTypeparseFrom(ByteBuffer data)static DataTypeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DataType>parser()DataType.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LIST_ELEMENT_TYPE_FIELD_NUMBER
public static final int LIST_ELEMENT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRUCT_TYPE_FIELD_NUMBER
public static final int STRUCT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_FORMAT_FIELD_NUMBER
public static final int TIME_FORMAT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_CODE_FIELD_NUMBER
public static final int TYPE_CODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NULLABLE_FIELD_NUMBER
public static final int NULLABLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getDetailsCase
public DataType.DetailsCase getDetailsCase()
- Specified by:
getDetailsCasein interfaceDataTypeOrBuilder
-
hasListElementType
public boolean hasListElementType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
.google.cloud.automl.v1beta1.DataType list_element_type = 2;- Specified by:
hasListElementTypein interfaceDataTypeOrBuilder- Returns:
- Whether the listElementType field is set.
-
getListElementType
public DataType getListElementType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
.google.cloud.automl.v1beta1.DataType list_element_type = 2;- Specified by:
getListElementTypein interfaceDataTypeOrBuilder- Returns:
- The listElementType.
-
getListElementTypeOrBuilder
public DataTypeOrBuilder getListElementTypeOrBuilder()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [ARRAY][google.cloud.automl.v1beta1.TypeCode.ARRAY], then `list_element_type` is the type of the elements.
.google.cloud.automl.v1beta1.DataType list_element_type = 2;- Specified by:
getListElementTypeOrBuilderin interfaceDataTypeOrBuilder
-
hasStructType
public boolean hasStructType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.cloud.automl.v1beta1.StructType struct_type = 3;- Specified by:
hasStructTypein interfaceDataTypeOrBuilder- Returns:
- Whether the structType field is set.
-
getStructType
public StructType getStructType()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.cloud.automl.v1beta1.StructType struct_type = 3;- Specified by:
getStructTypein interfaceDataTypeOrBuilder- Returns:
- The structType.
-
getStructTypeOrBuilder
public StructTypeOrBuilder getStructTypeOrBuilder()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT], then `struct_type` provides type information for the struct's fields.
.google.cloud.automl.v1beta1.StructType struct_type = 3;- Specified by:
getStructTypeOrBuilderin interfaceDataTypeOrBuilder
-
hasTimeFormat
public boolean hasTimeFormat()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
string time_format = 5;- Specified by:
hasTimeFormatin interfaceDataTypeOrBuilder- Returns:
- Whether the timeFormat field is set.
-
getTimeFormat
public String getTimeFormat()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
string time_format = 5;- Specified by:
getTimeFormatin interfaceDataTypeOrBuilder- Returns:
- The timeFormat.
-
getTimeFormatBytes
public com.google.protobuf.ByteString getTimeFormatBytes()
If [type_code][google.cloud.automl.v1beta1.DataType.type_code] == [TIMESTAMP][google.cloud.automl.v1beta1.TypeCode.TIMESTAMP] then `time_format` provides the format in which that time field is expressed. The time_format must either be one of: * `UNIX_SECONDS` * `UNIX_MILLISECONDS` * `UNIX_MICROSECONDS` * `UNIX_NANOSECONDS` (for respectively number of seconds, milliseconds, microseconds and nanoseconds since start of the Unix epoch); or be written in `strftime` syntax. If time_format is not set, then the default format as described on the type_code is used.
string time_format = 5;- Specified by:
getTimeFormatBytesin interfaceDataTypeOrBuilder- Returns:
- The bytes for timeFormat.
-
getTypeCodeValue
public int getTypeCodeValue()
Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
.google.cloud.automl.v1beta1.TypeCode type_code = 1;- Specified by:
getTypeCodeValuein interfaceDataTypeOrBuilder- Returns:
- The enum numeric value on the wire for typeCode.
-
getTypeCode
public TypeCode getTypeCode()
Required. The [TypeCode][google.cloud.automl.v1beta1.TypeCode] for this type.
.google.cloud.automl.v1beta1.TypeCode type_code = 1;- Specified by:
getTypeCodein interfaceDataTypeOrBuilder- Returns:
- The typeCode.
-
getNullable
public boolean getNullable()
If true, this DataType can also be `NULL`. In .CSV files `NULL` value is expressed as an empty string.
bool nullable = 4;- Specified by:
getNullablein interfaceDataTypeOrBuilder- Returns:
- The nullable.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DataType parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataType parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataType parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataType parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataType parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DataType parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DataType parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DataType parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static DataType parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static DataType parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static DataType parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public DataType.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DataType.Builder newBuilder()
-
newBuilder
public static DataType.Builder newBuilder(DataType prototype)
-
toBuilder
public DataType.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DataType.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DataType getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DataType> parser()
-
getParserForType
public com.google.protobuf.Parser<DataType> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DataType getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-