aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/cpp/google/firestore/v1beta1/common.pb.h
blob: 1cf26d4b980b1579038d7ff3b118157bb73574a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
/*
 * Copyright 2018 Google
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/firestore/v1beta1/common.proto

#ifndef PROTOBUF_google_2ffirestore_2fv1beta1_2fcommon_2eproto__INCLUDED
#define PROTOBUF_google_2ffirestore_2fv1beta1_2fcommon_2eproto__INCLUDED

#include <string>

#include <google/protobuf/stubs/common.h>

#if GOOGLE_PROTOBUF_VERSION < 3005000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please update
#error your headers.
#endif
#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers.  Please
#error regenerate this file with a newer version of protoc.
#endif

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/arena.h>
#include <google/protobuf/arenastring.h>
#include <google/protobuf/generated_message_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/metadata.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
#include <google/protobuf/unknown_field_set.h>
#include "google/api/annotations.pb.h"
#include <google/protobuf/timestamp.pb.h>
// @@protoc_insertion_point(includes)

namespace protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
  static const ::google::protobuf::internal::ParseTableField entries[];
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  static const ::google::protobuf::internal::ParseTable schema[5];
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
  static const ::google::protobuf::uint32 offsets[];
};
void AddDescriptors();
void InitDefaultsDocumentMaskImpl();
void InitDefaultsDocumentMask();
void InitDefaultsPreconditionImpl();
void InitDefaultsPrecondition();
void InitDefaultsTransactionOptions_ReadWriteImpl();
void InitDefaultsTransactionOptions_ReadWrite();
void InitDefaultsTransactionOptions_ReadOnlyImpl();
void InitDefaultsTransactionOptions_ReadOnly();
void InitDefaultsTransactionOptionsImpl();
void InitDefaultsTransactionOptions();
inline void InitDefaults() {
  InitDefaultsDocumentMask();
  InitDefaultsPrecondition();
  InitDefaultsTransactionOptions_ReadWrite();
  InitDefaultsTransactionOptions_ReadOnly();
  InitDefaultsTransactionOptions();
}
}  // namespace protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto
namespace google {
namespace firestore {
namespace v1beta1 {
class DocumentMask;
class DocumentMaskDefaultTypeInternal;
extern DocumentMaskDefaultTypeInternal _DocumentMask_default_instance_;
class Precondition;
class PreconditionDefaultTypeInternal;
extern PreconditionDefaultTypeInternal _Precondition_default_instance_;
class TransactionOptions;
class TransactionOptionsDefaultTypeInternal;
extern TransactionOptionsDefaultTypeInternal _TransactionOptions_default_instance_;
class TransactionOptions_ReadOnly;
class TransactionOptions_ReadOnlyDefaultTypeInternal;
extern TransactionOptions_ReadOnlyDefaultTypeInternal _TransactionOptions_ReadOnly_default_instance_;
class TransactionOptions_ReadWrite;
class TransactionOptions_ReadWriteDefaultTypeInternal;
extern TransactionOptions_ReadWriteDefaultTypeInternal _TransactionOptions_ReadWrite_default_instance_;
}  // namespace v1beta1
}  // namespace firestore
}  // namespace google
namespace google {
namespace firestore {
namespace v1beta1 {

// ===================================================================

class DocumentMask : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.DocumentMask) */ {
 public:
  DocumentMask();
  virtual ~DocumentMask();

  DocumentMask(const DocumentMask& from);

