Class ColumnSpec (2.55.0)

public final class ColumnSpec extends GeneratedMessageV3 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 Fields

DATA_STATS_FIELD_NUMBER

public static final int DATA_STATS_FIELD_NUMBER
Field Value
Type Description
int

DATA_TYPE_FIELD_NUMBER

public static final int DATA_TYPE_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TOP_CORRELATED_COLUMNS_FIELD_NUMBER

public static final int TOP_CORRELATED_COLUMNS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ColumnSpec getDefaultInstance()
Returns
Type Description
ColumnSpec

getDescriptor()

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

newBuilder()

public static ColumnSpec.Builder newBuilder()
Returns
Type Description
ColumnSpec.Builder

newBuilder(ColumnSpec prototype)

public static ColumnSpec.Builder newBuilder(ColumnSpec prototype)
Parameter
Name Description
prototype ColumnSpec
Returns
Type Description
ColumnSpec.Builder

parseDelimitedFrom(InputStream input)

public static ColumnSpec parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ColumnSpec
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ColumnSpec parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ColumnSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ColumnSpec parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ColumnSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ColumnSpec parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ColumnSpec
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ColumnSpec parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ColumnSpec
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ColumnSpec parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ColumnSpec
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ColumnSpec
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ColumnSpec> parser()
Returns
Type Description
Parser<ColumnSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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.

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

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.

getParserForType()

public Parser<ColumnSpec> getParserForType()
Returns
Type Description
Parser<ColumnSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ColumnSpec.Builder newBuilderForType()
Returns
Type Description
ColumnSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ColumnSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ColumnSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ColumnSpec.Builder toBuilder()
Returns
Type Description
ColumnSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException