Class 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 type google.cloud.automl.v1beta1.DataType
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  DataType.Builder
      Indicated the type of data that can be stored in a structured data entity (e.g.
      static class  DataType.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
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      static DataType getDefaultInstance()  
      DataType getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      DataType.DetailsCase getDetailsCase()  
      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.
      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.
      boolean getNullable()
      If true, this DataType can also be `NULL`.
      com.google.protobuf.Parser<DataType> getParserForType()  
      int getSerializedSize()  
      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.
      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.
      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.
      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.
      TypeCode getTypeCode()
      Required.
      int getTypeCodeValue()
      Required.
      int hashCode()  
      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.
      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.
      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.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static DataType.Builder newBuilder()  
      static DataType.Builder newBuilder​(DataType prototype)  
      DataType.Builder newBuilderForType()  
      protected DataType.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)  
      protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)  
      static DataType parseDelimitedFrom​(InputStream input)  
      static DataType parseDelimitedFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DataType parseFrom​(byte[] data)  
      static DataType parseFrom​(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DataType parseFrom​(com.google.protobuf.ByteString data)  
      static DataType parseFrom​(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DataType parseFrom​(com.google.protobuf.CodedInputStream input)  
      static DataType parseFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DataType parseFrom​(InputStream input)  
      static DataType parseFrom​(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static DataType parseFrom​(ByteBuffer data)  
      static DataType parseFrom​(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<DataType> parser()  
      DataType.Builder toBuilder()  
      void writeTo​(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 interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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:
        hasListElementType in interface DataTypeOrBuilder
        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:
        getListElementType in interface DataTypeOrBuilder
        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:
        getListElementTypeOrBuilder in interface DataTypeOrBuilder
      • 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:
        hasStructType in interface DataTypeOrBuilder
        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:
        getStructType in interface DataTypeOrBuilder
        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:
        getStructTypeOrBuilder in interface DataTypeOrBuilder
      • 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:
        hasTimeFormat in interface DataTypeOrBuilder
        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:
        getTimeFormat in interface DataTypeOrBuilder
        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:
        getTimeFormatBytes in interface DataTypeOrBuilder
        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:
        getTypeCodeValue in interface DataTypeOrBuilder
        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:
        getTypeCode in interface DataTypeOrBuilder
        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:
        getNullable in interface DataTypeOrBuilder
        Returns:
        The nullable.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public DataType.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public DataType.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected DataType.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public DataType getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder