@@ -54,18 +54,21 @@ namespace protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto {
54
54
struct TableStruct {
55
55
static const ::google::protobuf::internal::ParseTableField entries[];
56
56
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
57
- static const ::google::protobuf::internal::ParseTable schema[2 ];
57
+ static const ::google::protobuf::internal::ParseTable schema[3 ];
58
58
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
59
59
static const ::google::protobuf::internal::SerializationTable serialization_table[];
60
60
static const ::google::protobuf::uint32 offsets[];
61
61
};
62
62
void AddDescriptors ();
63
63
void InitDefaultsNoDocumentImpl ();
64
64
void InitDefaultsNoDocument ();
65
+ void InitDefaultsUnknownDocumentImpl ();
66
+ void InitDefaultsUnknownDocument ();
65
67
void InitDefaultsMaybeDocumentImpl ();
66
68
void InitDefaultsMaybeDocument ();
67
69
inline void InitDefaults () {
68
70
InitDefaultsNoDocument ();
71
+ InitDefaultsUnknownDocument ();
69
72
InitDefaultsMaybeDocument ();
70
73
}
71
74
} // namespace protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto
@@ -77,6 +80,9 @@ extern MaybeDocumentDefaultTypeInternal _MaybeDocument_default_instance_;
77
80
class NoDocument ;
78
81
class NoDocumentDefaultTypeInternal ;
79
82
extern NoDocumentDefaultTypeInternal _NoDocument_default_instance_;
83
+ class UnknownDocument ;
84
+ class UnknownDocumentDefaultTypeInternal ;
85
+ extern UnknownDocumentDefaultTypeInternal _UnknownDocument_default_instance_;
80
86
} // namespace client
81
87
} // namespace firestore
82
88
namespace firestore {
@@ -201,6 +207,123 @@ class NoDocument : public ::google::protobuf::Message /* @@protoc_insertion_poin
201
207
};
202
208
// -------------------------------------------------------------------
203
209
210
+ class UnknownDocument : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.UnknownDocument) */ {
211
+ public:
212
+ UnknownDocument ();
213
+ virtual ~UnknownDocument ();
214
+
215
+ UnknownDocument (const UnknownDocument& from);
216
+
217
+ inline UnknownDocument& operator =(const UnknownDocument& from) {
218
+ CopyFrom (from);
219
+ return *this ;
220
+ }
221
+ #if LANG_CXX11
222
+ UnknownDocument (UnknownDocument&& from) noexcept
223
+ : UnknownDocument() {
224
+ *this = ::std::move (from);
225
+ }
226
+
227
+ inline UnknownDocument& operator =(UnknownDocument&& from) noexcept {
228
+ if (GetArenaNoVirtual () == from.GetArenaNoVirtual ()) {
229
+ if (this != &from) InternalSwap (&from);
230
+ } else {
231
+ CopyFrom (from);
232
+ }
233
+ return *this ;
234
+ }
235
+ #endif
236
+ static const ::google::protobuf::Descriptor* descriptor ();
237
+ static const UnknownDocument& default_instance ();
238
+
239
+ static void InitAsDefaultInstance (); // FOR INTERNAL USE ONLY
240
+ static inline const UnknownDocument* internal_default_instance () {
241
+ return reinterpret_cast <const UnknownDocument*>(
242
+ &_UnknownDocument_default_instance_);
243
+ }
244
+ static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
245
+ 1 ;
246
+
247
+ void Swap (UnknownDocument* other);
248
+ friend void swap (UnknownDocument& a, UnknownDocument& b) {
249
+ a.Swap (&b);
250
+ }
251
+
252
+ // implements Message ----------------------------------------------
253
+
254
+ inline UnknownDocument* New () const PROTOBUF_FINAL { return New (NULL ); }
255
+
256
+ UnknownDocument* New (::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
257
+ void CopyFrom (const ::google::protobuf::Message& from) PROTOBUF_FINAL;
258
+ void MergeFrom (const ::google::protobuf::Message& from) PROTOBUF_FINAL;
259
+ void CopyFrom (const UnknownDocument& from);
260
+ void MergeFrom (const UnknownDocument& from);
261
+ void Clear () PROTOBUF_FINAL;
262
+ bool IsInitialized () const PROTOBUF_FINAL;
263
+
264
+ size_t ByteSizeLong () const PROTOBUF_FINAL;
265
+ bool MergePartialFromCodedStream (
266
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
267
+ void SerializeWithCachedSizes (
268
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
269
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray (
270
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
271
+ int GetCachedSize () const PROTOBUF_FINAL { return _cached_size_; }
272
+ private:
273
+ void SharedCtor ();
274
+ void SharedDtor ();
275
+ void SetCachedSize (int size) const PROTOBUF_FINAL;
276
+ void InternalSwap (UnknownDocument* other);
277
+ private:
278
+ inline ::google::protobuf::Arena* GetArenaNoVirtual () const {
279
+ return NULL ;
280
+ }
281
+ inline void * MaybeArenaPtr () const {
282
+ return NULL ;
283
+ }
284
+ public:
285
+
286
+ ::google::protobuf::Metadata GetMetadata () const PROTOBUF_FINAL;
287
+
288
+ // nested types ----------------------------------------------------
289
+
290
+ // accessors -------------------------------------------------------
291
+
292
+ // string name = 1;
293
+ void clear_name ();
294
+ static const int kNameFieldNumber = 1 ;
295
+ const ::std::string& name () const ;
296
+ void set_name (const ::std::string& value);
297
+ #if LANG_CXX11
298
+ void set_name (::std::string&& value);
299
+ #endif
300
+ void set_name (const char * value);
301
+ void set_name (const char * value, size_t size);
302
+ ::std::string* mutable_name ();
303
+ ::std::string* release_name ();
304
+ void set_allocated_name (::std::string* name);
305
+
306
+ // .google.protobuf.Timestamp version = 2;
307
+ bool has_version () const ;
308
+ void clear_version ();
309
+ static const int kVersionFieldNumber = 2 ;
310
+ const ::google::protobuf::Timestamp& version () const ;
311
+ ::google::protobuf::Timestamp* release_version ();
312
+ ::google::protobuf::Timestamp* mutable_version ();
313
+ void set_allocated_version (::google::protobuf::Timestamp* version);
314
+
315
+ // @@protoc_insertion_point(class_scope:firestore.client.UnknownDocument)
316
+ private:
317
+
318
+ ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
319
+ ::google::protobuf::internal::ArenaStringPtr name_;
320
+ ::google::protobuf::Timestamp* version_;
321
+ mutable int _cached_size_;
322
+ friend struct ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::TableStruct;
323
+ friend void ::protobuf_firestore_2flocal_2fmaybe_5fdocument_2eproto::InitDefaultsUnknownDocumentImpl ();
324
+ };
325
+ // -------------------------------------------------------------------
326
+
204
327
class MaybeDocument : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.MaybeDocument) */ {
205
328
public:
206
329
MaybeDocument ();
@@ -233,6 +356,7 @@ class MaybeDocument : public ::google::protobuf::Message /* @@protoc_insertion_p
233
356
enum DocumentTypeCase {
234
357
kNoDocument = 1 ,
235
358
kDocument = 2 ,
359
+ kUnknownDocument = 3 ,
236
360
DOCUMENT_TYPE_NOT_SET = 0 ,
237
361
};
238
362
@@ -242,7 +366,7 @@ class MaybeDocument : public ::google::protobuf::Message /* @@protoc_insertion_p
242
366
&_MaybeDocument_default_instance_);
243
367
}
244
368
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
245
- 1 ;
369
+ 2 ;
246
370
247
371
void Swap (MaybeDocument* other);
248
372
friend void swap (MaybeDocument& a, MaybeDocument& b) {
@@ -289,6 +413,12 @@ class MaybeDocument : public ::google::protobuf::Message /* @@protoc_insertion_p
289
413
290
414
// accessors -------------------------------------------------------
291
415
416
+ // bool has_committed_mutations = 4;
417
+ void clear_has_committed_mutations ();
418
+ static const int kHasCommittedMutationsFieldNumber = 4 ;
419
+ bool has_committed_mutations () const ;
420
+ void set_has_committed_mutations (bool value);
421
+
292
422
// .firestore.client.NoDocument no_document = 1;
293
423
bool has_no_document () const ;
294
424
void clear_no_document ();
@@ -307,21 +437,33 @@ class MaybeDocument : public ::google::protobuf::Message /* @@protoc_insertion_p
307
437
::google::firestore::v1beta1::Document* mutable_document ();
308
438
void set_allocated_document (::google::firestore::v1beta1::Document* document);
309
439
440
+ // .firestore.client.UnknownDocument unknown_document = 3;
441
+ bool has_unknown_document () const ;
442
+ void clear_unknown_document ();
443
+ static const int kUnknownDocumentFieldNumber = 3 ;
444
+ const ::firestore::client::UnknownDocument& unknown_document () const ;
445
+ ::firestore::client::UnknownDocument* release_unknown_document ();
446
+ ::firestore::client::UnknownDocument* mutable_unknown_document ();
447
+ void set_allocated_unknown_document (::firestore::client::UnknownDocument* unknown_document);
448
+
310
449
DocumentTypeCase document_type_case () const ;
311
450
// @@protoc_insertion_point(class_scope:firestore.client.MaybeDocument)
312
451
private:
313
452
void set_has_no_document ();
314
453
void set_has_document ();
454
+ void set_has_unknown_document ();
315
455
316
456
inline bool has_document_type () const ;
317
457
void clear_document_type ();
318
458
inline void clear_has_document_type ();
319
459
320
460
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
461
+ bool has_committed_mutations_;
321
462
union DocumentTypeUnion {
322
463
DocumentTypeUnion () {}
323
464
::firestore::client::NoDocument* no_document_;
324
465
::google::firestore::v1beta1::Document* document_;
466
+ ::firestore::client::UnknownDocument* unknown_document_;
325
467
} document_type_;
326
468
mutable int _cached_size_;
327
469
::google::protobuf::uint32 _oneof_case_[1 ];
@@ -440,6 +582,108 @@ inline void NoDocument::set_allocated_read_time(::google::protobuf::Timestamp* r
440
582
441
583
// -------------------------------------------------------------------
442
584
585
+ // UnknownDocument
586
+
587
+ // string name = 1;
588
+ inline void UnknownDocument::clear_name () {
589
+ name_.ClearToEmptyNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited ());
590
+ }
591
+ inline const ::std::string& UnknownDocument::name () const {
592
+ // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.name)
593
+ return name_.GetNoArena ();
594
+ }
595
+ inline void UnknownDocument::set_name (const ::std::string& value) {
596
+
597
+ name_.SetNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited (), value);
598
+ // @@protoc_insertion_point(field_set:firestore.client.UnknownDocument.name)
599
+ }
600
+ #if LANG_CXX11
601
+ inline void UnknownDocument::set_name (::std::string&& value) {
602
+
603
+ name_.SetNoArena (
604
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::move (value));
605
+ // @@protoc_insertion_point(field_set_rvalue:firestore.client.UnknownDocument.name)
606
+ }
607
+ #endif
608
+ inline void UnknownDocument::set_name (const char * value) {
609
+ GOOGLE_DCHECK (value != NULL );
610
+
611
+ name_.SetNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited (), ::std::string (value));
612
+ // @@protoc_insertion_point(field_set_char:firestore.client.UnknownDocument.name)
613
+ }
614
+ inline void UnknownDocument::set_name (const char * value, size_t size) {
615
+
616
+ name_.SetNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited (),
617
+ ::std::string (reinterpret_cast <const char *>(value), size));
618
+ // @@protoc_insertion_point(field_set_pointer:firestore.client.UnknownDocument.name)
619
+ }
620
+ inline ::std::string* UnknownDocument::mutable_name () {
621
+
622
+ // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.name)
623
+ return name_.MutableNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited ());
624
+ }
625
+ inline ::std::string* UnknownDocument::release_name () {
626
+ // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.name)
627
+
628
+ return name_.ReleaseNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited ());
629
+ }
630
+ inline void UnknownDocument::set_allocated_name (::std::string* name) {
631
+ if (name != NULL ) {
632
+
633
+ } else {
634
+
635
+ }
636
+ name_.SetAllocatedNoArena (&::google::protobuf::internal::GetEmptyStringAlreadyInited (), name);
637
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.name)
638
+ }
639
+
640
+ // .google.protobuf.Timestamp version = 2;
641
+ inline bool UnknownDocument::has_version () const {
642
+ return this != internal_default_instance () && version_ != NULL ;
643
+ }
644
+ inline const ::google::protobuf::Timestamp& UnknownDocument::version () const {
645
+ const ::google::protobuf::Timestamp* p = version_;
646
+ // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.version)
647
+ return p != NULL ? *p : *reinterpret_cast <const ::google::protobuf::Timestamp*>(
648
+ &::google::protobuf::_Timestamp_default_instance_);
649
+ }
650
+ inline ::google::protobuf::Timestamp* UnknownDocument::release_version () {
651
+ // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.version)
652
+
653
+ ::google::protobuf::Timestamp* temp = version_;
654
+ version_ = NULL ;
655
+ return temp;
656
+ }
657
+ inline ::google::protobuf::Timestamp* UnknownDocument::mutable_version () {
658
+
659
+ if (version_ == NULL ) {
660
+ version_ = new ::google::protobuf::Timestamp;
661
+ }
662
+ // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.version)
663
+ return version_;
664
+ }
665
+ inline void UnknownDocument::set_allocated_version (::google::protobuf::Timestamp* version) {
666
+ ::google::protobuf::Arena* message_arena = GetArenaNoVirtual ();
667
+ if (message_arena == NULL ) {
668
+ delete reinterpret_cast < ::google::protobuf::MessageLite*>(version_);
669
+ }
670
+ if (version) {
671
+ ::google::protobuf::Arena* submessage_arena =
672
+ reinterpret_cast < ::google::protobuf::MessageLite*>(version)->GetArena ();
673
+ if (message_arena != submessage_arena) {
674
+ version = ::google::protobuf::internal::GetOwnedMessage (
675
+ message_arena, version, submessage_arena);
676
+ }
677
+
678
+ } else {
679
+
680
+ }
681
+ version_ = version;
682
+ // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.version)
683
+ }
684
+
685
+ // -------------------------------------------------------------------
686
+
443
687
// MaybeDocument
444
688
445
689
// .firestore.client.NoDocument no_document = 1;
@@ -516,6 +760,60 @@ inline ::google::firestore::v1beta1::Document* MaybeDocument::mutable_document()
516
760
return document_type_.document_ ;
517
761
}
518
762
763
+ // .firestore.client.UnknownDocument unknown_document = 3;
764
+ inline bool MaybeDocument::has_unknown_document () const {
765
+ return document_type_case () == kUnknownDocument ;
766
+ }
767
+ inline void MaybeDocument::set_has_unknown_document () {
768
+ _oneof_case_[0 ] = kUnknownDocument ;
769
+ }
770
+ inline void MaybeDocument::clear_unknown_document () {
771
+ if (has_unknown_document ()) {
772
+ delete document_type_.unknown_document_ ;
773
+ clear_has_document_type ();
774
+ }
775
+ }
776
+ inline ::firestore::client::UnknownDocument* MaybeDocument::release_unknown_document () {
777
+ // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.unknown_document)
778
+ if (has_unknown_document ()) {
779
+ clear_has_document_type ();
780
+ ::firestore::client::UnknownDocument* temp = document_type_.unknown_document_ ;
781
+ document_type_.unknown_document_ = NULL ;
782
+ return temp;
783
+ } else {
784
+ return NULL ;
785
+ }
786
+ }
787
+ inline const ::firestore::client::UnknownDocument& MaybeDocument::unknown_document () const {
788
+ // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.unknown_document)
789
+ return has_unknown_document ()
790
+ ? *document_type_.unknown_document_
791
+ : *reinterpret_cast < ::firestore::client::UnknownDocument*>(&::firestore::client::_UnknownDocument_default_instance_);
792
+ }
793
+ inline ::firestore::client::UnknownDocument* MaybeDocument::mutable_unknown_document () {
794
+ if (!has_unknown_document ()) {
795
+ clear_document_type ();
796
+ set_has_unknown_document ();
797
+ document_type_.unknown_document_ = new ::firestore::client::UnknownDocument;
798
+ }
799
+ // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.unknown_document)
800
+ return document_type_.unknown_document_ ;
801
+ }
802
+
803
+ // bool has_committed_mutations = 4;
804
+ inline void MaybeDocument::clear_has_committed_mutations () {
805
+ has_committed_mutations_ = false ;
806
+ }
807
+ inline bool MaybeDocument::has_committed_mutations () const {
808
+ // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.has_committed_mutations)
809
+ return has_committed_mutations_;
810
+ }
811
+ inline void MaybeDocument::set_has_committed_mutations (bool value) {
812
+
813
+ has_committed_mutations_ = value;
814
+ // @@protoc_insertion_point(field_set:firestore.client.MaybeDocument.has_committed_mutations)
815
+ }
816
+
519
817
inline bool MaybeDocument::has_document_type () const {
520
818
return document_type_case () != DOCUMENT_TYPE_NOT_SET;
521
819
}
@@ -530,6 +828,8 @@ inline MaybeDocument::DocumentTypeCase MaybeDocument::document_type_case() const
530
828
#endif // __GNUC__
531
829
// -------------------------------------------------------------------
532
830
831
+ // -------------------------------------------------------------------
832
+
533
833
534
834
// @@protoc_insertion_point(namespace_scope)
535
835
0 commit comments