blob: 6cb6613ba2a5ef5837e13c4f0b949cfc3b00f58a [file] [log] [blame]
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="datastore_v1beta3.html">Cloud Datastore API</a> . <a href="datastore_v1beta3.projects.html">projects</a></h1>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#allocateIds">allocateIds(projectId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070080<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#beginTransaction">beginTransaction(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070082<p class="firstline">Begins a new transaction.</p>
83<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070084 <code><a href="#close">close()</a></code></p>
85<p class="firstline">Close httplib2 connections.</p>
86<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070087 <code><a href="#commit">commit(projectId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Commits a transaction, optionally creating, deleting or modifying some entities.</p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070089<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#lookup">lookup(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070091<p class="firstline">Looks up entities by key.</p>
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#reserveIds">reserveIds(projectId, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Prevents the supplied keys' IDs from being auto-allocated by Cloud Datastore.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070096 <code><a href="#rollback">rollback(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070097<p class="firstline">Rolls back a transaction.</p>
98<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#runQuery">runQuery(projectId, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700100<p class="firstline">Queries for entities.</p>
101<h3>Method Details</h3>
102<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700103 <code class="details" id="allocateIds">allocateIds(projectId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700104 <pre>Allocates IDs for the given keys, which is useful for referencing an entity before it is inserted.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700105
106Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 projectId: string, Required. The ID of the project against which to make the request. (required)
108 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700109 The object takes the form of:
110
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700111{ # The request for Datastore.AllocateIds.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112 &quot;keys&quot;: [ # Required. A list of keys with incomplete key paths for which to allocate IDs. No key may be reserved/read-only.
113 { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700114 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
115 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
116 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
117 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
119 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700120 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700121 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
122 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700123 },
124 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700125 },
126 ],
127 }
128
129 x__xgafv: string, V1 error format.
130 Allowed values
131 1 - v1 error format
132 2 - v2 error format
133
134Returns:
135 An object of the form:
136
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700137 { # The response for Datastore.AllocateIds.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700138 &quot;keys&quot;: [ # The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.
139 { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700140 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
141 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
142 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
143 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700144 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
145 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700146 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700147 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
148 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700149 },
150 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700151 },
152 ],
153 }</pre>
154</div>
155
156<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700157 <code class="details" id="beginTransaction">beginTransaction(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700158 <pre>Begins a new transaction.
159
160Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700161 projectId: string, Required. The ID of the project against which to make the request. (required)
162 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700163 The object takes the form of:
164
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700165{ # The request for Datastore.BeginTransaction.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700166 &quot;transactionOptions&quot;: { # Options for beginning a new transaction. Transactions can be created explicitly with calls to Datastore.BeginTransaction or implicitly by setting ReadOptions.new_transaction in read requests. # Options for a new transaction.
167 &quot;readOnly&quot;: { # Options specific to read-only transactions. # The transaction should only allow reads.
168 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;readWrite&quot;: { # Options specific to read / write transactions. # The transaction should allow both reads and writes.
170 &quot;previousTransaction&quot;: &quot;A String&quot;, # The transaction identifier of the transaction being retried.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700171 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700172 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700173 }
174
175 x__xgafv: string, V1 error format.
176 Allowed values
177 1 - v1 error format
178 2 - v2 error format
179
180Returns:
181 An object of the form:
182
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700183 { # The response for Datastore.BeginTransaction.
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;transaction&quot;: &quot;A String&quot;, # The transaction identifier (always present).
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700185 }</pre>
186</div>
187
188<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700189 <code class="details" id="close">close()</code>
190 <pre>Close httplib2 connections.</pre>
191</div>
192
193<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700194 <code class="details" id="commit">commit(projectId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700195 <pre>Commits a transaction, optionally creating, deleting or modifying some entities.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700196
197Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700198 projectId: string, Required. The ID of the project against which to make the request. (required)
199 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700200 The object takes the form of:
201
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700202{ # The request for Datastore.Commit.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 &quot;mutations&quot;: [ # The mutations to perform. When mode is `TRANSACTIONAL`, mutations affecting a single entity are applied in order. The following sequences of mutations affecting a single entity are not permitted in a single `Commit` request: - `insert` followed by `insert` - `update` followed by `insert` - `upsert` followed by `insert` - `delete` followed by `update` When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single entity.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700204 { # A mutation to apply to an entity.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700205 &quot;upsert&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # The entity to upsert. The entity may or may not already exist. The entity key&#x27;s final path element may be incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700207 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
208 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
209 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
210 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700211 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
212 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700214 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
215 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kim65020912020-05-20 12:08:20 -0700216 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700217 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700218 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700219 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700220 &quot;a_key&quot;: # Object with schema name: Value
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 },
222 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700223 &quot;update&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # The entity to update. The entity must already exist. Must have a complete key path.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700224 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700225 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
226 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
227 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
228 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700229 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
230 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700231 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700232 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
233 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700234 },
235 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700236 },
237 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
238 &quot;a_key&quot;: # Object with schema name: Value
239 },
240 },
241 &quot;insert&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # The entity to insert. The entity must not already exist. The entity key&#x27;s final path element may be incomplete.
242 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700243 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700244 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700245 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700246 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700247 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
248 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
249 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
250 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
251 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
252 },
253 ],
254 },
255 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
256 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700257 },
258 },
259 &quot;delete&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The key of the entity to delete. The entity may or may not already exist. Must have a complete key path and must not be reserved/read-only.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700260 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
261 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
262 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
263 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700264 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
265 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700266 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700267 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
268 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700269 },
270 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700271 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700272 &quot;baseVersion&quot;: &quot;A String&quot;, # The version of the entity that this mutation is being applied to. If this does not match the current version on the server, the mutation conflicts.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700273 },
274 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700275 &quot;mode&quot;: &quot;A String&quot;, # The type of commit to perform. Defaults to `TRANSACTIONAL`.
276 &quot;transaction&quot;: &quot;A String&quot;, # The identifier of the transaction associated with the commit. A transaction identifier is returned by a call to Datastore.BeginTransaction.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700277 }
278
279 x__xgafv: string, V1 error format.
280 Allowed values
281 1 - v1 error format
282 2 - v2 error format
283
284Returns:
285 An object of the form:
286
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700287 { # The response for Datastore.Commit.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700288 &quot;mutationResults&quot;: [ # The result of performing the mutations. The i-th mutation result corresponds to the i-th mutation in the request.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700289 { # The result of applying a mutation.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700290 &quot;conflictDetected&quot;: True or False, # Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
291 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The automatically allocated key. Set only when the mutation allocated a key.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700292 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
293 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
294 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
295 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700296 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
297 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700298 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700299 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
300 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 },
302 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700303 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304 &quot;version&quot;: &quot;A String&quot;, # The version of the entity on the server after processing the mutation. If the mutation doesn&#x27;t change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700305 },
306 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700307 &quot;indexUpdates&quot;: 42, # The number of index entries updated during the commit, or zero if none were updated.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700308 }</pre>
309</div>
310
311<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700312 <code class="details" id="lookup">lookup(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700313 <pre>Looks up entities by key.
314
315Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700316 projectId: string, Required. The ID of the project against which to make the request. (required)
317 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700318 The object takes the form of:
319
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700320{ # The request for Datastore.Lookup.
Bu Sun Kim65020912020-05-20 12:08:20 -0700321 &quot;keys&quot;: [ # Required. Keys of entities to look up.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700322 { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700323 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
324 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
325 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
326 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700327 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
328 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700329 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700330 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
331 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700332 },
333 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700334 },
335 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700336 &quot;readOptions&quot;: { # The options shared by read requests. # The options for this lookup request.
337 &quot;readConsistency&quot;: &quot;A String&quot;, # The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries.
338 &quot;transaction&quot;: &quot;A String&quot;, # The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
339 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700340 }
341
342 x__xgafv: string, V1 error format.
343 Allowed values
344 1 - v1 error format
345 2 - v2 error format
346
347Returns:
348 An object of the form:
349
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700350 { # The response for Datastore.Lookup.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700351 &quot;missing&quot;: [ # Entities not found as `ResultType.KEY_ONLY` entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.
352 { # The result of fetching an entity from Datastore.
353 &quot;cursor&quot;: &quot;A String&quot;, # A cursor that points to the position after the result entity. Set only when the `EntityResult` is part of a `QueryResultBatch` message.
354 &quot;version&quot;: &quot;A String&quot;, # The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for `FULL` entity results. For missing entities in `LookupResponse`, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads.
355 &quot;entity&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # The resulting entity.
356 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
357 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
358 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
359 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
360 },
361 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
362 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
363 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
364 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
365 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
366 },
367 ],
368 },
369 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
370 &quot;a_key&quot;: # Object with schema name: Value
371 },
372 },
373 },
374 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700375 &quot;found&quot;: [ # Entities found as `ResultType.FULL` entities. The order of results in this field is undefined and has no relation to the order of the keys in the input.
376 { # The result of fetching an entity from Datastore.
377 &quot;cursor&quot;: &quot;A String&quot;, # A cursor that points to the position after the result entity. Set only when the `EntityResult` is part of a `QueryResultBatch` message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700378 &quot;version&quot;: &quot;A String&quot;, # The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for `FULL` entity results. For missing entities in `LookupResponse`, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700379 &quot;entity&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # The resulting entity.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700380 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700381 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
382 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
383 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
384 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700385 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
386 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700387 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700388 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
389 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700390 },
391 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700392 },
393 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
394 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700395 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700396 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700397 },
398 ],
399 &quot;deferred&quot;: [ # A list of keys that were not looked up due to resource constraints. The order of results in this field is undefined and has no relation to the order of the keys in the input.
400 { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700401 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
402 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
403 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
404 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700405 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
406 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700407 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700408 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
409 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700410 },
411 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700412 },
413 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700414 }</pre>
415</div>
416
417<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700418 <code class="details" id="reserveIds">reserveIds(projectId, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700419 <pre>Prevents the supplied keys&#x27; IDs from being auto-allocated by Cloud Datastore.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700420
421Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700422 projectId: string, Required. The ID of the project against which to make the request. (required)
423 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700424 The object takes the form of:
425
426{ # The request for Datastore.ReserveIds.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700427 &quot;keys&quot;: [ # Required. A list of keys with complete key paths whose numeric IDs should not be auto-allocated.
428 { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700429 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
430 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
431 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
432 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700433 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
434 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700435 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700436 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
437 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700438 },
439 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 },
441 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;databaseId&quot;: &quot;A String&quot;, # If not empty, the ID of the database against which to make the request.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700443 }
444
445 x__xgafv: string, V1 error format.
446 Allowed values
447 1 - v1 error format
448 2 - v2 error format
449
450Returns:
451 An object of the form:
452
453 { # The response for Datastore.ReserveIds.
454 }</pre>
455</div>
456
457<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700458 <code class="details" id="rollback">rollback(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700459 <pre>Rolls back a transaction.
460
461Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700462 projectId: string, Required. The ID of the project against which to make the request. (required)
463 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700464 The object takes the form of:
465
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700466{ # The request for Datastore.Rollback.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700467 &quot;transaction&quot;: &quot;A String&quot;, # Required. The transaction identifier, returned by a call to Datastore.BeginTransaction.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700468 }
469
470 x__xgafv: string, V1 error format.
471 Allowed values
472 1 - v1 error format
473 2 - v2 error format
474
475Returns:
476 An object of the form:
477
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700478 { # The response for Datastore.Rollback. (an empty message).
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700479 }</pre>
480</div>
481
482<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700483 <code class="details" id="runQuery">runQuery(projectId, body=None, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700484 <pre>Queries for entities.
485
486Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700487 projectId: string, Required. The ID of the project against which to make the request. (required)
488 body: object, The request body.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700489 The object takes the form of:
490
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700491{ # The request for Datastore.RunQuery.
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;query&quot;: { # A query for entities. # The query to run.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700493 &quot;startCursor&quot;: &quot;A String&quot;, # A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700494 &quot;kind&quot;: [ # The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 { # A representation of a kind.
496 &quot;name&quot;: &quot;A String&quot;, # The name of the kind.
497 },
498 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700499 &quot;distinctOn&quot;: [ # The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned).
500 { # A reference to a property relative to the kind expressions.
501 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
502 },
503 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700504 &quot;endCursor&quot;: &quot;A String&quot;, # An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
505 &quot;order&quot;: [ # The order to apply to the query results (if empty, order is unspecified).
506 { # The desired order for a specific property.
507 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
508 &quot;property&quot;: { # A reference to a property relative to the kind expressions. # The property to order by.
509 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
510 },
511 },
512 ],
513 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be &gt;= 0 if specified.
514 &quot;filter&quot;: { # A holder for any type of filter. # The filter to apply.
515 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
516 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
517 # Object with schema name: Filter
518 ],
519 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
520 },
521 &quot;propertyFilter&quot;: { # A filter on a specific property. # A filter on a property.
522 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
523 &quot;property&quot;: { # A reference to a property relative to the kind expressions. # The property to filter by.
524 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
525 },
526 &quot;value&quot;: { # A message that can hold any of the supported value types and associated metadata. # The value to compare the property to.
527 &quot;doubleValue&quot;: 3.14, # A double value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700528 &quot;stringValue&quot;: &quot;A String&quot;, # A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700529 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
530 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
531 &quot;entityValue&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # An entity value. - May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key.
532 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
533 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
534 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
535 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
536 },
537 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
538 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
539 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
540 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
541 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
542 },
543 ],
544 },
545 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
546 &quot;a_key&quot;: # Object with schema name: Value
547 },
548 },
549 &quot;keyValue&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # A key value.
550 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
551 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
552 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
553 },
554 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
555 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
556 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
557 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
558 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
559 },
560 ],
561 },
562 &quot;blobValue&quot;: &quot;A String&quot;, # A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
563 &quot;meaning&quot;: 42, # The `meaning` field should only be populated for backwards compatibility.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700564 &quot;geoPointValue&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
565 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
566 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
567 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700568 &quot;excludeFromIndexes&quot;: True or False, # If the value should be excluded from all indexes including those defined explicitly.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 &quot;booleanValue&quot;: True or False, # A boolean value.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700570 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700571 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot contain another array value. A `Value` instance that sets field `array_value` must not set fields `meaning` or `exclude_from_indexes`.
572 &quot;values&quot;: [ # Values in the array. The order of values in an array is preserved as long as all values have identical settings for &#x27;exclude_from_indexes&#x27;.
573 # Object with schema name: Value
574 ],
575 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700576 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700577 },
578 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700579 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be &gt;= 0 if specified.
580 &quot;projection&quot;: [ # The projection to return. Defaults to returning all properties.
581 { # A representation of a property in a projection.
582 &quot;property&quot;: { # A reference to a property relative to the kind expressions. # The property to project.
583 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
584 },
585 },
586 ],
587 },
588 &quot;readOptions&quot;: { # The options shared by read requests. # The options for this query.
589 &quot;readConsistency&quot;: &quot;A String&quot;, # The non-transactional read consistency to use. Cannot be set to `STRONG` for global queries.
590 &quot;transaction&quot;: &quot;A String&quot;, # The identifier of the transaction in which to read. A transaction identifier is returned by a call to Datastore.BeginTransaction.
591 },
592 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, identified by a partition ID. Queries are scoped to a single partition. This partition ID is normalized with the standard default context partition ID.
593 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
594 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
595 },
596 &quot;gqlQuery&quot;: { # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). # The GQL query to run.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700597 &quot;allowLiterals&quot;: True or False, # When false, the query string must not contain any literals and instead must bind all values. For example, `SELECT * FROM Kind WHERE a = &#x27;string literal&#x27;` is not allowed, while `SELECT * FROM Kind WHERE a = @value` is.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700598 &quot;queryString&quot;: &quot;A String&quot;, # A string of the format described [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700599 &quot;positionalBindings&quot;: [ # Numbered binding site @1 references the first numbered parameter, effectively using 1-based indexing, rather than the usual 0. For each binding site numbered i in `query_string`, there must be an i-th numbered parameter. The inverse must also be true.
600 { # A binding parameter for a GQL query.
601 &quot;value&quot;: { # A message that can hold any of the supported value types and associated metadata. # A value parameter.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700602 &quot;doubleValue&quot;: 3.14, # A double value.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700603 &quot;stringValue&quot;: &quot;A String&quot;, # A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700604 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
605 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
606 &quot;entityValue&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # An entity value. - May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key.
607 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
608 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
609 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
610 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
611 },
612 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
613 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
614 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
615 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
616 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
617 },
618 ],
619 },
620 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
621 &quot;a_key&quot;: # Object with schema name: Value
622 },
623 },
624 &quot;keyValue&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # A key value.
625 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
626 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
627 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
628 },
629 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
630 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
631 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
632 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
633 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
634 },
635 ],
636 },
637 &quot;blobValue&quot;: &quot;A String&quot;, # A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
638 &quot;meaning&quot;: 42, # The `meaning` field should only be populated for backwards compatibility.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700639 &quot;geoPointValue&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
640 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
641 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
642 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700643 &quot;excludeFromIndexes&quot;: True or False, # If the value should be excluded from all indexes including those defined explicitly.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700644 &quot;booleanValue&quot;: True or False, # A boolean value.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700645 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700646 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot contain another array value. A `Value` instance that sets field `array_value` must not set fields `meaning` or `exclude_from_indexes`.
647 &quot;values&quot;: [ # Values in the array. The order of values in an array is preserved as long as all values have identical settings for &#x27;exclude_from_indexes&#x27;.
648 # Object with schema name: Value
649 ],
650 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700651 },
652 &quot;cursor&quot;: &quot;A String&quot;, # A query cursor. Query cursors are returned in query result batches.
653 },
654 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700655 &quot;namedBindings&quot;: { # For each non-reserved named binding site in the query string, there must be a named parameter with that name, but not necessarily the inverse. Key must match regex `A-Za-z_$*`, must not match regex `__.*__`, and must not be `&quot;&quot;`.
656 &quot;a_key&quot;: { # A binding parameter for a GQL query.
657 &quot;value&quot;: { # A message that can hold any of the supported value types and associated metadata. # A value parameter.
658 &quot;doubleValue&quot;: 3.14, # A double value.
659 &quot;stringValue&quot;: &quot;A String&quot;, # A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
660 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
661 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
662 &quot;entityValue&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # An entity value. - May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key.
663 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
664 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
665 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
666 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
667 },
668 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
669 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
670 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
671 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
672 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
673 },
674 ],
675 },
676 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
677 &quot;a_key&quot;: # Object with schema name: Value
678 },
679 },
680 &quot;keyValue&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # A key value.
681 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
682 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
683 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
684 },
685 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
686 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
687 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
688 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
689 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
690 },
691 ],
692 },
693 &quot;blobValue&quot;: &quot;A String&quot;, # A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
694 &quot;meaning&quot;: 42, # The `meaning` field should only be populated for backwards compatibility.
695 &quot;geoPointValue&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
696 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
697 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
698 },
699 &quot;excludeFromIndexes&quot;: True or False, # If the value should be excluded from all indexes including those defined explicitly.
700 &quot;booleanValue&quot;: True or False, # A boolean value.
701 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
702 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot contain another array value. A `Value` instance that sets field `array_value` must not set fields `meaning` or `exclude_from_indexes`.
703 &quot;values&quot;: [ # Values in the array. The order of values in an array is preserved as long as all values have identical settings for &#x27;exclude_from_indexes&#x27;.
704 # Object with schema name: Value
705 ],
706 },
707 },
708 &quot;cursor&quot;: &quot;A String&quot;, # A query cursor. Query cursors are returned in query result batches.
709 },
710 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700711 },
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700712 }
713
714 x__xgafv: string, V1 error format.
715 Allowed values
716 1 - v1 error format
717 2 - v2 error format
718
719Returns:
720 An object of the form:
721
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700722 { # The response for Datastore.RunQuery.
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;query&quot;: { # A query for entities. # The parsed form of the `GqlQuery` from the request, if it was set.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700724 &quot;startCursor&quot;: &quot;A String&quot;, # A starting point for the query results. Query cursors are returned in query result batches and [can only be used to continue the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700725 &quot;kind&quot;: [ # The kinds to query (if empty, returns entities of all kinds). Currently at most 1 kind may be specified.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700726 { # A representation of a kind.
727 &quot;name&quot;: &quot;A String&quot;, # The name of the kind.
728 },
729 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700730 &quot;distinctOn&quot;: [ # The properties to make distinct. The query results will contain the first result for each distinct combination of values for the given properties (if empty, all results are returned).
731 { # A reference to a property relative to the kind expressions.
732 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
733 },
734 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700735 &quot;endCursor&quot;: &quot;A String&quot;, # An ending point for the query results. Query cursors are returned in query result batches and [can only be used to limit the same query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets).
736 &quot;order&quot;: [ # The order to apply to the query results (if empty, order is unspecified).
737 { # The desired order for a specific property.
738 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
739 &quot;property&quot;: { # A reference to a property relative to the kind expressions. # The property to order by.
740 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
741 },
742 },
743 ],
744 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Optional. Unspecified is interpreted as no limit. Must be &gt;= 0 if specified.
745 &quot;filter&quot;: { # A holder for any type of filter. # The filter to apply.
746 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
747 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
748 # Object with schema name: Filter
749 ],
750 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
751 },
752 &quot;propertyFilter&quot;: { # A filter on a specific property. # A filter on a property.
753 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
754 &quot;property&quot;: { # A reference to a property relative to the kind expressions. # The property to filter by.
755 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
756 },
757 &quot;value&quot;: { # A message that can hold any of the supported value types and associated metadata. # The value to compare the property to.
758 &quot;doubleValue&quot;: 3.14, # A double value.
759 &quot;stringValue&quot;: &quot;A String&quot;, # A UTF-8 encoded string value. When `exclude_from_indexes` is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
760 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
761 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
762 &quot;entityValue&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # An entity value. - May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key.
763 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
764 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
765 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
766 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
767 },
768 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
769 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
770 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
771 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
772 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
773 },
774 ],
775 },
776 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
777 &quot;a_key&quot;: # Object with schema name: Value
778 },
779 },
780 &quot;keyValue&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # A key value.
781 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
782 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
783 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
784 },
785 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
786 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
787 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
788 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
789 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
790 },
791 ],
792 },
793 &quot;blobValue&quot;: &quot;A String&quot;, # A blob value. May have at most 1,000,000 bytes. When `exclude_from_indexes` is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
794 &quot;meaning&quot;: 42, # The `meaning` field should only be populated for backwards compatibility.
795 &quot;geoPointValue&quot;: { # An object representing a latitude/longitude pair. This is expressed as a pair of doubles representing degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
796 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
797 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
798 },
799 &quot;excludeFromIndexes&quot;: True or False, # If the value should be excluded from all indexes including those defined explicitly.
800 &quot;booleanValue&quot;: True or False, # A boolean value.
801 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
802 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot contain another array value. A `Value` instance that sets field `array_value` must not set fields `meaning` or `exclude_from_indexes`.
803 &quot;values&quot;: [ # Values in the array. The order of values in an array is preserved as long as all values have identical settings for &#x27;exclude_from_indexes&#x27;.
804 # Object with schema name: Value
805 ],
806 },
807 },
808 },
809 },
810 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Optional. Must be &gt;= 0 if specified.
811 &quot;projection&quot;: [ # The projection to return. Defaults to returning all properties.
812 { # A representation of a property in a projection.
813 &quot;property&quot;: { # A reference to a property relative to the kind expressions. # The property to project.
814 &quot;name&quot;: &quot;A String&quot;, # The name of the property. If name includes &quot;.&quot;s, it may be interpreted as a property name path.
815 },
816 },
817 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700818 },
819 &quot;batch&quot;: { # A batch of results produced by a query. # A batch of query results (always present).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700820 &quot;snapshotVersion&quot;: &quot;A String&quot;, # The version number of the snapshot this batch was returned from. This applies to the range of results from the query&#x27;s `start_cursor` (or the beginning of the query if no cursor was given) to this batch&#x27;s `end_cursor` (not the query&#x27;s `end_cursor`). In a single transaction, subsequent query result batches for the same query can have a greater snapshot version number. Each batch&#x27;s snapshot version is valid for all preceding batches. The value will be zero for eventually consistent queries.
821 &quot;skippedCursor&quot;: &quot;A String&quot;, # A cursor that points to the position after the last skipped result. Will be set when `skipped_results` != 0.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700822 &quot;entityResults&quot;: [ # The results for this batch.
823 { # The result of fetching an entity from Datastore.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700824 &quot;cursor&quot;: &quot;A String&quot;, # A cursor that points to the position after the result entity. Set only when the `EntityResult` is part of a `QueryResultBatch` message.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700825 &quot;version&quot;: &quot;A String&quot;, # The version of the entity, a strictly positive number that monotonically increases with changes to the entity. This field is set for `FULL` entity results. For missing entities in `LookupResponse`, this is the version of the snapshot that was used to look up the entity, and it is always set except for eventually consistent reads.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700826 &quot;entity&quot;: { # A Datastore data object. An entity is limited to 1 megabyte when stored. That _roughly_ corresponds to a limit of 1 megabyte for the serialized form of this message. # The resulting entity.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700827 &quot;key&quot;: { # A unique identifier for an entity. If a key&#x27;s partition ID or any of its path kinds or names are reserved/read-only, the key is reserved/read-only. A reserved/read-only key is forbidden in certain documented contexts. # The entity&#x27;s key. An entity must have a key, unless otherwise documented (for example, an entity in `Value.entity_value` may have no key). An entity&#x27;s kind is its key path&#x27;s last element&#x27;s kind, or null if it has no key.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700828 &quot;partitionId&quot;: { # A partition ID identifies a grouping of entities. The grouping is always by project and namespace, however the namespace ID may be empty. A partition ID contains several dimensions: project ID and namespace ID. Partition dimensions: - May be `&quot;&quot;`. - Must be valid UTF-8 bytes. - Must have values that match regex `[A-Za-z\d\.\-_]{1,100}` If the value of any dimension matches regex `__.*__`, the partition is reserved/read-only. A reserved/read-only partition ID is forbidden in certain documented contexts. Foreign partition IDs (in which the project ID does not match the context project ID ) are discouraged. Reads and writes of foreign partition IDs may fail if the project is not in an active state. # Entities are partitioned into subsets, currently identified by a project ID and namespace ID. Queries are scoped to a single partition.
829 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project to which the entities belong.
830 &quot;namespaceId&quot;: &quot;A String&quot;, # If not empty, the ID of the namespace to which the entities belong.
831 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700832 &quot;path&quot;: [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a _root entity_, the second element identifies a _child_ of the root entity, the third element identifies a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element&#x27;s _ancestors_. An entity path is always fully complete: *all* of the entity&#x27;s ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. For example, the last path element of the key of `Mutation.insert` may have no identifier. A path can never be empty, and a path can have at most 100 elements.
833 { # A (kind, ID/name) pair used to construct a key path. If either name or ID is set, the element is complete. If neither is set, the element is incomplete.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700834 &quot;name&quot;: &quot;A String&quot;, # The name of the entity. A name matching regex `__.*__` is reserved/read-only. A name must not be more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700835 &quot;kind&quot;: &quot;A String&quot;, # The kind of the entity. A kind matching regex `__.*__` is reserved/read-only. A kind must not contain more than 1500 bytes when UTF-8 encoded. Cannot be `&quot;&quot;`.
836 &quot;id&quot;: &quot;A String&quot;, # The auto-allocated ID of the entity. Never equal to zero. Values less than zero are discouraged and may not be supported in the future.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700837 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700838 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700839 },
840 &quot;properties&quot;: { # The entity&#x27;s properties. The map&#x27;s keys are property names. A property name matching regex `__.*__` is reserved. A reserved property name is forbidden in certain documented contexts. The name must not contain more than 500 characters. The name cannot be `&quot;&quot;`.
841 &quot;a_key&quot;: # Object with schema name: Value
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700842 },
843 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700844 },
845 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700846 &quot;skippedResults&quot;: 42, # The number of results skipped, typically because of an offset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700847 &quot;moreResults&quot;: &quot;A String&quot;, # The state of the query after the current batch.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700848 &quot;endCursor&quot;: &quot;A String&quot;, # A cursor that points to the position after the last result in the batch.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700849 &quot;entityResultType&quot;: &quot;A String&quot;, # The result type for every entity in `entity_results`.
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700850 },
851 }</pre>
852</div>
853
854</body></html>