blob: ee7ffe36c93f522c1f0ef8d9a31f45a1cb147865 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -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
75<h1><a href="firestore_v1.html">Cloud Firestore API</a> . <a href="firestore_v1.projects.html">projects</a> . <a href="firestore_v1.projects.databases.html">databases</a> . <a href="firestore_v1.projects.databases.documents.html">documents</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchGet">batchGet(database, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070079<p class="firstline">Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070080<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#batchWrite">batchWrite(database, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write per document. Each write succeeds or fails independently. See the BatchWriteResponse for the success status of each write. If you require an atomically applied set of writes, use Commit instead.</p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -070083<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#beginTransaction">beginTransaction(database, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Starts a new transaction.</p>
86<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070087 <code><a href="#close">close()</a></code></p>
88<p class="firstline">Close httplib2 connections.</p>
89<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070090 <code><a href="#commit">commit(database, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091<p class="firstline">Commits a transaction, while optionally updating documents.</p>
92<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080093 <code><a href="#createDocument">createDocument(parent, collectionId, body=None, documentId=None, mask_fieldPaths=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Creates a new document.</p>
95<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080096 <code><a href="#delete">delete(name, currentDocument_exists=None, currentDocument_updateTime=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Deletes a document.</p>
98<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080099 <code><a href="#get">get(name, mask_fieldPaths=None, readTime=None, transaction=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Gets a single document.</p>
101<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800102 <code><a href="#list">list(parent, collectionId, mask_fieldPaths=None, orderBy=None, pageSize=None, pageToken=None, readTime=None, showMissing=None, transaction=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Lists documents.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#listCollectionIds">listCollectionIds(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Lists all the collection IDs underneath a document.</p>
107<p class="toc_element">
108 <code><a href="#listCollectionIds_next">listCollectionIds_next(previous_request, previous_response)</a></code></p>
109<p class="firstline">Retrieves the next page of results.</p>
110<p class="toc_element">
111 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
112<p class="firstline">Retrieves the next page of results.</p>
113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#listen">listen(database, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<p class="firstline">Listens to changes.</p>
116<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700117 <code><a href="#partitionQuery">partitionQuery(parent, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700118<p class="firstline">Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting/end points for the query results.</p>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700119<p class="toc_element">
120 <code><a href="#partitionQuery_next">partitionQuery_next(previous_request, previous_response)</a></code></p>
121<p class="firstline">Retrieves the next page of results.</p>
122<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800123 <code><a href="#patch">patch(name, body=None, currentDocument_exists=None, currentDocument_updateTime=None, mask_fieldPaths=None, updateMask_fieldPaths=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124<p class="firstline">Updates or inserts a document.</p>
125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#rollback">rollback(database, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127<p class="firstline">Rolls back a transaction.</p>
128<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700129 <code><a href="#runQuery">runQuery(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700130<p class="firstline">Runs a query.</p>
131<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700132 <code><a href="#write">write(database, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700133<p class="firstline">Streams batches of document updates and deletes, in order.</p>
134<h3>Method Details</h3>
135<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700136 <code class="details" id="batchGet">batchGet(database, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700137 <pre>Gets multiple documents. Documents returned by this method are not guaranteed to be returned in the same order that they were requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700138
139Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700140 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700141 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700142 The object takes the form of:
143
144{ # The request for Firestore.BatchGetDocuments.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800145 &quot;documents&quot;: [ # The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.
146 &quot;A String&quot;,
147 ],
148 &quot;mask&quot;: { # A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value. # The fields to return. If not set, returns all fields. If a document has a field that is not present in this mask, that field will not be returned in the response.
149 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800150 &quot;A String&quot;,
151 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800152 },
153 &quot;newTransaction&quot;: { # Options for creating a new transaction. # Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
154 &quot;readOnly&quot;: { # Options for a transaction that can only be used to read documents. # The transaction can only be used for read operations.
155 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents at the given time. This may not be older than 60 seconds.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800156 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 &quot;readWrite&quot;: { # Options for a transaction that can be used to read and write documents. # The transaction can be used for both read and write operations.
158 &quot;retryTransaction&quot;: &quot;A String&quot;, # An optional transaction to retry.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800159 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800160 },
161 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents as they were at the given time. This may not be older than 270 seconds.
162 &quot;transaction&quot;: &quot;A String&quot;, # Reads documents in a transaction.
163}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700164
165 x__xgafv: string, V1 error format.
166 Allowed values
167 1 - v1 error format
168 2 - v2 error format
169
170Returns:
171 An object of the form:
172
173 { # The streamed response for Firestore.BatchGetDocuments.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800174 &quot;found&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document that was requested.
175 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
176 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
177 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700178 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
179 &quot;values&quot;: [ # Values in the array.
180 # Object with schema name: Value
181 ],
182 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800183 &quot;booleanValue&quot;: True or False, # A boolean value.
184 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
185 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700186 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
188 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
189 },
190 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
191 &quot;mapValue&quot;: { # A map value. # A map value.
192 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
193 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800194 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700195 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800196 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
197 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
198 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
199 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800201 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800202 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
203 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
204 },
205 &quot;missing&quot;: &quot;A String&quot;, # A document name that was requested but does not exist. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
206 &quot;readTime&quot;: &quot;A String&quot;, # The time at which the document was read. This may be monotically increasing, in this case the previous documents in the result stream are guaranteed not to have changed between their read_time and this one.
207 &quot;transaction&quot;: &quot;A String&quot;, # The transaction that was started as part of this request. Will only be set in the first response, and only if BatchGetDocumentsRequest.new_transaction was set in the request.
208}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700209</div>
210
211<div class="method">
212 <code class="details" id="batchWrite">batchWrite(database, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 <pre>Applies a batch of write operations. The BatchWrite method does not apply the write operations atomically and can apply them out of order. Method does not allow more than one write per document. Each write succeeds or fails independently. See the BatchWriteResponse for the success status of each write. If you require an atomically applied set of writes, use Commit instead.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700214
215Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700216 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700217 body: object, The request body.
218 The object takes the form of:
219
220{ # The request for Firestore.BatchWrite.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800221 &quot;labels&quot;: { # Labels associated with this batch write.
222 &quot;a_key&quot;: &quot;A String&quot;,
223 },
224 &quot;writes&quot;: [ # The writes to apply. Method does not apply writes atomically and does not guarantee ordering. Each write succeeds or fails independently. You cannot write to the same document more than once per request.
225 { # A write on a document.
226 &quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
227 &quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700228 &quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800229 },
230 &quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
231 &quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
232 &quot;document&quot;: &quot;A String&quot;, # The name of the document to transform.
233 &quot;fieldTransforms&quot;: [ # The list of transformations to apply to the fields of the document, in order. This must not be empty.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800234 { # A transformation of a field of the document.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800235 &quot;appendMissingElements&quot;: { # An array value. # Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
236 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700237 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800238 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800239 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800240 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800241 &quot;increment&quot;: { # A message that can hold any of the supported value types. # Adds the given value to the field&#x27;s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
yoshi-code-bot312da312021-09-21 00:22:28 -0700242 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
243 &quot;values&quot;: [ # Values in the array.
244 # Object with schema name: Value
245 ],
246 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800247 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800248 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800249 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700250 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800251 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
252 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
253 },
254 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800255 &quot;mapValue&quot;: { # A map value. # A map value.
256 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
257 &quot;a_key&quot;: # Object with schema name: Value
258 },
259 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800260 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
261 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
262 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
263 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
264 },
265 &quot;maximum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700266 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
267 &quot;values&quot;: [ # Values in the array.
268 # Object with schema name: Value
269 ],
270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 &quot;booleanValue&quot;: True or False, # A boolean value.
272 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
273 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700274 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800275 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
276 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
277 },
278 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
279 &quot;mapValue&quot;: { # A map value. # A map value.
280 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
281 &quot;a_key&quot;: # Object with schema name: Value
282 },
283 },
284 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
285 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
286 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
287 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
288 },
289 &quot;minimum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700290 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
291 &quot;values&quot;: [ # Values in the array.
292 # Object with schema name: Value
293 ],
294 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800295 &quot;booleanValue&quot;: True or False, # A boolean value.
296 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
297 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700298 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
300 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
301 },
302 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
303 &quot;mapValue&quot;: { # A map value. # A map value.
304 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
305 &quot;a_key&quot;: # Object with schema name: Value
306 },
307 },
308 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
309 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
310 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
311 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800312 },
313 &quot;removeAllFromArray&quot;: { # An array value. # Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
314 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700315 # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800316 ],
317 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800318 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
319 },
320 ],
321 },
322 &quot;update&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document to write.
323 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
324 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
325 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700326 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
327 &quot;values&quot;: [ # Values in the array.
328 # Object with schema name: Value
329 ],
330 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800331 &quot;booleanValue&quot;: True or False, # A boolean value.
332 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
333 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700334 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800335 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
336 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
337 },
338 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
339 &quot;mapValue&quot;: { # A map value. # A map value.
340 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
341 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800342 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800343 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800344 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
345 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
346 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
347 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800348 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800349 },
350 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
351 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
352 },
353 &quot;updateMask&quot;: { # A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value. # The fields to update in this write. This field can be set only when the operation is `update`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
354 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
355 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800356 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700357 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800358 &quot;updateTransforms&quot;: [ # The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
359 { # A transformation of a field of the document.
360 &quot;appendMissingElements&quot;: { # An array value. # Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
361 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700362 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800363 ],
364 },
365 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
366 &quot;increment&quot;: { # A message that can hold any of the supported value types. # Adds the given value to the field&#x27;s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
yoshi-code-bot312da312021-09-21 00:22:28 -0700367 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
368 &quot;values&quot;: [ # Values in the array.
369 # Object with schema name: Value
370 ],
371 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800372 &quot;booleanValue&quot;: True or False, # A boolean value.
373 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
374 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700375 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800376 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
377 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
378 },
379 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
380 &quot;mapValue&quot;: { # A map value. # A map value.
381 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
382 &quot;a_key&quot;: # Object with schema name: Value
383 },
384 },
385 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
386 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
387 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
388 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
389 },
390 &quot;maximum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700391 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
392 &quot;values&quot;: [ # Values in the array.
393 # Object with schema name: Value
394 ],
395 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800396 &quot;booleanValue&quot;: True or False, # A boolean value.
397 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
398 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700399 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
401 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
402 },
403 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
404 &quot;mapValue&quot;: { # A map value. # A map value.
405 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
406 &quot;a_key&quot;: # Object with schema name: Value
407 },
408 },
409 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
410 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
411 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
412 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
413 },
414 &quot;minimum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700415 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
416 &quot;values&quot;: [ # Values in the array.
417 # Object with schema name: Value
418 ],
419 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800420 &quot;booleanValue&quot;: True or False, # A boolean value.
421 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
422 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700423 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800424 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
425 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
426 },
427 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
428 &quot;mapValue&quot;: { # A map value. # A map value.
429 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
430 &quot;a_key&quot;: # Object with schema name: Value
431 },
432 },
433 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
434 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
435 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
436 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
437 },
438 &quot;removeAllFromArray&quot;: { # An array value. # Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
439 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700440 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800441 ],
442 },
443 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
444 },
445 ],
446 },
447 ],
448}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700449
450 x__xgafv: string, V1 error format.
451 Allowed values
452 1 - v1 error format
453 2 - v2 error format
454
455Returns:
456 An object of the form:
457
458 { # The response from Firestore.BatchWrite.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800459 &quot;status&quot;: [ # The status of applying the writes. This i-th write status corresponds to the i-th write in the request.
460 { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).
461 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
462 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
463 {
464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
465 },
466 ],
467 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
468 },
469 ],
470 &quot;writeResults&quot;: [ # The result of applying the writes. This i-th write result corresponds to the i-th write in the request.
471 { # The result of applying a write.
472 &quot;transformResults&quot;: [ # The results of applying each DocumentTransform.FieldTransform, in the same order.
473 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700474 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
475 &quot;values&quot;: [ # Values in the array.
476 # Object with schema name: Value
477 ],
478 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800479 &quot;booleanValue&quot;: True or False, # A boolean value.
480 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
481 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700482 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800483 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
484 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
485 },
486 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
487 &quot;mapValue&quot;: { # A map value. # A map value.
488 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
489 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800490 },
491 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800492 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
493 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
494 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
495 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
496 },
497 ],
498 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the document after applying the write. Not set after a `delete`. If the write did not actually change the document, this will be the previous update_time.
499 },
500 ],
501}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700502</div>
503
504<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700505 <code class="details" id="beginTransaction">beginTransaction(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506 <pre>Starts a new transaction.
507
508Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700509 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700510 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700511 The object takes the form of:
512
513{ # The request for Firestore.BeginTransaction.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800514 &quot;options&quot;: { # Options for creating a new transaction. # The options for the transaction. Defaults to a read-write transaction.
515 &quot;readOnly&quot;: { # Options for a transaction that can only be used to read documents. # The transaction can only be used for read operations.
516 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents at the given time. This may not be older than 60 seconds.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700517 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800518 &quot;readWrite&quot;: { # Options for a transaction that can be used to read and write documents. # The transaction can be used for both read and write operations.
519 &quot;retryTransaction&quot;: &quot;A String&quot;, # An optional transaction to retry.
520 },
521 },
522}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700523
524 x__xgafv: string, V1 error format.
525 Allowed values
526 1 - v1 error format
527 2 - v2 error format
528
529Returns:
530 An object of the form:
531
532 { # The response for Firestore.BeginTransaction.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800533 &quot;transaction&quot;: &quot;A String&quot;, # The transaction that was started.
534}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700535</div>
536
537<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700538 <code class="details" id="close">close()</code>
539 <pre>Close httplib2 connections.</pre>
540</div>
541
542<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700543 <code class="details" id="commit">commit(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700544 <pre>Commits a transaction, while optionally updating documents.
545
546Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700547 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700548 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549 The object takes the form of:
550
551{ # The request for Firestore.Commit.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800552 &quot;transaction&quot;: &quot;A String&quot;, # If set, applies all writes in this transaction, and commits it.
553 &quot;writes&quot;: [ # The writes to apply. Always executed atomically and in order.
554 { # A write on a document.
555 &quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
556 &quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700557 &quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800558 },
559 &quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
560 &quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
561 &quot;document&quot;: &quot;A String&quot;, # The name of the document to transform.
562 &quot;fieldTransforms&quot;: [ # The list of transformations to apply to the fields of the document, in order. This must not be empty.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800563 { # A transformation of a field of the document.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800564 &quot;appendMissingElements&quot;: { # An array value. # Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
565 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700566 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800567 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800568 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800569 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800570 &quot;increment&quot;: { # A message that can hold any of the supported value types. # Adds the given value to the field&#x27;s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
yoshi-code-bot312da312021-09-21 00:22:28 -0700571 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
572 &quot;values&quot;: [ # Values in the array.
573 # Object with schema name: Value
574 ],
575 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800576 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800577 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800578 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700579 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800580 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
581 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
582 },
583 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800584 &quot;mapValue&quot;: { # A map value. # A map value.
585 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
586 &quot;a_key&quot;: # Object with schema name: Value
587 },
588 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800589 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
590 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
591 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
592 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
593 },
594 &quot;maximum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700595 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
596 &quot;values&quot;: [ # Values in the array.
597 # Object with schema name: Value
598 ],
599 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800600 &quot;booleanValue&quot;: True or False, # A boolean value.
601 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
602 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700603 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800604 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
605 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
606 },
607 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
608 &quot;mapValue&quot;: { # A map value. # A map value.
609 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
610 &quot;a_key&quot;: # Object with schema name: Value
611 },
612 },
613 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
614 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
615 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
616 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
617 },
618 &quot;minimum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700619 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
620 &quot;values&quot;: [ # Values in the array.
621 # Object with schema name: Value
622 ],
623 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800624 &quot;booleanValue&quot;: True or False, # A boolean value.
625 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
626 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700627 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800628 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
629 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
630 },
631 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
632 &quot;mapValue&quot;: { # A map value. # A map value.
633 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
634 &quot;a_key&quot;: # Object with schema name: Value
635 },
636 },
637 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
638 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
639 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
640 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800641 },
642 &quot;removeAllFromArray&quot;: { # An array value. # Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
643 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700644 # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800645 ],
646 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800647 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
648 },
649 ],
650 },
651 &quot;update&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document to write.
652 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
653 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
654 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700655 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
656 &quot;values&quot;: [ # Values in the array.
657 # Object with schema name: Value
658 ],
659 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800660 &quot;booleanValue&quot;: True or False, # A boolean value.
661 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
662 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700663 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800664 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
665 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
666 },
667 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
668 &quot;mapValue&quot;: { # A map value. # A map value.
669 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
670 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800671 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800672 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800673 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
674 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
675 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
676 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800677 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800678 },
679 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
680 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
681 },
682 &quot;updateMask&quot;: { # A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value. # The fields to update in this write. This field can be set only when the operation is `update`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
683 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
684 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800685 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800687 &quot;updateTransforms&quot;: [ # The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
688 { # A transformation of a field of the document.
689 &quot;appendMissingElements&quot;: { # An array value. # Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
690 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700691 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800692 ],
693 },
694 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
695 &quot;increment&quot;: { # A message that can hold any of the supported value types. # Adds the given value to the field&#x27;s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
yoshi-code-bot312da312021-09-21 00:22:28 -0700696 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
697 &quot;values&quot;: [ # Values in the array.
698 # Object with schema name: Value
699 ],
700 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800701 &quot;booleanValue&quot;: True or False, # A boolean value.
702 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
703 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700704 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800705 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
706 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
707 },
708 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
709 &quot;mapValue&quot;: { # A map value. # A map value.
710 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
711 &quot;a_key&quot;: # Object with schema name: Value
712 },
713 },
714 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
715 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
716 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
717 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
718 },
719 &quot;maximum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700720 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
721 &quot;values&quot;: [ # Values in the array.
722 # Object with schema name: Value
723 ],
724 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800725 &quot;booleanValue&quot;: True or False, # A boolean value.
726 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
727 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700728 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800729 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
730 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
731 },
732 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
733 &quot;mapValue&quot;: { # A map value. # A map value.
734 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
735 &quot;a_key&quot;: # Object with schema name: Value
736 },
737 },
738 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
739 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
740 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
741 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
742 },
743 &quot;minimum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -0700744 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
745 &quot;values&quot;: [ # Values in the array.
746 # Object with schema name: Value
747 ],
748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800749 &quot;booleanValue&quot;: True or False, # A boolean value.
750 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
751 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700752 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800753 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
754 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
755 },
756 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
757 &quot;mapValue&quot;: { # A map value. # A map value.
758 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
759 &quot;a_key&quot;: # Object with schema name: Value
760 },
761 },
762 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
763 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
764 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
765 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
766 },
767 &quot;removeAllFromArray&quot;: { # An array value. # Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
768 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -0700769 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800770 ],
771 },
772 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
773 },
774 ],
775 },
776 ],
777}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700778
779 x__xgafv: string, V1 error format.
780 Allowed values
781 1 - v1 error format
782 2 - v2 error format
783
784Returns:
785 An object of the form:
786
787 { # The response for Firestore.Commit.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800788 &quot;commitTime&quot;: &quot;A String&quot;, # The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the commit.
789 &quot;writeResults&quot;: [ # The result of applying the writes. This i-th write result corresponds to the i-th write in the request.
790 { # The result of applying a write.
791 &quot;transformResults&quot;: [ # The results of applying each DocumentTransform.FieldTransform, in the same order.
792 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700793 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
794 &quot;values&quot;: [ # Values in the array.
795 # Object with schema name: Value
796 ],
797 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800798 &quot;booleanValue&quot;: True or False, # A boolean value.
799 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
800 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700801 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800802 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
803 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
804 },
805 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
806 &quot;mapValue&quot;: { # A map value. # A map value.
807 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
808 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700809 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700810 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800811 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
812 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
813 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
814 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
815 },
816 ],
817 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the document after applying the write. Not set after a `delete`. If the write did not actually change the document, this will be the previous update_time.
818 },
819 ],
820}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700821</div>
822
823<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800824 <code class="details" id="createDocument">createDocument(parent, collectionId, body=None, documentId=None, mask_fieldPaths=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700825 <pre>Creates a new document.
826
827Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700828 parent: string, Required. The parent resource. For example: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700829 collectionId: string, Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`. (required)
830 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 The object takes the form of:
832
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700833{ # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800834 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800835 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
836 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700837 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
838 &quot;values&quot;: [ # Values in the array.
839 # Object with schema name: Value
840 ],
841 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800842 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800843 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800844 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700845 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800846 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
847 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
848 },
849 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800850 &quot;mapValue&quot;: { # A map value. # A map value.
851 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
852 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800853 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800854 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800855 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
856 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
857 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
858 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700859 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800860 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800861 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800862 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800863}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800865 documentId: string, The client-assigned document ID to use for this document. Optional. If not specified, an ID will be assigned by the service.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800866 mask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700867 x__xgafv: string, V1 error format.
868 Allowed values
869 1 - v1 error format
870 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700871
872Returns:
873 An object of the form:
874
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700875 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800876 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
877 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
878 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700879 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
880 &quot;values&quot;: [ # Values in the array.
881 # Object with schema name: Value
882 ],
883 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800884 &quot;booleanValue&quot;: True or False, # A boolean value.
885 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
886 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700887 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800888 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
889 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
890 },
891 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
892 &quot;mapValue&quot;: { # A map value. # A map value.
893 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
894 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800895 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700896 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800897 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
898 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
899 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
900 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800901 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800902 },
903 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
904 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
905}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700906</div>
907
908<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800909 <code class="details" id="delete">delete(name, currentDocument_exists=None, currentDocument_updateTime=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 <pre>Deletes a document.
911
912Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700913 name: string, Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800914 currentDocument_exists: boolean, When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700915 currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700916 x__xgafv: string, V1 error format.
917 Allowed values
918 1 - v1 error format
919 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700920
921Returns:
922 An object of the form:
923
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700924 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800925}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700926</div>
927
928<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800929 <code class="details" id="get">get(name, mask_fieldPaths=None, readTime=None, transaction=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700930 <pre>Gets a single document.
931
932Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700933 name: string, Required. The resource name of the Document to get. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. (required)
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800934 mask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800935 readTime: string, Reads the version of the document at the given time. This may not be older than 270 seconds.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800936 transaction: string, Reads the document in a transaction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700937 x__xgafv: string, V1 error format.
938 Allowed values
939 1 - v1 error format
940 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700941
942Returns:
943 An object of the form:
944
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700945 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800946 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
947 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
948 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -0700949 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
950 &quot;values&quot;: [ # Values in the array.
951 # Object with schema name: Value
952 ],
953 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800954 &quot;booleanValue&quot;: True or False, # A boolean value.
955 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
956 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700957 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800958 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
959 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
960 },
961 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
962 &quot;mapValue&quot;: { # A map value. # A map value.
963 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
964 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800965 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700966 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800967 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
968 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
969 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
970 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800971 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800972 },
973 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
974 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
975}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700976</div>
977
978<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800979 <code class="details" id="list">list(parent, collectionId, mask_fieldPaths=None, orderBy=None, pageSize=None, pageToken=None, readTime=None, showMissing=None, transaction=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700980 <pre>Lists documents.
981
982Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700983 parent: string, Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` (required)
984 collectionId: string, Required. The collection ID, relative to `parent`, to list. For example: `chatrooms` or `messages`. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800985 mask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800986 orderBy: string, The order to sort results by. For example: `priority desc, name`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800987 pageSize: integer, The maximum number of documents to return.
988 pageToken: string, The `next_page_token` value returned from a previous List request, if any.
989 readTime: string, Reads documents as they were at the given time. This may not be older than 270 seconds.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800990 showMissing: boolean, If the list should show missing documents. A missing document is a document that does not exist but has sub-documents. These documents will be returned with a key but will not have fields, Document.create_time, or Document.update_time set. Requests with `show_missing` may not specify `where` or `order_by`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800991 transaction: string, Reads documents in a transaction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700992 x__xgafv: string, V1 error format.
993 Allowed values
994 1 - v1 error format
995 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700996
997Returns:
998 An object of the form:
999
1000 { # The response for Firestore.ListDocuments.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001001 &quot;documents&quot;: [ # The Documents found.
1002 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
1003 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
1004 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
1005 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001006 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1007 &quot;values&quot;: [ # Values in the array.
1008 # Object with schema name: Value
1009 ],
1010 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001011 &quot;booleanValue&quot;: True or False, # A boolean value.
1012 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1013 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001014 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001015 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1016 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1017 },
1018 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1019 &quot;mapValue&quot;: { # A map value. # A map value.
1020 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1021 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001022 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001023 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001024 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1025 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1026 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1027 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001028 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001029 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001030 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1031 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
1032 },
1033 ],
1034 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token.
1035}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001036</div>
1037
1038<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001039 <code class="details" id="listCollectionIds">listCollectionIds(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 <pre>Lists all the collection IDs underneath a document.
1041
1042Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001043 parent: string, Required. The parent document. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045 The object takes the form of:
1046
1047{ # The request for Firestore.ListCollectionIds.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001048 &quot;pageSize&quot;: 42, # The maximum number of results to return.
1049 &quot;pageToken&quot;: &quot;A String&quot;, # A page token. Must be a value from ListCollectionIdsResponse.
1050}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001051
1052 x__xgafv: string, V1 error format.
1053 Allowed values
1054 1 - v1 error format
1055 2 - v2 error format
1056
1057Returns:
1058 An object of the form:
1059
1060 { # The response from Firestore.ListCollectionIds.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001061 &quot;collectionIds&quot;: [ # The collection ids.
1062 &quot;A String&quot;,
1063 ],
1064 &quot;nextPageToken&quot;: &quot;A String&quot;, # A page token that may be used to continue the list.
1065}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001066</div>
1067
1068<div class="method">
1069 <code class="details" id="listCollectionIds_next">listCollectionIds_next(previous_request, previous_response)</code>
1070 <pre>Retrieves the next page of results.
1071
1072Args:
1073 previous_request: The request for the previous page. (required)
1074 previous_response: The response from the request for the previous page. (required)
1075
1076Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001077 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001078 page. Returns None if there are no more items in the collection.
1079 </pre>
1080</div>
1081
1082<div class="method">
1083 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1084 <pre>Retrieves the next page of results.
1085
1086Args:
1087 previous_request: The request for the previous page. (required)
1088 previous_response: The response from the request for the previous page. (required)
1089
1090Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001091 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001092 page. Returns None if there are no more items in the collection.
1093 </pre>
1094</div>
1095
1096<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001097 <code class="details" id="listen">listen(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001098 <pre>Listens to changes.
1099
1100Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001101 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001102 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103 The object takes the form of:
1104
1105{ # A request for Firestore.Listen
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001106 &quot;addTarget&quot;: { # A specification of a set of documents to listen to. # A target to add to this stream.
1107 &quot;documents&quot;: { # A target specified by a set of documents names. # A target specified by a set of document names.
1108 &quot;documents&quot;: [ # The names of the documents to retrieve. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`. The request will fail if any of the document is not a child resource of the given `database`. Duplicate names will be elided.
1109 &quot;A String&quot;,
1110 ],
1111 },
1112 &quot;once&quot;: True or False, # If the target should be removed once it is current and consistent.
1113 &quot;query&quot;: { # A target specified by a query. # A target specified by a query.
1114 &quot;parent&quot;: &quot;A String&quot;, # The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
1115 &quot;structuredQuery&quot;: { # A Firestore query. # A structured query.
1116 &quot;endAt&quot;: { # A position in a query result set. # A end point for the query results.
1117 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1118 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1119 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001120 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1121 &quot;values&quot;: [ # Values in the array.
1122 # Object with schema name: Value
1123 ],
1124 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001125 &quot;booleanValue&quot;: True or False, # A boolean value.
1126 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1127 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001128 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001129 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1130 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1131 },
1132 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1133 &quot;mapValue&quot;: { # A map value. # A map value.
1134 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1135 &quot;a_key&quot;: # Object with schema name: Value
1136 },
1137 },
1138 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1139 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1140 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1141 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1142 },
1143 ],
1144 },
1145 &quot;from&quot;: [ # The collections to query.
1146 { # A selection of a collection, such as `messages as m1`.
1147 &quot;allDescendants&quot;: True or False, # When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections.
1148 &quot;collectionId&quot;: &quot;A String&quot;, # The collection ID. When set, selects only collections with this ID.
1149 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001150 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001151 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Must be &gt;= 0 if specified.
1152 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Must be &gt;= 0 if specified.
1153 &quot;orderBy&quot;: [ # The order to apply to the query results. Firestore guarantees a stable ordering through the following rules: * Any field required to appear in `order_by`, that is not already specified in `order_by`, is appended to the order in field name order by default. * If an order on `__name__` is not specified, it is appended by default. Fields are appended with the same sort direction as the last order specified, or &#x27;ASCENDING&#x27; if no order was specified. For example: * `SELECT * FROM Foo ORDER BY A` becomes `SELECT * FROM Foo ORDER BY A, __name__` * `SELECT * FROM Foo ORDER BY A DESC` becomes `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A &gt; 1` becomes `SELECT * FROM Foo WHERE A &gt; 1 ORDER BY A, __name__`
1154 { # An order on a field.
1155 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
1156 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to order by.
1157 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001158 },
1159 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001160 ],
1161 &quot;select&quot;: { # The projection of document&#x27;s fields to return. # The projection to return.
1162 &quot;fields&quot;: [ # The fields to return. If empty, all fields are returned. To only return the name of the document, use `[&#x27;__name__&#x27;]`.
1163 { # A reference to a field, such as `max(messages.time) as max_time`.
1164 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001165 },
1166 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001167 },
1168 &quot;startAt&quot;: { # A position in a query result set. # A starting point for the query results.
1169 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1170 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1171 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001172 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1173 &quot;values&quot;: [ # Values in the array.
1174 # Object with schema name: Value
1175 ],
1176 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001177 &quot;booleanValue&quot;: True or False, # A boolean value.
1178 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1179 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001180 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001181 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1182 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1183 },
1184 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1185 &quot;mapValue&quot;: { # A map value. # A map value.
1186 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1187 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001188 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001189 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001190 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1191 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1192 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1193 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001194 },
1195 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001196 },
1197 &quot;where&quot;: { # A filter. # The filter to apply.
1198 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
1199 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
1200 # Object with schema name: Filter
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001201 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001202 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
1203 },
1204 &quot;fieldFilter&quot;: { # A filter on a specific field. # A filter on a document field.
1205 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to filter by.
1206 &quot;fieldPath&quot;: &quot;A String&quot;,
1207 },
1208 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
1209 &quot;value&quot;: { # A message that can hold any of the supported value types. # The value to compare to.
yoshi-code-bot312da312021-09-21 00:22:28 -07001210 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1211 &quot;values&quot;: [ # Values in the array.
1212 # Object with schema name: Value
1213 ],
1214 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001215 &quot;booleanValue&quot;: True or False, # A boolean value.
1216 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1217 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001218 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001219 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1220 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1221 },
1222 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1223 &quot;mapValue&quot;: { # A map value. # A map value.
1224 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1225 &quot;a_key&quot;: # Object with schema name: Value
1226 },
1227 },
1228 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1229 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1230 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1231 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1232 },
1233 },
1234 &quot;unaryFilter&quot;: { # A filter with a single operand. # A filter that takes exactly one argument.
1235 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to which to apply the operator.
1236 &quot;fieldPath&quot;: &quot;A String&quot;,
1237 },
1238 &quot;op&quot;: &quot;A String&quot;, # The unary operator to apply.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001239 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001240 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001241 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001242 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001243 &quot;readTime&quot;: &quot;A String&quot;, # Start listening after a specific `read_time`. The client must know the state of matching documents at this time.
1244 &quot;resumeToken&quot;: &quot;A String&quot;, # A resume token from a prior TargetChange for an identical target. Using a resume token with a different target is unsupported and may fail.
1245 &quot;targetId&quot;: 42, # The target ID that identifies the target on the stream. Must be a positive number and non-zero.
1246 },
1247 &quot;labels&quot;: { # Labels associated with this target change.
1248 &quot;a_key&quot;: &quot;A String&quot;,
1249 },
1250 &quot;removeTarget&quot;: 42, # The ID of a target to remove from this stream.
1251}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001252
1253 x__xgafv: string, V1 error format.
1254 Allowed values
1255 1 - v1 error format
1256 2 - v2 error format
1257
1258Returns:
1259 An object of the form:
1260
1261 { # The response for Firestore.Listen.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001262 &quot;documentChange&quot;: { # A Document has changed. May be the result of multiple writes, including deletes, that ultimately resulted in a new value for the Document. Multiple DocumentChange messages may be returned for the same logical change, if multiple targets are affected. # A Document has changed.
1263 &quot;document&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # The new state of the Document. If `mask` is set, contains only fields that were updated or added.
1264 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
1265 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
1266 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001267 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1268 &quot;values&quot;: [ # Values in the array.
1269 # Object with schema name: Value
1270 ],
1271 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001272 &quot;booleanValue&quot;: True or False, # A boolean value.
1273 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1274 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001275 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001276 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1277 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1278 },
1279 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1280 &quot;mapValue&quot;: { # A map value. # A map value.
1281 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1282 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001283 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001284 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001285 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1286 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1287 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1288 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001289 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001290 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1292 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001293 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001294 &quot;removedTargetIds&quot;: [ # A set of target IDs for targets that no longer match this document.
1295 42,
1296 ],
1297 &quot;targetIds&quot;: [ # A set of target IDs of targets that match this document.
1298 42,
1299 ],
1300 },
1301 &quot;documentDelete&quot;: { # A Document has been deleted. May be the result of multiple writes, including updates, the last of which deleted the Document. Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected. # A Document has been deleted.
1302 &quot;document&quot;: &quot;A String&quot;, # The resource name of the Document that was deleted.
1303 &quot;readTime&quot;: &quot;A String&quot;, # The read timestamp at which the delete was observed. Greater or equal to the `commit_time` of the delete.
1304 &quot;removedTargetIds&quot;: [ # A set of target IDs for targets that previously matched this entity.
1305 42,
1306 ],
1307 },
1308 &quot;documentRemove&quot;: { # A Document has been removed from the view of the targets. Sent if the document is no longer relevant to a target and is out of view. Can be sent instead of a DocumentDelete or a DocumentChange if the server can not send the new value of the document. Multiple DocumentRemove messages may be returned for the same logical write or delete, if multiple targets are affected. # A Document has been removed from a target (because it is no longer relevant to that target).
1309 &quot;document&quot;: &quot;A String&quot;, # The resource name of the Document that has gone out of view.
1310 &quot;readTime&quot;: &quot;A String&quot;, # The read timestamp at which the remove was observed. Greater or equal to the `commit_time` of the change/delete/remove.
1311 &quot;removedTargetIds&quot;: [ # A set of target IDs for targets that previously matched this document.
1312 42,
1313 ],
1314 },
1315 &quot;filter&quot;: { # A digest of all the documents that match a given target. # A filter to apply to the set of documents previously returned for the given target. Returned when documents may have been removed from the given target, but the exact documents are unknown.
1316 &quot;count&quot;: 42, # The total count of documents that match target_id. If different from the count of documents in the client that match, the client must manually determine which documents no longer match the target.
1317 &quot;targetId&quot;: 42, # The target ID to which this filter applies.
1318 },
1319 &quot;targetChange&quot;: { # Targets being watched have changed. # Targets have changed.
1320 &quot;cause&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error that resulted in this change, if applicable.
1321 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1322 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1323 {
1324 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1325 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001326 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001327 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001328 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001329 &quot;readTime&quot;: &quot;A String&quot;, # The consistent `read_time` for the given `target_ids` (omitted when the target_ids are not at a consistent snapshot). The stream is guaranteed to send a `read_time` with `target_ids` empty whenever the entire stream reaches a new consistent snapshot. ADD, CURRENT, and RESET messages are guaranteed to (eventually) result in a new consistent snapshot (while NO_CHANGE and REMOVE messages are not). For a given stream, `read_time` is guaranteed to be monotonically increasing.
1330 &quot;resumeToken&quot;: &quot;A String&quot;, # A token that can be used to resume the stream for the given `target_ids`, or all targets if `target_ids` is empty. Not set on every target change.
1331 &quot;targetChangeType&quot;: &quot;A String&quot;, # The type of change that occurred.
1332 &quot;targetIds&quot;: [ # The target IDs of targets that have changed. If empty, the change applies to all targets. The order of the target IDs is not defined.
1333 42,
1334 ],
1335 },
1336}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337</div>
1338
1339<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001340 <code class="details" id="partitionQuery">partitionQuery(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001341 <pre>Partitions a query by returning partition cursors that can be used to run the query in parallel. The returned partition cursors are split points that can be used by RunQuery as starting/end points for the query results.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001342
1343Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001344 parent: string, Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents`. Document resource names are not supported; only database resource names can be specified. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001345 body: object, The request body.
1346 The object takes the form of:
1347
1348{ # The request for Firestore.PartitionQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001349 &quot;pageSize&quot;: 42, # The maximum number of partitions to return in this call, subject to `partition_count`. For example, if `partition_count` = 10 and `page_size` = 8, the first call to PartitionQuery will return up to 8 partitions and a `next_page_token` if more results exist. A second call to PartitionQuery will return up to 2 partitions, to complete the total of 10 specified in `partition_count`.
1350 &quot;pageToken&quot;: &quot;A String&quot;, # The `next_page_token` value returned from a previous call to PartitionQuery that may be used to get an additional set of results. There are no ordering guarantees between sets of results. Thus, using multiple sets of results will require merging the different result sets. For example, two subsequent calls using a page_token may return: * cursor B, cursor M, cursor Q * cursor A, cursor U, cursor W To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
1351 &quot;partitionCount&quot;: &quot;A String&quot;, # The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer. For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.
1352 &quot;structuredQuery&quot;: { # A Firestore query. # A structured query. Query must specify collection with all descendants and be ordered by name ascending. Other filters, order bys, limits, offsets, and start/end cursors are not supported.
1353 &quot;endAt&quot;: { # A position in a query result set. # A end point for the query results.
1354 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1355 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1356 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001357 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1358 &quot;values&quot;: [ # Values in the array.
1359 # Object with schema name: Value
1360 ],
1361 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001362 &quot;booleanValue&quot;: True or False, # A boolean value.
1363 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1364 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001365 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001366 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1367 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1368 },
1369 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1370 &quot;mapValue&quot;: { # A map value. # A map value.
1371 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1372 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001373 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001374 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001375 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1376 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1377 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1378 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001379 },
1380 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001381 },
1382 &quot;from&quot;: [ # The collections to query.
1383 { # A selection of a collection, such as `messages as m1`.
1384 &quot;allDescendants&quot;: True or False, # When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections.
1385 &quot;collectionId&quot;: &quot;A String&quot;, # The collection ID. When set, selects only collections with this ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001386 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001387 ],
1388 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Must be &gt;= 0 if specified.
1389 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Must be &gt;= 0 if specified.
1390 &quot;orderBy&quot;: [ # The order to apply to the query results. Firestore guarantees a stable ordering through the following rules: * Any field required to appear in `order_by`, that is not already specified in `order_by`, is appended to the order in field name order by default. * If an order on `__name__` is not specified, it is appended by default. Fields are appended with the same sort direction as the last order specified, or &#x27;ASCENDING&#x27; if no order was specified. For example: * `SELECT * FROM Foo ORDER BY A` becomes `SELECT * FROM Foo ORDER BY A, __name__` * `SELECT * FROM Foo ORDER BY A DESC` becomes `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A &gt; 1` becomes `SELECT * FROM Foo WHERE A &gt; 1 ORDER BY A, __name__`
1391 { # An order on a field.
1392 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
1393 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to order by.
1394 &quot;fieldPath&quot;: &quot;A String&quot;,
1395 },
1396 },
1397 ],
1398 &quot;select&quot;: { # The projection of document&#x27;s fields to return. # The projection to return.
1399 &quot;fields&quot;: [ # The fields to return. If empty, all fields are returned. To only return the name of the document, use `[&#x27;__name__&#x27;]`.
1400 { # A reference to a field, such as `max(messages.time) as max_time`.
1401 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001402 },
1403 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001404 },
1405 &quot;startAt&quot;: { # A position in a query result set. # A starting point for the query results.
1406 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1407 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1408 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001409 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1410 &quot;values&quot;: [ # Values in the array.
1411 # Object with schema name: Value
1412 ],
1413 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001414 &quot;booleanValue&quot;: True or False, # A boolean value.
1415 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1416 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001417 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001418 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1419 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1420 },
1421 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1422 &quot;mapValue&quot;: { # A map value. # A map value.
1423 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1424 &quot;a_key&quot;: # Object with schema name: Value
1425 },
1426 },
1427 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1428 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1429 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1430 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1431 },
1432 ],
1433 },
1434 &quot;where&quot;: { # A filter. # The filter to apply.
1435 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
1436 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
1437 # Object with schema name: Filter
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001438 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001439 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
1440 },
1441 &quot;fieldFilter&quot;: { # A filter on a specific field. # A filter on a document field.
1442 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to filter by.
1443 &quot;fieldPath&quot;: &quot;A String&quot;,
1444 },
1445 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
1446 &quot;value&quot;: { # A message that can hold any of the supported value types. # The value to compare to.
yoshi-code-bot312da312021-09-21 00:22:28 -07001447 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1448 &quot;values&quot;: [ # Values in the array.
1449 # Object with schema name: Value
1450 ],
1451 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001452 &quot;booleanValue&quot;: True or False, # A boolean value.
1453 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1454 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001455 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001456 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1457 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1458 },
1459 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1460 &quot;mapValue&quot;: { # A map value. # A map value.
1461 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1462 &quot;a_key&quot;: # Object with schema name: Value
1463 },
1464 },
1465 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1466 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1467 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1468 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1469 },
1470 },
1471 &quot;unaryFilter&quot;: { # A filter with a single operand. # A filter that takes exactly one argument.
1472 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to which to apply the operator.
1473 &quot;fieldPath&quot;: &quot;A String&quot;,
1474 },
1475 &quot;op&quot;: &quot;A String&quot;, # The unary operator to apply.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001476 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001477 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001478 },
1479}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001480
1481 x__xgafv: string, V1 error format.
1482 Allowed values
1483 1 - v1 error format
1484 2 - v2 error format
1485
1486Returns:
1487 An object of the form:
1488
1489 { # The response for Firestore.PartitionQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001490 &quot;nextPageToken&quot;: &quot;A String&quot;, # A page token that may be used to request an additional set of results, up to the number specified by `partition_count` in the PartitionQuery request. If blank, there are no more results.
1491 &quot;partitions&quot;: [ # Partition results. Each partition is a split point that can be used by RunQuery as a starting or end point for the query results. The RunQuery requests must be made with the same query supplied to this PartitionQuery request. The partition cursors will be ordered according to same ordering as the results of the query supplied to PartitionQuery. For example, if a PartitionQuery request returns partition cursors A and B, running the following three queries will return the entire result set of the original query: * query, end_at A * query, start_at A, end_at B * query, start_at B An empty result may indicate that the query has too few results to be partitioned.
1492 { # A position in a query result set.
1493 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1494 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1495 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001496 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1497 &quot;values&quot;: [ # Values in the array.
1498 # Object with schema name: Value
1499 ],
1500 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001501 &quot;booleanValue&quot;: True or False, # A boolean value.
1502 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1503 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001504 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001505 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1506 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1507 },
1508 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1509 &quot;mapValue&quot;: { # A map value. # A map value.
1510 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1511 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001512 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001513 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001514 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1515 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1516 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1517 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1518 },
1519 ],
1520 },
1521 ],
1522}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001523</div>
1524
1525<div class="method">
1526 <code class="details" id="partitionQuery_next">partitionQuery_next(previous_request, previous_response)</code>
1527 <pre>Retrieves the next page of results.
1528
1529Args:
1530 previous_request: The request for the previous page. (required)
1531 previous_response: The response from the request for the previous page. (required)
1532
1533Returns:
1534 A request object that you can call &#x27;execute()&#x27; on to request the next
1535 page. Returns None if there are no more items in the collection.
1536 </pre>
1537</div>
1538
1539<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001540 <code class="details" id="patch">patch(name, body=None, currentDocument_exists=None, currentDocument_updateTime=None, mask_fieldPaths=None, updateMask_fieldPaths=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001541 <pre>Updates or inserts a document.
1542
1543Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001544 name: string, The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001545 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001546 The object takes the form of:
1547
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001548{ # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001549 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001550 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
1551 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001552 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1553 &quot;values&quot;: [ # Values in the array.
1554 # Object with schema name: Value
1555 ],
1556 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001557 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001558 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001559 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001560 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001561 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1562 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1563 },
1564 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001565 &quot;mapValue&quot;: { # A map value. # A map value.
1566 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1567 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001568 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001569 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001570 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1571 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1572 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1573 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001574 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001575 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001576 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001577 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001578}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001579
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001580 currentDocument_exists: boolean, When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001581 currentDocument_updateTime: string, When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001582 mask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001583 updateMask_fieldPaths: string, The list of field paths in the mask. See Document.fields for a field path syntax reference. (repeated)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001584 x__xgafv: string, V1 error format.
1585 Allowed values
1586 1 - v1 error format
1587 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001588
1589Returns:
1590 An object of the form:
1591
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001592 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001593 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
1594 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
1595 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001596 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1597 &quot;values&quot;: [ # Values in the array.
1598 # Object with schema name: Value
1599 ],
1600 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001601 &quot;booleanValue&quot;: True or False, # A boolean value.
1602 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1603 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001604 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001605 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1606 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1607 },
1608 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1609 &quot;mapValue&quot;: { # A map value. # A map value.
1610 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1611 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001612 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001613 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001614 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1615 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1616 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1617 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001618 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001619 },
1620 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1621 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
1622}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623</div>
1624
1625<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001626 <code class="details" id="rollback">rollback(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001627 <pre>Rolls back a transaction.
1628
1629Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001630 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001631 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001632 The object takes the form of:
1633
1634{ # The request for Firestore.Rollback.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001635 &quot;transaction&quot;: &quot;A String&quot;, # Required. The transaction to roll back.
1636}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001637
1638 x__xgafv: string, V1 error format.
1639 Allowed values
1640 1 - v1 error format
1641 2 - v2 error format
1642
1643Returns:
1644 An object of the form:
1645
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001646 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001647}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001648</div>
1649
1650<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001651 <code class="details" id="runQuery">runQuery(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001652 <pre>Runs a query.
1653
1654Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001655 parent: string, Required. The parent resource name. In the format: `projects/{project_id}/databases/{database_id}/documents` or `projects/{project_id}/databases/{database_id}/documents/{document_path}`. For example: `projects/my-project/databases/my-database/documents` or `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom` (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001656 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001657 The object takes the form of:
1658
1659{ # The request for Firestore.RunQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001660 &quot;newTransaction&quot;: { # Options for creating a new transaction. # Starts a new transaction and reads the documents. Defaults to a read-only transaction. The new transaction ID will be returned as the first response in the stream.
1661 &quot;readOnly&quot;: { # Options for a transaction that can only be used to read documents. # The transaction can only be used for read operations.
1662 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents at the given time. This may not be older than 60 seconds.
1663 },
1664 &quot;readWrite&quot;: { # Options for a transaction that can be used to read and write documents. # The transaction can be used for both read and write operations.
1665 &quot;retryTransaction&quot;: &quot;A String&quot;, # An optional transaction to retry.
1666 },
1667 },
1668 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents as they were at the given time. This may not be older than 270 seconds.
1669 &quot;structuredQuery&quot;: { # A Firestore query. # A structured query.
1670 &quot;endAt&quot;: { # A position in a query result set. # A end point for the query results.
1671 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1672 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1673 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001674 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1675 &quot;values&quot;: [ # Values in the array.
1676 # Object with schema name: Value
1677 ],
1678 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001679 &quot;booleanValue&quot;: True or False, # A boolean value.
1680 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1681 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001682 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001683 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1684 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1685 },
1686 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1687 &quot;mapValue&quot;: { # A map value. # A map value.
1688 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1689 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001690 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001691 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001692 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1693 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1694 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1695 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001696 },
1697 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001698 },
1699 &quot;from&quot;: [ # The collections to query.
1700 { # A selection of a collection, such as `messages as m1`.
1701 &quot;allDescendants&quot;: True or False, # When false, selects only collections that are immediate children of the `parent` specified in the containing `RunQueryRequest`. When true, selects all descendant collections.
1702 &quot;collectionId&quot;: &quot;A String&quot;, # The collection ID. When set, selects only collections with this ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001703 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001704 ],
1705 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Must be &gt;= 0 if specified.
1706 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Must be &gt;= 0 if specified.
1707 &quot;orderBy&quot;: [ # The order to apply to the query results. Firestore guarantees a stable ordering through the following rules: * Any field required to appear in `order_by`, that is not already specified in `order_by`, is appended to the order in field name order by default. * If an order on `__name__` is not specified, it is appended by default. Fields are appended with the same sort direction as the last order specified, or &#x27;ASCENDING&#x27; if no order was specified. For example: * `SELECT * FROM Foo ORDER BY A` becomes `SELECT * FROM Foo ORDER BY A, __name__` * `SELECT * FROM Foo ORDER BY A DESC` becomes `SELECT * FROM Foo ORDER BY A DESC, __name__ DESC` * `SELECT * FROM Foo WHERE A &gt; 1` becomes `SELECT * FROM Foo WHERE A &gt; 1 ORDER BY A, __name__`
1708 { # An order on a field.
1709 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
1710 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to order by.
1711 &quot;fieldPath&quot;: &quot;A String&quot;,
1712 },
1713 },
1714 ],
1715 &quot;select&quot;: { # The projection of document&#x27;s fields to return. # The projection to return.
1716 &quot;fields&quot;: [ # The fields to return. If empty, all fields are returned. To only return the name of the document, use `[&#x27;__name__&#x27;]`.
1717 { # A reference to a field, such as `max(messages.time) as max_time`.
1718 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001719 },
1720 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001721 },
1722 &quot;startAt&quot;: { # A position in a query result set. # A starting point for the query results.
1723 &quot;before&quot;: True or False, # If the position is just before or just after the given values, relative to the sort order defined by the query.
1724 &quot;values&quot;: [ # The values that represent a position, in the order they appear in the order by clause of a query. Can contain fewer values than specified in the order by clause.
1725 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001726 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1727 &quot;values&quot;: [ # Values in the array.
1728 # Object with schema name: Value
1729 ],
1730 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001731 &quot;booleanValue&quot;: True or False, # A boolean value.
1732 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1733 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001734 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001735 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1736 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1737 },
1738 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1739 &quot;mapValue&quot;: { # A map value. # A map value.
1740 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1741 &quot;a_key&quot;: # Object with schema name: Value
1742 },
1743 },
1744 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1745 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1746 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1747 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1748 },
1749 ],
1750 },
1751 &quot;where&quot;: { # A filter. # The filter to apply.
1752 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
1753 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
1754 # Object with schema name: Filter
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001755 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001756 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
1757 },
1758 &quot;fieldFilter&quot;: { # A filter on a specific field. # A filter on a document field.
1759 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to filter by.
1760 &quot;fieldPath&quot;: &quot;A String&quot;,
1761 },
1762 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
1763 &quot;value&quot;: { # A message that can hold any of the supported value types. # The value to compare to.
yoshi-code-bot312da312021-09-21 00:22:28 -07001764 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1765 &quot;values&quot;: [ # Values in the array.
1766 # Object with schema name: Value
1767 ],
1768 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001769 &quot;booleanValue&quot;: True or False, # A boolean value.
1770 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1771 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001772 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001773 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1774 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1775 },
1776 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1777 &quot;mapValue&quot;: { # A map value. # A map value.
1778 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1779 &quot;a_key&quot;: # Object with schema name: Value
1780 },
1781 },
1782 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1783 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1784 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1785 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1786 },
1787 },
1788 &quot;unaryFilter&quot;: { # A filter with a single operand. # A filter that takes exactly one argument.
1789 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to which to apply the operator.
1790 &quot;fieldPath&quot;: &quot;A String&quot;,
1791 },
1792 &quot;op&quot;: &quot;A String&quot;, # The unary operator to apply.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001793 },
1794 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001795 },
1796 &quot;transaction&quot;: &quot;A String&quot;, # Reads documents in a transaction.
1797}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001798
1799 x__xgafv: string, V1 error format.
1800 Allowed values
1801 1 - v1 error format
1802 2 - v2 error format
1803
1804Returns:
1805 An object of the form:
1806
1807 { # The response for Firestore.RunQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001808 &quot;document&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A query result. Not set when reporting partial progress.
1809 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
1810 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
1811 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001812 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1813 &quot;values&quot;: [ # Values in the array.
1814 # Object with schema name: Value
1815 ],
1816 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001817 &quot;booleanValue&quot;: True or False, # A boolean value.
1818 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1819 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001820 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001821 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1822 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1823 },
1824 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1825 &quot;mapValue&quot;: { # A map value. # A map value.
1826 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1827 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001828 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001829 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001830 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1831 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1832 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1833 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001834 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001835 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001836 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1837 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
1838 },
1839 &quot;readTime&quot;: &quot;A String&quot;, # The time at which the document was read. This may be monotonically increasing; in this case, the previous documents in the result stream are guaranteed not to have changed between their `read_time` and this one. If the query returns no results, a response with `read_time` and no `document` will be sent, and this represents the time at which the query was run.
1840 &quot;skippedResults&quot;: 42, # The number of results that have been skipped due to an offset between the last response and the current response.
1841 &quot;transaction&quot;: &quot;A String&quot;, # The transaction that was started as part of this request. Can only be set in the first response, and only if RunQueryRequest.new_transaction was set in the request. If set, no other fields will be set in this response.
1842}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001843</div>
1844
1845<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001846 <code class="details" id="write">write(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001847 <pre>Streams batches of document updates and deletes, in order.
1848
1849Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001850 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. This is only required in the first message. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001851 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001852 The object takes the form of:
1853
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001854{ # The request for Firestore.Write. The first request creates a stream, or resumes an existing one from a token. When creating a new stream, the server replies with a response containing only an ID and a token, to use in the next request. When resuming a stream, the server first streams any responses later than the given token, then a response containing only an up-to-date token, to use in the next request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001855 &quot;labels&quot;: { # Labels associated with this write request.
1856 &quot;a_key&quot;: &quot;A String&quot;,
1857 },
1858 &quot;streamId&quot;: &quot;A String&quot;, # The ID of the write stream to resume. This may only be set in the first message. When left empty, a new write stream will be created.
1859 &quot;streamToken&quot;: &quot;A String&quot;, # A stream token that was previously sent by the server. The client should set this field to the token from the most recent WriteResponse it has received. This acknowledges that the client has received responses up to this token. After sending this token, earlier tokens may not be used anymore. The server may close the stream if there are too many unacknowledged responses. Leave this field unset when creating a new stream. To resume a stream at a specific point, set this field and the `stream_id` field. Leave this field unset when creating a new stream.
1860 &quot;writes&quot;: [ # The writes to apply. Always executed atomically and in order. This must be empty on the first request. This may be empty on the last request. This must not be empty on all other requests.
1861 { # A write on a document.
1862 &quot;currentDocument&quot;: { # A precondition on a document, used for conditional operations. # An optional precondition on the document. The write will fail if this is set and not met by the target document.
1863 &quot;exists&quot;: True or False, # When set to `true`, the target document must exist. When set to `false`, the target document must not exist.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001864 &quot;updateTime&quot;: &quot;A String&quot;, # When set, the target document must exist and have been last updated at that time. Timestamp must be microsecond aligned.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001865 },
1866 &quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1867 &quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
1868 &quot;document&quot;: &quot;A String&quot;, # The name of the document to transform.
1869 &quot;fieldTransforms&quot;: [ # The list of transformations to apply to the fields of the document, in order. This must not be empty.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001870 { # A transformation of a field of the document.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001871 &quot;appendMissingElements&quot;: { # An array value. # Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
1872 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -07001873 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001874 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001875 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001876 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001877 &quot;increment&quot;: { # A message that can hold any of the supported value types. # Adds the given value to the field&#x27;s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
yoshi-code-bot312da312021-09-21 00:22:28 -07001878 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1879 &quot;values&quot;: [ # Values in the array.
1880 # Object with schema name: Value
1881 ],
1882 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001883 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001884 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001885 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001886 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001887 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1888 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1889 },
1890 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001891 &quot;mapValue&quot;: { # A map value. # A map value.
1892 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1893 &quot;a_key&quot;: # Object with schema name: Value
1894 },
1895 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001896 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1897 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1898 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1899 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1900 },
1901 &quot;maximum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -07001902 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1903 &quot;values&quot;: [ # Values in the array.
1904 # Object with schema name: Value
1905 ],
1906 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001907 &quot;booleanValue&quot;: True or False, # A boolean value.
1908 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1909 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001910 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001911 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1912 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1913 },
1914 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1915 &quot;mapValue&quot;: { # A map value. # A map value.
1916 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1917 &quot;a_key&quot;: # Object with schema name: Value
1918 },
1919 },
1920 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1921 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1922 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1923 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1924 },
1925 &quot;minimum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -07001926 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1927 &quot;values&quot;: [ # Values in the array.
1928 # Object with schema name: Value
1929 ],
1930 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001931 &quot;booleanValue&quot;: True or False, # A boolean value.
1932 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1933 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001934 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001935 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1936 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1937 },
1938 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1939 &quot;mapValue&quot;: { # A map value. # A map value.
1940 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1941 &quot;a_key&quot;: # Object with schema name: Value
1942 },
1943 },
1944 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1945 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1946 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1947 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001948 },
1949 &quot;removeAllFromArray&quot;: { # An array value. # Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
1950 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -07001951 # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001952 ],
1953 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001954 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
1955 },
1956 ],
1957 },
1958 &quot;update&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document to write.
1959 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was created. This value increases monotonically when a document is deleted then recreated. It can also be compared to values from other documents and the `read_time` of a query.
1960 &quot;fields&quot;: { # The document&#x27;s fields. The map keys represent field names. A simple field name contains only characters `a` to `z`, `A` to `Z`, `0` to `9`, or `_`, and must not start with `0` to `9`. For example, `foo_bar_17`. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty. Field paths may be used in other contexts to refer to structured fields defined here. For `map_value`, the field path is represented by the simple or quoted field names of the containing fields, delimited by `.`. For example, the structured field `&quot;foo&quot; : { map_value: { &quot;x&amp;y&quot; : { string_value: &quot;hello&quot; }}}` would be represented by the field path `foo.x&amp;y`. Within a field path, a quoted field name starts and ends with `` ` `` and may contain any character. Some characters, including `` ` ``, must be escaped using a `\`. For example, `` `x&amp;y` `` represents `x&amp;y` and `` `bak\`tik` `` represents `` bak`tik ``.
1961 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07001962 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1963 &quot;values&quot;: [ # Values in the array.
1964 # Object with schema name: Value
1965 ],
1966 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001967 &quot;booleanValue&quot;: True or False, # A boolean value.
1968 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
1969 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001970 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001971 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1972 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1973 },
1974 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1975 &quot;mapValue&quot;: { # A map value. # A map value.
1976 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
1977 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001978 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001979 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001980 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1981 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1982 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
1983 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001984 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001985 },
1986 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1987 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the document was last changed. This value is initially set to the `create_time` then increases monotonically with each change to the document. It can also be compared to values from other documents and the `read_time` of a query.
1988 },
1989 &quot;updateMask&quot;: { # A set of field paths on a document. Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value. # The fields to update in this write. This field can be set only when the operation is `update`. If the mask is not set for an `update` and the document exists, any existing data will be overwritten. If the mask is set and the document on the server has fields not covered by the mask, they are left unchanged. Fields referenced in the mask, but not present in the input document, are deleted from the document on the server. The field paths in this mask must not contain a reserved field name.
1990 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
1991 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001992 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001993 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001994 &quot;updateTransforms&quot;: [ # The transforms to perform after update. This field can be set only when the operation is `update`. If present, this write is equivalent to performing `update` and `transform` to the same document atomically and in order.
1995 { # A transformation of a field of the document.
1996 &quot;appendMissingElements&quot;: { # An array value. # Append the given elements in order if they are not already present in the current field value. If the field is not an array, or if the field does not yet exist, it is first set to the empty array. Equivalent numbers of different types (e.g. 3L and 3.0) are considered equal when checking if a value is missing. NaN is equal to NaN, and Null is equal to Null. If the input contains multiple equivalent values, only the first will be considered. The corresponding transform_result will be the null value.
1997 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -07001998 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001999 ],
2000 },
2001 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
2002 &quot;increment&quot;: { # A message that can hold any of the supported value types. # Adds the given value to the field&#x27;s current value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If either of the given value or the current field value are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the field is resolved to the largest magnitude positive/negative integer.
yoshi-code-bot312da312021-09-21 00:22:28 -07002003 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
2004 &quot;values&quot;: [ # Values in the array.
2005 # Object with schema name: Value
2006 ],
2007 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002008 &quot;booleanValue&quot;: True or False, # A boolean value.
2009 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
2010 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002011 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002012 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2013 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2014 },
2015 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2016 &quot;mapValue&quot;: { # A map value. # A map value.
2017 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
2018 &quot;a_key&quot;: # Object with schema name: Value
2019 },
2020 },
2021 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2022 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2023 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
2024 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2025 },
2026 &quot;maximum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the maximum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the given value. If a maximum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the larger operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and zero input value is always the stored value. The maximum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -07002027 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
2028 &quot;values&quot;: [ # Values in the array.
2029 # Object with schema name: Value
2030 ],
2031 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002032 &quot;booleanValue&quot;: True or False, # A boolean value.
2033 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
2034 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002035 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002036 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2037 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2038 },
2039 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2040 &quot;mapValue&quot;: { # A map value. # A map value.
2041 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
2042 &quot;a_key&quot;: # Object with schema name: Value
2043 },
2044 },
2045 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2046 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2047 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
2048 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2049 },
2050 &quot;minimum&quot;: { # A message that can hold any of the supported value types. # Sets the field to the minimum of its current value and the given value. This must be an integer or a double value. If the field is not an integer or double, or if the field does not yet exist, the transformation will set the field to the input value. If a minimum operation is applied where the field and the input value are of mixed types (that is - one is an integer and one is a double) the field takes on the type of the smaller operand. If the operands are equivalent (e.g. 3 and 3.0), the field does not change. 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and zero input value is always the stored value. The minimum of any numeric value x and NaN is NaN.
yoshi-code-bot312da312021-09-21 00:22:28 -07002051 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
2052 &quot;values&quot;: [ # Values in the array.
2053 # Object with schema name: Value
2054 ],
2055 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002056 &quot;booleanValue&quot;: True or False, # A boolean value.
2057 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
2058 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002059 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002060 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2061 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2062 },
2063 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2064 &quot;mapValue&quot;: { # A map value. # A map value.
2065 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
2066 &quot;a_key&quot;: # Object with schema name: Value
2067 },
2068 },
2069 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2070 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2071 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
2072 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2073 },
2074 &quot;removeAllFromArray&quot;: { # An array value. # Remove all of the given elements from the array in the field. If the field is not an array, or if the field does not yet exist, it is set to the empty array. Equivalent numbers of the different types (e.g. 3L and 3.0) are considered equal when deciding whether an element should be removed. NaN is equal to NaN, and Null is equal to Null. This will remove all equivalent values if there are duplicates. The corresponding transform_result will be the null value.
2075 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot312da312021-09-21 00:22:28 -07002076 # Object with schema name: Value
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002077 ],
2078 },
2079 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
2080 },
2081 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002082 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002083 ],
2084}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002085
2086 x__xgafv: string, V1 error format.
2087 Allowed values
2088 1 - v1 error format
2089 2 - v2 error format
2090
2091Returns:
2092 An object of the form:
2093
2094 { # The response for Firestore.Write.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002095 &quot;commitTime&quot;: &quot;A String&quot;, # The time at which the commit occurred. Any read with an equal or greater `read_time` is guaranteed to see the effects of the write.
2096 &quot;streamId&quot;: &quot;A String&quot;, # The ID of the stream. Only set on the first message, when a new stream was created.
2097 &quot;streamToken&quot;: &quot;A String&quot;, # A token that represents the position of this response in the stream. This can be used by a client to resume the stream at this point. This field is always set.
2098 &quot;writeResults&quot;: [ # The result of applying the writes. This i-th write result corresponds to the i-th write in the request.
2099 { # The result of applying a write.
2100 &quot;transformResults&quot;: [ # The results of applying each DocumentTransform.FieldTransform, in the same order.
2101 { # A message that can hold any of the supported value types.
yoshi-code-bot312da312021-09-21 00:22:28 -07002102 &quot;arrayValue&quot;: { # An array value. # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
2103 &quot;values&quot;: [ # Values in the array.
2104 # Object with schema name: Value
2105 ],
2106 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002107 &quot;booleanValue&quot;: True or False, # A boolean value.
2108 &quot;bytesValue&quot;: &quot;A String&quot;, # A bytes value. Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
2109 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002110 &quot;geoPointValue&quot;: { # An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. # A geo point value representing a point on the surface of Earth.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002111 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2112 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2113 },
2114 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2115 &quot;mapValue&quot;: { # A map value. # A map value.
2116 &quot;fields&quot;: { # The map&#x27;s fields. The map keys represent field names. Field names matching the regular expression `__.*__` are reserved. Reserved field names are forbidden except in certain documented contexts. The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot be empty.
2117 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002118 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002119 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002120 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2121 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2122 &quot;stringValue&quot;: &quot;A String&quot;, # A string value. The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.
2123 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2124 },
2125 ],
2126 &quot;updateTime&quot;: &quot;A String&quot;, # The last update time of the document after applying the write. Not set after a `delete`. If the write did not actually change the document, this will be the previous update_time.
2127 },
2128 ],
2129}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002130</div>
2131
2132</body></html>