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 class
TableSpec.Builder
A 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 int
COLUMN_COUNT_FIELD_NUMBER
static int
ETAG_FIELD_NUMBER
static int
INPUT_CONFIGS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
ROW_COUNT_FIELD_NUMBER
static int
TIME_COLUMN_SPEC_ID_FIELD_NUMBER
static int
VALID_ROW_COUNT_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
long
getColumnCount()
Output only.static TableSpec
getDefaultInstance()
TableSpec
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getEtag()
Used to perform consistent read-modify-write updates.com.google.protobuf.ByteString
getEtagBytes()
Used to perform consistent read-modify-write updates.InputConfig
getInputConfigs(int index)
Output only.int
getInputConfigsCount()
Output only.List<InputConfig>
getInputConfigsList()
Output only.InputConfigOrBuilder
getInputConfigsOrBuilder(int index)
Output only.List<? extends InputConfigOrBuilder>
getInputConfigsOrBuilderList()
Output only.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Parser<TableSpec>
getParserForType()
long
getRowCount()
Output only.int
getSerializedSize()
String
getTimeColumnSpecId()
column_spec_id of the time column.com.google.protobuf.ByteString
getTimeColumnSpecIdBytes()
column_spec_id of the time column.long
getValidRowCount()
Output only.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static TableSpec.Builder
newBuilder()
static TableSpec.Builder
newBuilder(TableSpec prototype)
TableSpec.Builder
newBuilderForType()
protected TableSpec.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static TableSpec
parseDelimitedFrom(InputStream input)
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
parseFrom(InputStream input)
static TableSpec
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static TableSpec
parseFrom(ByteBuffer data)
static TableSpec
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<TableSpec>
parser()
TableSpec.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 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:
newInstance
in classcom.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 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:
getName
in 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:
getNameBytes
in 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:
getTimeColumnSpecId
in 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:
getTimeColumnSpecIdBytes
in 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:
getRowCount
in 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:
getValidRowCount
in 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:
getColumnCount
in 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:
getInputConfigsList
in 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:
getInputConfigsOrBuilderList
in 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:
getInputConfigsCount
in 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:
getInputConfigs
in 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:
getInputConfigsOrBuilder
in 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:
getEtag
in 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:
getEtagBytes
in interfaceTableSpecOrBuilder
- Returns:
- The bytes for etag.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TableSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public TableSpec getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-