Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::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:
(::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.
value (::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.
Returns
(::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.
(::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.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::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.
Returns
(::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.
#etag
defetag()->::String
Returns
(::String) — Used to perform consistent read-modify-write updates. If not set, a blind
"overwrite" update happens.
#etag=
defetag=(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.
#name
defname()->::String
Returns
(::String) — Output only. The resource name of the column specs.
Form:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1beta1 API - Class Google::Cloud::AutoML::V1beta1::ColumnSpec (v0.14.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.1 (latest)](/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.14.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.14.0/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.13.1](/ruby/docs/reference/google-cloud-automl-v1beta1/0.13.1/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.12.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.12.0/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.11.1](/ruby/docs/reference/google-cloud-automl-v1beta1/0.11.1/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.10.2](/ruby/docs/reference/google-cloud-automl-v1beta1/0.10.2/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.9.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.9.0/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.8.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.8.0/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.7.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.7.0/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.6.1](/ruby/docs/reference/google-cloud-automl-v1beta1/0.6.1/Google-Cloud-AutoML-V1beta1-ColumnSpec)\n- [0.5.5](/ruby/docs/reference/google-cloud-automl-v1beta1/0.5.5/Google-Cloud-AutoML-V1beta1-ColumnSpec) \nReference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::ColumnSpec.\n\nA representation of a column in a relational table. When listing them, column specs are returned in the same order in which they were\ngiven on import .\nUsed by:\n\n- Tables \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #data_stats\n\n def data_stats() -\u003e ::Google::Cloud::AutoML::V1beta1::DataStats\n\n**Returns**\n\n- ([::Google::Cloud::AutoML::V1beta1::DataStats](./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.\n\n### #data_stats=\n\n def data_stats=(value) -\u003e ::Google::Cloud::AutoML::V1beta1::DataStats\n\n**Parameter**\n\n- **value** ([::Google::Cloud::AutoML::V1beta1::DataStats](./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. \n**Returns**\n\n- ([::Google::Cloud::AutoML::V1beta1::DataStats](./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.\n\n### #data_type\n\n def data_type() -\u003e ::Google::Cloud::AutoML::V1beta1::DataType\n\n**Returns**\n\n- ([::Google::Cloud::AutoML::V1beta1::DataType](./Google-Cloud-AutoML-V1beta1-DataType)) --- The data type of elements stored in the column.\n\n### #data_type=\n\n def data_type=(value) -\u003e ::Google::Cloud::AutoML::V1beta1::DataType\n\n**Parameter**\n\n- **value** ([::Google::Cloud::AutoML::V1beta1::DataType](./Google-Cloud-AutoML-V1beta1-DataType)) --- The data type of elements stored in the column. \n**Returns**\n\n- ([::Google::Cloud::AutoML::V1beta1::DataType](./Google-Cloud-AutoML-V1beta1-DataType)) --- The data type of elements stored in the column.\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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.\n\n### #etag\n\n def etag() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.\n\n### #etag=\n\n def etag=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens. \n**Returns**\n\n- (::String) --- Used to perform consistent read-modify-write updates. If not set, a blind \"overwrite\" update happens.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. The resource name of the column specs. Form:\n\n `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Output only. The resource name of the column specs. Form:\n\n\n`projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}` \n**Returns**\n\n- (::String) --- Output only. The resource name of the column specs. Form:\n\n `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/tableSpecs/{table_spec_id}/columnSpecs/{column_spec_id}`\n\n### #top_correlated_columns\n\n def top_correlated_columns() -\u003e ::Array\u003c::Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn](./Google-Cloud-AutoML-V1beta1-ColumnSpec-CorrelatedColumn)\\\u003e) --- Deprecated.\n\n### #top_correlated_columns=\n\n def top_correlated_columns=(value) -\u003e ::Array\u003c::Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn](./Google-Cloud-AutoML-V1beta1-ColumnSpec-CorrelatedColumn)\\\u003e) --- Deprecated. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::AutoML::V1beta1::ColumnSpec::CorrelatedColumn](./Google-Cloud-AutoML-V1beta1-ColumnSpec-CorrelatedColumn)\\\u003e) --- Deprecated."]]