Cloud AutoML V1beta1 Client - Class ColumnSpec (1.5.4)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class ColumnSpec.

A representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were given on import .

Used by:

  • Tables

Generated from protobuf message google.cloud.automl.v1beta1.ColumnSpec

Namespace

Google \ Cloud \ AutoMl \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The resource name of the column specs. Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}

↳ data_type Google\Cloud\AutoMl\V1beta1\DataType

The data type of elements stored in the column.

↳ display_name string

Output only. The name of the column to show in the interface. The name can be up to 100 characters long and can consist only of ASCII Latin letters A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and must start with a letter or a digit.

↳ data_stats Google\Cloud\AutoMl\V1beta1\DataStats

Output only. Stats of the series of values in the column. This field may be stale, see the ancestor's Dataset.tables_dataset_metadata.stats_update_time field for the timestamp at which these stats were last updated.

↳ top_correlated_columns array<Google\Cloud\AutoMl\V1beta1\ColumnSpec\CorrelatedColumn>

Deprecated.

↳ etag string

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

getName

Output only. The resource name of the column specs.

Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}

Returns
TypeDescription
string

setName

Output only. The resource name of the column specs.

Form: projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataType

The data type of elements stored in the column.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\DataType|null

hasDataType

clearDataType

setDataType

The data type of elements stored in the column.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\DataType
Returns
TypeDescription
$this

getDisplayName

Output only. The name of the column to show in the interface. The name can be up to 100 characters long and can consist only of ASCII Latin letters A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and must start with a letter or a digit.

Returns
TypeDescription
string

setDisplayName

Output only. The name of the column to show in the interface. The name can be up to 100 characters long and can consist only of ASCII Latin letters A-Z and a-z, ASCII digits 0-9, underscores(_), and forward slashes(/), and must start with a letter or a digit.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDataStats

Output only. Stats of the series of values in the column.

This field may be stale, see the ancestor's Dataset.tables_dataset_metadata.stats_update_time field for the timestamp at which these stats were last updated.

Returns
TypeDescription
Google\Cloud\AutoMl\V1beta1\DataStats|null

hasDataStats

clearDataStats

setDataStats

Output only. Stats of the series of values in the column.

This field may be stale, see the ancestor's Dataset.tables_dataset_metadata.stats_update_time field for the timestamp at which these stats were last updated.

Parameter
NameDescription
var Google\Cloud\AutoMl\V1beta1\DataStats
Returns
TypeDescription
$this

getTopCorrelatedColumns

Deprecated.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTopCorrelatedColumns

Deprecated.

Parameter
NameDescription
var array<Google\Cloud\AutoMl\V1beta1\ColumnSpec\CorrelatedColumn>
Returns
TypeDescription
$this

getEtag

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

Returns
TypeDescription
string

setEtag

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this