Debian Codegraph @

firestore/apiv1/firestorepb/write.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/firestore/v1/write.proto
20
21 package firestorepb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // A value that is calculated by the server.
39 type DocumentTransform_FieldTransform_ServerValue int32
40
41 const (
42 // Unspecified. This value must not be used.
43 DocumentTransform_FieldTransform_SERVER_VALUE_UNSPECIFIED DocumentTransform_FieldTransform_ServerValue = 0
44 // The time at which the server processed the request, with millisecond
45 // precision. If used on multiple fields (same or different documents) in
46 // a transaction, all the fields will get the same server timestamp.
47 DocumentTransform_FieldTransform_REQUEST_TIME DocumentTransform_FieldTransform_ServerValue = 1
48 )
49
50 // Enum value maps for DocumentTransform_FieldTransform_ServerValue.
51 var (
52 DocumentTransform_FieldTransform_ServerValue_name = map[int32]string{
53 0: "SERVER_VALUE_UNSPECIFIED",
54 1: "REQUEST_TIME",
55 }
56 DocumentTransform_FieldTransform_ServerValue_value = map[string]int32{
57 "SERVER_VALUE_UNSPECIFIED": 0,
58 "REQUEST_TIME": 1,
59 }
60 )
61
62 func (x DocumentTransform_FieldTransform_ServerValue) Enum() *DocumentTransform_FieldTransform_ServerValue {
63 p := new(DocumentTransform_FieldTransform_ServerValue)
64 *p = x
65 return p
66 }
67
68 func (x DocumentTransform_FieldTransform_ServerValue) String() string {
69 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
70 }
71
72 func (DocumentTransform_FieldTransform_ServerValue) Descriptor() protoreflect.EnumDescriptor {
73 return file_google_firestore_v1_write_proto_enumTypes[0].Descriptor()
74 }
75
76 func (DocumentTransform_FieldTransform_ServerValue) Type() protoreflect.EnumType {
77 return &file_google_firestore_v1_write_proto_enumTypes[0]
78 }
79
80 func (x DocumentTransform_FieldTransform_ServerValue) Number() protoreflect.EnumNumber {
81 return protoreflect.EnumNumber(x)
82 }
83
84 // Deprecated: Use DocumentTransform_FieldTransform_ServerValue.Descriptor instead.
85 func (DocumentTransform_FieldTransform_ServerValue) EnumDescriptor() ([]byte, []int) {
86 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{1, 0, 0}
87 }
88
89 // A write on a document.
90 type Write struct {
91 state protoimpl.MessageState
92 sizeCache protoimpl.SizeCache
93 unknownFields protoimpl.UnknownFields
94
95 // The operation to execute.
96 //
97 // Types that are assignable to Operation:
98 //
99 // *Write_Update
100 // *Write_Delete
101 // *Write_Transform
102 Operation isWrite_Operation `protobuf_oneof:"operation"`
103 // The fields to update in this write.
104 //
105 // This field can be set only when the operation is `update`.
106 // If the mask is not set for an `update` and the document exists, any
107 // existing data will be overwritten.
108 // If the mask is set and the document on the server has fields not covered by
109 // the mask, they are left unchanged.
110 // Fields referenced in the mask, but not present in the input document, are
111 // deleted from the document on the server.
112 // The field paths in this mask must not contain a reserved field name.
113 UpdateMask *DocumentMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
114 // The transforms to perform after update.
115 //
116 // This field can be set only when the operation is `update`. If present, this
117 // write is equivalent to performing `update` and `transform` to the same
118 // document atomically and in order.
119 UpdateTransforms []*DocumentTransform_FieldTransform `protobuf:"bytes,7,rep,name=update_transforms,json=updateTransforms,proto3" json:"update_transforms,omitempty"`
120 // An optional precondition on the document.
121 //
122 // The write will fail if this is set and not met by the target document.
123 CurrentDocument *Precondition `protobuf:"bytes,4,opt,name=current_document,json=currentDocument,proto3" json:"current_document,omitempty"`
124 }
125
126 func (x *Write) Reset() {
127 *x = Write{}
128 mi := &file_google_firestore_v1_write_proto_msgTypes[0]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132
133 func (x *Write) String() string {
134 return protoimpl.X.MessageStringOf(x)
135 }
136
137 func (*Write) ProtoMessage() {}
138
139 func (x *Write) ProtoReflect() protoreflect.Message {
140 mi := &file_google_firestore_v1_write_proto_msgTypes[0]
141 if x != nil {
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 if ms.LoadMessageInfo() == nil {
144 ms.StoreMessageInfo(mi)
145 }
146 return ms
147 }
148 return mi.MessageOf(x)
149 }
150
151 // Deprecated: Use Write.ProtoReflect.Descriptor instead.
152 func (*Write) Descriptor() ([]byte, []int) {
153 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{0}
154 }
155
156 func (m *Write) GetOperation() isWrite_Operation {
157 if m != nil {
158 return m.Operation
159 }
160 return nil
161 }
162
163 func (x *Write) GetUpdate() *Document {
164 if x, ok := x.GetOperation().(*Write_Update); ok {
165 return x.Update
166 }
167 return nil
168 }
169
170 func (x *Write) GetDelete() string {
171 if x, ok := x.GetOperation().(*Write_Delete); ok {
172 return x.Delete
173 }
174 return ""
175 }
176
177 func (x *Write) GetTransform() *DocumentTransform {
178 if x, ok := x.GetOperation().(*Write_Transform); ok {
179 return x.Transform
180 }
181 return nil
182 }
183
184 func (x *Write) GetUpdateMask() *DocumentMask {
185 if x != nil {
186 return x.UpdateMask
187 }
188 return nil
189 }
190
191 func (x *Write) GetUpdateTransforms() []*DocumentTransform_FieldTransform {
192 if x != nil {
193 return x.UpdateTransforms
194 }
195 return nil
196 }
197
198 func (x *Write) GetCurrentDocument() *Precondition {
199 if x != nil {
200 return x.CurrentDocument
201 }
202 return nil
203 }
204
205 type isWrite_Operation interface {
206 isWrite_Operation()
207 }
208
209 type Write_Update struct {
210 // A document to write.
211 Update *Document `protobuf:"bytes,1,opt,name=update,proto3,oneof"`
212 }
213
214 type Write_Delete struct {
215 // A document name to delete. In the format:
216 // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
217 Delete string `protobuf:"bytes,2,opt,name=delete,proto3,oneof"`
218 }
219
220 type Write_Transform struct {
221 // Applies a transformation to a document.
222 Transform *DocumentTransform `protobuf:"bytes,6,opt,name=transform,proto3,oneof"`
223 }
224
225 func (*Write_Update) isWrite_Operation() {}
226
227 func (*Write_Delete) isWrite_Operation() {}
228
229 func (*Write_Transform) isWrite_Operation() {}
230
231 // A transformation of a document.
232 type DocumentTransform struct {
233 state protoimpl.MessageState
234 sizeCache protoimpl.SizeCache
235 unknownFields protoimpl.UnknownFields
236
237 // The name of the document to transform.
238 Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
239 // The list of transformations to apply to the fields of the document, in
240 // order.
241 // This must not be empty.
242 FieldTransforms []*DocumentTransform_FieldTransform `protobuf:"bytes,2,rep,name=field_transforms,json=fieldTransforms,proto3" json:"field_transforms,omitempty"`
243 }
244
245 func (x *DocumentTransform) Reset() {
246 *x = DocumentTransform{}
247 mi := &file_google_firestore_v1_write_proto_msgTypes[1]
248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
249 ms.StoreMessageInfo(mi)
250 }
251
252 func (x *DocumentTransform) String() string {
253 return protoimpl.X.MessageStringOf(x)
254 }
255
256 func (*DocumentTransform) ProtoMessage() {}
257
258 func (x *DocumentTransform) ProtoReflect() protoreflect.Message {
259 mi := &file_google_firestore_v1_write_proto_msgTypes[1]
260 if x != nil {
261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
262 if ms.LoadMessageInfo() == nil {
263 ms.StoreMessageInfo(mi)
264 }
265 return ms
266 }
267 return mi.MessageOf(x)
268 }
269
270 // Deprecated: Use DocumentTransform.ProtoReflect.Descriptor instead.
271 func (*DocumentTransform) Descriptor() ([]byte, []int) {
272 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{1}
273 }
274
275 func (x *DocumentTransform) GetDocument() string {
276 if x != nil {
277 return x.Document
278 }
279 return ""
280 }
281
282 func (x *DocumentTransform) GetFieldTransforms() []*DocumentTransform_FieldTransform {
283 if x != nil {
284 return x.FieldTransforms
285 }
286 return nil
287 }
288
289 // The result of applying a write.
290 type WriteResult struct {
291 state protoimpl.MessageState
292 sizeCache protoimpl.SizeCache
293 unknownFields protoimpl.UnknownFields
294
295 // The last update time of the document after applying the write. Not set
296 // after a `delete`.
297 //
298 // If the write did not actually change the document, this will be the
299 // previous update_time.
300 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
301 // The results of applying each
302 // [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
303 // in the same order.
304 TransformResults []*Value `protobuf:"bytes,2,rep,name=transform_results,json=transformResults,proto3" json:"transform_results,omitempty"`
305 }
306
307 func (x *WriteResult) Reset() {
308 *x = WriteResult{}
309 mi := &file_google_firestore_v1_write_proto_msgTypes[2]
310 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
311 ms.StoreMessageInfo(mi)
312 }
313
314 func (x *WriteResult) String() string {
315 return protoimpl.X.MessageStringOf(x)
316 }
317
318 func (*WriteResult) ProtoMessage() {}
319
320 func (x *WriteResult) ProtoReflect() protoreflect.Message {
321 mi := &file_google_firestore_v1_write_proto_msgTypes[2]
322 if x != nil {
323 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
324 if ms.LoadMessageInfo() == nil {
325 ms.StoreMessageInfo(mi)
326 }
327 return ms
328 }
329 return mi.MessageOf(x)
330 }
331
332 // Deprecated: Use WriteResult.ProtoReflect.Descriptor instead.
333 func (*WriteResult) Descriptor() ([]byte, []int) {
334 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{2}
335 }
336
337 func (x *WriteResult) GetUpdateTime() *timestamppb.Timestamp {
338 if x != nil {
339 return x.UpdateTime
340 }
341 return nil
342 }
343
344 func (x *WriteResult) GetTransformResults() []*Value {
345 if x != nil {
346 return x.TransformResults
347 }
348 return nil
349 }
350
351 // A [Document][google.firestore.v1.Document] has changed.
352 //
353 // May be the result of multiple [writes][google.firestore.v1.Write], including
354 // deletes, that ultimately resulted in a new value for the
355 // [Document][google.firestore.v1.Document].
356 //
357 // Multiple [DocumentChange][google.firestore.v1.DocumentChange] messages may be
358 // returned for the same logical change, if multiple targets are affected.
359 type DocumentChange struct {
360 state protoimpl.MessageState
361 sizeCache protoimpl.SizeCache
362 unknownFields protoimpl.UnknownFields
363
364 // The new state of the [Document][google.firestore.v1.Document].
365 //
366 // If `mask` is set, contains only fields that were updated or added.
367 Document *Document `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
368 // A set of target IDs of targets that match this document.
369 TargetIds []int32 `protobuf:"varint,5,rep,packed,name=target_ids,json=targetIds,proto3" json:"target_ids,omitempty"`
370 // A set of target IDs for targets that no longer match this document.
371 RemovedTargetIds []int32 `protobuf:"varint,6,rep,packed,name=removed_target_ids,json=removedTargetIds,proto3" json:"removed_target_ids,omitempty"`
372 }
373
374 func (x *DocumentChange) Reset() {
375 *x = DocumentChange{}
376 mi := &file_google_firestore_v1_write_proto_msgTypes[3]
377 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
378 ms.StoreMessageInfo(mi)
379 }
380
381 func (x *DocumentChange) String() string {
382 return protoimpl.X.MessageStringOf(x)
383 }
384
385 func (*DocumentChange) ProtoMessage() {}
386
387 func (x *DocumentChange) ProtoReflect() protoreflect.Message {
388 mi := &file_google_firestore_v1_write_proto_msgTypes[3]
389 if x != nil {
390 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
391 if ms.LoadMessageInfo() == nil {
392 ms.StoreMessageInfo(mi)
393 }
394 return ms
395 }
396 return mi.MessageOf(x)
397 }
398
399 // Deprecated: Use DocumentChange.ProtoReflect.Descriptor instead.
400 func (*DocumentChange) Descriptor() ([]byte, []int) {
401 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{3}
402 }
403
404 func (x *DocumentChange) GetDocument() *Document {
405 if x != nil {
406 return x.Document
407 }
408 return nil
409 }
410
411 func (x *DocumentChange) GetTargetIds() []int32 {
412 if x != nil {
413 return x.TargetIds
414 }
415 return nil
416 }
417
418 func (x *DocumentChange) GetRemovedTargetIds() []int32 {
419 if x != nil {
420 return x.RemovedTargetIds
421 }
422 return nil
423 }
424
425 // A [Document][google.firestore.v1.Document] has been deleted.
426 //
427 // May be the result of multiple [writes][google.firestore.v1.Write], including
428 // updates, the last of which deleted the
429 // [Document][google.firestore.v1.Document].
430 //
431 // Multiple [DocumentDelete][google.firestore.v1.DocumentDelete] messages may be
432 // returned for the same logical delete, if multiple targets are affected.
433 type DocumentDelete struct {
434 state protoimpl.MessageState
435 sizeCache protoimpl.SizeCache
436 unknownFields protoimpl.UnknownFields
437
438 // The resource name of the [Document][google.firestore.v1.Document] that was
439 // deleted.
440 Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
441 // A set of target IDs for targets that previously matched this entity.
442 RemovedTargetIds []int32 `protobuf:"varint,6,rep,packed,name=removed_target_ids,json=removedTargetIds,proto3" json:"removed_target_ids,omitempty"`
443 // The read timestamp at which the delete was observed.
444 //
445 // Greater or equal to the `commit_time` of the delete.
446 ReadTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
447 }
448
449 func (x *DocumentDelete) Reset() {
450 *x = DocumentDelete{}
451 mi := &file_google_firestore_v1_write_proto_msgTypes[4]
452 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
453 ms.StoreMessageInfo(mi)
454 }
455
456 func (x *DocumentDelete) String() string {
457 return protoimpl.X.MessageStringOf(x)
458 }
459
460 func (*DocumentDelete) ProtoMessage() {}
461
462 func (x *DocumentDelete) ProtoReflect() protoreflect.Message {
463 mi := &file_google_firestore_v1_write_proto_msgTypes[4]
464 if x != nil {
465 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
466 if ms.LoadMessageInfo() == nil {
467 ms.StoreMessageInfo(mi)
468 }
469 return ms
470 }
471 return mi.MessageOf(x)
472 }
473
474 // Deprecated: Use DocumentDelete.ProtoReflect.Descriptor instead.
475 func (*DocumentDelete) Descriptor() ([]byte, []int) {
476 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{4}
477 }
478
479 func (x *DocumentDelete) GetDocument() string {
480 if x != nil {
481 return x.Document
482 }
483 return ""
484 }
485
486 func (x *DocumentDelete) GetRemovedTargetIds() []int32 {
487 if x != nil {
488 return x.RemovedTargetIds
489 }
490 return nil
491 }
492
493 func (x *DocumentDelete) GetReadTime() *timestamppb.Timestamp {
494 if x != nil {
495 return x.ReadTime
496 }
497 return nil
498 }
499
500 // A [Document][google.firestore.v1.Document] has been removed from the view of
501 // the targets.
502 //
503 // Sent if the document is no longer relevant to a target and is out of view.
504 // Can be sent instead of a DocumentDelete or a DocumentChange if the server
505 // can not send the new value of the document.
506 //
507 // Multiple [DocumentRemove][google.firestore.v1.DocumentRemove] messages may be
508 // returned for the same logical write or delete, if multiple targets are
509 // affected.
510 type DocumentRemove struct {
511 state protoimpl.MessageState
512 sizeCache protoimpl.SizeCache
513 unknownFields protoimpl.UnknownFields
514
515 // The resource name of the [Document][google.firestore.v1.Document] that has
516 // gone out of view.
517 Document string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
518 // A set of target IDs for targets that previously matched this document.
519 RemovedTargetIds []int32 `protobuf:"varint,2,rep,packed,name=removed_target_ids,json=removedTargetIds,proto3" json:"removed_target_ids,omitempty"`
520 // The read timestamp at which the remove was observed.
521 //
522 // Greater or equal to the `commit_time` of the change/delete/remove.
523 ReadTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"`
524 }
525
526 func (x *DocumentRemove) Reset() {
527 *x = DocumentRemove{}
528 mi := &file_google_firestore_v1_write_proto_msgTypes[5]
529 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
530 ms.StoreMessageInfo(mi)
531 }
532
533 func (x *DocumentRemove) String() string {
534 return protoimpl.X.MessageStringOf(x)
535 }
536
537 func (*DocumentRemove) ProtoMessage() {}
538
539 func (x *DocumentRemove) ProtoReflect() protoreflect.Message {
540 mi := &file_google_firestore_v1_write_proto_msgTypes[5]
541 if x != nil {
542 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
543 if ms.LoadMessageInfo() == nil {
544 ms.StoreMessageInfo(mi)
545 }
546 return ms
547 }
548 return mi.MessageOf(x)
549 }
550
551 // Deprecated: Use DocumentRemove.ProtoReflect.Descriptor instead.
552 func (*DocumentRemove) Descriptor() ([]byte, []int) {
553 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{5}
554 }
555
556 func (x *DocumentRemove) GetDocument() string {
557 if x != nil {
558 return x.Document
559 }
560 return ""
561 }
562
563 func (x *DocumentRemove) GetRemovedTargetIds() []int32 {
564 if x != nil {
565 return x.RemovedTargetIds
566 }
567 return nil
568 }
569
570 func (x *DocumentRemove) GetReadTime() *timestamppb.Timestamp {
571 if x != nil {
572 return x.ReadTime
573 }
574 return nil
575 }
576
577 // A digest of all the documents that match a given target.
578 type ExistenceFilter struct {
579 state protoimpl.MessageState
580 sizeCache protoimpl.SizeCache
581 unknownFields protoimpl.UnknownFields
582
583 // The target ID to which this filter applies.
584 TargetId int32 `protobuf:"varint,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
585 // The total count of documents that match
586 // [target_id][google.firestore.v1.ExistenceFilter.target_id].
587 //
588 // If different from the count of documents in the client that match, the
589 // client must manually determine which documents no longer match the target.
590 //
591 // The client can use the `unchanged_names` bloom filter to assist with
592 // this determination by testing ALL the document names against the filter;
593 // if the document name is NOT in the filter, it means the document no
594 // longer matches the target.
595 Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
596 // A bloom filter that, despite its name, contains the UTF-8 byte encodings of
597 // the resource names of ALL the documents that match
598 // [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
599 // `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
600 //
601 // This bloom filter may be omitted at the server's discretion, such as if it
602 // is deemed that the client will not make use of it or if it is too
603 // computationally expensive to calculate or transmit. Clients must gracefully
604 // handle this field being absent by falling back to the logic used before
605 // this field existed; that is, re-add the target without a resume token to
606 // figure out which documents in the client's cache are out of sync.
607 UnchangedNames *BloomFilter `protobuf:"bytes,3,opt,name=unchanged_names,json=unchangedNames,proto3" json:"unchanged_names,omitempty"`
608 }
609
610 func (x *ExistenceFilter) Reset() {
611 *x = ExistenceFilter{}
612 mi := &file_google_firestore_v1_write_proto_msgTypes[6]
613 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
614 ms.StoreMessageInfo(mi)
615 }
616
617 func (x *ExistenceFilter) String() string {
618 return protoimpl.X.MessageStringOf(x)
619 }
620
621 func (*ExistenceFilter) ProtoMessage() {}
622
623 func (x *ExistenceFilter) ProtoReflect() protoreflect.Message {
624 mi := &file_google_firestore_v1_write_proto_msgTypes[6]
625 if x != nil {
626 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
627 if ms.LoadMessageInfo() == nil {
628 ms.StoreMessageInfo(mi)
629 }
630 return ms
631 }
632 return mi.MessageOf(x)
633 }
634
635 // Deprecated: Use ExistenceFilter.ProtoReflect.Descriptor instead.
636 func (*ExistenceFilter) Descriptor() ([]byte, []int) {
637 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{6}
638 }
639
640 func (x *ExistenceFilter) GetTargetId() int32 {
641 if x != nil {
642 return x.TargetId
643 }
644 return 0
645 }
646
647 func (x *ExistenceFilter) GetCount() int32 {
648 if x != nil {
649 return x.Count
650 }
651 return 0
652 }
653
654 func (x *ExistenceFilter) GetUnchangedNames() *BloomFilter {
655 if x != nil {
656 return x.UnchangedNames
657 }
658 return nil
659 }
660
661 // A transformation of a field of the document.
662 type DocumentTransform_FieldTransform struct {
663 state protoimpl.MessageState
664 sizeCache protoimpl.SizeCache
665 unknownFields protoimpl.UnknownFields
666
667 // The path of the field. See
668 // [Document.fields][google.firestore.v1.Document.fields] for the field path
669 // syntax reference.
670 FieldPath string `protobuf:"bytes,1,opt,name=field_path,json=fieldPath,proto3" json:"field_path,omitempty"`
671 // The transformation to apply on the field.
672 //
673 // Types that are assignable to TransformType:
674 //
675 // *DocumentTransform_FieldTransform_SetToServerValue
676 // *DocumentTransform_FieldTransform_Increment
677 // *DocumentTransform_FieldTransform_Maximum
678 // *DocumentTransform_FieldTransform_Minimum
679 // *DocumentTransform_FieldTransform_AppendMissingElements
680 // *DocumentTransform_FieldTransform_RemoveAllFromArray
681 TransformType isDocumentTransform_FieldTransform_TransformType `protobuf_oneof:"transform_type"`
682 }
683
684 func (x *DocumentTransform_FieldTransform) Reset() {
685 *x = DocumentTransform_FieldTransform{}
686 mi := &file_google_firestore_v1_write_proto_msgTypes[7]
687 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
688 ms.StoreMessageInfo(mi)
689 }
690
691 func (x *DocumentTransform_FieldTransform) String() string {
692 return protoimpl.X.MessageStringOf(x)
693 }
694
695 func (*DocumentTransform_FieldTransform) ProtoMessage() {}
696
697 func (x *DocumentTransform_FieldTransform) ProtoReflect() protoreflect.Message {
698 mi := &file_google_firestore_v1_write_proto_msgTypes[7]
699 if x != nil {
700 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
701 if ms.LoadMessageInfo() == nil {
702 ms.StoreMessageInfo(mi)
703 }
704 return ms
705 }
706 return mi.MessageOf(x)
707 }
708
709 // Deprecated: Use DocumentTransform_FieldTransform.ProtoReflect.Descriptor instead.
710 func (*DocumentTransform_FieldTransform) Descriptor() ([]byte, []int) {
711 return file_google_firestore_v1_write_proto_rawDescGZIP(), []int{1, 0}
712 }
713
714 func (x *DocumentTransform_FieldTransform) GetFieldPath() string {
715 if x != nil {
716 return x.FieldPath
717 }
718 return ""
719 }
720
721 func (m *DocumentTransform_FieldTransform) GetTransformType() isDocumentTransform_FieldTransform_TransformType {
722 if m != nil {
723 return m.TransformType
724 }
725 return nil
726 }
727
728 func (x *DocumentTransform_FieldTransform) GetSetToServerValue() DocumentTransform_FieldTransform_ServerValue {
729 if x, ok := x.GetTransformType().(*DocumentTransform_FieldTransform_SetToServerValue); ok {
730 return x.SetToServerValue
731 }
732 return DocumentTransform_FieldTransform_SERVER_VALUE_UNSPECIFIED
733 }
734
735 func (x *DocumentTransform_FieldTransform) GetIncrement() *Value {
736 if x, ok := x.GetTransformType().(*DocumentTransform_FieldTransform_Increment); ok {
737 return x.Increment
738 }
739 return nil
740 }
741
742 func (x *DocumentTransform_FieldTransform) GetMaximum() *Value {
743 if x, ok := x.GetTransformType().(*DocumentTransform_FieldTransform_Maximum); ok {
744 return x.Maximum
745 }
746 return nil
747 }
748
749 func (x *DocumentTransform_FieldTransform) GetMinimum() *Value {
750 if x, ok := x.GetTransformType().(*DocumentTransform_FieldTransform_Minimum); ok {
751 return x.Minimum
752 }
753 return nil
754 }
755
756 func (x *DocumentTransform_FieldTransform) GetAppendMissingElements() *ArrayValue {
757 if x, ok := x.GetTransformType().(*DocumentTransform_FieldTransform_AppendMissingElements); ok {
758 return x.AppendMissingElements
759 }
760 return nil
761 }
762
763 func (x *DocumentTransform_FieldTransform) GetRemoveAllFromArray() *ArrayValue {
764 if x, ok := x.GetTransformType().(*DocumentTransform_FieldTransform_RemoveAllFromArray); ok {
765 return x.RemoveAllFromArray
766 }
767 return nil
768 }
769
770 type isDocumentTransform_FieldTransform_TransformType interface {
771 isDocumentTransform_FieldTransform_TransformType()
772 }
773
774 type DocumentTransform_FieldTransform_SetToServerValue struct {
775 // Sets the field to the given server value.
776 SetToServerValue DocumentTransform_FieldTransform_ServerValue `protobuf:"varint,2,opt,name=set_to_server_value,json=setToServerValue,proto3,enum=google.firestore.v1.DocumentTransform_FieldTransform_ServerValue,oneof"`
777 }
778
779 type DocumentTransform_FieldTransform_Increment struct {
780 // Adds the given value to the field's current value.
781 //
782 // This must be an integer or a double value.
783 // If the field is not an integer or double, or if the field does not yet
784 // exist, the transformation will set the field to the given value.
785 // If either of the given value or the current field value are doubles,
786 // both values will be interpreted as doubles. Double arithmetic and
787 // representation of double values follow IEEE 754 semantics.
788 // If there is positive/negative integer overflow, the field is resolved
789 // to the largest magnitude positive/negative integer.
790 Increment *Value `protobuf:"bytes,3,opt,name=increment,proto3,oneof"`
791 }
792
793 type DocumentTransform_FieldTransform_Maximum struct {
794 // Sets the field to the maximum of its current value and the given value.
795 //
796 // This must be an integer or a double value.
797 // If the field is not an integer or double, or if the field does not yet
798 // exist, the transformation will set the field to the given value.
799 // If a maximum operation is applied where the field and the input value
800 // are of mixed types (that is - one is an integer and one is a double)
801 // the field takes on the type of the larger operand. If the operands are
802 // equivalent (e.g. 3 and 3.0), the field does not change.
803 // 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
804 // zero input value is always the stored value.
805 // The maximum of any numeric value x and NaN is NaN.
806 Maximum *Value `protobuf:"bytes,4,opt,name=maximum,proto3,oneof"`
807 }
808
809 type DocumentTransform_FieldTransform_Minimum struct {
810 // Sets the field to the minimum of its current value and the given value.
811 //
812 // This must be an integer or a double value.
813 // If the field is not an integer or double, or if the field does not yet
814 // exist, the transformation will set the field to the input value.
815 // If a minimum operation is applied where the field and the input value
816 // are of mixed types (that is - one is an integer and one is a double)
817 // the field takes on the type of the smaller operand. If the operands are
818 // equivalent (e.g. 3 and 3.0), the field does not change.
819 // 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
820 // zero input value is always the stored value.
821 // The minimum of any numeric value x and NaN is NaN.
822 Minimum *Value `protobuf:"bytes,5,opt,name=minimum,proto3,oneof"`
823 }
824
825 type DocumentTransform_FieldTransform_AppendMissingElements struct {
826 // Append the given elements in order if they are not already present in
827 // the current field value.
828 // If the field is not an array, or if the field does not yet exist, it is
829 // first set to the empty array.
830 //
831 // Equivalent numbers of different types (e.g. 3L and 3.0) are
832 // considered equal when checking if a value is missing.
833 // NaN is equal to NaN, and Null is equal to Null.
834 // If the input contains multiple equivalent values, only the first will
835 // be considered.
836 //
837 // The corresponding transform_result will be the null value.
838 AppendMissingElements *ArrayValue `protobuf:"bytes,6,opt,name=append_missing_elements,json=appendMissingElements,proto3,oneof"`
839 }
840
841 type DocumentTransform_FieldTransform_RemoveAllFromArray struct {
842 // Remove all of the given elements from the array in the field.
843 // If the field is not an array, or if the field does not yet exist, it is
844 // set to the empty array.
845 //
846 // Equivalent numbers of the different types (e.g. 3L and 3.0) are
847 // considered equal when deciding whether an element should be removed.
848 // NaN is equal to NaN, and Null is equal to Null.
849 // This will remove all equivalent values if there are duplicates.
850 //
851 // The corresponding transform_result will be the null value.
852 RemoveAllFromArray *ArrayValue `protobuf:"bytes,7,opt,name=remove_all_from_array,json=removeAllFromArray,proto3,oneof"`
853 }
854
855 func (*DocumentTransform_FieldTransform_SetToServerValue) isDocumentTransform_FieldTransform_TransformType() {
856 }
857
858 func (*DocumentTransform_FieldTransform_Increment) isDocumentTransform_FieldTransform_TransformType() {
859 }
860
861 func (*DocumentTransform_FieldTransform_Maximum) isDocumentTransform_FieldTransform_TransformType() {}
862
863 func (*DocumentTransform_FieldTransform_Minimum) isDocumentTransform_FieldTransform_TransformType() {}
864
865 func (*DocumentTransform_FieldTransform_AppendMissingElements) isDocumentTransform_FieldTransform_TransformType() {
866 }
867
868 func (*DocumentTransform_FieldTransform_RemoveAllFromArray) isDocumentTransform_FieldTransform_TransformType() {
869 }
870
871 var File_google_firestore_v1_write_proto protoreflect.FileDescriptor
872
873 var file_google_firestore_v1_write_proto_rawDesc = []byte{
874 0x0a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
875 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x72, 0x69, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
876 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
877 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66,
878 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x6c, 0x6f, 0x6f,
879 0x6d, 0x5f, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
880 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
881 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
882 0x1a, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
883 0x72, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70,
884 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
885 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e,
886 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x03, 0x0a, 0x05, 0x57, 0x72, 0x69, 0x74, 0x65, 0x12,
887 0x37, 0x0a, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
888 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
889 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x48, 0x00,
890 0x52, 0x06, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x18, 0x0a, 0x06, 0x64, 0x65, 0x6c, 0x65,
891 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x64, 0x65, 0x6c, 0x65,
892 0x74, 0x65, 0x12, 0x46, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18,
893 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66,
894 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75,
895 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x48, 0x00, 0x52,
896 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x42, 0x0a, 0x0b, 0x75, 0x70,
897 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
898 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f,
899 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x61,
900 0x73, 0x6b, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x62,
901 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
902 0x72, 0x6d, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
903 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e,
904 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
905 0x6d, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
906 0x52, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
907 0x6d, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x6f,
908 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
909 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
910 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52,
911 0x0f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74,
912 0x42, 0x0b, 0x0a, 0x09, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xe5, 0x05,
913 0x0a, 0x11, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66,
914 0x6f, 0x72, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18,
915 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12,
916 0x60, 0x0a, 0x10, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f,
917 0x72, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
918 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e,
919 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72,
920 0x6d, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
921 0x52, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
922 0x73, 0x1a, 0xd1, 0x04, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x72, 0x61, 0x6e, 0x73,
923 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x70, 0x61,
924 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x50,
925 0x61, 0x74, 0x68, 0x12, 0x72, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x65,
926 0x72, 0x76, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
927 0x32, 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
928 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x54,
929 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x72,
930 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x61,
931 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x10, 0x73, 0x65, 0x74, 0x54, 0x6f, 0x53, 0x65, 0x72, 0x76,
932 0x65, 0x72, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x69, 0x6e, 0x63, 0x72, 0x65,
933 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
934 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31,
935 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d,
936 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x04,
937 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69,
938 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65,
939 0x48, 0x00, 0x52, 0x07, 0x6d, 0x61, 0x78, 0x69, 0x6d, 0x75, 0x6d, 0x12, 0x36, 0x0a, 0x07, 0x6d,
940 0x69, 0x6e, 0x69, 0x6d, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
941 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e,
942 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x07, 0x6d, 0x69, 0x6e, 0x69,
943 0x6d, 0x75, 0x6d, 0x12, 0x59, 0x0a, 0x17, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x5f, 0x6d, 0x69,
944 0x73, 0x73, 0x69, 0x6e, 0x67, 0x5f, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06,
945 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69,
946 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79,
947 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x15, 0x61, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x4d,
948 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x54,
949 0x0a, 0x15, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 0x61, 0x6c, 0x6c, 0x5f, 0x66, 0x72, 0x6f,
950 0x6d, 0x5f, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
951 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
952 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00,
953 0x52, 0x12, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x41, 0x6c, 0x6c, 0x46, 0x72, 0x6f, 0x6d, 0x41,
954 0x72, 0x72, 0x61, 0x79, 0x22, 0x3d, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x56, 0x61,
955 0x6c, 0x75, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x56, 0x41,
956 0x4c, 0x55, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
957 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x5f, 0x54, 0x49, 0x4d,
958 0x45, 0x10, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d,
959 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x0b, 0x57, 0x72, 0x69, 0x74, 0x65, 0x52,
960 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f,
961 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f,
962 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d,
963 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69,
964 0x6d, 0x65, 0x12, 0x47, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x5f,
965 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
966 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65,
967 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x10, 0x74, 0x72, 0x61, 0x6e, 0x73,
968 0x66, 0x6f, 0x72, 0x6d, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x98, 0x01, 0x0a, 0x0e,
969 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, 0x39,
970 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
971 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74,
972 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52,
973 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x72,
974 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x74,
975 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x6d, 0x6f,
976 0x76, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x06,
977 0x20, 0x03, 0x28, 0x05, 0x52, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54, 0x61, 0x72,
978 0x67, 0x65, 0x74, 0x49, 0x64, 0x73, 0x22, 0x93, 0x01, 0x0a, 0x0e, 0x44, 0x6f, 0x63, 0x75, 0x6d,
979 0x65, 0x6e, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x6f, 0x63,
980 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6f, 0x63,
981 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64,
982 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28,
983 0x05, 0x52, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
984 0x49, 0x64, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65,
985 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
986 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
987 0x6d, 0x70, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x93, 0x01, 0x0a,
988 0x0e, 0x44, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12,
989 0x1a, 0x0a, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
990 0x09, 0x52, 0x08, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x72,
991 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x69, 0x64,
992 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x10, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x64,
993 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x64, 0x73, 0x12, 0x37, 0x0a, 0x09, 0x72, 0x65, 0x61,
994 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
995 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
996 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, 0x54, 0x69,
997 0x6d, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x63, 0x65,
998 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
999 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x74, 0x61, 0x72, 0x67, 0x65,
1000 0x74, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
1001 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x49, 0x0a, 0x0f, 0x75, 0x6e, 0x63,
1002 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01,
1003 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65,
1004 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6c, 0x6f, 0x6f, 0x6d, 0x46, 0x69,
1005 0x6c, 0x74, 0x65, 0x72, 0x52, 0x0e, 0x75, 0x6e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x4e,
1006 0x61, 0x6d, 0x65, 0x73, 0x42, 0xc2, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
1007 0x67, 0x6c, 0x65, 0x2e, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x76, 0x31,
1008 0x42, 0x0a, 0x57, 0x72, 0x69, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b,
1009 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
1010 0x2f, 0x67, 0x6f, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70,
1011 0x69, 0x76, 0x31, 0x2f, 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0x3b,
1012 0x66, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x70, 0x62, 0xa2, 0x02, 0x04, 0x47, 0x43,
1013 0x46, 0x53, 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75,
1014 0x64, 0x2e, 0x46, 0x69, 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x56, 0x31, 0xca, 0x02,
1015 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x46, 0x69,
1016 0x72, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1c, 0x47, 0x6f, 0x6f,
1017 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x46, 0x69, 0x72, 0x65,
1018 0x73, 0x74, 0x6f, 0x72, 0x65, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
1019 0x33,
1020 }
1021
1022 var (
1023 file_google_firestore_v1_write_proto_rawDescOnce sync.Once
1024 file_google_firestore_v1_write_proto_rawDescData = file_google_firestore_v1_write_proto_rawDesc
1025 )
1026
1027 func file_google_firestore_v1_write_proto_rawDescGZIP() []byte {
1028 file_google_firestore_v1_write_proto_rawDescOnce.Do(func() {
1029 file_google_firestore_v1_write_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_firestore_v1_write_proto_rawDescData)
1030 })
1031 return file_google_firestore_v1_write_proto_rawDescData
1032 }
1033
1034 var file_google_firestore_v1_write_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
1035 var file_google_firestore_v1_write_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
1036 var file_google_firestore_v1_write_proto_goTypes = []any{
1037 (DocumentTransform_FieldTransform_ServerValue)(0), // 0: google.firestore.v1.DocumentTransform.FieldTransform.ServerValue
1038 (*Write)(nil), // 1: google.firestore.v1.Write
1039 (*DocumentTransform)(nil), // 2: google.firestore.v1.DocumentTransform
1040 (*WriteResult)(nil), // 3: google.firestore.v1.WriteResult
1041 (*DocumentChange)(nil), // 4: google.firestore.v1.DocumentChange
1042 (*DocumentDelete)(nil), // 5: google.firestore.v1.DocumentDelete
1043 (*DocumentRemove)(nil), // 6: google.firestore.v1.DocumentRemove
1044 (*ExistenceFilter)(nil), // 7: google.firestore.v1.ExistenceFilter
1045 (*DocumentTransform_FieldTransform)(nil), // 8: google.firestore.v1.DocumentTransform.FieldTransform
1046 (*Document)(nil), // 9: google.firestore.v1.Document
1047 (*DocumentMask)(nil), // 10: google.firestore.v1.DocumentMask
1048 (*Precondition)(nil), // 11: google.firestore.v1.Precondition
1049 (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp
1050 (*Value)(nil), // 13: google.firestore.v1.Value
1051 (*BloomFilter)(nil), // 14: google.firestore.v1.BloomFilter
1052 (*ArrayValue)(nil), // 15: google.firestore.v1.ArrayValue
1053 }
1054 var file_google_firestore_v1_write_proto_depIdxs = []int32{
1055 9, // 0: google.firestore.v1.Write.update:type_name -> google.firestore.v1.Document
1056 2, // 1: google.firestore.v1.Write.transform:type_name -> google.firestore.v1.DocumentTransform
1057 10, // 2: google.firestore.v1.Write.update_mask:type_name -> google.firestore.v1.DocumentMask
1058 8, // 3: google.firestore.v1.Write.update_transforms:type_name -> google.firestore.v1.DocumentTransform.FieldTransform
1059 11, // 4: google.firestore.v1.Write.current_document:type_name -> google.firestore.v1.Precondition
1060 8, // 5: google.firestore.v1.DocumentTransform.field_transforms:type_name -> google.firestore.v1.DocumentTransform.FieldTransform
1061 12, // 6: google.firestore.v1.WriteResult.update_time:type_name -> google.protobuf.Timestamp
1062 13, // 7: google.firestore.v1.WriteResult.transform_results:type_name -> google.firestore.v1.Value
1063 9, // 8: google.firestore.v1.DocumentChange.document:type_name -> google.firestore.v1.Document
1064 12, // 9: google.firestore.v1.DocumentDelete.read_time:type_name -> google.protobuf.Timestamp
1065 12, // 10: google.firestore.v1.DocumentRemove.read_time:type_name -> google.protobuf.Timestamp
1066 14, // 11: google.firestore.v1.ExistenceFilter.unchanged_names:type_name -> google.firestore.v1.BloomFilter
1067 0, // 12: google.firestore.v1.DocumentTransform.FieldTransform.set_to_server_value:type_name -> google.firestore.v1.DocumentTransform.FieldTransform.ServerValue
1068 13, // 13: google.firestore.v1.DocumentTransform.FieldTransform.increment:type_name -> google.firestore.v1.Value
1069 13, // 14: google.firestore.v1.DocumentTransform.FieldTransform.maximum:type_name -> google.firestore.v1.Value
1070 13, // 15: google.firestore.v1.DocumentTransform.FieldTransform.minimum:type_name -> google.firestore.v1.Value
1071 15, // 16: google.firestore.v1.DocumentTransform.FieldTransform.append_missing_elements:type_name -> google.firestore.v1.ArrayValue
1072 15, // 17: google.firestore.v1.DocumentTransform.FieldTransform.remove_all_from_array:type_name -> google.firestore.v1.ArrayValue
1073 18, // [18:18] is the sub-list for method output_type
1074 18, // [18:18] is the sub-list for method input_type
1075 18, // [18:18] is the sub-list for extension type_name
1076 18, // [18:18] is the sub-list for extension extendee
1077 0, // [0:18] is the sub-list for field type_name
1078 }
1079
1080 func init() { file_google_firestore_v1_write_proto_init() }
1081 func file_google_firestore_v1_write_proto_init() {
1082 if File_google_firestore_v1_write_proto != nil {
1083 return
1084 }
1085 file_google_firestore_v1_bloom_filter_proto_init()
1086 file_google_firestore_v1_common_proto_init()
1087 file_google_firestore_v1_document_proto_init()
1088 file_google_firestore_v1_write_proto_msgTypes[0].OneofWrappers = []any{
1089 (*Write_Update)(nil),
1090 (*Write_Delete)(nil),
1091 (*Write_Transform)(nil),
1092 }
1093 file_google_firestore_v1_write_proto_msgTypes[7].OneofWrappers = []any{
1094 (*DocumentTransform_FieldTransform_SetToServerValue)(nil),
1095 (*DocumentTransform_FieldTransform_Increment)(nil),
1096 (*DocumentTransform_FieldTransform_Maximum)(nil),
1097 (*DocumentTransform_FieldTransform_Minimum)(nil),
1098 (*DocumentTransform_FieldTransform_AppendMissingElements)(nil),
1099 (*DocumentTransform_FieldTransform_RemoveAllFromArray)(nil),
1100 }
1101 type x struct{}
1102 out := protoimpl.TypeBuilder{
1103 File: protoimpl.DescBuilder{
1104 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1105 RawDescriptor: file_google_firestore_v1_write_proto_rawDesc,
1106 NumEnums: 1,
1107 NumMessages: 8,
1108 NumExtensions: 0,
1109 NumServices: 0,
1110 },
1111 GoTypes: file_google_firestore_v1_write_proto_goTypes,
1112 DependencyIndexes: file_google_firestore_v1_write_proto_depIdxs,
1113 EnumInfos: file_google_firestore_v1_write_proto_enumTypes,
1114 MessageInfos: file_google_firestore_v1_write_proto_msgTypes,
1115 }.Build()
1116 File_google_firestore_v1_write_proto = out.File
1117 file_google_firestore_v1_write_proto_rawDesc = nil
1118 file_google_firestore_v1_write_proto_goTypes = nil
1119 file_google_firestore_v1_write_proto_depIdxs = nil
1120 }