Class TableSpec

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1beta1.TableSpec
All Implemented Interfaces:
TableSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TableSpec extends com.google.protobuf.GeneratedMessage implements TableSpecOrBuilder
 A specification of a relational table.
 The table's schema is represented via its child column specs. It is
 pre-populated as part of ImportData by schema inference algorithm, the
 version of which is a required parameter of ImportData InputConfig.
 Note: While working with a table, at times the schema may be
 inconsistent with the data in the table (e.g. string in a FLOAT64 column).
 The consistency validation is done upon creation of a model.
 Used by:
 *   Tables
 
Protobuf type google.cloud.automl.v1beta1.TableSpec
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A specification of a relational table.

    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
     
    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
     
    long
    Output only.
    static TableSpec
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Used to perform consistent read-modify-write updates.
    com.google.protobuf.ByteString
    Used to perform consistent read-modify-write updates.
    getInputConfigs(int index)
    Output only.
    int
    Output only.
    Output only.
    Output only.
    Output only.
    Output only.
    com.google.protobuf.ByteString
    Output only.
    com.google.protobuf.Parser<TableSpec>
     
    long
    Output only.
    int
     
    column_spec_id of the time column.
    com.google.protobuf.ByteString
    column_spec_id of the time column.
    long
    Output only.
    int
     
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(TableSpec prototype)
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static TableSpec
     
    static TableSpec
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TableSpec
    parseFrom(byte[] data)
     
    static TableSpec
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TableSpec
    parseFrom(com.google.protobuf.ByteString data)
     
    static TableSpec
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TableSpec
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static TableSpec
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TableSpec
     
    static TableSpec
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static TableSpec
     
    static TableSpec
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<TableSpec>
     
     
    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

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • TIME_COLUMN_SPEC_ID_FIELD_NUMBER

      public static final int TIME_COLUMN_SPEC_ID_FIELD_NUMBER
      See Also:
    • ROW_COUNT_FIELD_NUMBER

      public static final int ROW_COUNT_FIELD_NUMBER
      See Also:
    • VALID_ROW_COUNT_FIELD_NUMBER

      public static final int VALID_ROW_COUNT_FIELD_NUMBER
      See Also:
    • COLUMN_COUNT_FIELD_NUMBER

      public static final int COLUMN_COUNT_FIELD_NUMBER
      See Also:
    • INPUT_CONFIGS_FIELD_NUMBER

      public static final int INPUT_CONFIGS_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_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
    • getName

      public String getName()
       Output only. The resource name of the table spec.
       Form:
      
       `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
       
      string name = 1;
      Specified by:
      getName in interface TableSpecOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The resource name of the table spec.
       Form:
      
       `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}`
       
      string name = 1;
      Specified by:
      getNameBytes in interface TableSpecOrBuilder
      Returns:
      The bytes for name.
    • getTimeColumnSpecId

      public String getTimeColumnSpecId()
       column_spec_id of the time column. Only used if the parent dataset's
       ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
       and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
       those in between to VALIDATE.
       Required type: TIMESTAMP.
       If both this column and ml_use_column are not set, then ML use of all rows
       will be assigned by AutoML. NOTE: Updates of this field will instantly
       affect any other users concurrently working with the dataset.
       
      string time_column_spec_id = 2;
      Specified by:
      getTimeColumnSpecId in interface TableSpecOrBuilder
      Returns:
      The timeColumnSpecId.
    • getTimeColumnSpecIdBytes

      public com.google.protobuf.ByteString getTimeColumnSpecIdBytes()
       column_spec_id of the time column. Only used if the parent dataset's
       ml_use_column_spec_id is not set. Used to split rows into TRAIN, VALIDATE
       and TEST sets such that oldest rows go to TRAIN set, newest to TEST, and
       those in between to VALIDATE.
       Required type: TIMESTAMP.
       If both this column and ml_use_column are not set, then ML use of all rows
       will be assigned by AutoML. NOTE: Updates of this field will instantly
       affect any other users concurrently working with the dataset.
       
      string time_column_spec_id = 2;
      Specified by:
      getTimeColumnSpecIdBytes in interface TableSpecOrBuilder
      Returns:
      The bytes for timeColumnSpecId.
    • getRowCount

      public long getRowCount()
       Output only. The number of rows (i.e. examples) in the table.
       
      int64 row_count = 3;
      Specified by:
      getRowCount in interface TableSpecOrBuilder
      Returns:
      The rowCount.
    • getValidRowCount

      public long getValidRowCount()
       Output only. The number of valid rows (i.e. without values that don't match
       DataType-s of their columns).
       
      int64 valid_row_count = 4;
      Specified by:
      getValidRowCount in interface TableSpecOrBuilder
      Returns:
      The validRowCount.
    • getColumnCount

      public long getColumnCount()
       Output only. The number of columns of the table. That is, the number of
       child ColumnSpec-s.
       
      int64 column_count = 7;
      Specified by:
      getColumnCount in interface TableSpecOrBuilder
      Returns:
      The columnCount.
    • getInputConfigsList

      public List<InputConfig> getInputConfigsList()
       Output only. Input configs via which data currently residing in the table
       had been imported.
       
      repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      Specified by:
      getInputConfigsList in interface TableSpecOrBuilder
    • getInputConfigsOrBuilderList

      public List<? extends InputConfigOrBuilder> getInputConfigsOrBuilderList()
       Output only. Input configs via which data currently residing in the table
       had been imported.
       
      repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      Specified by:
      getInputConfigsOrBuilderList in interface TableSpecOrBuilder
    • getInputConfigsCount

      public int getInputConfigsCount()
       Output only. Input configs via which data currently residing in the table
       had been imported.
       
      repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      Specified by:
      getInputConfigsCount in interface TableSpecOrBuilder
    • getInputConfigs

      public InputConfig getInputConfigs(int index)
       Output only. Input configs via which data currently residing in the table
       had been imported.
       
      repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      Specified by:
      getInputConfigs in interface TableSpecOrBuilder
    • getInputConfigsOrBuilder

      public InputConfigOrBuilder getInputConfigsOrBuilder(int index)
       Output only. Input configs via which data currently residing in the table
       had been imported.
       
      repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
      Specified by:
      getInputConfigsOrBuilder in interface TableSpecOrBuilder
    • getEtag

      public String getEtag()
       Used to perform consistent read-modify-write updates. If not set, a blind
       "overwrite" update happens.
       
      string etag = 6;
      Specified by:
      getEtag in interface TableSpecOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Used to perform consistent read-modify-write updates. If not set, a blind
       "overwrite" update happens.
       
      string etag = 6;
      Specified by:
      getEtagBytes in interface TableSpecOrBuilder
      Returns:
      The bytes for etag.
    • 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 TableSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TableSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TableSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TableSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TableSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TableSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TableSpec parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TableSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TableSpec parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TableSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TableSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TableSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static TableSpec.Builder newBuilder()
    • newBuilder

      public static TableSpec.Builder newBuilder(TableSpec prototype)
    • toBuilder

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

      protected TableSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TableSpec getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TableSpec> parser()
    • getParserForType

      public com.google.protobuf.Parser<TableSpec> 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 TableSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder