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:
Protobuf type google.cloud.automl.v1beta1.ColumnSpec
Static Fields
DATA_STATS_FIELD_NUMBER
public static final int DATA_STATS_FIELD_NUMBER
Field Value
DATA_TYPE_FIELD_NUMBER
public static final int DATA_TYPE_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
public static final int TOP_CORRELATED_COLUMNS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ColumnSpec getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ColumnSpec.Builder newBuilder()
Returns
newBuilder(ColumnSpec prototype)
public static ColumnSpec.Builder newBuilder(ColumnSpec prototype)
Parameter
Returns
public static ColumnSpec parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ColumnSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ColumnSpec parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ColumnSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ColumnSpec parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ColumnSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ColumnSpec parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ColumnSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ColumnSpec parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ColumnSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ColumnSpec parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ColumnSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ColumnSpec> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
getDataType()
public DataType getDataType()
The data type of elements stored in the column.
.google.cloud.automl.v1beta1.DataType data_type = 2;
Returns
getDataTypeOrBuilder()
public DataTypeOrBuilder getDataTypeOrBuilder()
The data type of elements stored in the column.
.google.cloud.automl.v1beta1.DataType data_type = 2;
Returns
getDefaultInstanceForType()
public ColumnSpec getDefaultInstanceForType()
Returns
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()
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
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
getParserForType()
public Parser<ColumnSpec> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
public ColumnSpec.CorrelatedColumn getTopCorrelatedColumns(int index)
Deprecated.
repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
Parameter
Returns
public int getTopCorrelatedColumnsCount()
Deprecated.
repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
Returns
public List<ColumnSpec.CorrelatedColumn> getTopCorrelatedColumnsList()
Deprecated.
repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
Returns
public ColumnSpec.CorrelatedColumnOrBuilder getTopCorrelatedColumnsOrBuilder(int index)
Deprecated.
repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
Parameter
Returns
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> | |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ColumnSpec.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ColumnSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ColumnSpec.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions