Class SingleColumnChange

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

    public final class SingleColumnChange
    extends com.google.protobuf.GeneratedMessageV3
    implements SingleColumnChangeOrBuilder
     Options to configure rule type SingleColumnChange.
     The rule is used to change the properties of a column.
    
     The rule filter field can refer to one entity.
    
     The rule scope can be one of: Column.
    
     When using this rule, if a field is not specified than the destination
     column's configuration will be the same as the one in the source column..
     
    Protobuf type google.cloud.clouddms.v1.SingleColumnChange
    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
      • getDataType

        public String getDataType()
         Optional. Column data type name.
         
        string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataType in interface SingleColumnChangeOrBuilder
        Returns:
        The dataType.
      • getDataTypeBytes

        public com.google.protobuf.ByteString getDataTypeBytes()
         Optional. Column data type name.
         
        string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDataTypeBytes in interface SingleColumnChangeOrBuilder
        Returns:
        The bytes for dataType.
      • getCharset

        public String getCharset()
         Optional. Charset override - instead of table level charset.
         
        string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCharset in interface SingleColumnChangeOrBuilder
        Returns:
        The charset.
      • getCharsetBytes

        public com.google.protobuf.ByteString getCharsetBytes()
         Optional. Charset override - instead of table level charset.
         
        string charset = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCharsetBytes in interface SingleColumnChangeOrBuilder
        Returns:
        The bytes for charset.
      • getCollation

        public String getCollation()
         Optional. Collation override - instead of table level collation.
         
        string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCollation in interface SingleColumnChangeOrBuilder
        Returns:
        The collation.
      • getCollationBytes

        public com.google.protobuf.ByteString getCollationBytes()
         Optional. Collation override - instead of table level collation.
         
        string collation = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCollationBytes in interface SingleColumnChangeOrBuilder
        Returns:
        The bytes for collation.
      • getLength

        public long getLength()
         Optional. Column length - e.g. 50 as in varchar (50) - when relevant.
         
        int64 length = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLength in interface SingleColumnChangeOrBuilder
        Returns:
        The length.
      • getPrecision

        public int getPrecision()
         Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.
         
        int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPrecision in interface SingleColumnChangeOrBuilder
        Returns:
        The precision.
      • getScale

        public int getScale()
         Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.
         
        int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getScale in interface SingleColumnChangeOrBuilder
        Returns:
        The scale.
      • getFractionalSecondsPrecision

        public int getFractionalSecondsPrecision()
         Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)
         - when relevant.
         
        int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getFractionalSecondsPrecision in interface SingleColumnChangeOrBuilder
        Returns:
        The fractionalSecondsPrecision.
      • getArray

        public boolean getArray()
         Optional. Is the column of array type.
         
        bool array = 8 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArray in interface SingleColumnChangeOrBuilder
        Returns:
        The array.
      • getArrayLength

        public int getArrayLength()
         Optional. The length of the array, only relevant if the column type is an
         array.
         
        int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArrayLength in interface SingleColumnChangeOrBuilder
        Returns:
        The arrayLength.
      • getNullable

        public boolean getNullable()
         Optional. Is the column nullable.
         
        bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getNullable in interface SingleColumnChangeOrBuilder
        Returns:
        The nullable.
      • getAutoGenerated

        public boolean getAutoGenerated()
         Optional. Is the column auto-generated/identity.
         
        bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAutoGenerated in interface SingleColumnChangeOrBuilder
        Returns:
        The autoGenerated.
      • getUdt

        public boolean getUdt()
         Optional. Is the column a UDT (User-defined Type).
         
        bool udt = 12 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUdt in interface SingleColumnChangeOrBuilder
        Returns:
        The udt.
      • hasCustomFeatures

        public boolean hasCustomFeatures()
         Optional. Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasCustomFeatures in interface SingleColumnChangeOrBuilder
        Returns:
        Whether the customFeatures field is set.
      • getCustomFeatures

        public com.google.protobuf.Struct getCustomFeatures()
         Optional. Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomFeatures in interface SingleColumnChangeOrBuilder
        Returns:
        The customFeatures.
      • getCustomFeaturesOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Optional. Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomFeaturesOrBuilder in interface SingleColumnChangeOrBuilder
      • getSetValuesList

        public com.google.protobuf.ProtocolStringList getSetValuesList()
         Optional. Specifies the list of values allowed in the column.
         
        repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSetValuesList in interface SingleColumnChangeOrBuilder
        Returns:
        A list containing the setValues.
      • getSetValuesCount

        public int getSetValuesCount()
         Optional. Specifies the list of values allowed in the column.
         
        repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSetValuesCount in interface SingleColumnChangeOrBuilder
        Returns:
        The count of setValues.
      • getSetValues

        public String getSetValues​(int index)
         Optional. Specifies the list of values allowed in the column.
         
        repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSetValues in interface SingleColumnChangeOrBuilder
        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)
         Optional. Specifies the list of values allowed in the column.
         
        repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSetValuesBytes in interface SingleColumnChangeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the setValues at the given index.
      • getComment

        public String getComment()
         Optional. Comment associated with the column.
         
        string comment = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getComment in interface SingleColumnChangeOrBuilder
        Returns:
        The comment.
      • getCommentBytes

        public com.google.protobuf.ByteString getCommentBytes()
         Optional. Comment associated with the column.
         
        string comment = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCommentBytes in interface SingleColumnChangeOrBuilder
        Returns:
        The bytes for comment.
      • 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 SingleColumnChange parseFrom​(ByteBuffer data)
                                            throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<SingleColumnChange> 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 SingleColumnChange getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder