public sealed class MappingRuleFilter : IMessage<MappingRuleFilter>, IEquatable<MappingRuleFilter>, IDeepCloneable<MappingRuleFilter>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class MappingRuleFilter.
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.
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)
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eMappingRuleFilter\u003c/code\u003e class is 2.5.0, part of the Google.Cloud.CloudDms.V1 namespace.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMappingRuleFilter\u003c/code\u003e is used to define which entities a mapping rule should apply to, considering multiple fields where matching all fields is required for the rule's application.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows filtering based on specific entity names, including fully qualified names, contained strings, prefixes, and suffixes, as well as by parent entity.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMappingRuleFilter\u003c/code\u003e implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors for creating new instances, including a copy constructor for creating instances from existing \u003ccode\u003eMappingRuleFilter\u003c/code\u003e objects.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class MappingRuleFilter (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.MappingRuleFilter)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.MappingRuleFilter) \n\n public sealed class MappingRuleFilter : IMessage\u003cMappingRuleFilter\u003e, IEquatable\u003cMappingRuleFilter\u003e, IDeepCloneable\u003cMappingRuleFilter\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class MappingRuleFilter.\n\nA filter defining the entities that a mapping rule should be applied to.\nWhen more than one field is specified, the rule is applied only to\nentities which match all the fields. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MappingRuleFilter \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MappingRuleFilter](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MappingRuleFilter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MappingRuleFilter](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MappingRuleFilter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MappingRuleFilter](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MappingRuleFilter), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### MappingRuleFilter()\n\n public MappingRuleFilter()\n\n### MappingRuleFilter(MappingRuleFilter)\n\n public MappingRuleFilter(MappingRuleFilter other)\n\nProperties\n----------\n\n### Entities\n\n public RepeatedField\u003cstring\u003e Entities { get; }\n\nOptional. The rule should be applied to specific entities defined by their\nfully qualified names.\n\n### EntityNameContains\n\n public string EntityNameContains { get; set; }\n\nOptional. The rule should be applied to entities whose non-qualified name\ncontains the given string.\n\n### EntityNamePrefix\n\n public string EntityNamePrefix { get; set; }\n\nOptional. The rule should be applied to entities whose non-qualified name\nstarts with the given prefix.\n\n### EntityNameSuffix\n\n public string EntityNameSuffix { get; set; }\n\nOptional. The rule should be applied to entities whose non-qualified name\nends with the given suffix.\n\n### ParentEntity\n\n public string ParentEntity { get; set; }\n\nOptional. The rule should be applied to entities whose parent entity\n(fully qualified name) matches the given value.\nFor example, if the rule applies to a table entity, the expected value\nshould be a schema (schema). If the rule applies to a column or index\nentity, the expected value can be either a schema (schema) or a table\n(schema.table)"]]