Package com.google.cloud.automl.v1beta1
Class TableSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TableSpec.Builder>
com.google.cloud.automl.v1beta1.TableSpec.Builder
- All Implemented Interfaces:
TableSpecOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TableSpec
public static final class TableSpec.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TableSpec.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputConfigs(Iterable<? extends InputConfig> values) Output only.addInputConfigs(int index, InputConfig value) Output only.addInputConfigs(int index, InputConfig.Builder builderForValue) Output only.addInputConfigs(InputConfig value) Output only.addInputConfigs(InputConfig.Builder builderForValue) Output only.Output only.addInputConfigsBuilder(int index) Output only.build()clear()Output only.Used to perform consistent read-modify-write updates.Output only.Output only.Output only.column_spec_id of the time column.Output only.longOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.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.getInputConfigsBuilder(int index) Output only.Output only.intOutput only.Output only.getInputConfigsOrBuilder(int index) Output only.List<? extends InputConfigOrBuilder>Output only.getName()Output only.com.google.protobuf.ByteStringOutput only.longOutput only.column_spec_id of the time column.com.google.protobuf.ByteStringcolumn_spec_id of the time column.longOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeInputConfigs(int index) Output only.setColumnCount(long value) Output only.Used to perform consistent read-modify-write updates.setEtagBytes(com.google.protobuf.ByteString value) Used to perform consistent read-modify-write updates.setInputConfigs(int index, InputConfig value) Output only.setInputConfigs(int index, InputConfig.Builder builderForValue) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setRowCount(long value) Output only.setTimeColumnSpecId(String value) column_spec_id of the time column.setTimeColumnSpecIdBytes(com.google.protobuf.ByteString value) column_spec_id of the time column.setValidRowCount(long value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<TableSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TableSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TableSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TableSpec.Builder>
-
mergeFrom
public TableSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TableSpec.Builder>- Throws:
IOException
-
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.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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.
-
setTimeColumnSpecId
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;- Parameters:
value- The timeColumnSpecId to set.- Returns:
- This builder for chaining.
-
clearTimeColumnSpecId
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;- Returns:
- This builder for chaining.
-
setTimeColumnSpecIdBytes
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;- Parameters:
value- The bytes for timeColumnSpecId to set.- Returns:
- This builder for chaining.
-
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.
-
setRowCount
Output only. The number of rows (i.e. examples) in the table.
int64 row_count = 3;- Parameters:
value- The rowCount to set.- Returns:
- This builder for chaining.
-
clearRowCount
Output only. The number of rows (i.e. examples) in the table.
int64 row_count = 3;- Returns:
- This builder for chaining.
-
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.
-
setValidRowCount
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;- Parameters:
value- The validRowCount to set.- Returns:
- This builder for chaining.
-
clearValidRowCount
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;- Returns:
- This builder for chaining.
-
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.
-
setColumnCount
Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.
int64 column_count = 7;- Parameters:
value- The columnCount to set.- Returns:
- This builder for chaining.
-
clearColumnCount
Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.
int64 column_count = 7;- Returns:
- This builder for chaining.
-
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
-
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
-
setInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
setInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
addInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
addInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
addInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
addInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
addAllInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
clearInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
removeInputConfigs
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
getInputConfigsBuilder
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
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
-
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
-
addInputConfigsBuilder
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
addInputConfigsBuilder
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
getInputConfigsBuilderList
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5; -
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.
-
setEtag
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;- Returns:
- This builder for chaining.
-
setEtagBytes
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-