Package com.google.cloud.automl.v1beta1
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: * TablesProtobuf type
google.cloud.automl.v1beta1.TableSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongOutput only.static TableSpecstatic final com.google.protobuf.Descriptors.DescriptorgetEtag()Used to perform consistent read-modify-write updates.com.google.protobuf.ByteStringUsed to perform consistent read-modify-write updates.getInputConfigs(int index) Output only.intOutput only.Output only.getInputConfigsOrBuilder(int index) Output only.List<? extends InputConfigOrBuilder>Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.com.google.protobuf.Parser<TableSpec>longOutput only.intcolumn_spec_id of the time column.com.google.protobuf.ByteStringcolumn_spec_id of the time column.longOutput only.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic TableSpec.Builderstatic TableSpec.BuildernewBuilder(TableSpec prototype) protected TableSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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
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
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
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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static TableSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TableSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TableSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TableSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-