public sealed class EntityFilter : IMessage<EntityFilter>, IEquatable<EntityFilter>, IDeepCloneable<EntityFilter>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Datastore v1 API class EntityFilter.
Identifies a subset of entities in a project. This is specified as
combinations of kinds and namespaces (either or both of which may be all, as
described in the following examples).
Example usage:
Entire project:
kinds=[], namespace_ids=[]
Kinds Foo and Bar in all namespaces:
kinds=['Foo', 'Bar'], namespace_ids=[]
Kinds Foo and Bar only in the default namespace:
kinds=['Foo', 'Bar'], namespace_ids=['']
Kinds Foo and Bar in both the default and Baz namespaces:
kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
The entire Baz namespace:
kinds=[], namespace_ids=['Baz']
public RepeatedField<string> NamespaceIds { get; }
An empty list represents all namespaces. This is the preferred
usage for projects that don't use namespaces.
An empty string element represents the default namespace. This should be
used if the project has data in non-default namespaces, but doesn't want to
include them.
Each namespace in this list must be unique.
[[["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-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eEntityFilter\u003c/code\u003e class within the Google Cloud Datastore v1 API, which is used to identify a subset of entities within a project by specifying combinations of kinds and namespaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEntityFilter\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Datastore.Admin.V1\u003c/code\u003e namespace and is found in the \u003ccode\u003eGoogle.Cloud.Datastore.Admin.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt offers properties such as \u003ccode\u003eKinds\u003c/code\u003e and \u003ccode\u003eNamespaceIds\u003c/code\u003e, both of which are \u003ccode\u003eRepeatedField<string>\u003c/code\u003e, to define the specific kinds and namespaces to be included in the entity subset.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eEntityFilter\u003c/code\u003e class documentation available is version 2.4.0, with older versions ranging down to version 1.1.0 also being accessible.\u003c/p\u003e\n"],["\u003cp\u003eThe entity filter class implements various interfaces like IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"]]],[],null,["# Cloud Datastore v1 API - Class EntityFilter (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.3.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.2.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.1.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/2.0.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.4.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.3.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.2.0/Google.Cloud.Datastore.Admin.V1.EntityFilter)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/1.1.0/Google.Cloud.Datastore.Admin.V1.EntityFilter) \n\n public sealed class EntityFilter : IMessage\u003cEntityFilter\u003e, IEquatable\u003cEntityFilter\u003e, IDeepCloneable\u003cEntityFilter\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Datastore v1 API class EntityFilter.\n\nIdentifies a subset of entities in a project. This is specified as\ncombinations of kinds and namespaces (either or both of which may be all, as\ndescribed in the following examples).\nExample usage:\n\nEntire project:\nkinds=\\[\\], namespace_ids=\\[\\]\n\nKinds Foo and Bar in all namespaces:\nkinds=\\['Foo', 'Bar'\\], namespace_ids=\\[\\]\n\nKinds Foo and Bar only in the default namespace:\nkinds=\\['Foo', 'Bar'\\], namespace_ids=\\[''\\]\n\nKinds Foo and Bar in both the default and Baz namespaces:\nkinds=\\['Foo', 'Bar'\\], namespace_ids=\\['', 'Baz'\\]\n\nThe entire Baz namespace:\nkinds=\\[\\], namespace_ids=\\['Baz'\\] \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EntityFilter \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EntityFilter](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.EntityFilter), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EntityFilter](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.EntityFilter), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EntityFilter](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1.EntityFilter), [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.Admin.V1](/dotnet/docs/reference/Google.Cloud.Datastore.Admin.V1/latest/Google.Cloud.Datastore.Admin.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Datastore.Admin.V1.dll\n\nConstructors\n------------\n\n### EntityFilter()\n\n public EntityFilter()\n\n### EntityFilter(EntityFilter)\n\n public EntityFilter(EntityFilter other)\n\nProperties\n----------\n\n### Kinds\n\n public RepeatedField\u003cstring\u003e Kinds { get; }\n\nIf empty, then this represents all kinds.\n\n### NamespaceIds\n\n public RepeatedField\u003cstring\u003e NamespaceIds { get; }\n\nAn empty list represents all namespaces. This is the preferred\nusage for projects that don't use namespaces.\n\nAn empty string element represents the default namespace. This should be\nused if the project has data in non-default namespaces, but doesn't want to\ninclude them.\nEach namespace in this list must be unique."]]