Class MappingRuleFilter.Builder

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

    public static final class MappingRuleFilter.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MappingRuleFilter.Builder>
    implements MappingRuleFilterOrBuilder
     A filter defining the entities that a mapping rule should be applied to.
     When more than one field is specified, the rule is applied only to
     entities which match all the fields.
     
    Protobuf type google.cloud.clouddms.v1.MappingRuleFilter
    • 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<MappingRuleFilter.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public MappingRuleFilter.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<MappingRuleFilter.Builder>
        Throws:
        IOException
      • getParentEntity

        public String getParentEntity()
         Optional. The rule should be applied to entities whose parent entity
         (fully qualified name) matches the given value.
         For example, if the rule applies to a table entity, the expected value
         should be a schema (schema). If the rule applies to a column or index
         entity, the expected value can be either a schema (schema) or a table
         (schema.table)
         
        string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getParentEntity in interface MappingRuleFilterOrBuilder
        Returns:
        The parentEntity.
      • getParentEntityBytes

        public com.google.protobuf.ByteString getParentEntityBytes()
         Optional. The rule should be applied to entities whose parent entity
         (fully qualified name) matches the given value.
         For example, if the rule applies to a table entity, the expected value
         should be a schema (schema). If the rule applies to a column or index
         entity, the expected value can be either a schema (schema) or a table
         (schema.table)
         
        string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getParentEntityBytes in interface MappingRuleFilterOrBuilder
        Returns:
        The bytes for parentEntity.
      • setParentEntity

        public MappingRuleFilter.Builder setParentEntity​(String value)
         Optional. The rule should be applied to entities whose parent entity
         (fully qualified name) matches the given value.
         For example, if the rule applies to a table entity, the expected value
         should be a schema (schema). If the rule applies to a column or index
         entity, the expected value can be either a schema (schema) or a table
         (schema.table)
         
        string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The parentEntity to set.
        Returns:
        This builder for chaining.
      • clearParentEntity

        public MappingRuleFilter.Builder clearParentEntity()
         Optional. The rule should be applied to entities whose parent entity
         (fully qualified name) matches the given value.
         For example, if the rule applies to a table entity, the expected value
         should be a schema (schema). If the rule applies to a column or index
         entity, the expected value can be either a schema (schema) or a table
         (schema.table)
         
        string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setParentEntityBytes

        public MappingRuleFilter.Builder setParentEntityBytes​(com.google.protobuf.ByteString value)
         Optional. The rule should be applied to entities whose parent entity
         (fully qualified name) matches the given value.
         For example, if the rule applies to a table entity, the expected value
         should be a schema (schema). If the rule applies to a column or index
         entity, the expected value can be either a schema (schema) or a table
         (schema.table)
         
        string parent_entity = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for parentEntity to set.
        Returns:
        This builder for chaining.
      • getEntityNamePrefix

        public String getEntityNamePrefix()
         Optional. The rule should be applied to entities whose non-qualified name
         starts with the given prefix.
         
        string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntityNamePrefix in interface MappingRuleFilterOrBuilder
        Returns:
        The entityNamePrefix.
      • getEntityNamePrefixBytes

        public com.google.protobuf.ByteString getEntityNamePrefixBytes()
         Optional. The rule should be applied to entities whose non-qualified name
         starts with the given prefix.
         
        string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntityNamePrefixBytes in interface MappingRuleFilterOrBuilder
        Returns:
        The bytes for entityNamePrefix.
      • setEntityNamePrefix

        public MappingRuleFilter.Builder setEntityNamePrefix​(String value)
         Optional. The rule should be applied to entities whose non-qualified name
         starts with the given prefix.
         
        string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The entityNamePrefix to set.
        Returns:
        This builder for chaining.
      • clearEntityNamePrefix

        public MappingRuleFilter.Builder clearEntityNamePrefix()
         Optional. The rule should be applied to entities whose non-qualified name
         starts with the given prefix.
         
        string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setEntityNamePrefixBytes

        public MappingRuleFilter.Builder setEntityNamePrefixBytes​(com.google.protobuf.ByteString value)
         Optional. The rule should be applied to entities whose non-qualified name
         starts with the given prefix.
         
        string entity_name_prefix = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for entityNamePrefix to set.
        Returns:
        This builder for chaining.
      • getEntityNameSuffix

        public String getEntityNameSuffix()
         Optional. The rule should be applied to entities whose non-qualified name
         ends with the given suffix.
         
        string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntityNameSuffix in interface MappingRuleFilterOrBuilder
        Returns:
        The entityNameSuffix.
      • getEntityNameSuffixBytes

        public com.google.protobuf.ByteString getEntityNameSuffixBytes()
         Optional. The rule should be applied to entities whose non-qualified name
         ends with the given suffix.
         
        string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntityNameSuffixBytes in interface MappingRuleFilterOrBuilder
        Returns:
        The bytes for entityNameSuffix.
      • setEntityNameSuffix

        public MappingRuleFilter.Builder setEntityNameSuffix​(String value)
         Optional. The rule should be applied to entities whose non-qualified name
         ends with the given suffix.
         
        string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The entityNameSuffix to set.
        Returns:
        This builder for chaining.
      • clearEntityNameSuffix

        public MappingRuleFilter.Builder clearEntityNameSuffix()
         Optional. The rule should be applied to entities whose non-qualified name
         ends with the given suffix.
         
        string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setEntityNameSuffixBytes

        public MappingRuleFilter.Builder setEntityNameSuffixBytes​(com.google.protobuf.ByteString value)
         Optional. The rule should be applied to entities whose non-qualified name
         ends with the given suffix.
         
        string entity_name_suffix = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for entityNameSuffix to set.
        Returns:
        This builder for chaining.
      • getEntityNameContains

        public String getEntityNameContains()
         Optional. The rule should be applied to entities whose non-qualified name
         contains the given string.
         
        string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntityNameContains in interface MappingRuleFilterOrBuilder
        Returns:
        The entityNameContains.
      • getEntityNameContainsBytes

        public com.google.protobuf.ByteString getEntityNameContainsBytes()
         Optional. The rule should be applied to entities whose non-qualified name
         contains the given string.
         
        string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntityNameContainsBytes in interface MappingRuleFilterOrBuilder
        Returns:
        The bytes for entityNameContains.
      • setEntityNameContains

        public MappingRuleFilter.Builder setEntityNameContains​(String value)
         Optional. The rule should be applied to entities whose non-qualified name
         contains the given string.
         
        string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The entityNameContains to set.
        Returns:
        This builder for chaining.
      • clearEntityNameContains

        public MappingRuleFilter.Builder clearEntityNameContains()
         Optional. The rule should be applied to entities whose non-qualified name
         contains the given string.
         
        string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setEntityNameContainsBytes

        public MappingRuleFilter.Builder setEntityNameContainsBytes​(com.google.protobuf.ByteString value)
         Optional. The rule should be applied to entities whose non-qualified name
         contains the given string.
         
        string entity_name_contains = 4 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for entityNameContains to set.
        Returns:
        This builder for chaining.
      • getEntitiesList

        public com.google.protobuf.ProtocolStringList getEntitiesList()
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntitiesList in interface MappingRuleFilterOrBuilder
        Returns:
        A list containing the entities.
      • getEntitiesCount

        public int getEntitiesCount()
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntitiesCount in interface MappingRuleFilterOrBuilder
        Returns:
        The count of entities.
      • getEntities

        public String getEntities​(int index)
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntities in interface MappingRuleFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The entities at the given index.
      • getEntitiesBytes

        public com.google.protobuf.ByteString getEntitiesBytes​(int index)
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getEntitiesBytes in interface MappingRuleFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the entities at the given index.
      • setEntities

        public MappingRuleFilter.Builder setEntities​(int index,
                                                     String value)
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The entities to set.
        Returns:
        This builder for chaining.
      • addEntities

        public MappingRuleFilter.Builder addEntities​(String value)
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The entities to add.
        Returns:
        This builder for chaining.
      • addAllEntities

        public MappingRuleFilter.Builder addAllEntities​(Iterable<String> values)
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The entities to add.
        Returns:
        This builder for chaining.
      • clearEntities

        public MappingRuleFilter.Builder clearEntities()
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addEntitiesBytes

        public MappingRuleFilter.Builder addEntitiesBytes​(com.google.protobuf.ByteString value)
         Optional. The rule should be applied to specific entities defined by their
         fully qualified names.
         
        repeated string entities = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the entities to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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