Reference documentation and code samples for the Google Cloud Datastore Admin V1 Client 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']
Generated from protobuf messagegoogle.datastore.admin.v1.EntityFilter
Namespace
Google \ Cloud \ Datastore \ Admin \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ kinds
array
If empty, then this represents all kinds.
↳ namespace_ids
array
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.
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.
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-09-04 UTC."],[],[],null,["# Google Cloud Datastore Admin V1 Client - Class EntityFilter (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/cloud-datastore-admin/latest/V1.EntityFilter)\n- [1.0.3](/php/docs/reference/cloud-datastore-admin/1.0.3/V1.EntityFilter)\n- [0.8.5](/php/docs/reference/cloud-datastore-admin/0.8.5/V1.EntityFilter)\n- [0.7.5](/php/docs/reference/cloud-datastore-admin/0.7.5/V1.EntityFilter)\n- [0.6.0](/php/docs/reference/cloud-datastore-admin/0.6.0/V1.EntityFilter)\n- [0.5.8](/php/docs/reference/cloud-datastore-admin/0.5.8/V1.EntityFilter) \nReference documentation and code samples for the Google Cloud Datastore Admin V1 Client 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).\n\nExample usage:\nEntire project:\nkinds=\\[\\], namespace_ids=\\[\\]\nKinds Foo and Bar in all namespaces:\nkinds=\\['Foo', 'Bar'\\], namespace_ids=\\[\\]\nKinds Foo and Bar only in the default namespace:\nkinds=\\['Foo', 'Bar'\\], namespace_ids=\\[''\\]\nKinds Foo and Bar in both the default and Baz namespaces:\nkinds=\\['Foo', 'Bar'\\], namespace_ids=\\['', 'Baz'\\]\nThe entire Baz namespace:\nkinds=\\[\\], namespace_ids=\\['Baz'\\]\n\nGenerated from protobuf message `google.datastore.admin.v1.EntityFilter`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Datastore \\\\ Admin \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKinds\n\nIf empty, then this represents all kinds.\n\n### setKinds\n\nIf empty, then this represents all kinds.\n\n### getNamespaceIds\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.\n\n### setNamespaceIds\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."]]