Class DataType

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class DataType extends com.google.protobuf.GeneratedMessage 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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Indicated the type of data that can be stored in a structured data entity (e.g. a table).
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static DataType
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
     
    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.
    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
    If true, this DataType can also be `NULL`.
    com.google.protobuf.Parser<DataType>
     
    int
     
    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.
    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.
    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
    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.
    Required.
    int
    Required.
    int
     
    boolean
    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
    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
    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.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(DataType prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static DataType
     
    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
     
    static DataType
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static DataType
     
    static DataType
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<DataType>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    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
  • Field Details

    • LIST_ELEMENT_TYPE_FIELD_NUMBER

      public static final int LIST_ELEMENT_TYPE_FIELD_NUMBER
      See Also:
    • STRUCT_TYPE_FIELD_NUMBER

      public static final int STRUCT_TYPE_FIELD_NUMBER
      See Also:
    • TIME_FORMAT_FIELD_NUMBER

      public static final int TIME_FORMAT_FIELD_NUMBER
      See Also:
    • TYPE_CODE_FIELD_NUMBER

      public static final int TYPE_CODE_FIELD_NUMBER
      See Also:
    • NULLABLE_FIELD_NUMBER

      public static final int NULLABLE_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getDetailsCase

      public DataType.DetailsCase getDetailsCase()
      Specified by:
      getDetailsCase in interface DataTypeOrBuilder
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DataType.Builder newBuilder()
    • newBuilder

      public static DataType.Builder newBuilder(DataType prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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