  inline DocumentMask& operator=(const DocumentMask& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  DocumentMask(DocumentMask&& from) noexcept
    : DocumentMask() {
    *this = ::std::move(from);
  }

  inline DocumentMask& operator=(DocumentMask&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const DocumentMask& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const DocumentMask* internal_default_instance() {
    return reinterpret_cast<const DocumentMask*>(
               &_DocumentMask_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    0;

  void Swap(DocumentMask* other);
  friend void swap(DocumentMask& a, DocumentMask& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline DocumentMask* New() const PROTOBUF_FINAL { return New(NULL); }

  DocumentMask* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const DocumentMask& from);
  void MergeFrom(const DocumentMask& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(DocumentMask* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // repeated string field_paths = 1;
  int field_paths_size() const;
  void clear_field_paths();
  static const int kFieldPathsFieldNumber = 1;
  const ::std::string& field_paths(int index) const;
  ::std::string* mutable_field_paths(int index);
  void set_field_paths(int index, const ::std::string& value);
  #if LANG_CXX11
  void set_field_paths(int index, ::std::string&& value);
  #endif
  void set_field_paths(int index, const char* value);
  void set_field_paths(int index, const char* value, size_t size);
  ::std::string* add_field_paths();
  void add_field_paths(const ::std::string& value);
  #if LANG_CXX11
  void add_field_paths(::std::string&& value);
  #endif
  void add_field_paths(const char* value);
  void add_field_paths(const char* value, size_t size);
  const ::google::protobuf::RepeatedPtrField< ::std::string>& field_paths() const;
  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_field_paths();

  // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.DocumentMask)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::RepeatedPtrField< ::std::string> field_paths_;
  mutable int _cached_size_;
  friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
  friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsDocumentMaskImpl();
};
// -------------------------------------------------------------------

class Precondition : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.Precondition) */ {
 public:
  Precondition();
  virtual ~Precondition();

  Precondition(const Precondition& from);

  inline Precondition& operator=(const Precondition& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  Precondition(Precondition&& from) noexcept
    : Precondition() {
    *this = ::std::move(from);
  }

  inline Precondition& operator=(Precondition&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const Precondition& default_instance();

  enum ConditionTypeCase {
    kExists = 1,
    kUpdateTime = 2,
    CONDITION_TYPE_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const Precondition* internal_default_instance() {
    return reinterpret_cast<const Precondition*>(
               &_Precondition_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    1;

  void Swap(Precondition* other);
  friend void swap(Precondition& a, Precondition& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline Precondition* New() const PROTOBUF_FINAL { return New(NULL); }

  Precondition* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const Precondition& from);
  void MergeFrom(const Precondition& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(Precondition* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // bool exists = 1;
  private:
  bool has_exists() const;
  public:
  void clear_exists();
  static const int kExistsFieldNumber = 1;
  bool exists() const;
  void set_exists(bool value);

  // .google.protobuf.Timestamp update_time = 2;
  bool has_update_time() const;
  void clear_update_time();
  static const int kUpdateTimeFieldNumber = 2;
  const ::google::protobuf::Timestamp& update_time() const;
  ::google::protobuf::Timestamp* release_update_time();
  ::google::protobuf::Timestamp* mutable_update_time();
  void set_allocated_update_time(::google::protobuf::Timestamp* update_time);

  ConditionTypeCase condition_type_case() const;
  // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.Precondition)
 private:
  void set_has_exists();
  void set_has_update_time();

  inline bool has_condition_type() const;
  void clear_condition_type();
  inline void clear_has_condition_type();

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  union ConditionTypeUnion {
    ConditionTypeUnion() {}
    bool exists_;
    ::google::protobuf::Timestamp* update_time_;
  } condition_type_;
  mutable int _cached_size_;
  ::google::protobuf::uint32 _oneof_case_[1];

  friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
  friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsPreconditionImpl();
};
// -------------------------------------------------------------------

class TransactionOptions_ReadWrite : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TransactionOptions.ReadWrite) */ {
 public:
  TransactionOptions_ReadWrite();
  virtual ~TransactionOptions_ReadWrite();

  TransactionOptions_ReadWrite(const TransactionOptions_ReadWrite& from);

  inline TransactionOptions_ReadWrite& operator=(const TransactionOptions_ReadWrite& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  TransactionOptions_ReadWrite(TransactionOptions_ReadWrite&& from) noexcept
    : TransactionOptions_ReadWrite() {
    *this = ::std::move(from);
  }

  inline TransactionOptions_ReadWrite& operator=(TransactionOptions_ReadWrite&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const TransactionOptions_ReadWrite& default_instance();

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TransactionOptions_ReadWrite* internal_default_instance() {
    return reinterpret_cast<const TransactionOptions_ReadWrite*>(
               &_TransactionOptions_ReadWrite_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    2;

  void Swap(TransactionOptions_ReadWrite* other);
  friend void swap(TransactionOptions_ReadWrite& a, TransactionOptions_ReadWrite& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline TransactionOptions_ReadWrite* New() const PROTOBUF_FINAL { return New(NULL); }

  TransactionOptions_ReadWrite* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const TransactionOptions_ReadWrite& from);
  void MergeFrom(const TransactionOptions_ReadWrite& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(TransactionOptions_ReadWrite* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // bytes retry_transaction = 1;
  void clear_retry_transaction();
  static const int kRetryTransactionFieldNumber = 1;
  const ::std::string& retry_transaction() const;
  void set_retry_transaction(const ::std::string& value);
  #if LANG_CXX11
  void set_retry_transaction(::std::string&& value);
  #endif
  void set_retry_transaction(const char* value);
  void set_retry_transaction(const void* value, size_t size);
  ::std::string* mutable_retry_transaction();
  ::std::string* release_retry_transaction();
  void set_allocated_retry_transaction(::std::string* retry_transaction);

  // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TransactionOptions.ReadWrite)
 private:

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  ::google::protobuf::internal::ArenaStringPtr retry_transaction_;
  mutable int _cached_size_;
  friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
  friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadWriteImpl();
};
// -------------------------------------------------------------------

class TransactionOptions_ReadOnly : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TransactionOptions.ReadOnly) */ {
 public:
  TransactionOptions_ReadOnly();
  virtual ~TransactionOptions_ReadOnly();

  TransactionOptions_ReadOnly(const TransactionOptions_ReadOnly& from);

  inline TransactionOptions_ReadOnly& operator=(const TransactionOptions_ReadOnly& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  TransactionOptions_ReadOnly(TransactionOptions_ReadOnly&& from) noexcept
    : TransactionOptions_ReadOnly() {
    *this = ::std::move(from);
  }

  inline TransactionOptions_ReadOnly& operator=(TransactionOptions_ReadOnly&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const TransactionOptions_ReadOnly& default_instance();

  enum ConsistencySelectorCase {
    kReadTime = 2,
    CONSISTENCY_SELECTOR_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TransactionOptions_ReadOnly* internal_default_instance() {
    return reinterpret_cast<const TransactionOptions_ReadOnly*>(
               &_TransactionOptions_ReadOnly_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    3;

  void Swap(TransactionOptions_ReadOnly* other);
  friend void swap(TransactionOptions_ReadOnly& a, TransactionOptions_ReadOnly& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline TransactionOptions_ReadOnly* New() const PROTOBUF_FINAL { return New(NULL); }

  TransactionOptions_ReadOnly* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const TransactionOptions_ReadOnly& from);
  void MergeFrom(const TransactionOptions_ReadOnly& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(TransactionOptions_ReadOnly* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  // accessors -------------------------------------------------------

  // .google.protobuf.Timestamp read_time = 2;
  bool has_read_time() const;
  void clear_read_time();
  static const int kReadTimeFieldNumber = 2;
  const ::google::protobuf::Timestamp& read_time() const;
  ::google::protobuf::Timestamp* release_read_time();
  ::google::protobuf::Timestamp* mutable_read_time();
  void set_allocated_read_time(::google::protobuf::Timestamp* read_time);

  ConsistencySelectorCase consistency_selector_case() const;
  // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TransactionOptions.ReadOnly)
 private:
  void set_has_read_time();

  inline bool has_consistency_selector() const;
  void clear_consistency_selector();
  inline void clear_has_consistency_selector();

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  union ConsistencySelectorUnion {
    ConsistencySelectorUnion() {}
    ::google::protobuf::Timestamp* read_time_;
  } consistency_selector_;
  mutable int _cached_size_;
  ::google::protobuf::uint32 _oneof_case_[1];

  friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
  friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptions_ReadOnlyImpl();
};
// -------------------------------------------------------------------

class TransactionOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1beta1.TransactionOptions) */ {
 public:
  TransactionOptions();
  virtual ~TransactionOptions();

  TransactionOptions(const TransactionOptions& from);

  inline TransactionOptions& operator=(const TransactionOptions& from) {
    CopyFrom(from);
    return *this;
  }
  #if LANG_CXX11
  TransactionOptions(TransactionOptions&& from) noexcept
    : TransactionOptions() {
    *this = ::std::move(from);
  }

  inline TransactionOptions& operator=(TransactionOptions&& from) noexcept {
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
      if (this != &from) InternalSwap(&from);
    } else {
      CopyFrom(from);
    }
    return *this;
  }
  #endif
  static const ::google::protobuf::Descriptor* descriptor();
  static const TransactionOptions& default_instance();

  enum ModeCase {
    kReadOnly = 2,
    kReadWrite = 3,
    MODE_NOT_SET = 0,
  };

  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
  static inline const TransactionOptions* internal_default_instance() {
    return reinterpret_cast<const TransactionOptions*>(
               &_TransactionOptions_default_instance_);
  }
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
    4;

  void Swap(TransactionOptions* other);
  friend void swap(TransactionOptions& a, TransactionOptions& b) {
    a.Swap(&b);
  }

  // implements Message ----------------------------------------------

  inline TransactionOptions* New() const PROTOBUF_FINAL { return New(NULL); }

  TransactionOptions* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  void CopyFrom(const TransactionOptions& from);
  void MergeFrom(const TransactionOptions& from);
  void Clear() PROTOBUF_FINAL;
  bool IsInitialized() const PROTOBUF_FINAL;

  size_t ByteSizeLong() const PROTOBUF_FINAL;
  bool MergePartialFromCodedStream(
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  void SerializeWithCachedSizes(
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  private:
  void SharedCtor();
  void SharedDtor();
  void SetCachedSize(int size) const PROTOBUF_FINAL;
  void InternalSwap(TransactionOptions* other);
  private:
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
    return NULL;
  }
  inline void* MaybeArenaPtr() const {
    return NULL;
  }
  public:

  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;

  // nested types ----------------------------------------------------

  typedef TransactionOptions_ReadWrite ReadWrite;
  typedef TransactionOptions_ReadOnly ReadOnly;

  // accessors -------------------------------------------------------

  // .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
  bool has_read_only() const;
  void clear_read_only();
  static const int kReadOnlyFieldNumber = 2;
  const ::google::firestore::v1beta1::TransactionOptions_ReadOnly& read_only() const;
  ::google::firestore::v1beta1::TransactionOptions_ReadOnly* release_read_only();
  ::google::firestore::v1beta1::TransactionOptions_ReadOnly* mutable_read_only();
  void set_allocated_read_only(::google::firestore::v1beta1::TransactionOptions_ReadOnly* read_only);

  // .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
  bool has_read_write() const;
  void clear_read_write();
  static const int kReadWriteFieldNumber = 3;
  const ::google::firestore::v1beta1::TransactionOptions_ReadWrite& read_write() const;
  ::google::firestore::v1beta1::TransactionOptions_ReadWrite* release_read_write();
  ::google::firestore::v1beta1::TransactionOptions_ReadWrite* mutable_read_write();
  void set_allocated_read_write(::google::firestore::v1beta1::TransactionOptions_ReadWrite* read_write);

  ModeCase mode_case() const;
  // @@protoc_insertion_point(class_scope:google.firestore.v1beta1.TransactionOptions)
 private:
  void set_has_read_only();
  void set_has_read_write();

  inline bool has_mode() const;
  void clear_mode();
  inline void clear_has_mode();

  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  union ModeUnion {
    ModeUnion() {}
    ::google::firestore::v1beta1::TransactionOptions_ReadOnly* read_only_;
    ::google::firestore::v1beta1::TransactionOptions_ReadWrite* read_write_;
  } mode_;
  mutable int _cached_size_;
  ::google::protobuf::uint32 _oneof_case_[1];

  friend struct ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::TableStruct;
  friend void ::protobuf_google_2ffirestore_2fv1beta1_2fcommon_2eproto::InitDefaultsTransactionOptionsImpl();
};
// ===================================================================


// ===================================================================

#ifdef __GNUC__
  #pragma GCC diagnostic push
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif  // __GNUC__
// DocumentMask

// repeated string field_paths = 1;
inline int DocumentMask::field_paths_size() const {
  return field_paths_.size();
}
inline void DocumentMask::clear_field_paths() {
  field_paths_.Clear();
}
inline const ::std::string& DocumentMask::field_paths(int index) const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.DocumentMask.field_paths)
  return field_paths_.Get(index);
}
inline ::std::string* DocumentMask::mutable_field_paths(int index) {
  // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.DocumentMask.field_paths)
  return field_paths_.Mutable(index);
}
inline void DocumentMask::set_field_paths(int index, const ::std::string& value) {
  // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentMask.field_paths)
  field_paths_.Mutable(index)->assign(value);
}
#if LANG_CXX11
inline void DocumentMask::set_field_paths(int index, ::std::string&& value) {
  // @@protoc_insertion_point(field_set:google.firestore.v1beta1.DocumentMask.field_paths)
  field_paths_.Mutable(index)->assign(std::move(value));
}
#endif
inline void DocumentMask::set_field_paths(int index, const char* value) {
  GOOGLE_DCHECK(value != NULL);
  field_paths_.Mutable(index)->assign(value);
  // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.DocumentMask.field_paths)
}
inline void DocumentMask::set_field_paths(int index, const char* value, size_t size) {
  field_paths_.Mutable(index)->assign(
    reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.DocumentMask.field_paths)
}
inline ::std::string* DocumentMask::add_field_paths() {
  // @@protoc_insertion_point(field_add_mutable:google.firestore.v1beta1.DocumentMask.field_paths)
  return field_paths_.Add();
}
inline void DocumentMask::add_field_paths(const ::std::string& value) {
  field_paths_.Add()->assign(value);
  // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentMask.field_paths)
}
#if LANG_CXX11
inline void DocumentMask::add_field_paths(::std::string&& value) {
  field_paths_.Add(std::move(value));
  // @@protoc_insertion_point(field_add:google.firestore.v1beta1.DocumentMask.field_paths)
}
#endif
inline void DocumentMask::add_field_paths(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  field_paths_.Add()->assign(value);
  // @@protoc_insertion_point(field_add_char:google.firestore.v1beta1.DocumentMask.field_paths)
}
inline void DocumentMask::add_field_paths(const char* value, size_t size) {
  field_paths_.Add()->assign(reinterpret_cast<const char*>(value), size);
  // @@protoc_insertion_point(field_add_pointer:google.firestore.v1beta1.DocumentMask.field_paths)
}
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
DocumentMask::field_paths() const {
  // @@protoc_insertion_point(field_list:google.firestore.v1beta1.DocumentMask.field_paths)
  return field_paths_;
}
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
DocumentMask::mutable_field_paths() {
  // @@protoc_insertion_point(field_mutable_list:google.firestore.v1beta1.DocumentMask.field_paths)
  return &field_paths_;
}

// -------------------------------------------------------------------

// Precondition

// bool exists = 1;
inline bool Precondition::has_exists() const {
  return condition_type_case() == kExists;
}
inline void Precondition::set_has_exists() {
  _oneof_case_[0] = kExists;
}
inline void Precondition::clear_exists() {
  if (has_exists()) {
    condition_type_.exists_ = false;
    clear_has_condition_type();
  }
}
inline bool Precondition::exists() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Precondition.exists)
  if (has_exists()) {
    return condition_type_.exists_;
  }
  return false;
}
inline void Precondition::set_exists(bool value) {
  if (!has_exists()) {
    clear_condition_type();
    set_has_exists();
  }
  condition_type_.exists_ = value;
  // @@protoc_insertion_point(field_set:google.firestore.v1beta1.Precondition.exists)
}

// .google.protobuf.Timestamp update_time = 2;
inline bool Precondition::has_update_time() const {
  return condition_type_case() == kUpdateTime;
}
inline void Precondition::set_has_update_time() {
  _oneof_case_[0] = kUpdateTime;
}
inline ::google::protobuf::Timestamp* Precondition::release_update_time() {
  // @@protoc_insertion_point(field_release:google.firestore.v1beta1.Precondition.update_time)
  if (has_update_time()) {
    clear_has_condition_type();
      ::google::protobuf::Timestamp* temp = condition_type_.update_time_;
    condition_type_.update_time_ = NULL;
    return temp;
  } else {
    return NULL;
  }
}
inline const ::google::protobuf::Timestamp& Precondition::update_time() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.Precondition.update_time)
  return has_update_time()
      ? *condition_type_.update_time_
      : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
}
inline ::google::protobuf::Timestamp* Precondition::mutable_update_time() {
  if (!has_update_time()) {
    clear_condition_type();
    set_has_update_time();
    condition_type_.update_time_ = new ::google::protobuf::Timestamp;
  }
  // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.Precondition.update_time)
  return condition_type_.update_time_;
}

inline bool Precondition::has_condition_type() const {
  return condition_type_case() != CONDITION_TYPE_NOT_SET;
}
inline void Precondition::clear_has_condition_type() {
  _oneof_case_[0] = CONDITION_TYPE_NOT_SET;
}
inline Precondition::ConditionTypeCase Precondition::condition_type_case() const {
  return Precondition::ConditionTypeCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------

// TransactionOptions_ReadWrite

// bytes retry_transaction = 1;
inline void TransactionOptions_ReadWrite::clear_retry_transaction() {
  retry_transaction_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline const ::std::string& TransactionOptions_ReadWrite::retry_transaction() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
  return retry_transaction_.GetNoArena();
}
inline void TransactionOptions_ReadWrite::set_retry_transaction(const ::std::string& value) {
  
  retry_transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  // @@protoc_insertion_point(field_set:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
}
#if LANG_CXX11
inline void TransactionOptions_ReadWrite::set_retry_transaction(::std::string&& value) {
  
  retry_transaction_.SetNoArena(
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
}
#endif
inline void TransactionOptions_ReadWrite::set_retry_transaction(const char* value) {
  GOOGLE_DCHECK(value != NULL);
  
  retry_transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  // @@protoc_insertion_point(field_set_char:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
}
inline void TransactionOptions_ReadWrite::set_retry_transaction(const void* value, size_t size) {
  
  retry_transaction_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
      ::std::string(reinterpret_cast<const char*>(value), size));
  // @@protoc_insertion_point(field_set_pointer:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
}
inline ::std::string* TransactionOptions_ReadWrite::mutable_retry_transaction() {
  
  // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
  return retry_transaction_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* TransactionOptions_ReadWrite::release_retry_transaction() {
  // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
  
  return retry_transaction_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void TransactionOptions_ReadWrite::set_allocated_retry_transaction(::std::string* retry_transaction) {
  if (retry_transaction != NULL) {
    
  } else {
    
  }
  retry_transaction_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retry_transaction);
  // @@protoc_insertion_point(field_set_allocated:google.firestore.v1beta1.TransactionOptions.ReadWrite.retry_transaction)
}

// -------------------------------------------------------------------

// TransactionOptions_ReadOnly

// .google.protobuf.Timestamp read_time = 2;
inline bool TransactionOptions_ReadOnly::has_read_time() const {
  return consistency_selector_case() == kReadTime;
}
inline void TransactionOptions_ReadOnly::set_has_read_time() {
  _oneof_case_[0] = kReadTime;
}
inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::release_read_time() {
  // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
  if (has_read_time()) {
    clear_has_consistency_selector();
      ::google::protobuf::Timestamp* temp = consistency_selector_.read_time_;
    consistency_selector_.read_time_ = NULL;
    return temp;
  } else {
    return NULL;
  }
}
inline const ::google::protobuf::Timestamp& TransactionOptions_ReadOnly::read_time() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
  return has_read_time()
      ? *consistency_selector_.read_time_
      : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
}
inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::mutable_read_time() {
  if (!has_read_time()) {
    clear_consistency_selector();
    set_has_read_time();
    consistency_selector_.read_time_ = new ::google::protobuf::Timestamp;
  }
  // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.ReadOnly.read_time)
  return consistency_selector_.read_time_;
}

inline bool TransactionOptions_ReadOnly::has_consistency_selector() const {
  return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
}
inline void TransactionOptions_ReadOnly::clear_has_consistency_selector() {
  _oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
}
inline TransactionOptions_ReadOnly::ConsistencySelectorCase TransactionOptions_ReadOnly::consistency_selector_case() const {
  return TransactionOptions_ReadOnly::ConsistencySelectorCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------

// TransactionOptions

// .google.firestore.v1beta1.TransactionOptions.ReadOnly read_only = 2;
inline bool TransactionOptions::has_read_only() const {
  return mode_case() == kReadOnly;
}
inline void TransactionOptions::set_has_read_only() {
  _oneof_case_[0] = kReadOnly;
}
inline void TransactionOptions::clear_read_only() {
  if (has_read_only()) {
    delete mode_.read_only_;
    clear_has_mode();
  }
}
inline ::google::firestore::v1beta1::TransactionOptions_ReadOnly* TransactionOptions::release_read_only() {
  // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.read_only)
  if (has_read_only()) {
    clear_has_mode();
      ::google::firestore::v1beta1::TransactionOptions_ReadOnly* temp = mode_.read_only_;
    mode_.read_only_ = NULL;
    return temp;
  } else {
    return NULL;
  }
}
inline const ::google::firestore::v1beta1::TransactionOptions_ReadOnly& TransactionOptions::read_only() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.read_only)
  return has_read_only()
      ? *mode_.read_only_
      : *reinterpret_cast< ::google::firestore::v1beta1::TransactionOptions_ReadOnly*>(&::google::firestore::v1beta1::_TransactionOptions_ReadOnly_default_instance_);
}
inline ::google::firestore::v1beta1::TransactionOptions_ReadOnly* TransactionOptions::mutable_read_only() {
  if (!has_read_only()) {
    clear_mode();
    set_has_read_only();
    mode_.read_only_ = new ::google::firestore::v1beta1::TransactionOptions_ReadOnly;
  }
  // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.read_only)
  return mode_.read_only_;
}

// .google.firestore.v1beta1.TransactionOptions.ReadWrite read_write = 3;
inline bool TransactionOptions::has_read_write() const {
  return mode_case() == kReadWrite;
}
inline void TransactionOptions::set_has_read_write() {
  _oneof_case_[0] = kReadWrite;
}
inline void TransactionOptions::clear_read_write() {
  if (has_read_write()) {
    delete mode_.read_write_;
    clear_has_mode();
  }
}
inline ::google::firestore::v1beta1::TransactionOptions_ReadWrite* TransactionOptions::release_read_write() {
  // @@protoc_insertion_point(field_release:google.firestore.v1beta1.TransactionOptions.read_write)
  if (has_read_write()) {
    clear_has_mode();
      ::google::firestore::v1beta1::TransactionOptions_ReadWrite* temp = mode_.read_write_;
    mode_.read_write_ = NULL;
    return temp;
  } else {
    return NULL;
  }
}
inline const ::google::firestore::v1beta1::TransactionOptions_ReadWrite& TransactionOptions::read_write() const {
  // @@protoc_insertion_point(field_get:google.firestore.v1beta1.TransactionOptions.read_write)
  return has_read_write()
      ? *mode_.read_write_
      : *reinterpret_cast< ::google::firestore::v1beta1::TransactionOptions_ReadWrite*>(&::google::firestore::v1beta1::_TransactionOptions_ReadWrite_default_instance_);
}
inline ::google::firestore::v1beta1::TransactionOptions_ReadWrite* TransactionOptions::mutable_read_write() {
  if (!has_read_write()) {
    clear_mode();
    set_has_read_write();
    mode_.read_write_ = new ::google::firestore::v1beta1::TransactionOptions_ReadWrite;
  }
  // @@protoc_insertion_point(field_mutable:google.firestore.v1beta1.TransactionOptions.read_write)
  return mode_.read_write_;
}

inline bool TransactionOptions::has_mode() const {
  return mode_case() != MODE_NOT_SET;
}
inline void TransactionOptions::clear_has_mode() {
  _oneof_case_[0] = MODE_NOT_SET;
}
inline TransactionOptions::ModeCase TransactionOptions::mode_case() const {
  return TransactionOptions::ModeCase(_oneof_case_[0]);
}
#ifdef __GNUC__
  #pragma GCC diagnostic pop
#endif  // __GNUC__
// -------------------------------------------------------------------

// -------------------------------------------------------------------

// -------------------------------------------------------------------

// -------------------------------------------------------------------


// @@protoc_insertion_point(namespace_scope)

}  // namespace v1beta1
}  // namespace firestore
}  // namespace google

// @@protoc_insertion_point(global_scope)

#endif  // PROTOBUF_google_2ffirestore_2fv1beta1_2fcommon_2eproto__INCLUDED