Class ColumnSpec.Builder (2.46.0)

public static final class ColumnSpec.Builder extends GeneratedMessageV3.Builder<ColumnSpec.Builder> implements ColumnSpecOrBuilder

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

Protobuf type google.cloud.automl.v1beta1.ColumnSpec

Implements

ColumnSpecOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllTopCorrelatedColumns(Iterable<? extends ColumnSpec.CorrelatedColumn> values)

public ColumnSpec.Builder addAllTopCorrelatedColumns(Iterable<? extends ColumnSpec.CorrelatedColumn> values)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
values Iterable<? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn>
Returns
Type Description
ColumnSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ColumnSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ColumnSpec.Builder
Overrides

addTopCorrelatedColumns(ColumnSpec.CorrelatedColumn value)

public ColumnSpec.Builder addTopCorrelatedColumns(ColumnSpec.CorrelatedColumn value)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
value ColumnSpec.CorrelatedColumn
Returns
Type Description
ColumnSpec.Builder

addTopCorrelatedColumns(ColumnSpec.CorrelatedColumn.Builder builderForValue)

public ColumnSpec.Builder addTopCorrelatedColumns(ColumnSpec.CorrelatedColumn.Builder builderForValue)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
builderForValue ColumnSpec.CorrelatedColumn.Builder
Returns
Type Description
ColumnSpec.Builder

addTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn value)

public ColumnSpec.Builder addTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn value)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameters
Name Description
index int
value ColumnSpec.CorrelatedColumn
Returns
Type Description
ColumnSpec.Builder

addTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn.Builder builderForValue)

public ColumnSpec.Builder addTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn.Builder builderForValue)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameters
Name Description
index int
builderForValue ColumnSpec.CorrelatedColumn.Builder
Returns
Type Description
ColumnSpec.Builder

addTopCorrelatedColumnsBuilder()

public ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder()

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Returns
Type Description
ColumnSpec.CorrelatedColumn.Builder

addTopCorrelatedColumnsBuilder(int index)

public ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder(int index)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
index int
Returns
Type Description
ColumnSpec.CorrelatedColumn.Builder

build()

public ColumnSpec build()
Returns
Type Description
ColumnSpec

buildPartial()

public ColumnSpec buildPartial()
Returns
Type Description
ColumnSpec

clear()

public ColumnSpec.Builder clear()
Returns
Type Description
ColumnSpec.Builder
Overrides

clearDataStats()

public ColumnSpec.Builder clearDataStats()

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Returns
Type Description
ColumnSpec.Builder

clearDataType()

public ColumnSpec.Builder clearDataType()

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Returns
Type Description
ColumnSpec.Builder

clearDisplayName()

public ColumnSpec.Builder clearDisplayName()

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.

string display_name = 3;

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

clearEtag()

public ColumnSpec.Builder clearEtag()

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

string etag = 6;

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ColumnSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ColumnSpec.Builder
Overrides

clearName()

public ColumnSpec.Builder clearName()

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}

string name = 1;

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ColumnSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ColumnSpec.Builder
Overrides

clearTopCorrelatedColumns()

public ColumnSpec.Builder clearTopCorrelatedColumns()

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Returns
Type Description
ColumnSpec.Builder

clone()

public ColumnSpec.Builder clone()
Returns
Type Description
ColumnSpec.Builder
Overrides

getDataStats()

public DataStats 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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Returns
Type Description
DataStats

The dataStats.

getDataStatsBuilder()

public DataStats.Builder getDataStatsBuilder()

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Returns
Type Description
DataStats.Builder

getDataStatsOrBuilder()

public DataStatsOrBuilder getDataStatsOrBuilder()

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Returns
Type Description
DataStatsOrBuilder

getDataType()

public DataType getDataType()

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Returns
Type Description
DataType

The dataType.

getDataTypeBuilder()

public DataType.Builder getDataTypeBuilder()

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Returns
Type Description
DataType.Builder

getDataTypeOrBuilder()

public DataTypeOrBuilder getDataTypeOrBuilder()

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Returns
Type Description
DataTypeOrBuilder

getDefaultInstanceForType()

public ColumnSpec getDefaultInstanceForType()
Returns
Type Description
ColumnSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String 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.

string display_name = 3;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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.

string display_name = 3;

Returns
Type Description
ByteString

The bytes for displayName.

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.

getName()

public String 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}

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

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}

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getTopCorrelatedColumns(int index)

public ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
index int
Returns
Type Description
ColumnSpec.CorrelatedColumn

getTopCorrelatedColumnsBuilder(int index)

