Identifies a subset of entities in a project. This is specified as combinations of kind + namespace (either or both of which may be all, as described in the following examples). Example usage:

Entire project: kinds=[], namespaceIds=[]

Kinds Foo and Bar in all namespaces: kinds=['Foo', 'Bar'], namespaceIds=[]

Kinds Foo and Bar only in the default namespace: kinds=['Foo', 'Bar'], namespaceIds=['']

Kinds Foo and Bar in both the default and Baz namespaces: kinds=['Foo', 'Bar'], namespaceIds=['', 'Baz']

The entire Baz namespace: kinds=[], namespaceIds=['Baz']

JSON representation
  "kinds": [
  "namespaceIds": [


If empty, then this represents all kinds.



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.

Monitor your resources on the go

Get the Google Cloud Console app to help you manage your projects.

Send feedback about...

Cloud Datastore