blob: f7cbfb5fdd458ae71fea8cad416b9d34769c6470 [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-bot797d6772022-01-05 06:16:13 -0800178 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800179 &quot;booleanValue&quot;: True or False, # A boolean value.
180 &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.
181 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700182 &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 -0800183 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
184 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
185 },
186 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
187 &quot;mapValue&quot;: { # A map value. # A map value.
188 &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.
189 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800190 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700191 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800192 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
193 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
194 &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.
195 &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 -0700196 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800197 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800198 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
199 &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.
200 },
201 &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}`.
202 &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.
203 &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.
204}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205</div>
206
207<div class="method">
208 <code class="details" id="batchWrite">batchWrite(database, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 <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 -0700210
211Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700212 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700213 body: object, The request body.
214 The object takes the form of:
215
216{ # The request for Firestore.BatchWrite.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800217 &quot;labels&quot;: { # Labels associated with this batch write.
218 &quot;a_key&quot;: &quot;A String&quot;,
219 },
220 &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.
221 { # A write on a document.
222 &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.
223 &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 -0700224 &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 -0800225 },
226 &quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
227 &quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
228 &quot;document&quot;: &quot;A String&quot;, # The name of the document to transform.
229 &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 -0800230 { # A transformation of a field of the document.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800231 &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.
232 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800233 { # A message that can hold any of the supported value types.
234 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
235 &quot;booleanValue&quot;: True or False, # A boolean value.
236 &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.
237 &quot;doubleValue&quot;: 3.14, # A double value.
238 &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.
239 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
240 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
241 },
242 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
243 &quot;mapValue&quot;: { # A map value. # A map value.
244 &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.
245 &quot;a_key&quot;: # Object with schema name: Value
246 },
247 },
248 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
249 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
250 &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.
251 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
252 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800253 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800254 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800255 &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 -0800256 &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-bot797d6772022-01-05 06:16:13 -0800257 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800258 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800259 &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 -0800260 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700261 &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 -0800262 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
263 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
264 },
265 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800266 &quot;mapValue&quot;: { # A map value. # A map value.
267 &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.
268 &quot;a_key&quot;: # Object with schema name: Value
269 },
270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800271 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
272 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
273 &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.
274 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
275 },
276 &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-bot797d6772022-01-05 06:16:13 -0800277 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800278 &quot;booleanValue&quot;: True or False, # A boolean value.
279 &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.
280 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700281 &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 -0800282 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
283 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
284 },
285 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
286 &quot;mapValue&quot;: { # A map value. # A map value.
287 &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.
288 &quot;a_key&quot;: # Object with schema name: Value
289 },
290 },
291 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
292 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
293 &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.
294 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
295 },
296 &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-bot797d6772022-01-05 06:16:13 -0800297 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800298 &quot;booleanValue&quot;: True or False, # A boolean value.
299 &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.
300 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700301 &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 -0800302 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
303 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
304 },
305 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
306 &quot;mapValue&quot;: { # A map value. # A map value.
307 &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.
308 &quot;a_key&quot;: # Object with schema name: Value
309 },
310 },
311 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
312 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
313 &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.
314 &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 -0800315 },
316 &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.
317 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800318 { # A message that can hold any of the supported value types.
319 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
320 &quot;booleanValue&quot;: True or False, # A boolean value.
321 &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.
322 &quot;doubleValue&quot;: 3.14, # A double value.
323 &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.
324 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
325 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
326 },
327 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
328 &quot;mapValue&quot;: { # A map value. # A map value.
329 &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.
330 &quot;a_key&quot;: # Object with schema name: Value
331 },
332 },
333 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
334 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
335 &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.
336 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
337 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800338 ],
339 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800340 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
341 },
342 ],
343 },
344 &quot;update&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document to write.
345 &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.
346 &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 ``.
347 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800348 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800349 &quot;booleanValue&quot;: True or False, # A boolean value.
350 &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.
351 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700352 &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 -0800353 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
354 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
355 },
356 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
357 &quot;mapValue&quot;: { # A map value. # A map value.
358 &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.
359 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800360 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800361 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800362 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
363 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
364 &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.
365 &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 -0800366 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800367 },
368 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
369 &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.
370 },
371 &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.
372 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
373 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800374 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700375 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800376 &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.
377 { # A transformation of a field of the document.
378 &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.
379 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800380 { # A message that can hold any of the supported value types.
381 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
382 &quot;booleanValue&quot;: True or False, # A boolean value.
383 &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.
384 &quot;doubleValue&quot;: 3.14, # A double value.
385 &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.
386 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
387 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
388 },
389 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
390 &quot;mapValue&quot;: { # A map value. # A map value.
391 &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.
392 &quot;a_key&quot;: # Object with schema name: Value
393 },
394 },
395 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
396 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
397 &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.
398 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
399 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800400 ],
401 },
402 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
403 &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-bot797d6772022-01-05 06:16:13 -0800404 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800405 &quot;booleanValue&quot;: True or False, # A boolean value.
406 &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.
407 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700408 &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 -0800409 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
410 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
411 },
412 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
413 &quot;mapValue&quot;: { # A map value. # A map value.
414 &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.
415 &quot;a_key&quot;: # Object with schema name: Value
416 },
417 },
418 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
419 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
420 &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.
421 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
422 },
423 &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-bot797d6772022-01-05 06:16:13 -0800424 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800425 &quot;booleanValue&quot;: True or False, # A boolean value.
426 &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.
427 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700428 &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 -0800429 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
430 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
431 },
432 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
433 &quot;mapValue&quot;: { # A map value. # A map value.
434 &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.
435 &quot;a_key&quot;: # Object with schema name: Value
436 },
437 },
438 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
439 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
440 &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.
441 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
442 },
443 &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-bot797d6772022-01-05 06:16:13 -0800444 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800445 &quot;booleanValue&quot;: True or False, # A boolean value.
446 &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.
447 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700448 &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 -0800449 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
450 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
451 },
452 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
453 &quot;mapValue&quot;: { # A map value. # A map value.
454 &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.
455 &quot;a_key&quot;: # Object with schema name: Value
456 },
457 },
458 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
459 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
460 &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.
461 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
462 },
463 &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.
464 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800465 { # A message that can hold any of the supported value types.
466 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
467 &quot;booleanValue&quot;: True or False, # A boolean value.
468 &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.
469 &quot;doubleValue&quot;: 3.14, # A double value.
470 &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.
471 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
472 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
473 },
474 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
475 &quot;mapValue&quot;: { # A map value. # A map value.
476 &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.
477 &quot;a_key&quot;: # Object with schema name: Value
478 },
479 },
480 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
481 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
482 &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.
483 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
484 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800485 ],
486 },
487 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
488 },
489 ],
490 },
491 ],
492}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700493
494 x__xgafv: string, V1 error format.
495 Allowed values
496 1 - v1 error format
497 2 - v2 error format
498
499Returns:
500 An object of the form:
501
502 { # The response from Firestore.BatchWrite.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800503 &quot;status&quot;: [ # The status of applying the writes. This i-th write status corresponds to the i-th write in the request.
504 { # 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).
505 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
506 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
507 {
508 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
509 },
510 ],
511 &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.
512 },
513 ],
514 &quot;writeResults&quot;: [ # The result of applying the writes. This i-th write result corresponds to the i-th write in the request.
515 { # The result of applying a write.
516 &quot;transformResults&quot;: [ # The results of applying each DocumentTransform.FieldTransform, in the same order.
517 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800518 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800519 &quot;booleanValue&quot;: True or False, # A boolean value.
520 &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.
521 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700522 &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 -0800523 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
524 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
525 },
526 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
527 &quot;mapValue&quot;: { # A map value. # A map value.
528 &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.
529 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800530 },
531 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800532 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
533 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
534 &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.
535 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
536 },
537 ],
538 &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.
539 },
540 ],
541}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700542</div>
543
544<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700545 <code class="details" id="beginTransaction">beginTransaction(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700546 <pre>Starts a new transaction.
547
548Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700549 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700550 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700551 The object takes the form of:
552
553{ # The request for Firestore.BeginTransaction.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800554 &quot;options&quot;: { # Options for creating a new transaction. # The options for the transaction. Defaults to a read-write transaction.
555 &quot;readOnly&quot;: { # Options for a transaction that can only be used to read documents. # The transaction can only be used for read operations.
556 &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 -0700557 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800558 &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.
559 &quot;retryTransaction&quot;: &quot;A String&quot;, # An optional transaction to retry.
560 },
561 },
562}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700563
564 x__xgafv: string, V1 error format.
565 Allowed values
566 1 - v1 error format
567 2 - v2 error format
568
569Returns:
570 An object of the form:
571
572 { # The response for Firestore.BeginTransaction.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800573 &quot;transaction&quot;: &quot;A String&quot;, # The transaction that was started.
574}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575</div>
576
577<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700578 <code class="details" id="close">close()</code>
579 <pre>Close httplib2 connections.</pre>
580</div>
581
582<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700583 <code class="details" id="commit">commit(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700584 <pre>Commits a transaction, while optionally updating documents.
585
586Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700587 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700588 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700589 The object takes the form of:
590
591{ # The request for Firestore.Commit.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800592 &quot;transaction&quot;: &quot;A String&quot;, # If set, applies all writes in this transaction, and commits it.
593 &quot;writes&quot;: [ # The writes to apply. Always executed atomically and in order.
594 { # A write on a document.
595 &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.
596 &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 -0700597 &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 -0800598 },
599 &quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
600 &quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
601 &quot;document&quot;: &quot;A String&quot;, # The name of the document to transform.
602 &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 -0800603 { # A transformation of a field of the document.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800604 &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.
605 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800606 { # A message that can hold any of the supported value types.
607 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
608 &quot;booleanValue&quot;: True or False, # A boolean value.
609 &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.
610 &quot;doubleValue&quot;: 3.14, # A double value.
611 &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.
612 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
613 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
614 },
615 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
616 &quot;mapValue&quot;: { # A map value. # A map value.
617 &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.
618 &quot;a_key&quot;: # Object with schema name: Value
619 },
620 },
621 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
622 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
623 &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.
624 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
625 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800626 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800627 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800628 &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 -0800629 &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-bot797d6772022-01-05 06:16:13 -0800630 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800631 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800632 &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 -0800633 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700634 &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 -0800635 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
636 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
637 },
638 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800639 &quot;mapValue&quot;: { # A map value. # A map value.
640 &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.
641 &quot;a_key&quot;: # Object with schema name: Value
642 },
643 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800644 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
645 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
646 &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.
647 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
648 },
649 &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-bot797d6772022-01-05 06:16:13 -0800650 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800651 &quot;booleanValue&quot;: True or False, # A boolean value.
652 &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.
653 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700654 &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 -0800655 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
656 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
657 },
658 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
659 &quot;mapValue&quot;: { # A map value. # A map value.
660 &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.
661 &quot;a_key&quot;: # Object with schema name: Value
662 },
663 },
664 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
665 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
666 &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.
667 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
668 },
669 &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-bot797d6772022-01-05 06:16:13 -0800670 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800671 &quot;booleanValue&quot;: True or False, # A boolean value.
672 &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.
673 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700674 &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 -0800675 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
676 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
677 },
678 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
679 &quot;mapValue&quot;: { # A map value. # A map value.
680 &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.
681 &quot;a_key&quot;: # Object with schema name: Value
682 },
683 },
684 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
685 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
686 &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.
687 &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 -0800688 },
689 &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.
690 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800691 { # A message that can hold any of the supported value types.
692 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
693 &quot;booleanValue&quot;: True or False, # A boolean value.
694 &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.
695 &quot;doubleValue&quot;: 3.14, # A double value.
696 &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.
697 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
698 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
699 },
700 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
701 &quot;mapValue&quot;: { # A map value. # A map value.
702 &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.
703 &quot;a_key&quot;: # Object with schema name: Value
704 },
705 },
706 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
707 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
708 &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.
709 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
710 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800711 ],
712 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800713 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
714 },
715 ],
716 },
717 &quot;update&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document to write.
718 &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.
719 &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 ``.
720 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800721 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800722 &quot;booleanValue&quot;: True or False, # A boolean value.
723 &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.
724 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700725 &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 -0800726 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
727 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
728 },
729 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
730 &quot;mapValue&quot;: { # A map value. # A map value.
731 &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.
732 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800733 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800734 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800735 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
736 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
737 &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.
738 &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 -0800739 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800740 },
741 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
742 &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.
743 },
744 &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.
745 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
746 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800747 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800749 &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.
750 { # A transformation of a field of the document.
751 &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.
752 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800753 { # A message that can hold any of the supported value types.
754 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
755 &quot;booleanValue&quot;: True or False, # A boolean value.
756 &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.
757 &quot;doubleValue&quot;: 3.14, # A double value.
758 &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.
759 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
760 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
761 },
762 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
763 &quot;mapValue&quot;: { # A map value. # A map value.
764 &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.
765 &quot;a_key&quot;: # Object with schema name: Value
766 },
767 },
768 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
769 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
770 &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.
771 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
772 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800773 ],
774 },
775 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
776 &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-bot797d6772022-01-05 06:16:13 -0800777 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800778 &quot;booleanValue&quot;: True or False, # A boolean value.
779 &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.
780 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700781 &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 -0800782 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
783 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
784 },
785 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
786 &quot;mapValue&quot;: { # A map value. # A map value.
787 &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.
788 &quot;a_key&quot;: # Object with schema name: Value
789 },
790 },
791 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
792 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
793 &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.
794 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
795 },
796 &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-bot797d6772022-01-05 06:16:13 -0800797 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
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
809 },
810 },
811 &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 &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-bot797d6772022-01-05 06:16:13 -0800817 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800818 &quot;booleanValue&quot;: True or False, # A boolean value.
819 &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.
820 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700821 &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 -0800822 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
823 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
824 },
825 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
826 &quot;mapValue&quot;: { # A map value. # A map value.
827 &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.
828 &quot;a_key&quot;: # Object with schema name: Value
829 },
830 },
831 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
832 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
833 &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.
834 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
835 },
836 &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.
837 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800838 { # A message that can hold any of the supported value types.
839 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
840 &quot;booleanValue&quot;: True or False, # A boolean value.
841 &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.
842 &quot;doubleValue&quot;: 3.14, # A double value.
843 &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.
844 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
845 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
846 },
847 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
848 &quot;mapValue&quot;: { # A map value. # A map value.
849 &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.
850 &quot;a_key&quot;: # Object with schema name: Value
851 },
852 },
853 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
854 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
855 &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.
856 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
857 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800858 ],
859 },
860 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
861 },
862 ],
863 },
864 ],
865}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700866
867 x__xgafv: string, V1 error format.
868 Allowed values
869 1 - v1 error format
870 2 - v2 error format
871
872Returns:
873 An object of the form:
874
875 { # The response for Firestore.Commit.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800876 &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.
877 &quot;writeResults&quot;: [ # The result of applying the writes. This i-th write result corresponds to the i-th write in the request.
878 { # The result of applying a write.
879 &quot;transformResults&quot;: [ # The results of applying each DocumentTransform.FieldTransform, in the same order.
880 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800881 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800882 &quot;booleanValue&quot;: True or False, # A boolean value.
883 &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.
884 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700885 &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 -0800886 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
887 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
888 },
889 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
890 &quot;mapValue&quot;: { # A map value. # A map value.
891 &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.
892 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700893 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700894 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800895 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
896 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
897 &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.
898 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
899 },
900 ],
901 &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.
902 },
903 ],
904}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700905</div>
906
907<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800908 <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 -0700909 <pre>Creates a new document.
910
911Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700912 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 -0700913 collectionId: string, Required. The collection ID, relative to `parent`, to list. For example: `chatrooms`. (required)
914 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700915 The object takes the form of:
916
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700917{ # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800918 &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 -0800919 &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 ``.
920 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800921 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800922 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800923 &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 -0800924 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700925 &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 -0800926 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
927 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
928 },
929 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800930 &quot;mapValue&quot;: { # A map value. # A map value.
931 &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.
932 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800933 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800934 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800935 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
936 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
937 &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.
938 &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 -0700939 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800940 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800941 &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 -0800942 &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 -0800943}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700944
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800945 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 -0800946 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 -0700947 x__xgafv: string, V1 error format.
948 Allowed values
949 1 - v1 error format
950 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700951
952Returns:
953 An object of the form:
954
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700955 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800956 &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.
957 &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 ``.
958 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -0800959 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800960 &quot;booleanValue&quot;: True or False, # A boolean value.
961 &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.
962 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -0700963 &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 -0800964 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
965 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
966 },
967 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
968 &quot;mapValue&quot;: { # A map value. # A map value.
969 &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.
970 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800971 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700972 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800973 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
974 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
975 &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.
976 &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 -0800977 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800978 },
979 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
980 &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.
981}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700982</div>
983
984<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800985 <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 -0700986 <pre>Deletes a document.
987
988Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700989 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 -0800990 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 -0700991 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 -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
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001000 { # 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 -08001001}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001002</div>
1003
1004<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001005 <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 -07001006 <pre>Gets a single document.
1007
1008Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001009 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 -08001010 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 -08001011 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 -08001012 transaction: string, Reads the document in a transaction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001013 x__xgafv: string, V1 error format.
1014 Allowed values
1015 1 - v1 error format
1016 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001017
1018Returns:
1019 An object of the form:
1020
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001021 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001022 &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.
1023 &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 ``.
1024 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001025 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001026 &quot;booleanValue&quot;: True or False, # A boolean value.
1027 &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.
1028 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001029 &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 -08001030 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1031 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1032 },
1033 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1034 &quot;mapValue&quot;: { # A map value. # A map value.
1035 &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.
1036 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001037 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001039 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1040 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1041 &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.
1042 &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 -08001043 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001044 },
1045 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1046 &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.
1047}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001048</div>
1049
1050<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001051 <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 -07001052 <pre>Lists documents.
1053
1054Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001055 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)
1056 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 -08001057 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 -08001058 orderBy: string, The order to sort results by. For example: `priority desc, name`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001059 pageSize: integer, The maximum number of documents to return.
1060 pageToken: string, The `next_page_token` value returned from a previous List request, if any.
1061 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 -08001062 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 -08001063 transaction: string, Reads documents in a transaction.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001064 x__xgafv: string, V1 error format.
1065 Allowed values
1066 1 - v1 error format
1067 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001068
1069Returns:
1070 An object of the form:
1071
1072 { # The response for Firestore.ListDocuments.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001073 &quot;documents&quot;: [ # The Documents found.
1074 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
1075 &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.
1076 &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 ``.
1077 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001078 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001079 &quot;booleanValue&quot;: True or False, # A boolean value.
1080 &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.
1081 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001082 &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 -08001083 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1084 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1085 },
1086 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1087 &quot;mapValue&quot;: { # A map value. # A map value.
1088 &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.
1089 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001090 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001091 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001092 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1093 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1094 &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.
1095 &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 -07001096 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001097 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001098 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1099 &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.
1100 },
1101 ],
1102 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next page token.
1103}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001104</div>
1105
1106<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001107 <code class="details" id="listCollectionIds">listCollectionIds(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001108 <pre>Lists all the collection IDs underneath a document.
1109
1110Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001111 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 -07001112 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001113 The object takes the form of:
1114
1115{ # The request for Firestore.ListCollectionIds.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001116 &quot;pageSize&quot;: 42, # The maximum number of results to return.
1117 &quot;pageToken&quot;: &quot;A String&quot;, # A page token. Must be a value from ListCollectionIdsResponse.
1118}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001119
1120 x__xgafv: string, V1 error format.
1121 Allowed values
1122 1 - v1 error format
1123 2 - v2 error format
1124
1125Returns:
1126 An object of the form:
1127
1128 { # The response from Firestore.ListCollectionIds.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001129 &quot;collectionIds&quot;: [ # The collection ids.
1130 &quot;A String&quot;,
1131 ],
1132 &quot;nextPageToken&quot;: &quot;A String&quot;, # A page token that may be used to continue the list.
1133}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001134</div>
1135
1136<div class="method">
1137 <code class="details" id="listCollectionIds_next">listCollectionIds_next(previous_request, previous_response)</code>
1138 <pre>Retrieves the next page of results.
1139
1140Args:
1141 previous_request: The request for the previous page. (required)
1142 previous_response: The response from the request for the previous page. (required)
1143
1144Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001146 page. Returns None if there are no more items in the collection.
1147 </pre>
1148</div>
1149
1150<div class="method">
1151 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1152 <pre>Retrieves the next page of results.
1153
1154Args:
1155 previous_request: The request for the previous page. (required)
1156 previous_response: The response from the request for the previous page. (required)
1157
1158Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001159 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001160 page. Returns None if there are no more items in the collection.
1161 </pre>
1162</div>
1163
1164<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001165 <code class="details" id="listen">listen(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001166 <pre>Listens to changes.
1167
1168Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001169 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001170 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001171 The object takes the form of:
1172
1173{ # A request for Firestore.Listen
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001174 &quot;addTarget&quot;: { # A specification of a set of documents to listen to. # A target to add to this stream.
1175 &quot;documents&quot;: { # A target specified by a set of documents names. # A target specified by a set of document names.
1176 &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.
1177 &quot;A String&quot;,
1178 ],
1179 },
1180 &quot;once&quot;: True or False, # If the target should be removed once it is current and consistent.
1181 &quot;query&quot;: { # A target specified by a query. # A target specified by a query.
1182 &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`
1183 &quot;structuredQuery&quot;: { # A Firestore query. # A structured query.
1184 &quot;endAt&quot;: { # A position in a query result set. # A end point for the query results.
1185 &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.
1186 &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.
1187 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001188 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001189 &quot;booleanValue&quot;: True or False, # A boolean value.
1190 &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.
1191 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001192 &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 -08001193 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1194 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1195 },
1196 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1197 &quot;mapValue&quot;: { # A map value. # A map value.
1198 &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.
1199 &quot;a_key&quot;: # Object with schema name: Value
1200 },
1201 },
1202 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1203 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1204 &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.
1205 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1206 },
1207 ],
1208 },
1209 &quot;from&quot;: [ # The collections to query.
1210 { # A selection of a collection, such as `messages as m1`.
1211 &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.
1212 &quot;collectionId&quot;: &quot;A String&quot;, # The collection ID. When set, selects only collections with this ID.
1213 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001214 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001215 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Must be &gt;= 0 if specified.
1216 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Must be &gt;= 0 if specified.
1217 &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__`
1218 { # An order on a field.
1219 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
1220 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to order by.
1221 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001222 },
1223 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001224 ],
1225 &quot;select&quot;: { # The projection of document&#x27;s fields to return. # The projection to return.
1226 &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;]`.
1227 { # A reference to a field, such as `max(messages.time) as max_time`.
1228 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001229 },
1230 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001231 },
1232 &quot;startAt&quot;: { # A position in a query result set. # A starting point for the query results.
1233 &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.
1234 &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.
1235 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001236 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001237 &quot;booleanValue&quot;: True or False, # A boolean value.
1238 &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.
1239 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001240 &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 -08001241 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1242 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1243 },
1244 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1245 &quot;mapValue&quot;: { # A map value. # A map value.
1246 &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.
1247 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001248 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001249 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001250 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1251 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1252 &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.
1253 &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 -08001254 },
1255 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001256 },
1257 &quot;where&quot;: { # A filter. # The filter to apply.
1258 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
1259 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
1260 # Object with schema name: Filter
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001261 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001262 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
1263 },
1264 &quot;fieldFilter&quot;: { # A filter on a specific field. # A filter on a document field.
1265 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to filter by.
1266 &quot;fieldPath&quot;: &quot;A String&quot;,
1267 },
1268 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
1269 &quot;value&quot;: { # A message that can hold any of the supported value types. # The value to compare to.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001270 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001271 &quot;booleanValue&quot;: True or False, # A boolean value.
1272 &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.
1273 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001274 &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 -08001275 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1276 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1277 },
1278 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1279 &quot;mapValue&quot;: { # A map value. # A map value.
1280 &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.
1281 &quot;a_key&quot;: # Object with schema name: Value
1282 },
1283 },
1284 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1285 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1286 &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.
1287 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1288 },
1289 },
1290 &quot;unaryFilter&quot;: { # A filter with a single operand. # A filter that takes exactly one argument.
1291 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to which to apply the operator.
1292 &quot;fieldPath&quot;: &quot;A String&quot;,
1293 },
1294 &quot;op&quot;: &quot;A String&quot;, # The unary operator to apply.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001295 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001296 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001297 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001299 &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.
1300 &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.
1301 &quot;targetId&quot;: 42, # The target ID that identifies the target on the stream. Must be a positive number and non-zero.
1302 },
1303 &quot;labels&quot;: { # Labels associated with this target change.
1304 &quot;a_key&quot;: &quot;A String&quot;,
1305 },
1306 &quot;removeTarget&quot;: 42, # The ID of a target to remove from this stream.
1307}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001308
1309 x__xgafv: string, V1 error format.
1310 Allowed values
1311 1 - v1 error format
1312 2 - v2 error format
1313
1314Returns:
1315 An object of the form:
1316
1317 { # The response for Firestore.Listen.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001318 &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.
1319 &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.
1320 &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.
1321 &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 ``.
1322 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001323 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001324 &quot;booleanValue&quot;: True or False, # A boolean value.
1325 &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.
1326 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001327 &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 -08001328 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1329 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1330 },
1331 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1332 &quot;mapValue&quot;: { # A map value. # A map value.
1333 &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.
1334 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001335 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001336 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001337 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1338 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1339 &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.
1340 &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 -08001341 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001342 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001343 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1344 &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 -08001345 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001346 &quot;removedTargetIds&quot;: [ # A set of target IDs for targets that no longer match this document.
1347 42,
1348 ],
1349 &quot;targetIds&quot;: [ # A set of target IDs of targets that match this document.
1350 42,
1351 ],
1352 },
1353 &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.
1354 &quot;document&quot;: &quot;A String&quot;, # The resource name of the Document that was deleted.
1355 &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.
1356 &quot;removedTargetIds&quot;: [ # A set of target IDs for targets that previously matched this entity.
1357 42,
1358 ],
1359 },
1360 &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).
1361 &quot;document&quot;: &quot;A String&quot;, # The resource name of the Document that has gone out of view.
1362 &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.
1363 &quot;removedTargetIds&quot;: [ # A set of target IDs for targets that previously matched this document.
1364 42,
1365 ],
1366 },
1367 &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.
1368 &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.
1369 &quot;targetId&quot;: 42, # The target ID to which this filter applies.
1370 },
1371 &quot;targetChange&quot;: { # Targets being watched have changed. # Targets have changed.
1372 &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.
1373 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1374 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1375 {
1376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1377 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001378 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001379 &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 -08001380 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001381 &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.
1382 &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.
1383 &quot;targetChangeType&quot;: &quot;A String&quot;, # The type of change that occurred.
1384 &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.
1385 42,
1386 ],
1387 },
1388}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001389</div>
1390
1391<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001392 <code class="details" id="partitionQuery">partitionQuery(parent, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001393 <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 -07001394
1395Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001396 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 -07001397 body: object, The request body.
1398 The object takes the form of:
1399
1400{ # The request for Firestore.PartitionQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001401 &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`.
1402 &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
1403 &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.
1404 &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.
1405 &quot;endAt&quot;: { # A position in a query result set. # A end 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-bot797d6772022-01-05 06:16:13 -08001409 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001410 &quot;booleanValue&quot;: True or False, # A boolean value.
1411 &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.
1412 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001413 &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 -08001414 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1415 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1416 },
1417 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1418 &quot;mapValue&quot;: { # A map value. # A map value.
1419 &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.
1420 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001421 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001422 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001423 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1424 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1425 &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.
1426 &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 -08001427 },
1428 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001429 },
1430 &quot;from&quot;: [ # The collections to query.
1431 { # A selection of a collection, such as `messages as m1`.
1432 &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.
1433 &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 -08001434 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001435 ],
1436 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Must be &gt;= 0 if specified.
1437 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Must be &gt;= 0 if specified.
1438 &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__`
1439 { # An order on a field.
1440 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
1441 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to order by.
1442 &quot;fieldPath&quot;: &quot;A String&quot;,
1443 },
1444 },
1445 ],
1446 &quot;select&quot;: { # The projection of document&#x27;s fields to return. # The projection to return.
1447 &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;]`.
1448 { # A reference to a field, such as `max(messages.time) as max_time`.
1449 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001450 },
1451 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001452 },
1453 &quot;startAt&quot;: { # A position in a query result set. # A starting point for the query results.
1454 &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.
1455 &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.
1456 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001457 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001458 &quot;booleanValue&quot;: True or False, # A boolean value.
1459 &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.
1460 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001461 &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 -08001462 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1463 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1464 },
1465 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1466 &quot;mapValue&quot;: { # A map value. # A map value.
1467 &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.
1468 &quot;a_key&quot;: # Object with schema name: Value
1469 },
1470 },
1471 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1472 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1473 &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.
1474 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1475 },
1476 ],
1477 },
1478 &quot;where&quot;: { # A filter. # The filter to apply.
1479 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
1480 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
1481 # Object with schema name: Filter
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001482 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001483 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
1484 },
1485 &quot;fieldFilter&quot;: { # A filter on a specific field. # A filter on a document field.
1486 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to filter by.
1487 &quot;fieldPath&quot;: &quot;A String&quot;,
1488 },
1489 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
1490 &quot;value&quot;: { # A message that can hold any of the supported value types. # The value to compare to.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001491 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001492 &quot;booleanValue&quot;: True or False, # A boolean value.
1493 &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.
1494 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001495 &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 -08001496 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1497 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1498 },
1499 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1500 &quot;mapValue&quot;: { # A map value. # A map value.
1501 &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.
1502 &quot;a_key&quot;: # Object with schema name: Value
1503 },
1504 },
1505 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1506 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1507 &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.
1508 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1509 },
1510 },
1511 &quot;unaryFilter&quot;: { # A filter with a single operand. # A filter that takes exactly one argument.
1512 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to which to apply the operator.
1513 &quot;fieldPath&quot;: &quot;A String&quot;,
1514 },
1515 &quot;op&quot;: &quot;A String&quot;, # The unary operator to apply.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001516 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001517 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001518 },
1519}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001520
1521 x__xgafv: string, V1 error format.
1522 Allowed values
1523 1 - v1 error format
1524 2 - v2 error format
1525
1526Returns:
1527 An object of the form:
1528
1529 { # The response for Firestore.PartitionQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001530 &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.
1531 &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.
1532 { # A position in a query result set.
1533 &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.
1534 &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.
1535 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001536 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001537 &quot;booleanValue&quot;: True or False, # A boolean value.
1538 &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.
1539 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001540 &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 -08001541 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1542 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1543 },
1544 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1545 &quot;mapValue&quot;: { # A map value. # A map value.
1546 &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.
1547 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001548 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001549 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001550 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1551 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1552 &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.
1553 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1554 },
1555 ],
1556 },
1557 ],
1558}</pre>
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001559</div>
1560
1561<div class="method">
1562 <code class="details" id="partitionQuery_next">partitionQuery_next(previous_request, previous_response)</code>
1563 <pre>Retrieves the next page of results.
1564
1565Args:
1566 previous_request: The request for the previous page. (required)
1567 previous_response: The response from the request for the previous page. (required)
1568
1569Returns:
1570 A request object that you can call &#x27;execute()&#x27; on to request the next
1571 page. Returns None if there are no more items in the collection.
1572 </pre>
1573</div>
1574
1575<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001576 <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 -07001577 <pre>Updates or inserts a document.
1578
1579Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001580 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 -07001581 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001582 The object takes the form of:
1583
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001584{ # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001585 &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 -08001586 &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 ``.
1587 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001588 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001589 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001590 &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 -08001591 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001592 &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 -08001593 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1594 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1595 },
1596 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001597 &quot;mapValue&quot;: { # A map value. # A map value.
1598 &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.
1599 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001600 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001601 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001602 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1603 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1604 &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.
1605 &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 -07001606 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001607 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001608 &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 -08001609 &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 -08001610}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001611
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001612 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 -07001613 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 -08001614 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 -08001615 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 -07001616 x__xgafv: string, V1 error format.
1617 Allowed values
1618 1 - v1 error format
1619 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001620
1621Returns:
1622 An object of the form:
1623
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001624 { # A Firestore document. Must not exceed 1 MiB - 4 bytes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001625 &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.
1626 &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 ``.
1627 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001628 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001629 &quot;booleanValue&quot;: True or False, # A boolean value.
1630 &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.
1631 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001632 &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 -08001633 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1634 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1635 },
1636 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1637 &quot;mapValue&quot;: { # A map value. # A map value.
1638 &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.
1639 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001640 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001641 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001642 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1643 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1644 &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.
1645 &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 -08001646 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001647 },
1648 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1649 &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.
1650}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001651</div>
1652
1653<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001654 <code class="details" id="rollback">rollback(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001655 <pre>Rolls back a transaction.
1656
1657Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001658 database: string, Required. The database name. In the format: `projects/{project_id}/databases/{database_id}`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001659 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001660 The object takes the form of:
1661
1662{ # The request for Firestore.Rollback.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001663 &quot;transaction&quot;: &quot;A String&quot;, # Required. The transaction to roll back.
1664}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001665
1666 x__xgafv: string, V1 error format.
1667 Allowed values
1668 1 - v1 error format
1669 2 - v2 error format
1670
1671Returns:
1672 An object of the form:
1673
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001674 { # 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 -08001675}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001676</div>
1677
1678<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001679 <code class="details" id="runQuery">runQuery(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001680 <pre>Runs a query.
1681
1682Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001683 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 -07001684 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001685 The object takes the form of:
1686
1687{ # The request for Firestore.RunQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001688 &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.
1689 &quot;readOnly&quot;: { # Options for a transaction that can only be used to read documents. # The transaction can only be used for read operations.
1690 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents at the given time. This may not be older than 60 seconds.
1691 },
1692 &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.
1693 &quot;retryTransaction&quot;: &quot;A String&quot;, # An optional transaction to retry.
1694 },
1695 },
1696 &quot;readTime&quot;: &quot;A String&quot;, # Reads documents as they were at the given time. This may not be older than 270 seconds.
1697 &quot;structuredQuery&quot;: { # A Firestore query. # A structured query.
1698 &quot;endAt&quot;: { # A position in a query result set. # A end point for the query results.
1699 &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.
1700 &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.
1701 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001702 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001703 &quot;booleanValue&quot;: True or False, # A boolean value.
1704 &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.
1705 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001706 &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 -08001707 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1708 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1709 },
1710 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1711 &quot;mapValue&quot;: { # A map value. # A map value.
1712 &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.
1713 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001714 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001715 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001716 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1717 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1718 &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.
1719 &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 -08001720 },
1721 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001722 },
1723 &quot;from&quot;: [ # The collections to query.
1724 { # A selection of a collection, such as `messages as m1`.
1725 &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.
1726 &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 -08001727 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001728 ],
1729 &quot;limit&quot;: 42, # The maximum number of results to return. Applies after all other constraints. Must be &gt;= 0 if specified.
1730 &quot;offset&quot;: 42, # The number of results to skip. Applies before limit, but after all other constraints. Must be &gt;= 0 if specified.
1731 &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__`
1732 { # An order on a field.
1733 &quot;direction&quot;: &quot;A String&quot;, # The direction to order by. Defaults to `ASCENDING`.
1734 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to order by.
1735 &quot;fieldPath&quot;: &quot;A String&quot;,
1736 },
1737 },
1738 ],
1739 &quot;select&quot;: { # The projection of document&#x27;s fields to return. # The projection to return.
1740 &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;]`.
1741 { # A reference to a field, such as `max(messages.time) as max_time`.
1742 &quot;fieldPath&quot;: &quot;A String&quot;,
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001743 },
1744 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001745 },
1746 &quot;startAt&quot;: { # A position in a query result set. # A starting point for the query results.
1747 &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.
1748 &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.
1749 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001750 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001751 &quot;booleanValue&quot;: True or False, # A boolean value.
1752 &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.
1753 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001754 &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 -08001755 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1756 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1757 },
1758 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1759 &quot;mapValue&quot;: { # A map value. # A map value.
1760 &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.
1761 &quot;a_key&quot;: # Object with schema name: Value
1762 },
1763 },
1764 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1765 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1766 &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.
1767 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1768 },
1769 ],
1770 },
1771 &quot;where&quot;: { # A filter. # The filter to apply.
1772 &quot;compositeFilter&quot;: { # A filter that merges multiple other filters using the given operator. # A composite filter.
1773 &quot;filters&quot;: [ # The list of filters to combine. Must contain at least one filter.
1774 # Object with schema name: Filter
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001775 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001776 &quot;op&quot;: &quot;A String&quot;, # The operator for combining multiple filters.
1777 },
1778 &quot;fieldFilter&quot;: { # A filter on a specific field. # A filter on a document field.
1779 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to filter by.
1780 &quot;fieldPath&quot;: &quot;A String&quot;,
1781 },
1782 &quot;op&quot;: &quot;A String&quot;, # The operator to filter by.
1783 &quot;value&quot;: { # A message that can hold any of the supported value types. # The value to compare to.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001784 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001785 &quot;booleanValue&quot;: True or False, # A boolean value.
1786 &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.
1787 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001788 &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 -08001789 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1790 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1791 },
1792 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1793 &quot;mapValue&quot;: { # A map value. # A map value.
1794 &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.
1795 &quot;a_key&quot;: # Object with schema name: Value
1796 },
1797 },
1798 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1799 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1800 &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.
1801 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1802 },
1803 },
1804 &quot;unaryFilter&quot;: { # A filter with a single operand. # A filter that takes exactly one argument.
1805 &quot;field&quot;: { # A reference to a field, such as `max(messages.time) as max_time`. # The field to which to apply the operator.
1806 &quot;fieldPath&quot;: &quot;A String&quot;,
1807 },
1808 &quot;op&quot;: &quot;A String&quot;, # The unary operator to apply.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001809 },
1810 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001811 },
1812 &quot;transaction&quot;: &quot;A String&quot;, # Reads documents in a transaction.
1813}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001814
1815 x__xgafv: string, V1 error format.
1816 Allowed values
1817 1 - v1 error format
1818 2 - v2 error format
1819
1820Returns:
1821 An object of the form:
1822
1823 { # The response for Firestore.RunQuery.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001824 &quot;document&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A query result. Not set when reporting partial progress.
1825 &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.
1826 &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 ``.
1827 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001828 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001829 &quot;booleanValue&quot;: True or False, # A boolean value.
1830 &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.
1831 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001832 &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 -08001833 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1834 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1835 },
1836 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1837 &quot;mapValue&quot;: { # A map value. # A map value.
1838 &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.
1839 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001840 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001841 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001842 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1843 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1844 &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.
1845 &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 -07001846 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001847 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001848 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1849 &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.
1850 },
1851 &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.
1852 &quot;skippedResults&quot;: 42, # The number of results that have been skipped due to an offset between the last response and the current response.
1853 &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.
1854}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001855</div>
1856
1857<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001858 <code class="details" id="write">write(database, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001859 <pre>Streams batches of document updates and deletes, in order.
1860
1861Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001862 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 -07001863 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001864 The object takes the form of:
1865
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001866{ # 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 -08001867 &quot;labels&quot;: { # Labels associated with this write request.
1868 &quot;a_key&quot;: &quot;A String&quot;,
1869 },
1870 &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.
1871 &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.
1872 &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.
1873 { # A write on a document.
1874 &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.
1875 &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 -07001876 &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 -08001877 },
1878 &quot;delete&quot;: &quot;A String&quot;, # A document name to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1879 &quot;transform&quot;: { # A transformation of a document. # Applies a transformation to a document.
1880 &quot;document&quot;: &quot;A String&quot;, # The name of the document to transform.
1881 &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 -08001882 { # A transformation of a field of the document.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001883 &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.
1884 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001885 { # A message that can hold any of the supported value types.
1886 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1887 &quot;booleanValue&quot;: True or False, # A boolean value.
1888 &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.
1889 &quot;doubleValue&quot;: 3.14, # A double value.
1890 &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.
1891 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1892 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1893 },
1894 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1895 &quot;mapValue&quot;: { # A map value. # A map value.
1896 &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.
1897 &quot;a_key&quot;: # Object with schema name: Value
1898 },
1899 },
1900 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1901 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1902 &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.
1903 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1904 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001905 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001906 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001907 &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 -08001908 &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-bot797d6772022-01-05 06:16:13 -08001909 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001910 &quot;booleanValue&quot;: True or False, # A boolean value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001911 &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 -08001912 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001913 &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 -08001914 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1915 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1916 },
1917 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001918 &quot;mapValue&quot;: { # A map value. # A map value.
1919 &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.
1920 &quot;a_key&quot;: # Object with schema name: Value
1921 },
1922 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001923 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1924 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1925 &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.
1926 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1927 },
1928 &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-bot797d6772022-01-05 06:16:13 -08001929 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001930 &quot;booleanValue&quot;: True or False, # A boolean value.
1931 &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.
1932 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001933 &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 -08001934 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1935 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1936 },
1937 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1938 &quot;mapValue&quot;: { # A map value. # A map value.
1939 &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.
1940 &quot;a_key&quot;: # Object with schema name: Value
1941 },
1942 },
1943 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1944 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1945 &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.
1946 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1947 },
1948 &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-bot797d6772022-01-05 06:16:13 -08001949 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001950 &quot;booleanValue&quot;: True or False, # A boolean value.
1951 &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.
1952 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07001953 &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 -08001954 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1955 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1956 },
1957 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1958 &quot;mapValue&quot;: { # A map value. # A map value.
1959 &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.
1960 &quot;a_key&quot;: # Object with schema name: Value
1961 },
1962 },
1963 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1964 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1965 &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.
1966 &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 -08001967 },
1968 &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.
1969 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -08001970 { # A message that can hold any of the supported value types.
1971 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
1972 &quot;booleanValue&quot;: True or False, # A boolean value.
1973 &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.
1974 &quot;doubleValue&quot;: 3.14, # A double value.
1975 &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.
1976 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
1977 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
1978 },
1979 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
1980 &quot;mapValue&quot;: { # A map value. # A map value.
1981 &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.
1982 &quot;a_key&quot;: # Object with schema name: Value
1983 },
1984 },
1985 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
1986 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
1987 &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.
1988 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
1989 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001990 ],
1991 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001992 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
1993 },
1994 ],
1995 },
1996 &quot;update&quot;: { # A Firestore document. Must not exceed 1 MiB - 4 bytes. # A document to write.
1997 &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.
1998 &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 ``.
1999 &quot;a_key&quot;: { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08002000 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002001 &quot;booleanValue&quot;: True or False, # A boolean value.
2002 &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.
2003 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002004 &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 -08002005 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2006 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2007 },
2008 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2009 &quot;mapValue&quot;: { # A map value. # A map value.
2010 &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.
2011 &quot;a_key&quot;: # Object with schema name: Value
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002012 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002013 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002014 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2015 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2016 &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.
2017 &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 -08002018 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002019 },
2020 &quot;name&quot;: &quot;A String&quot;, # The resource name of the document, for example `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2021 &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.
2022 },
2023 &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.
2024 &quot;fieldPaths&quot;: [ # The list of field paths in the mask. See Document.fields for a field path syntax reference.
2025 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002026 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002027 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002028 &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.
2029 { # A transformation of a field of the document.
2030 &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.
2031 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -08002032 { # A message that can hold any of the supported value types.
2033 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
2034 &quot;booleanValue&quot;: True or False, # A boolean value.
2035 &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.
2036 &quot;doubleValue&quot;: 3.14, # A double value.
2037 &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.
2038 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2039 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2040 },
2041 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2042 &quot;mapValue&quot;: { # A map value. # A map value.
2043 &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.
2044 &quot;a_key&quot;: # Object with schema name: Value
2045 },
2046 },
2047 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2048 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2049 &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.
2050 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2051 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002052 ],
2053 },
2054 &quot;fieldPath&quot;: &quot;A String&quot;, # The path of the field. See Document.fields for the field path syntax reference.
2055 &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-bot797d6772022-01-05 06:16:13 -08002056 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002057 &quot;booleanValue&quot;: True or False, # A boolean value.
2058 &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.
2059 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002060 &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 -08002061 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2062 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2063 },
2064 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2065 &quot;mapValue&quot;: { # A map value. # A map value.
2066 &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.
2067 &quot;a_key&quot;: # Object with schema name: Value
2068 },
2069 },
2070 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2071 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2072 &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.
2073 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2074 },
2075 &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-bot797d6772022-01-05 06:16:13 -08002076 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002077 &quot;booleanValue&quot;: True or False, # A boolean value.
2078 &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.
2079 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002080 &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 -08002081 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2082 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2083 },
2084 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2085 &quot;mapValue&quot;: { # A map value. # A map value.
2086 &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.
2087 &quot;a_key&quot;: # Object with schema name: Value
2088 },
2089 },
2090 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2091 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2092 &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.
2093 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2094 },
2095 &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-bot797d6772022-01-05 06:16:13 -08002096 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002097 &quot;booleanValue&quot;: True or False, # A boolean value.
2098 &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.
2099 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002100 &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 -08002101 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2102 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2103 },
2104 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2105 &quot;mapValue&quot;: { # A map value. # A map value.
2106 &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.
2107 &quot;a_key&quot;: # Object with schema name: Value
2108 },
2109 },
2110 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2111 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2112 &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.
2113 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2114 },
2115 &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.
2116 &quot;values&quot;: [ # Values in the array.
yoshi-code-bot797d6772022-01-05 06:16:13 -08002117 { # A message that can hold any of the supported value types.
2118 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
2119 &quot;booleanValue&quot;: True or False, # A boolean value.
2120 &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.
2121 &quot;doubleValue&quot;: 3.14, # A double value.
2122 &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.
2123 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2124 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2125 },
2126 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2127 &quot;mapValue&quot;: { # A map value. # A map value.
2128 &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.
2129 &quot;a_key&quot;: # Object with schema name: Value
2130 },
2131 },
2132 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2133 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2134 &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.
2135 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2136 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002137 ],
2138 },
2139 &quot;setToServerValue&quot;: &quot;A String&quot;, # Sets the field to the given server value.
2140 },
2141 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002142 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002143 ],
2144}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002145
2146 x__xgafv: string, V1 error format.
2147 Allowed values
2148 1 - v1 error format
2149 2 - v2 error format
2150
2151Returns:
2152 An object of the form:
2153
2154 { # The response for Firestore.Write.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002155 &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.
2156 &quot;streamId&quot;: &quot;A String&quot;, # The ID of the stream. Only set on the first message, when a new stream was created.
2157 &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.
2158 &quot;writeResults&quot;: [ # The result of applying the writes. This i-th write result corresponds to the i-th write in the request.
2159 { # The result of applying a write.
2160 &quot;transformResults&quot;: [ # The results of applying each DocumentTransform.FieldTransform, in the same order.
2161 { # A message that can hold any of the supported value types.
yoshi-code-bot797d6772022-01-05 06:16:13 -08002162 &quot;arrayValue&quot;: # Object with schema name: ArrayValue # An array value. Cannot directly contain another array value, though can contain an map which contains another array.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002163 &quot;booleanValue&quot;: True or False, # A boolean value.
2164 &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.
2165 &quot;doubleValue&quot;: 3.14, # A double value.
yoshi-code-botc0b883a2021-05-04 06:46:03 -07002166 &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 -08002167 &quot;latitude&quot;: 3.14, # The latitude in degrees. It must be in the range [-90.0, +90.0].
2168 &quot;longitude&quot;: 3.14, # The longitude in degrees. It must be in the range [-180.0, +180.0].
2169 },
2170 &quot;integerValue&quot;: &quot;A String&quot;, # An integer value.
2171 &quot;mapValue&quot;: { # A map value. # A map value.
2172 &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.
2173 &quot;a_key&quot;: # Object with schema name: Value
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002174 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002175 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002176 &quot;nullValue&quot;: &quot;A String&quot;, # A null value.
2177 &quot;referenceValue&quot;: &quot;A String&quot;, # A reference to a document. For example: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
2178 &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.
2179 &quot;timestampValue&quot;: &quot;A String&quot;, # A timestamp value. Precise only to microseconds. When stored, any additional precision is rounded down.
2180 },
2181 ],
2182 &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.
2183 },
2184 ],
2185}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002186</div>
2187
2188</body></html>