Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::TableSpec (v0.10.0)

Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::TableSpec.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#column_count

def column_count() -> ::Integer
Returns
  • (::Integer) — Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.

#column_count=

def column_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.
Returns
  • (::Integer) — Output only. The number of columns of the table. That is, the number of child ColumnSpec-s.

#etag

def etag() -> ::String
Returns
  • (::String) — Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

#etag=

def etag=(value) -> ::String
Parameter
  • value (::String) — Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
Returns
  • (::String) — Used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

#input_configs

def input_configs() -> ::Array<::Google::Cloud::AutoML::V1beta1::InputConfig>
Returns

#input_configs=

def input_configs=(value) -> ::Array<::Google::Cloud::AutoML::V1beta1::InputConfig>
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Output only. The resource name of the table spec. Form:

    projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Output only. The resource name of the table spec. Form:

    projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}

Returns
  • (::String) — Output only. The resource name of the table spec. Form:

    projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}

#row_count

def row_count() -> ::Integer
Returns
  • (::Integer) — Output only. The number of rows (i.e. examples) in the table.

#row_count=

def row_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Output only. The number of rows (i.e. examples) in the table.
Returns
  • (::Integer) — Output only. The number of rows (i.e. examples) in the table.

#time_column_spec_id

def time_column_spec_id() -> ::String
Returns
  • (::String) — 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.

#time_column_spec_id=

def time_column_spec_id=(value) -> ::String
Parameter
  • value (::String) — 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.
Returns
  • (::String) — 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.

#valid_row_count

def valid_row_count() -> ::Integer
Returns
  • (::Integer) — Output only. The number of valid rows (i.e. without values that don't match DataType-s of their columns).

#valid_row_count=

def valid_row_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Output only. The number of valid rows (i.e. without values that don't match DataType-s of their columns).
Returns
  • (::Integer) — Output only. The number of valid rows (i.e. without values that don't match DataType-s of their columns).