Class TableSpec.Builder (2.20.0)

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

Implements

TableSpecOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.automl.v1beta1.InputConfig>
Returns
TypeDescription
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
NameDescription
valueInputConfig
Returns
TypeDescription
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
NameDescription
builderForValueInputConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueInputConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInputConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
InputConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public TableSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableSpec.Builder
Overrides

build()

public TableSpec build()
Returns
TypeDescription
TableSpec

buildPartial()

public TableSpec buildPartial()
Returns
TypeDescription
TableSpec

clear()

public TableSpec.Builder clear()
Returns
TypeDescription
TableSpec.Builder
Overrides

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
TypeDescription
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
TypeDescription
TableSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TableSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TableSpec.Builder
Overrides

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
TypeDescription
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
TypeDescription
TableSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public TableSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TableSpec.Builder
Overrides

clearRowCount()

public TableSpec.Builder clearRowCount()

Output only. The number of rows (i.e. examples) in the table.

int64 row_count = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
TableSpec.Builder

This builder for chaining.

clone()

public TableSpec.Builder clone()
Returns
TypeDescription
TableSpec.Builder
Overrides

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
TypeDescription
long

The columnCount.

getDefaultInstanceForType()

public TableSpec getDefaultInstanceForType()
Returns
TypeDescription
TableSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEtag()

public String getEtag()

Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 6;

Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The validRowCount.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TableSpec other)

public TableSpec.Builder mergeFrom(TableSpec other)
Parameter
NameDescription
otherTableSpec
Returns
TypeDescription
TableSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TableSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TableSpec.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public TableSpec.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TableSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TableSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableSpec.Builder
Overrides

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuelong

The columnCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The etag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
TableSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public TableSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TableSpec.Builder
Overrides

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
NameDescription
indexint
valueInputConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueInputConfig.Builder
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TableSpec.Builder
Overrides

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
NameDescription
valuelong

The rowCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The timeColumnSpecId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for timeColumnSpecId to set.

Returns
TypeDescription
TableSpec.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final TableSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
TableSpec.Builder
Overrides

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
NameDescription
valuelong

The validRowCount to set.

Returns
TypeDescription
TableSpec.Builder

This builder for chaining.