Class ColumnSpec.Builder

  • All Implemented Interfaces:
    ColumnSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ColumnSpec

    public static final class ColumnSpec.Builder
    extends com.google.protobuf.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
    • Method Detail

      • 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.Builder<ColumnSpec.Builder>
      • clear

        public ColumnSpec.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • getDefaultInstanceForType

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

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

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

        public ColumnSpec.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • setField

        public ColumnSpec.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                           Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • clearField

        public ColumnSpec.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • clearOneof

        public ColumnSpec.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • setRepeatedField

        public ColumnSpec.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   int index,
                                                   Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • addRepeatedField

        public ColumnSpec.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                   Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • mergeFrom

        public ColumnSpec.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ColumnSpec.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • mergeFrom

        public ColumnSpec.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ColumnSpec.Builder>
        Throws:
        IOException
      • 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.
      • setName

        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;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setNameBytes

        public ColumnSpec.Builder setNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDataType

        public ColumnSpec.Builder setDataType​(DataType value)
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
      • setDataType

        public ColumnSpec.Builder setDataType​(DataType.Builder builderForValue)
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
      • mergeDataType

        public ColumnSpec.Builder mergeDataType​(DataType value)
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
      • clearDataType

        public ColumnSpec.Builder clearDataType()
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
      • getDataTypeBuilder

        public DataType.Builder getDataTypeBuilder()
         The data type of elements stored in the column.
         
        .google.cloud.automl.v1beta1.DataType data_type = 2;
      • 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.
      • setDisplayName

        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;
        Parameters:
        value - The displayName to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setDisplayNameBytes

        public ColumnSpec.Builder setDisplayNameBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for displayName to set.
        Returns:
        This builder for chaining.
      • 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.
      • setDataStats

        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;
      • setDataStats

        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;
      • mergeDataStats

        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;
      • 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;
      • 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;
      • 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
      • setTopCorrelatedColumns

        public ColumnSpec.Builder setTopCorrelatedColumns​(int index,
                                                          ColumnSpec.CorrelatedColumn value)
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • addTopCorrelatedColumns

        public ColumnSpec.Builder addTopCorrelatedColumns​(int index,
                                                          ColumnSpec.CorrelatedColumn value)
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • clearTopCorrelatedColumns

        public ColumnSpec.Builder clearTopCorrelatedColumns()
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • removeTopCorrelatedColumns

        public ColumnSpec.Builder removeTopCorrelatedColumns​(int index)
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • getTopCorrelatedColumnsBuilder

        public ColumnSpec.CorrelatedColumn.Builder getTopCorrelatedColumnsBuilder​(int index)
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • addTopCorrelatedColumnsBuilder

        public ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder()
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • addTopCorrelatedColumnsBuilder

        public ColumnSpec.CorrelatedColumn.Builder addTopCorrelatedColumnsBuilder​(int index)
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • getTopCorrelatedColumnsBuilderList

        public List<ColumnSpec.CorrelatedColumn.Builder> getTopCorrelatedColumnsBuilderList()
         Deprecated.
         
        repeated .google.cloud.automl.v1beta1.ColumnSpec.CorrelatedColumn top_correlated_columns = 5;
      • 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.
      • setEtag

        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;
        Parameters:
        value - The etag to set.
        Returns:
        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:
        This builder for chaining.
      • setEtagBytes

        public ColumnSpec.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         Used to perform consistent read-modify-write updates. If not set, a blind
         "overwrite" update happens.
         
        string etag = 6;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ColumnSpec.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>
      • mergeUnknownFields

        public final ColumnSpec.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ColumnSpec.Builder>