public ColumnSpec.CorrelatedColumn.Builder getTopCorrelatedColumnsBuilder(int index)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
index int
Returns
Type Description
ColumnSpec.CorrelatedColumn.Builder

getTopCorrelatedColumnsBuilderList()

public List<ColumnSpec.CorrelatedColumn.Builder> getTopCorrelatedColumnsBuilderList()

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Returns
Type Description
List<Builder>

getTopCorrelatedColumnsCount()

public int getTopCorrelatedColumnsCount()

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Returns
Type Description
int

getTopCorrelatedColumnsList()

public List<ColumnSpec.CorrelatedColumn> getTopCorrelatedColumnsList()

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Returns
Type Description
List<CorrelatedColumn>

getTopCorrelatedColumnsOrBuilder(int index)

public ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder(int index)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
index int
Returns
Type Description
ColumnSpec.CorrelatedColumnOrBuilder

getTopCorrelatedColumnsOrBuilderList()

public List<? extends ColumnSpec.CorrelatedColumnOrBuilder> getTopCorrelatedColumnsOrBuilderList()

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Returns
Type Description
List<? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumnOrBuilder>

hasDataStats()

public boolean hasDataStats()

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Returns
Type Description
boolean

Whether the dataStats field is set.

hasDataType()

public boolean hasDataType()

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Returns
Type Description
boolean

Whether the dataType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDataStats(DataStats value)

public ColumnSpec.Builder mergeDataStats(DataStats value)

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Parameter
Name Description
value DataStats
Returns
Type Description
ColumnSpec.Builder

mergeDataType(DataType value)

public ColumnSpec.Builder mergeDataType(DataType value)

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Parameter
Name Description
value DataType
Returns
Type Description
ColumnSpec.Builder

mergeFrom(ColumnSpec other)

public ColumnSpec.Builder mergeFrom(ColumnSpec other)
Parameter
Name Description
other ColumnSpec
Returns
Type Description
ColumnSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ColumnSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ColumnSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ColumnSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ColumnSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ColumnSpec.Builder
Overrides

removeTopCorrelatedColumns(int index)

public ColumnSpec.Builder removeTopCorrelatedColumns(int index)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameter
Name Description
index int
Returns
Type Description
ColumnSpec.Builder

setDataStats(DataStats value)

public ColumnSpec.Builder setDataStats(DataStats value)

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Parameter
Name Description
value DataStats
Returns
Type Description
ColumnSpec.Builder

setDataStats(DataStats.Builder builderForValue)

public ColumnSpec.Builder setDataStats(DataStats.Builder builderForValue)

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.

.google.cloud.automl.v1beta1.DataStats data_stats = 4;

Parameter
Name Description
builderForValue DataStats.Builder
Returns
Type Description
ColumnSpec.Builder

setDataType(DataType value)

public ColumnSpec.Builder setDataType(DataType value)

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Parameter
Name Description
value DataType
Returns
Type Description
ColumnSpec.Builder

setDataType(DataType.Builder builderForValue)

public ColumnSpec.Builder setDataType(DataType.Builder builderForValue)

The data type of elements stored in the column.

.google.cloud.automl.v1beta1.DataType data_type = 2;

Parameter
Name Description
builderForValue DataType.Builder
Returns
Type Description
ColumnSpec.Builder

setDisplayName(String value)

public ColumnSpec.Builder setDisplayName(String value)

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.

string display_name = 3;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ColumnSpec.Builder setDisplayNameBytes(ByteString value)

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.

string display_name = 3;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

setEtag(String value)

public ColumnSpec.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
ColumnSpec.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public ColumnSpec.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
ColumnSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ColumnSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ColumnSpec.Builder
Overrides

setName(String value)

public ColumnSpec.Builder setName(String value)

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}

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ColumnSpec.Builder setNameBytes(ByteString value)

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}

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ColumnSpec.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ColumnSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ColumnSpec.Builder
Overrides

setTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn value)

public ColumnSpec.Builder setTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn value)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameters
Name Description
index int
value ColumnSpec.CorrelatedColumn
Returns
Type Description
ColumnSpec.Builder

setTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn.Builder builderForValue)

public ColumnSpec.Builder setTopCorrelatedColumns(int index, ColumnSpec.CorrelatedColumn.Builder builderForValue)

Deprecated.

repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;

Parameters
Name Description
index int
builderForValue ColumnSpec.CorrelatedColumn.Builder
Returns
Type Description
ColumnSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ColumnSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ColumnSpec.Builder
Overrides