Class ColumnSpec

  • All Implemented Interfaces:
    ColumnSpecOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ColumnSpec
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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;
        Specified by:
        getName in interface ColumnSpecOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.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;
        Specified by:
        getNameBytes in interface ColumnSpecOrBuilder
        Returns:
        The bytes for name.
      • hasDataType

        public boolean hasDataType()
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
        Specified by:
        hasDataType in interface ColumnSpecOrBuilder
        Returns:
        Whether the dataType field is set.
      • getDataType

        public DataType getDataType()
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
        Specified by:
        getDataType in interface ColumnSpecOrBuilder
        Returns:
        The dataType.
      • 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;
        Specified by:
        getDisplayName in interface ColumnSpecOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.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;
        Specified by:
        getDisplayNameBytes in interface ColumnSpecOrBuilder
        Returns:
        The bytes for displayName.
      • 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;
        Specified by:
        hasDataStats in interface ColumnSpecOrBuilder
        Returns:
        Whether the dataStats field is set.
      • 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;
        Specified by:
        getDataStats in interface ColumnSpecOrBuilder
        Returns:
        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;
        Specified by:
        getDataStatsOrBuilder in interface ColumnSpecOrBuilder
      • getTopCorrelatedColumnsCount

        public int getTopCorrelatedColumnsCount()
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
        Specified by:
        getTopCorrelatedColumnsCount in interface ColumnSpecOrBuilder
      • getEtag

        public String getEtag()
         Used to perform consistent read-modify-write updates. If not set, a blind
         "overwrite" update happens.
         
        string etag = 6;
        Specified by:
        getEtag in interface ColumnSpecOrBuilder
        Returns:
        The etag.
      • getEtagBytes

        public com.google.protobuf.ByteString getEtagBytes()
         Used to perform consistent read-modify-write updates. If not set, a blind
         "overwrite" update happens.
         
        string etag = 6;
        Specified by:
        getEtagBytes in interface ColumnSpecOrBuilder
        Returns:
        The bytes for etag.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ColumnSpec parseFrom​(ByteBuffer data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnSpec parseFrom​(ByteBuffer data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnSpec parseFrom​(com.google.protobuf.ByteString data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnSpec parseFrom​(com.google.protobuf.ByteString data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnSpec parseFrom​(byte[] data)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnSpec parseFrom​(byte[] data,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnSpec parseFrom​(com.google.protobuf.CodedInputStream input,
                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                    throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ColumnSpec.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ColumnSpec.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ColumnSpec.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static ColumnSpec getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<ColumnSpec> parser()
      • getParserForType

        public com.google.protobuf.Parser<ColumnSpec> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ColumnSpec getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder