public sealed class CompositeFilter : IMessage<CompositeFilter>, IEquatable<CompositeFilter>, IDeepCloneable<CompositeFilter>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Datastore v1 API class CompositeFilter.
A filter that merges multiple other filters using the given operator.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eCompositeFilter\u003c/code\u003e class within the Google Cloud Datastore V1 API is 4.15.0, but there are many previous versions, all the way back to version 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCompositeFilter\u003c/code\u003e is a class used to merge multiple filters in the Google Cloud Datastore v1 API, as indicated by it implementing \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCompositeFilter\u003c/code\u003e class has two constructors, one default and one that takes another \u003ccode\u003eCompositeFilter\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eIt contains two primary properties: \u003ccode\u003eFilters\u003c/code\u003e, a list of filters to be combined, requiring at least one filter, and \u003ccode\u003eOp\u003c/code\u003e, the operator used to combine these multiple filters.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCompositeFilter\u003c/code\u003e inherits from the \u003ccode\u003eobject\u003c/code\u003e class and it's members, and it's part of the \u003ccode\u003eGoogle.Cloud.Datastore.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Datastore v1 API - Class CompositeFilter (4.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.14.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.14.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.13.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.13.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.12.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.12.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.11.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.11.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.10.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.10.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.9.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.8.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.7.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.6.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.5.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.4.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.3.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.2.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.1.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/4.0.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.5.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.4.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.3.0/Google.Cloud.Datastore.V1.CompositeFilter)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.V1/3.2.0/Google.Cloud.Datastore.V1.CompositeFilter) \n\n public sealed class CompositeFilter : IMessage\u003cCompositeFilter\u003e, IEquatable\u003cCompositeFilter\u003e, IDeepCloneable\u003cCompositeFilter\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Datastore v1 API class CompositeFilter.\n\nA filter that merges multiple other filters using the given operator. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CompositeFilter \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CompositeFilter](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.CompositeFilter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CompositeFilter](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.CompositeFilter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CompositeFilter](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1.CompositeFilter), [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.Datastore.V1](/dotnet/docs/reference/Google.Cloud.Datastore.V1/latest/Google.Cloud.Datastore.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.V1.dll\n\nConstructors\n------------\n\n### CompositeFilter()\n\n public CompositeFilter()\n\n### CompositeFilter(CompositeFilter)\n\n public CompositeFilter(CompositeFilter other)\n\nProperties\n----------\n\n### Filters\n\n public RepeatedField\u003cFilter\u003e Filters { get; }\n\nThe list of filters to combine.\n\nRequires:\n\n- At least one filter is present.\n\n### Op\n\n public CompositeFilter.Types.Operator Op { get; set; }\n\nThe operator for combining multiple filters."]]