Class ColumnEntity.Builder

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

    public static final class ColumnEntity.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ColumnEntity.Builder>
    implements ColumnEntityOrBuilder
     Column is not used as an independent entity, it is retrieved as part of a
     Table entity.
     
    Protobuf type google.cloud.clouddms.v1.ColumnEntity
    • 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<ColumnEntity.Builder>
      • clear

        public ColumnEntity.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<ColumnEntity.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<ColumnEntity.Builder>
      • getDefaultInstanceForType

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

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

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

        public ColumnEntity.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<ColumnEntity.Builder>
      • setField

        public ColumnEntity.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<ColumnEntity.Builder>
      • clearField

        public ColumnEntity.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<ColumnEntity.Builder>
      • clearOneof

        public ColumnEntity.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<ColumnEntity.Builder>
      • setRepeatedField

        public ColumnEntity.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<ColumnEntity.Builder>
      • addRepeatedField

        public ColumnEntity.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<ColumnEntity.Builder>
      • mergeFrom

        public ColumnEntity.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<ColumnEntity.Builder>
      • isInitialized

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

        public ColumnEntity.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<ColumnEntity.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Column name.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for name.
      • setName

        public ColumnEntity.Builder setName​(String value)
         Column name.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public ColumnEntity.Builder clearName()
         Column name.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public ColumnEntity.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Column name.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getDataTypeBytes

        public com.google.protobuf.ByteString getDataTypeBytes()
         Column data type.
         
        string data_type = 2;
        Specified by:
        getDataTypeBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for dataType.
      • setDataType

        public ColumnEntity.Builder setDataType​(String value)
         Column data type.
         
        string data_type = 2;
        Parameters:
        value - The dataType to set.
        Returns:
        This builder for chaining.
      • clearDataType

        public ColumnEntity.Builder clearDataType()
         Column data type.
         
        string data_type = 2;
        Returns:
        This builder for chaining.
      • setDataTypeBytes

        public ColumnEntity.Builder setDataTypeBytes​(com.google.protobuf.ByteString value)
         Column data type.
         
        string data_type = 2;
        Parameters:
        value - The bytes for dataType to set.
        Returns:
        This builder for chaining.
      • getCharset

        public String getCharset()
         Charset override - instead of table level charset.
         
        string charset = 3;
        Specified by:
        getCharset in interface ColumnEntityOrBuilder
        Returns:
        The charset.
      • getCharsetBytes

        public com.google.protobuf.ByteString getCharsetBytes()
         Charset override - instead of table level charset.
         
        string charset = 3;
        Specified by:
        getCharsetBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for charset.
      • setCharset

        public ColumnEntity.Builder setCharset​(String value)
         Charset override - instead of table level charset.
         
        string charset = 3;
        Parameters:
        value - The charset to set.
        Returns:
        This builder for chaining.
      • clearCharset

        public ColumnEntity.Builder clearCharset()
         Charset override - instead of table level charset.
         
        string charset = 3;
        Returns:
        This builder for chaining.
      • setCharsetBytes

        public ColumnEntity.Builder setCharsetBytes​(com.google.protobuf.ByteString value)
         Charset override - instead of table level charset.
         
        string charset = 3;
        Parameters:
        value - The bytes for charset to set.
        Returns:
        This builder for chaining.
      • getCollation

        public String getCollation()
         Collation override - instead of table level collation.
         
        string collation = 4;
        Specified by:
        getCollation in interface ColumnEntityOrBuilder
        Returns:
        The collation.
      • getCollationBytes

        public com.google.protobuf.ByteString getCollationBytes()
         Collation override - instead of table level collation.
         
        string collation = 4;
        Specified by:
        getCollationBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for collation.
      • setCollation

        public ColumnEntity.Builder setCollation​(String value)
         Collation override - instead of table level collation.
         
        string collation = 4;
        Parameters:
        value - The collation to set.
        Returns:
        This builder for chaining.
      • clearCollation

        public ColumnEntity.Builder clearCollation()
         Collation override - instead of table level collation.
         
        string collation = 4;
        Returns:
        This builder for chaining.
      • setCollationBytes

        public ColumnEntity.Builder setCollationBytes​(com.google.protobuf.ByteString value)
         Collation override - instead of table level collation.
         
        string collation = 4;
        Parameters:
        value - The bytes for collation to set.
        Returns:
        This builder for chaining.
      • getLength

        public long getLength()
         Column length - e.g. varchar (50).
         
        int64 length = 5;
        Specified by:
        getLength in interface ColumnEntityOrBuilder
        Returns:
        The length.
      • setLength

        public ColumnEntity.Builder setLength​(long value)
         Column length - e.g. varchar (50).
         
        int64 length = 5;
        Parameters:
        value - The length to set.
        Returns:
        This builder for chaining.
      • clearLength

        public ColumnEntity.Builder clearLength()
         Column length - e.g. varchar (50).
         
        int64 length = 5;
        Returns:
        This builder for chaining.
      • getPrecision

        public int getPrecision()
         Column precision - when relevant.
         
        int32 precision = 6;
        Specified by:
        getPrecision in interface ColumnEntityOrBuilder
        Returns:
        The precision.
      • setPrecision

        public ColumnEntity.Builder setPrecision​(int value)
         Column precision - when relevant.
         
        int32 precision = 6;
        Parameters:
        value - The precision to set.
        Returns:
        This builder for chaining.
      • clearPrecision

        public ColumnEntity.Builder clearPrecision()
         Column precision - when relevant.
         
        int32 precision = 6;
        Returns:
        This builder for chaining.
      • getScale

        public int getScale()
         Column scale - when relevant.
         
        int32 scale = 7;
        Specified by:
        getScale in interface ColumnEntityOrBuilder
        Returns:
        The scale.
      • setScale

        public ColumnEntity.Builder setScale​(int value)
         Column scale - when relevant.
         
        int32 scale = 7;
        Parameters:
        value - The scale to set.
        Returns:
        This builder for chaining.
      • clearScale

        public ColumnEntity.Builder clearScale()
         Column scale - when relevant.
         
        int32 scale = 7;
        Returns:
        This builder for chaining.
      • getFractionalSecondsPrecision

        public int getFractionalSecondsPrecision()
         Column fractional second precision - used for timestamp based datatypes.
         
        int32 fractional_seconds_precision = 8;
        Specified by:
        getFractionalSecondsPrecision in interface ColumnEntityOrBuilder
        Returns:
        The fractionalSecondsPrecision.
      • setFractionalSecondsPrecision

        public ColumnEntity.Builder setFractionalSecondsPrecision​(int value)
         Column fractional second precision - used for timestamp based datatypes.
         
        int32 fractional_seconds_precision = 8;
        Parameters:
        value - The fractionalSecondsPrecision to set.
        Returns:
        This builder for chaining.
      • clearFractionalSecondsPrecision

        public ColumnEntity.Builder clearFractionalSecondsPrecision()
         Column fractional second precision - used for timestamp based datatypes.
         
        int32 fractional_seconds_precision = 8;
        Returns:
        This builder for chaining.
      • getArray

        public boolean getArray()
         Is the column of array type.
         
        bool array = 9;
        Specified by:
        getArray in interface ColumnEntityOrBuilder
        Returns:
        The array.
      • setArray

        public ColumnEntity.Builder setArray​(boolean value)
         Is the column of array type.
         
        bool array = 9;
        Parameters:
        value - The array to set.
        Returns:
        This builder for chaining.
      • clearArray

        public ColumnEntity.Builder clearArray()
         Is the column of array type.
         
        bool array = 9;
        Returns:
        This builder for chaining.
      • getArrayLength

        public int getArrayLength()
         If the column is array, of which length.
         
        int32 array_length = 10;
        Specified by:
        getArrayLength in interface ColumnEntityOrBuilder
        Returns:
        The arrayLength.
      • setArrayLength

        public ColumnEntity.Builder setArrayLength​(int value)
         If the column is array, of which length.
         
        int32 array_length = 10;
        Parameters:
        value - The arrayLength to set.
        Returns:
        This builder for chaining.
      • clearArrayLength

        public ColumnEntity.Builder clearArrayLength()
         If the column is array, of which length.
         
        int32 array_length = 10;
        Returns:
        This builder for chaining.
      • getNullable

        public boolean getNullable()
         Is the column nullable.
         
        bool nullable = 11;
        Specified by:
        getNullable in interface ColumnEntityOrBuilder
        Returns:
        The nullable.
      • setNullable

        public ColumnEntity.Builder setNullable​(boolean value)
         Is the column nullable.
         
        bool nullable = 11;
        Parameters:
        value - The nullable to set.
        Returns:
        This builder for chaining.
      • clearNullable

        public ColumnEntity.Builder clearNullable()
         Is the column nullable.
         
        bool nullable = 11;
        Returns:
        This builder for chaining.
      • getAutoGenerated

        public boolean getAutoGenerated()
         Is the column auto-generated/identity.
         
        bool auto_generated = 12;
        Specified by:
        getAutoGenerated in interface ColumnEntityOrBuilder
        Returns:
        The autoGenerated.
      • setAutoGenerated

        public ColumnEntity.Builder setAutoGenerated​(boolean value)
         Is the column auto-generated/identity.
         
        bool auto_generated = 12;
        Parameters:
        value - The autoGenerated to set.
        Returns:
        This builder for chaining.
      • clearAutoGenerated

        public ColumnEntity.Builder clearAutoGenerated()
         Is the column auto-generated/identity.
         
        bool auto_generated = 12;
        Returns:
        This builder for chaining.
      • getUdt

        public boolean getUdt()
         Is the column a UDT.
         
        bool udt = 13;
        Specified by:
        getUdt in interface ColumnEntityOrBuilder
        Returns:
        The udt.
      • setUdt

        public ColumnEntity.Builder setUdt​(boolean value)
         Is the column a UDT.
         
        bool udt = 13;
        Parameters:
        value - The udt to set.
        Returns:
        This builder for chaining.
      • clearUdt

        public ColumnEntity.Builder clearUdt()
         Is the column a UDT.
         
        bool udt = 13;
        Returns:
        This builder for chaining.
      • hasCustomFeatures

        public boolean hasCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
        Specified by:
        hasCustomFeatures in interface ColumnEntityOrBuilder
        Returns:
        Whether the customFeatures field is set.
      • getCustomFeatures

        public com.google.protobuf.Struct getCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
        Specified by:
        getCustomFeatures in interface ColumnEntityOrBuilder
        Returns:
        The customFeatures.
      • setCustomFeatures

        public ColumnEntity.Builder setCustomFeatures​(com.google.protobuf.Struct value)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
      • setCustomFeatures

        public ColumnEntity.Builder setCustomFeatures​(com.google.protobuf.Struct.Builder builderForValue)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
      • mergeCustomFeatures

        public ColumnEntity.Builder mergeCustomFeatures​(com.google.protobuf.Struct value)
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
      • clearCustomFeatures

        public ColumnEntity.Builder clearCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
      • getCustomFeaturesBuilder

        public com.google.protobuf.Struct.Builder getCustomFeaturesBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
      • getCustomFeaturesOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
        Specified by:
        getCustomFeaturesOrBuilder in interface ColumnEntityOrBuilder
      • getSetValuesList

        public com.google.protobuf.ProtocolStringList getSetValuesList()
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValuesList in interface ColumnEntityOrBuilder
        Returns:
        A list containing the setValues.
      • getSetValuesCount

        public int getSetValuesCount()
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValuesCount in interface ColumnEntityOrBuilder
        Returns:
        The count of setValues.
      • getSetValues

        public String getSetValues​(int index)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValues in interface ColumnEntityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The setValues at the given index.
      • getSetValuesBytes

        public com.google.protobuf.ByteString getSetValuesBytes​(int index)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValuesBytes in interface ColumnEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the setValues at the given index.
      • setSetValues

        public ColumnEntity.Builder setSetValues​(int index,
                                                 String value)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Parameters:
        index - The index to set the value at.
        value - The setValues to set.
        Returns:
        This builder for chaining.
      • addSetValues

        public ColumnEntity.Builder addSetValues​(String value)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Parameters:
        value - The setValues to add.
        Returns:
        This builder for chaining.
      • addAllSetValues

        public ColumnEntity.Builder addAllSetValues​(Iterable<String> values)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Parameters:
        values - The setValues to add.
        Returns:
        This builder for chaining.
      • clearSetValues

        public ColumnEntity.Builder clearSetValues()
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Returns:
        This builder for chaining.
      • addSetValuesBytes

        public ColumnEntity.Builder addSetValuesBytes​(com.google.protobuf.ByteString value)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Parameters:
        value - The bytes of the setValues to add.
        Returns:
        This builder for chaining.
      • getCommentBytes

        public com.google.protobuf.ByteString getCommentBytes()
         Comment associated with the column.
         
        string comment = 16;
        Specified by:
        getCommentBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for comment.
      • setComment

        public ColumnEntity.Builder setComment​(String value)
         Comment associated with the column.
         
        string comment = 16;
        Parameters:
        value - The comment to set.
        Returns:
        This builder for chaining.
      • clearComment

        public ColumnEntity.Builder clearComment()
         Comment associated with the column.
         
        string comment = 16;
        Returns:
        This builder for chaining.
      • setCommentBytes

        public ColumnEntity.Builder setCommentBytes​(com.google.protobuf.ByteString value)
         Comment associated with the column.
         
        string comment = 16;
        Parameters:
        value - The bytes for comment to set.
        Returns:
        This builder for chaining.
      • getOrdinalPosition

        public int getOrdinalPosition()
         Column order in the table.
         
        int32 ordinal_position = 17;
        Specified by:
        getOrdinalPosition in interface ColumnEntityOrBuilder
        Returns:
        The ordinalPosition.
      • setOrdinalPosition

        public ColumnEntity.Builder setOrdinalPosition​(int value)
         Column order in the table.
         
        int32 ordinal_position = 17;
        Parameters:
        value - The ordinalPosition to set.
        Returns:
        This builder for chaining.
      • clearOrdinalPosition

        public ColumnEntity.Builder clearOrdinalPosition()
         Column order in the table.
         
        int32 ordinal_position = 17;
        Returns:
        This builder for chaining.
      • getDefaultValueBytes

        public com.google.protobuf.ByteString getDefaultValueBytes()
         Default value of the column.
         
        string default_value = 18;
        Specified by:
        getDefaultValueBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for defaultValue.
      • setDefaultValue

        public ColumnEntity.Builder setDefaultValue​(String value)
         Default value of the column.
         
        string default_value = 18;
        Parameters:
        value - The defaultValue to set.
        Returns:
        This builder for chaining.
      • clearDefaultValue

        public ColumnEntity.Builder clearDefaultValue()
         Default value of the column.
         
        string default_value = 18;
        Returns:
        This builder for chaining.
      • setDefaultValueBytes

        public ColumnEntity.Builder setDefaultValueBytes​(com.google.protobuf.ByteString value)
         Default value of the column.
         
        string default_value = 18;
        Parameters:
        value - The bytes for defaultValue to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ColumnEntity.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<ColumnEntity.Builder>
      • mergeUnknownFields

        public final ColumnEntity.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<ColumnEntity.Builder>