Class ColumnSpec.Builder (2.28.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn>
Returns
TypeDescription
ColumnSpec.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ColumnSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueColumnSpec.CorrelatedColumn
Returns
TypeDescription
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
NameDescription
builderForValueColumnSpec.CorrelatedColumn.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueColumnSpec.CorrelatedColumn
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumnSpec.CorrelatedColumn.Builder
Returns
TypeDescription
ColumnSpec.Builder

addTopCorrelatedColumnsBuilder()

public ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder()

Deprecated.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ColumnSpec.CorrelatedColumn.Builder

build()

public ColumnSpec build()
Returns
TypeDescription
ColumnSpec

buildPartial()

public ColumnSpec buildPartial()
Returns
TypeDescription
ColumnSpec

clear()

public ColumnSpec.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ColumnSpec.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ColumnSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ColumnSpec.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTopCorrelatedColumns()

public ColumnSpec.Builder clearTopCorrelatedColumns()

Deprecated.

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

Returns
TypeDescription
ColumnSpec.Builder

clone()

public ColumnSpec.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
DataStatsOrBuilder

getDataType()

public DataType getDataType()

The data type of elements stored in the column.

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

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

getDataTypeOrBuilder()

public DataTypeOrBuilder getDataTypeOrBuilder()

The data type of elements stored in the column.

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

Returns
TypeDescription
DataTypeOrBuilder

getDefaultInstanceForType()

public ColumnSpec getDefaultInstanceForType()
Returns
TypeDescription
ColumnSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ColumnSpec.CorrelatedColumn.Builder

getTopCorrelatedColumnsBuilderList()

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

Deprecated.

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

Returns
TypeDescription
List<Builder>

getTopCorrelatedColumnsCount()

public int getTopCorrelatedColumnsCount()

Deprecated.

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

Returns
TypeDescription
int

getTopCorrelatedColumnsList()

public List<ColumnSpec.CorrelatedColumn> getTopCorrelatedColumnsList()

Deprecated.

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

Returns
TypeDescription
List<CorrelatedColumn>

getTopCorrelatedColumnsOrBuilder(int index)

public ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder(int index)

Deprecated.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ColumnSpec.CorrelatedColumnOrBuilder

getTopCorrelatedColumnsOrBuilderList()

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

Deprecated.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the dataType field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDataStats
Returns
TypeDescription
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
NameDescription
valueDataType
Returns
TypeDescription
ColumnSpec.Builder

mergeFrom(ColumnSpec other)

public ColumnSpec.Builder mergeFrom(ColumnSpec other)
Parameter
NameDescription
otherColumnSpec
Returns
TypeDescription
ColumnSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ColumnSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueDataStats
Returns
TypeDescription
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
NameDescription
builderForValueDataStats.Builder
Returns
TypeDescription
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
NameDescription
valueDataType
Returns
TypeDescription
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
NameDescription
builderForValueDataType.Builder
Returns
TypeDescription
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
NameDescription
valueString

The displayName to set.

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

The bytes for displayName to set.

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

The etag to set.

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

The bytes for etag to set.

Returns
TypeDescription
ColumnSpec.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ColumnSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

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

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueColumnSpec.CorrelatedColumn
Returns
TypeDescription
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
NameDescription
indexint
builderForValueColumnSpec.CorrelatedColumn.Builder
Returns
TypeDescription
ColumnSpec.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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