Class MultiColumnDatatypeChange

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

    public final class MultiColumnDatatypeChange
    extends com.google.protobuf.GeneratedMessageV3
    implements MultiColumnDatatypeChangeOrBuilder
     Options to configure rule type MultiColumnDatatypeChange.
     The rule is used to change the data type and associated properties of
     multiple columns at once.
    
     The rule filter field can refer to one or more entities.
    
     The rule scope can be one of:Column.
    
     This rule requires additional filters to be specified beyond the basic rule
     filter field, which is the source data type, but the rule supports additional
     filtering capabilities such as the minimum and maximum field length. All
     additional filters which are specified are required to be met in order for
     the rule to be applied (logical AND between the fields).
     
    Protobuf type google.cloud.clouddms.v1.MultiColumnDatatypeChange
    See Also:
    Serialized Form
    • Field Detail

      • SOURCE_DATA_TYPE_FILTER_FIELD_NUMBER

        public static final int SOURCE_DATA_TYPE_FILTER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_TEXT_FILTER_FIELD_NUMBER

        public static final int SOURCE_TEXT_FILTER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SOURCE_NUMERIC_FILTER_FIELD_NUMBER

        public static final int SOURCE_NUMERIC_FILTER_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NEW_DATA_TYPE_FIELD_NUMBER

        public static final int NEW_DATA_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OVERRIDE_LENGTH_FIELD_NUMBER

        public static final int OVERRIDE_LENGTH_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OVERRIDE_SCALE_FIELD_NUMBER

        public static final int OVERRIDE_SCALE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OVERRIDE_PRECISION_FIELD_NUMBER

        public static final int OVERRIDE_PRECISION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OVERRIDE_FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER

        public static final int OVERRIDE_FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CUSTOM_FEATURES_FIELD_NUMBER

        public static final int CUSTOM_FEATURES_FIELD_NUMBER
        See Also:
        Constant Field Values
    • 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
      • getSourceDataTypeFilterBytes

        public com.google.protobuf.ByteString getSourceDataTypeFilterBytes()
         Required. Filter on source data type.
         
        string source_data_type_filter = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getSourceDataTypeFilterBytes in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The bytes for sourceDataTypeFilter.
      • hasSourceTextFilter

        public boolean hasSourceTextFilter()
         Optional. Filter for text-based data types like varchar.
         
        .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSourceTextFilter in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        Whether the sourceTextFilter field is set.
      • getSourceTextFilter

        public SourceTextFilter getSourceTextFilter()
         Optional. Filter for text-based data types like varchar.
         
        .google.cloud.clouddms.v1.SourceTextFilter source_text_filter = 100 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSourceTextFilter in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The sourceTextFilter.
      • hasSourceNumericFilter

        public boolean hasSourceNumericFilter()
         Optional. Filter for fixed point number data types such as
         NUMERIC/NUMBER.
         
        .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSourceNumericFilter in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        Whether the sourceNumericFilter field is set.
      • getSourceNumericFilter

        public SourceNumericFilter getSourceNumericFilter()
         Optional. Filter for fixed point number data types such as
         NUMERIC/NUMBER.
         
        .google.cloud.clouddms.v1.SourceNumericFilter source_numeric_filter = 101 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSourceNumericFilter in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The sourceNumericFilter.
      • getNewDataTypeBytes

        public com.google.protobuf.ByteString getNewDataTypeBytes()
         Required. New data type.
         
        string new_data_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNewDataTypeBytes in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The bytes for newDataType.
      • getOverrideLength

        public long getOverrideLength()
         Optional. Column length - e.g. varchar (50) - if not specified and relevant
         uses the source column length.
         
        int64 override_length = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOverrideLength in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The overrideLength.
      • getOverrideScale

        public int getOverrideScale()
         Optional. Column scale - when relevant - if not specified and relevant
         uses the source column scale.
         
        int32 override_scale = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOverrideScale in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The overrideScale.
      • getOverridePrecision

        public int getOverridePrecision()
         Optional. Column precision - when relevant - if not specified and relevant
         uses the source column precision.
         
        int32 override_precision = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOverridePrecision in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The overridePrecision.
      • getOverrideFractionalSecondsPrecision

        public int getOverrideFractionalSecondsPrecision()
         Optional. Column fractional seconds precision - used only for timestamp
         based datatypes - if not specified and relevant uses the source column
         fractional seconds precision.
         
        int32 override_fractional_seconds_precision = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getOverrideFractionalSecondsPrecision in interface MultiColumnDatatypeChangeOrBuilder
        Returns:
        The overrideFractionalSecondsPrecision.
      • hasCustomFeatures

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

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

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Optional. Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 7 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getCustomFeaturesOrBuilder in interface MultiColumnDatatypeChangeOrBuilder
      • 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 MultiColumnDatatypeChange parseFrom​(ByteBuffer data)
                                                   throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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