- 2.51.0 (latest)
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class TableSpec.Builder extends GeneratedMessageV3.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:
- Tables
Protobuf type google.cloud.automl.v1beta1.TableSpec
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > TableSpec.BuilderImplements
TableSpecOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllInputConfigs(Iterable<? extends InputConfig> values)
public TableSpec.Builder addAllInputConfigs(Iterable<? extends InputConfig> values)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.automl.v1beta1.InputConfig> |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
addInputConfigs(InputConfig value)
public TableSpec.Builder addInputConfigs(InputConfig value)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameter | |
---|---|
Name | Description |
value |
InputConfig |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
addInputConfigs(InputConfig.Builder builderForValue)
public TableSpec.Builder addInputConfigs(InputConfig.Builder builderForValue)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameter | |
---|---|
Name | Description |
builderForValue |
InputConfig.Builder |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
addInputConfigs(int index, InputConfig value)
public TableSpec.Builder addInputConfigs(int index, InputConfig value)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
InputConfig |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
addInputConfigs(int index, InputConfig.Builder builderForValue)
public TableSpec.Builder addInputConfigs(int index, InputConfig.Builder builderForValue)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
InputConfig.Builder |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
addInputConfigsBuilder()
public InputConfig.Builder 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;
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
addInputConfigsBuilder(int index)
public InputConfig.Builder addInputConfigsBuilder(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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TableSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
build()
public TableSpec build()
Returns | |
---|---|
Type | Description |
TableSpec |
buildPartial()
public TableSpec buildPartial()
Returns | |
---|---|
Type | Description |
TableSpec |
clear()
public TableSpec.Builder clear()
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
clearColumnCount()
public TableSpec.Builder clearColumnCount()
Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.
int64 column_count = 7;
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
clearEtag()
public TableSpec.Builder clearEtag()
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public TableSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
clearInputConfigs()
public TableSpec.Builder 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;
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
clearName()
public TableSpec.Builder 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 | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public TableSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
clearRowCount()
public TableSpec.Builder clearRowCount()
Output only. The number of rows (i.e. examples) in the table.
int64 row_count = 3;
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
clearTimeColumnSpecId()
public TableSpec.Builder 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 | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
clearValidRowCount()
public TableSpec.Builder 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 | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
clone()
public TableSpec.Builder clone()
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
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;
Returns | |
---|---|
Type | Description |
long |
The columnCount. |
getDefaultInstanceForType()
public TableSpec getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
TableSpec |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getEtag()
public String getEtag()
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;
Returns | |
---|---|
Type | Description |
String |
The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for etag. |
getInputConfigs(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
InputConfig |
getInputConfigsBuilder(int index)
public InputConfig.Builder getInputConfigsBuilder(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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
InputConfig.Builder |
getInputConfigsBuilderList()
public List<InputConfig.Builder> 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;
Returns | |
---|---|
Type | Description |
List<Builder> |
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;
Returns | |
---|---|
Type | Description |
int |
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;
Returns | |
---|---|
Type | Description |
List<InputConfig> |
getInputConfigsOrBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
InputConfigOrBuilder |
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;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.automl.v1beta1.InputConfigOrBuilder> |
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;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getRowCount()
public long getRowCount()
Output only. The number of rows (i.e. examples) in the table.
int64 row_count = 3;
Returns | |
---|---|
Type | Description |
long |
The rowCount. |
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;
Returns | |
---|---|
Type | Description |
String |
The timeColumnSpecId. |
getTimeColumnSpecIdBytes()
public 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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for timeColumnSpecId. |
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;
Returns | |
---|---|
Type | Description |
long |
The validRowCount. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(TableSpec other)
public TableSpec.Builder mergeFrom(TableSpec other)
Parameter | |
---|---|
Name | Description |
other |
TableSpec |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TableSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public TableSpec.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TableSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
removeInputConfigs(int index)
public TableSpec.Builder removeInputConfigs(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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
setColumnCount(long value)
public TableSpec.Builder setColumnCount(long value)
Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.
int64 column_count = 7;
Parameter | |
---|---|
Name | Description |
value |
long The columnCount to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setEtag(String value)
public TableSpec.Builder setEtag(String value)
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;
Parameter | |
---|---|
Name | Description |
value |
String The etag to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setEtagBytes(ByteString value)
public TableSpec.Builder setEtagBytes(ByteString value)
Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 6;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for etag to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public TableSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
setInputConfigs(int index, InputConfig value)
public TableSpec.Builder setInputConfigs(int index, InputConfig value)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
InputConfig |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
setInputConfigs(int index, InputConfig.Builder builderForValue)
public TableSpec.Builder setInputConfigs(int index, InputConfig.Builder builderForValue)
Output only. Input configs via which data currently residing in the table had been imported.
repeated .google.cloud.automl.v1beta1.InputConfig input_configs = 5;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
InputConfig.Builder |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
setName(String value)
public TableSpec.Builder setName(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public TableSpec.Builder setNameBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TableSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
setRowCount(long value)
public TableSpec.Builder setRowCount(long value)
Output only. The number of rows (i.e. examples) in the table.
int64 row_count = 3;
Parameter | |
---|---|
Name | Description |
value |
long The rowCount to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setTimeColumnSpecId(String value)
public TableSpec.Builder setTimeColumnSpecId(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The timeColumnSpecId to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setTimeColumnSpecIdBytes(ByteString value)
public TableSpec.Builder setTimeColumnSpecIdBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for timeColumnSpecId to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final TableSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
setValidRowCount(long value)
public TableSpec.Builder setValidRowCount(long value)
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;
Parameter | |
---|---|
Name | Description |
value |
long The validRowCount to set. |
Returns | |
---|---|
Type | Description |
TableSpec.Builder |
This builder for chaining. |