Package com.google.cloud.automl.v1beta1
Class TableSpec
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class TableSpec extends com.google.protobuf.GeneratedMessageV3 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 typegoogle.cloud.automl.v1beta1.TableSpec- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTableSpec.BuilderA specification of a relational table.-
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 intCOLUMN_COUNT_FIELD_NUMBERstatic intETAG_FIELD_NUMBERstatic intINPUT_CONFIGS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intROW_COUNT_FIELD_NUMBERstatic intTIME_COLUMN_SPEC_ID_FIELD_NUMBERstatic intVALID_ROW_COUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)longgetColumnCount()Output only.static TableSpecgetDefaultInstance()TableSpecgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetEtag()Used to perform consistent read-modify-write updates.com.google.protobuf.ByteStringgetEtagBytes()Used to perform consistent read-modify-write updates.InputConfiggetInputConfigs(int index)Output only.intgetInputConfigsCount()Output only.List<InputConfig>getInputConfigsList()Output only.InputConfigOrBuildergetInputConfigsOrBuilder(int index)Output only.List<? extends InputConfigOrBuilder>getInputConfigsOrBuilderList()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<TableSpec>getParserForType()longgetRowCount()Output only.intgetSerializedSize()StringgetTimeColumnSpecId()column_spec_id of the time column.com.google.protobuf.ByteStringgetTimeColumnSpecIdBytes()column_spec_id of the time column.longgetValidRowCount()Output only.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TableSpec.BuildernewBuilder()static TableSpec.BuildernewBuilder(TableSpec prototype)TableSpec.BuildernewBuilderForType()protected TableSpec.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static TableSpecparseDelimitedFrom(InputStream input)static TableSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TableSpecparseFrom(byte[] data)static TableSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TableSpecparseFrom(com.google.protobuf.ByteString data)static TableSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TableSpecparseFrom(com.google.protobuf.CodedInputStream input)static TableSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TableSpecparseFrom(InputStream input)static TableSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TableSpecparseFrom(ByteBuffer data)static TableSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TableSpec>parser()TableSpec.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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_COLUMN_SPEC_ID_FIELD_NUMBER
public static final int TIME_COLUMN_SPEC_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROW_COUNT_FIELD_NUMBER
public static final int ROW_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VALID_ROW_COUNT_FIELD_NUMBER
public static final int VALID_ROW_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
COLUMN_COUNT_FIELD_NUMBER
public static final int COLUMN_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INPUT_CONFIGS_FIELD_NUMBER
public static final int INPUT_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ETAG_FIELD_NUMBER
public static final int ETAG_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
-
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:
getNamein interfaceTableSpecOrBuilder- 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:
getNameBytesin interfaceTableSpecOrBuilder- 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:
getTimeColumnSpecIdin interfaceTableSpecOrBuilder- 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:
getTimeColumnSpecIdBytesin interfaceTableSpecOrBuilder- 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:
getRowCountin interfaceTableSpecOrBuilder- 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:
getValidRowCountin interfaceTableSpecOrBuilder- 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:
getColumnCountin interfaceTableSpecOrBuilder- 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:
getInputConfigsListin interfaceTableSpecOrBuilder
-
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:
getInputConfigsOrBuilderListin interfaceTableSpecOrBuilder
-
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:
getInputConfigsCountin interfaceTableSpecOrBuilder
-
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:
getInputConfigsin interfaceTableSpecOrBuilder
-
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:
getInputConfigsOrBuilderin interfaceTableSpecOrBuilder
-
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:
getEtagin interfaceTableSpecOrBuilder- 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:
getEtagBytesin interfaceTableSpecOrBuilder- Returns:
- The bytes for etag.
-
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 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TableSpec.Builder newBuilder()
-
newBuilder
public static TableSpec.Builder newBuilder(TableSpec prototype)
-
toBuilder
public TableSpec.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TableSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static TableSpec getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TableSpec> parser()
-
getParserForType
public com.google.protobuf.Parser<TableSpec> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TableSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-