Class ColumnSpec (2.15.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
TypeDescription
int

DATA_TYPE_FIELD_NUMBER

public static final int DATA_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ETAG_FIELD_NUMBER

public static final int ETAG_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

TOP_CORRELATED_COLUMNS_FIELD_NUMBER

public static final int TOP_CORRELATED_COLUMNS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ColumnSpec getDefaultInstance()
Returns
TypeDescription
ColumnSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ColumnSpec.Builder newBuilder()
Returns
TypeDescription
ColumnSpec.Builder

newBuilder(ColumnSpec prototype)

public static ColumnSpec.Builder newBuilder(ColumnSpec prototype)
Parameter
NameDescription
prototypeColumnSpec
Returns
TypeDescription
ColumnSpec.Builder

parseDelimitedFrom(InputStream input)

public static ColumnSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ColumnSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ColumnSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ColumnSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ColumnSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ColumnSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ColumnSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ColumnSpec> parser()
Returns
TypeDescription
Parser<ColumnSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
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.

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

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.

getParserForType()

public Parser<ColumnSpec> getParserForType()
Returns
TypeDescription
Parser<ColumnSpec>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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

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>

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ColumnSpec.Builder newBuilderForType()
Returns
TypeDescription
ColumnSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ColumnSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ColumnSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ColumnSpec.Builder toBuilder()
Returns
TypeDescription
ColumnSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException