common.pb.h 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675
  1. /*
  2. * Copyright 2024 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/common.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fcommon_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fcommon_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/unknown_field_set.h"
  48. #include "google/protobuf/timestamp.pb.h"
  49. // @@protoc_insertion_point(includes)
  50. // Must be included last.
  51. #include "google/protobuf/port_def.inc"
  52. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fcommon_2eproto
  53. namespace google {
  54. namespace protobuf {
  55. namespace internal {
  56. class AnyMetadata;
  57. } // namespace internal
  58. } // namespace protobuf
  59. } // namespace google
  60. // Internal implementation detail -- do not use these members.
  61. struct TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto {
  62. static const ::uint32_t offsets[];
  63. };
  64. extern const ::google::protobuf::internal::DescriptorTable
  65. descriptor_table_google_2ffirestore_2fv1_2fcommon_2eproto;
  66. namespace google {
  67. namespace firestore {
  68. namespace v1 {
  69. class DocumentMask;
  70. struct DocumentMaskDefaultTypeInternal;
  71. extern DocumentMaskDefaultTypeInternal _DocumentMask_default_instance_;
  72. class Precondition;
  73. struct PreconditionDefaultTypeInternal;
  74. extern PreconditionDefaultTypeInternal _Precondition_default_instance_;
  75. class TransactionOptions;
  76. struct TransactionOptionsDefaultTypeInternal;
  77. extern TransactionOptionsDefaultTypeInternal _TransactionOptions_default_instance_;
  78. class TransactionOptions_ReadOnly;
  79. struct TransactionOptions_ReadOnlyDefaultTypeInternal;
  80. extern TransactionOptions_ReadOnlyDefaultTypeInternal _TransactionOptions_ReadOnly_default_instance_;
  81. class TransactionOptions_ReadWrite;
  82. struct TransactionOptions_ReadWriteDefaultTypeInternal;
  83. extern TransactionOptions_ReadWriteDefaultTypeInternal _TransactionOptions_ReadWrite_default_instance_;
  84. } // namespace v1
  85. } // namespace firestore
  86. namespace protobuf {
  87. } // namespace protobuf
  88. } // namespace google
  89. namespace google {
  90. namespace firestore {
  91. namespace v1 {
  92. // ===================================================================
  93. // -------------------------------------------------------------------
  94. class TransactionOptions_ReadWrite final :
  95. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TransactionOptions.ReadWrite) */ {
  96. public:
  97. inline TransactionOptions_ReadWrite() : TransactionOptions_ReadWrite(nullptr) {}
  98. ~TransactionOptions_ReadWrite() override;
  99. template<typename = void>
  100. explicit PROTOBUF_CONSTEXPR TransactionOptions_ReadWrite(::google::protobuf::internal::ConstantInitialized);
  101. inline TransactionOptions_ReadWrite(const TransactionOptions_ReadWrite& from)
  102. : TransactionOptions_ReadWrite(nullptr, from) {}
  103. TransactionOptions_ReadWrite(TransactionOptions_ReadWrite&& from) noexcept
  104. : TransactionOptions_ReadWrite() {
  105. *this = ::std::move(from);
  106. }
  107. inline TransactionOptions_ReadWrite& operator=(const TransactionOptions_ReadWrite& from) {
  108. CopyFrom(from);
  109. return *this;
  110. }
  111. inline TransactionOptions_ReadWrite& operator=(TransactionOptions_ReadWrite&& from) noexcept {
  112. if (this == &from) return *this;
  113. if (GetArena() == from.GetArena()
  114. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  115. && GetArena() != nullptr
  116. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  117. ) {
  118. InternalSwap(&from);
  119. } else {
  120. CopyFrom(from);
  121. }
  122. return *this;
  123. }
  124. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  125. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  126. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  127. }
  128. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  129. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  130. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  131. }
  132. static const ::google::protobuf::Descriptor* descriptor() {
  133. return GetDescriptor();
  134. }
  135. static const ::google::protobuf::Descriptor* GetDescriptor() {
  136. return default_instance().GetMetadata().descriptor;
  137. }
  138. static const ::google::protobuf::Reflection* GetReflection() {
  139. return default_instance().GetMetadata().reflection;
  140. }
  141. static const TransactionOptions_ReadWrite& default_instance() {
  142. return *internal_default_instance();
  143. }
  144. static inline const TransactionOptions_ReadWrite* internal_default_instance() {
  145. return reinterpret_cast<const TransactionOptions_ReadWrite*>(
  146. &_TransactionOptions_ReadWrite_default_instance_);
  147. }
  148. static constexpr int kIndexInFileMessages =
  149. 2;
  150. friend void swap(TransactionOptions_ReadWrite& a, TransactionOptions_ReadWrite& b) {
  151. a.Swap(&b);
  152. }
  153. inline void Swap(TransactionOptions_ReadWrite* other) {
  154. if (other == this) return;
  155. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  156. if (GetArena() != nullptr &&
  157. GetArena() == other->GetArena()) {
  158. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  159. if (GetArena() == other->GetArena()) {
  160. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  161. InternalSwap(other);
  162. } else {
  163. ::google::protobuf::internal::GenericSwap(this, other);
  164. }
  165. }
  166. void UnsafeArenaSwap(TransactionOptions_ReadWrite* other) {
  167. if (other == this) return;
  168. ABSL_DCHECK(GetArena() == other->GetArena());
  169. InternalSwap(other);
  170. }
  171. // implements Message ----------------------------------------------
  172. TransactionOptions_ReadWrite* New(::google::protobuf::Arena* arena = nullptr) const final {
  173. return CreateMaybeMessage<TransactionOptions_ReadWrite>(arena);
  174. }
  175. using ::google::protobuf::Message::CopyFrom;
  176. void CopyFrom(const TransactionOptions_ReadWrite& from);
  177. using ::google::protobuf::Message::MergeFrom;
  178. void MergeFrom( const TransactionOptions_ReadWrite& from) {
  179. TransactionOptions_ReadWrite::MergeImpl(*this, from);
  180. }
  181. private:
  182. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  183. public:
  184. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  185. bool IsInitialized() const final;
  186. ::size_t ByteSizeLong() const final;
  187. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  188. ::uint8_t* _InternalSerialize(
  189. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  190. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  191. private:
  192. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  193. void SharedCtor(::google::protobuf::Arena* arena);
  194. void SharedDtor();
  195. void InternalSwap(TransactionOptions_ReadWrite* other);
  196. private:
  197. friend class ::google::protobuf::internal::AnyMetadata;
  198. static ::absl::string_view FullMessageName() {
  199. return "google.firestore.v1.TransactionOptions.ReadWrite";
  200. }
  201. protected:
  202. explicit TransactionOptions_ReadWrite(::google::protobuf::Arena* arena);
  203. TransactionOptions_ReadWrite(::google::protobuf::Arena* arena, const TransactionOptions_ReadWrite& from);
  204. public:
  205. static const ClassData _class_data_;
  206. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  207. ::google::protobuf::Metadata GetMetadata() const final;
  208. // nested types ----------------------------------------------------
  209. // accessors -------------------------------------------------------
  210. enum : int {
  211. kRetryTransactionFieldNumber = 1,
  212. };
  213. // bytes retry_transaction = 1;
  214. void clear_retry_transaction() ;
  215. const std::string& retry_transaction() const;
  216. template <typename Arg_ = const std::string&, typename... Args_>
  217. void set_retry_transaction(Arg_&& arg, Args_... args);
  218. std::string* mutable_retry_transaction();
  219. PROTOBUF_NODISCARD std::string* release_retry_transaction();
  220. void set_allocated_retry_transaction(std::string* value);
  221. private:
  222. const std::string& _internal_retry_transaction() const;
  223. inline PROTOBUF_ALWAYS_INLINE void _internal_set_retry_transaction(
  224. const std::string& value);
  225. std::string* _internal_mutable_retry_transaction();
  226. public:
  227. // @@protoc_insertion_point(class_scope:google.firestore.v1.TransactionOptions.ReadWrite)
  228. private:
  229. class _Internal;
  230. friend class ::google::protobuf::internal::TcParser;
  231. static const ::google::protobuf::internal::TcParseTable<
  232. 0, 1, 0,
  233. 0, 2>
  234. _table_;
  235. friend class ::google::protobuf::MessageLite;
  236. friend class ::google::protobuf::Arena;
  237. template <typename T>
  238. friend class ::google::protobuf::Arena::InternalHelper;
  239. using InternalArenaConstructable_ = void;
  240. using DestructorSkippable_ = void;
  241. struct Impl_ {
  242. inline explicit constexpr Impl_(
  243. ::google::protobuf::internal::ConstantInitialized) noexcept;
  244. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  245. ::google::protobuf::Arena* arena);
  246. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  247. ::google::protobuf::Arena* arena, const Impl_& from);
  248. ::google::protobuf::internal::ArenaStringPtr retry_transaction_;
  249. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  250. PROTOBUF_TSAN_DECLARE_MEMBER
  251. };
  252. union { Impl_ _impl_; };
  253. friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
  254. };// -------------------------------------------------------------------
  255. class DocumentMask final :
  256. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.DocumentMask) */ {
  257. public:
  258. inline DocumentMask() : DocumentMask(nullptr) {}
  259. ~DocumentMask() override;
  260. template<typename = void>
  261. explicit PROTOBUF_CONSTEXPR DocumentMask(::google::protobuf::internal::ConstantInitialized);
  262. inline DocumentMask(const DocumentMask& from)
  263. : DocumentMask(nullptr, from) {}
  264. DocumentMask(DocumentMask&& from) noexcept
  265. : DocumentMask() {
  266. *this = ::std::move(from);
  267. }
  268. inline DocumentMask& operator=(const DocumentMask& from) {
  269. CopyFrom(from);
  270. return *this;
  271. }
  272. inline DocumentMask& operator=(DocumentMask&& from) noexcept {
  273. if (this == &from) return *this;
  274. if (GetArena() == from.GetArena()
  275. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  276. && GetArena() != nullptr
  277. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  278. ) {
  279. InternalSwap(&from);
  280. } else {
  281. CopyFrom(from);
  282. }
  283. return *this;
  284. }
  285. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  286. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  287. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  288. }
  289. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  290. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  291. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  292. }
  293. static const ::google::protobuf::Descriptor* descriptor() {
  294. return GetDescriptor();
  295. }
  296. static const ::google::protobuf::Descriptor* GetDescriptor() {
  297. return default_instance().GetMetadata().descriptor;
  298. }
  299. static const ::google::protobuf::Reflection* GetReflection() {
  300. return default_instance().GetMetadata().reflection;
  301. }
  302. static const DocumentMask& default_instance() {
  303. return *internal_default_instance();
  304. }
  305. static inline const DocumentMask* internal_default_instance() {
  306. return reinterpret_cast<const DocumentMask*>(
  307. &_DocumentMask_default_instance_);
  308. }
  309. static constexpr int kIndexInFileMessages =
  310. 0;
  311. friend void swap(DocumentMask& a, DocumentMask& b) {
  312. a.Swap(&b);
  313. }
  314. inline void Swap(DocumentMask* other) {
  315. if (other == this) return;
  316. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  317. if (GetArena() != nullptr &&
  318. GetArena() == other->GetArena()) {
  319. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  320. if (GetArena() == other->GetArena()) {
  321. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  322. InternalSwap(other);
  323. } else {
  324. ::google::protobuf::internal::GenericSwap(this, other);
  325. }
  326. }
  327. void UnsafeArenaSwap(DocumentMask* other) {
  328. if (other == this) return;
  329. ABSL_DCHECK(GetArena() == other->GetArena());
  330. InternalSwap(other);
  331. }
  332. // implements Message ----------------------------------------------
  333. DocumentMask* New(::google::protobuf::Arena* arena = nullptr) const final {
  334. return CreateMaybeMessage<DocumentMask>(arena);
  335. }
  336. using ::google::protobuf::Message::CopyFrom;
  337. void CopyFrom(const DocumentMask& from);
  338. using ::google::protobuf::Message::MergeFrom;
  339. void MergeFrom( const DocumentMask& from) {
  340. DocumentMask::MergeImpl(*this, from);
  341. }
  342. private:
  343. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  344. public:
  345. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  346. bool IsInitialized() const final;
  347. ::size_t ByteSizeLong() const final;
  348. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  349. ::uint8_t* _InternalSerialize(
  350. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  351. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  352. private:
  353. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  354. void SharedCtor(::google::protobuf::Arena* arena);
  355. void SharedDtor();
  356. void InternalSwap(DocumentMask* other);
  357. private:
  358. friend class ::google::protobuf::internal::AnyMetadata;
  359. static ::absl::string_view FullMessageName() {
  360. return "google.firestore.v1.DocumentMask";
  361. }
  362. protected:
  363. explicit DocumentMask(::google::protobuf::Arena* arena);
  364. DocumentMask(::google::protobuf::Arena* arena, const DocumentMask& from);
  365. public:
  366. static const ClassData _class_data_;
  367. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  368. ::google::protobuf::Metadata GetMetadata() const final;
  369. // nested types ----------------------------------------------------
  370. // accessors -------------------------------------------------------
  371. enum : int {
  372. kFieldPathsFieldNumber = 1,
  373. };
  374. // repeated string field_paths = 1;
  375. int field_paths_size() const;
  376. private:
  377. int _internal_field_paths_size() const;
  378. public:
  379. void clear_field_paths() ;
  380. const std::string& field_paths(int index) const;
  381. std::string* mutable_field_paths(int index);
  382. void set_field_paths(int index, const std::string& value);
  383. void set_field_paths(int index, std::string&& value);
  384. void set_field_paths(int index, const char* value);
  385. void set_field_paths(int index, const char* value, std::size_t size);
  386. void set_field_paths(int index, absl::string_view value);
  387. std::string* add_field_paths();
  388. void add_field_paths(const std::string& value);
  389. void add_field_paths(std::string&& value);
  390. void add_field_paths(const char* value);
  391. void add_field_paths(const char* value, std::size_t size);
  392. void add_field_paths(absl::string_view value);
  393. const ::google::protobuf::RepeatedPtrField<std::string>& field_paths() const;
  394. ::google::protobuf::RepeatedPtrField<std::string>* mutable_field_paths();
  395. private:
  396. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_field_paths() const;
  397. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_field_paths();
  398. public:
  399. // @@protoc_insertion_point(class_scope:google.firestore.v1.DocumentMask)
  400. private:
  401. class _Internal;
  402. friend class ::google::protobuf::internal::TcParser;
  403. static const ::google::protobuf::internal::TcParseTable<
  404. 0, 1, 0,
  405. 52, 2>
  406. _table_;
  407. friend class ::google::protobuf::MessageLite;
  408. friend class ::google::protobuf::Arena;
  409. template <typename T>
  410. friend class ::google::protobuf::Arena::InternalHelper;
  411. using InternalArenaConstructable_ = void;
  412. using DestructorSkippable_ = void;
  413. struct Impl_ {
  414. inline explicit constexpr Impl_(
  415. ::google::protobuf::internal::ConstantInitialized) noexcept;
  416. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  417. ::google::protobuf::Arena* arena);
  418. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  419. ::google::protobuf::Arena* arena, const Impl_& from);
  420. ::google::protobuf::RepeatedPtrField<std::string> field_paths_;
  421. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  422. PROTOBUF_TSAN_DECLARE_MEMBER
  423. };
  424. union { Impl_ _impl_; };
  425. friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
  426. };// -------------------------------------------------------------------
  427. class TransactionOptions_ReadOnly final :
  428. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TransactionOptions.ReadOnly) */ {
  429. public:
  430. inline TransactionOptions_ReadOnly() : TransactionOptions_ReadOnly(nullptr) {}
  431. ~TransactionOptions_ReadOnly() override;
  432. template<typename = void>
  433. explicit PROTOBUF_CONSTEXPR TransactionOptions_ReadOnly(::google::protobuf::internal::ConstantInitialized);
  434. inline TransactionOptions_ReadOnly(const TransactionOptions_ReadOnly& from)
  435. : TransactionOptions_ReadOnly(nullptr, from) {}
  436. TransactionOptions_ReadOnly(TransactionOptions_ReadOnly&& from) noexcept
  437. : TransactionOptions_ReadOnly() {
  438. *this = ::std::move(from);
  439. }
  440. inline TransactionOptions_ReadOnly& operator=(const TransactionOptions_ReadOnly& from) {
  441. CopyFrom(from);
  442. return *this;
  443. }
  444. inline TransactionOptions_ReadOnly& operator=(TransactionOptions_ReadOnly&& from) noexcept {
  445. if (this == &from) return *this;
  446. if (GetArena() == from.GetArena()
  447. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  448. && GetArena() != nullptr
  449. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  450. ) {
  451. InternalSwap(&from);
  452. } else {
  453. CopyFrom(from);
  454. }
  455. return *this;
  456. }
  457. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  458. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  459. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  460. }
  461. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  462. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  463. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  464. }
  465. static const ::google::protobuf::Descriptor* descriptor() {
  466. return GetDescriptor();
  467. }
  468. static const ::google::protobuf::Descriptor* GetDescriptor() {
  469. return default_instance().GetMetadata().descriptor;
  470. }
  471. static const ::google::protobuf::Reflection* GetReflection() {
  472. return default_instance().GetMetadata().reflection;
  473. }
  474. static const TransactionOptions_ReadOnly& default_instance() {
  475. return *internal_default_instance();
  476. }
  477. enum ConsistencySelectorCase {
  478. kReadTime = 2,
  479. CONSISTENCY_SELECTOR_NOT_SET = 0,
  480. };
  481. static inline const TransactionOptions_ReadOnly* internal_default_instance() {
  482. return reinterpret_cast<const TransactionOptions_ReadOnly*>(
  483. &_TransactionOptions_ReadOnly_default_instance_);
  484. }
  485. static constexpr int kIndexInFileMessages =
  486. 3;
  487. friend void swap(TransactionOptions_ReadOnly& a, TransactionOptions_ReadOnly& b) {
  488. a.Swap(&b);
  489. }
  490. inline void Swap(TransactionOptions_ReadOnly* other) {
  491. if (other == this) return;
  492. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  493. if (GetArena() != nullptr &&
  494. GetArena() == other->GetArena()) {
  495. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  496. if (GetArena() == other->GetArena()) {
  497. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  498. InternalSwap(other);
  499. } else {
  500. ::google::protobuf::internal::GenericSwap(this, other);
  501. }
  502. }
  503. void UnsafeArenaSwap(TransactionOptions_ReadOnly* other) {
  504. if (other == this) return;
  505. ABSL_DCHECK(GetArena() == other->GetArena());
  506. InternalSwap(other);
  507. }
  508. // implements Message ----------------------------------------------
  509. TransactionOptions_ReadOnly* New(::google::protobuf::Arena* arena = nullptr) const final {
  510. return CreateMaybeMessage<TransactionOptions_ReadOnly>(arena);
  511. }
  512. using ::google::protobuf::Message::CopyFrom;
  513. void CopyFrom(const TransactionOptions_ReadOnly& from);
  514. using ::google::protobuf::Message::MergeFrom;
  515. void MergeFrom( const TransactionOptions_ReadOnly& from) {
  516. TransactionOptions_ReadOnly::MergeImpl(*this, from);
  517. }
  518. private:
  519. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  520. public:
  521. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  522. bool IsInitialized() const final;
  523. ::size_t ByteSizeLong() const final;
  524. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  525. ::uint8_t* _InternalSerialize(
  526. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  527. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  528. private:
  529. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  530. void SharedCtor(::google::protobuf::Arena* arena);
  531. void SharedDtor();
  532. void InternalSwap(TransactionOptions_ReadOnly* other);
  533. private:
  534. friend class ::google::protobuf::internal::AnyMetadata;
  535. static ::absl::string_view FullMessageName() {
  536. return "google.firestore.v1.TransactionOptions.ReadOnly";
  537. }
  538. protected:
  539. explicit TransactionOptions_ReadOnly(::google::protobuf::Arena* arena);
  540. TransactionOptions_ReadOnly(::google::protobuf::Arena* arena, const TransactionOptions_ReadOnly& from);
  541. public:
  542. static const ClassData _class_data_;
  543. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  544. ::google::protobuf::Metadata GetMetadata() const final;
  545. // nested types ----------------------------------------------------
  546. // accessors -------------------------------------------------------
  547. enum : int {
  548. kReadTimeFieldNumber = 2,
  549. };
  550. // .google.protobuf.Timestamp read_time = 2;
  551. bool has_read_time() const;
  552. private:
  553. bool _internal_has_read_time() const;
  554. public:
  555. void clear_read_time() ;
  556. const ::google::protobuf::Timestamp& read_time() const;
  557. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  558. ::google::protobuf::Timestamp* mutable_read_time();
  559. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  560. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  561. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  562. private:
  563. const ::google::protobuf::Timestamp& _internal_read_time() const;
  564. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  565. public:
  566. void clear_consistency_selector();
  567. ConsistencySelectorCase consistency_selector_case() const;
  568. // @@protoc_insertion_point(class_scope:google.firestore.v1.TransactionOptions.ReadOnly)
  569. private:
  570. class _Internal;
  571. void set_has_read_time();
  572. inline bool has_consistency_selector() const;
  573. inline void clear_has_consistency_selector();
  574. friend class ::google::protobuf::internal::TcParser;
  575. static const ::google::protobuf::internal::TcParseTable<
  576. 0, 1, 1,
  577. 0, 2>
  578. _table_;
  579. friend class ::google::protobuf::MessageLite;
  580. friend class ::google::protobuf::Arena;
  581. template <typename T>
  582. friend class ::google::protobuf::Arena::InternalHelper;
  583. using InternalArenaConstructable_ = void;
  584. using DestructorSkippable_ = void;
  585. struct Impl_ {
  586. inline explicit constexpr Impl_(
  587. ::google::protobuf::internal::ConstantInitialized) noexcept;
  588. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  589. ::google::protobuf::Arena* arena);
  590. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  591. ::google::protobuf::Arena* arena, const Impl_& from);
  592. union ConsistencySelectorUnion {
  593. constexpr ConsistencySelectorUnion() : _constinit_{} {}
  594. ::google::protobuf::internal::ConstantInitialized _constinit_;
  595. ::google::protobuf::Timestamp* read_time_;
  596. } consistency_selector_;
  597. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  598. ::uint32_t _oneof_case_[1];
  599. PROTOBUF_TSAN_DECLARE_MEMBER
  600. };
  601. union { Impl_ _impl_; };
  602. friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
  603. };// -------------------------------------------------------------------
  604. class Precondition final :
  605. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Precondition) */ {
  606. public:
  607. inline Precondition() : Precondition(nullptr) {}
  608. ~Precondition() override;
  609. template<typename = void>
  610. explicit PROTOBUF_CONSTEXPR Precondition(::google::protobuf::internal::ConstantInitialized);
  611. inline Precondition(const Precondition& from)
  612. : Precondition(nullptr, from) {}
  613. Precondition(Precondition&& from) noexcept
  614. : Precondition() {
  615. *this = ::std::move(from);
  616. }
  617. inline Precondition& operator=(const Precondition& from) {
  618. CopyFrom(from);
  619. return *this;
  620. }
  621. inline Precondition& operator=(Precondition&& from) noexcept {
  622. if (this == &from) return *this;
  623. if (GetArena() == from.GetArena()
  624. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  625. && GetArena() != nullptr
  626. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  627. ) {
  628. InternalSwap(&from);
  629. } else {
  630. CopyFrom(from);
  631. }
  632. return *this;
  633. }
  634. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  635. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  636. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  637. }
  638. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  639. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  640. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  641. }
  642. static const ::google::protobuf::Descriptor* descriptor() {
  643. return GetDescriptor();
  644. }
  645. static const ::google::protobuf::Descriptor* GetDescriptor() {
  646. return default_instance().GetMetadata().descriptor;
  647. }
  648. static const ::google::protobuf::Reflection* GetReflection() {
  649. return default_instance().GetMetadata().reflection;
  650. }
  651. static const Precondition& default_instance() {
  652. return *internal_default_instance();
  653. }
  654. enum ConditionTypeCase {
  655. kExists = 1,
  656. kUpdateTime = 2,
  657. CONDITION_TYPE_NOT_SET = 0,
  658. };
  659. static inline const Precondition* internal_default_instance() {
  660. return reinterpret_cast<const Precondition*>(
  661. &_Precondition_default_instance_);
  662. }
  663. static constexpr int kIndexInFileMessages =
  664. 1;
  665. friend void swap(Precondition& a, Precondition& b) {
  666. a.Swap(&b);
  667. }
  668. inline void Swap(Precondition* other) {
  669. if (other == this) return;
  670. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  671. if (GetArena() != nullptr &&
  672. GetArena() == other->GetArena()) {
  673. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  674. if (GetArena() == other->GetArena()) {
  675. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  676. InternalSwap(other);
  677. } else {
  678. ::google::protobuf::internal::GenericSwap(this, other);
  679. }
  680. }
  681. void UnsafeArenaSwap(Precondition* other) {
  682. if (other == this) return;
  683. ABSL_DCHECK(GetArena() == other->GetArena());
  684. InternalSwap(other);
  685. }
  686. // implements Message ----------------------------------------------
  687. Precondition* New(::google::protobuf::Arena* arena = nullptr) const final {
  688. return CreateMaybeMessage<Precondition>(arena);
  689. }
  690. using ::google::protobuf::Message::CopyFrom;
  691. void CopyFrom(const Precondition& from);
  692. using ::google::protobuf::Message::MergeFrom;
  693. void MergeFrom( const Precondition& from) {
  694. Precondition::MergeImpl(*this, from);
  695. }
  696. private:
  697. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  698. public:
  699. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  700. bool IsInitialized() const final;
  701. ::size_t ByteSizeLong() const final;
  702. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  703. ::uint8_t* _InternalSerialize(
  704. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  705. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  706. private:
  707. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  708. void SharedCtor(::google::protobuf::Arena* arena);
  709. void SharedDtor();
  710. void InternalSwap(Precondition* other);
  711. private:
  712. friend class ::google::protobuf::internal::AnyMetadata;
  713. static ::absl::string_view FullMessageName() {
  714. return "google.firestore.v1.Precondition";
  715. }
  716. protected:
  717. explicit Precondition(::google::protobuf::Arena* arena);
  718. Precondition(::google::protobuf::Arena* arena, const Precondition& from);
  719. public:
  720. static const ClassData _class_data_;
  721. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  722. ::google::protobuf::Metadata GetMetadata() const final;
  723. // nested types ----------------------------------------------------
  724. // accessors -------------------------------------------------------
  725. enum : int {
  726. kExistsFieldNumber = 1,
  727. kUpdateTimeFieldNumber = 2,
  728. };
  729. // bool exists = 1;
  730. bool has_exists() const;
  731. void clear_exists() ;
  732. bool exists() const;
  733. void set_exists(bool value);
  734. private:
  735. bool _internal_exists() const;
  736. void _internal_set_exists(bool value);
  737. public:
  738. // .google.protobuf.Timestamp update_time = 2;
  739. bool has_update_time() const;
  740. private:
  741. bool _internal_has_update_time() const;
  742. public:
  743. void clear_update_time() ;
  744. const ::google::protobuf::Timestamp& update_time() const;
  745. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_update_time();
  746. ::google::protobuf::Timestamp* mutable_update_time();
  747. void set_allocated_update_time(::google::protobuf::Timestamp* value);
  748. void unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value);
  749. ::google::protobuf::Timestamp* unsafe_arena_release_update_time();
  750. private:
  751. const ::google::protobuf::Timestamp& _internal_update_time() const;
  752. ::google::protobuf::Timestamp* _internal_mutable_update_time();
  753. public:
  754. void clear_condition_type();
  755. ConditionTypeCase condition_type_case() const;
  756. // @@protoc_insertion_point(class_scope:google.firestore.v1.Precondition)
  757. private:
  758. class _Internal;
  759. void set_has_exists();
  760. void set_has_update_time();
  761. inline bool has_condition_type() const;
  762. inline void clear_has_condition_type();
  763. friend class ::google::protobuf::internal::TcParser;
  764. static const ::google::protobuf::internal::TcParseTable<
  765. 0, 2, 1,
  766. 0, 2>
  767. _table_;
  768. friend class ::google::protobuf::MessageLite;
  769. friend class ::google::protobuf::Arena;
  770. template <typename T>
  771. friend class ::google::protobuf::Arena::InternalHelper;
  772. using InternalArenaConstructable_ = void;
  773. using DestructorSkippable_ = void;
  774. struct Impl_ {
  775. inline explicit constexpr Impl_(
  776. ::google::protobuf::internal::ConstantInitialized) noexcept;
  777. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  778. ::google::protobuf::Arena* arena);
  779. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  780. ::google::protobuf::Arena* arena, const Impl_& from);
  781. union ConditionTypeUnion {
  782. constexpr ConditionTypeUnion() : _constinit_{} {}
  783. ::google::protobuf::internal::ConstantInitialized _constinit_;
  784. bool exists_;
  785. ::google::protobuf::Timestamp* update_time_;
  786. } condition_type_;
  787. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  788. ::uint32_t _oneof_case_[1];
  789. PROTOBUF_TSAN_DECLARE_MEMBER
  790. };
  791. union { Impl_ _impl_; };
  792. friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
  793. };// -------------------------------------------------------------------
  794. class TransactionOptions final :
  795. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.TransactionOptions) */ {
  796. public:
  797. inline TransactionOptions() : TransactionOptions(nullptr) {}
  798. ~TransactionOptions() override;
  799. template<typename = void>
  800. explicit PROTOBUF_CONSTEXPR TransactionOptions(::google::protobuf::internal::ConstantInitialized);
  801. inline TransactionOptions(const TransactionOptions& from)
  802. : TransactionOptions(nullptr, from) {}
  803. TransactionOptions(TransactionOptions&& from) noexcept
  804. : TransactionOptions() {
  805. *this = ::std::move(from);
  806. }
  807. inline TransactionOptions& operator=(const TransactionOptions& from) {
  808. CopyFrom(from);
  809. return *this;
  810. }
  811. inline TransactionOptions& operator=(TransactionOptions&& from) noexcept {
  812. if (this == &from) return *this;
  813. if (GetArena() == from.GetArena()
  814. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  815. && GetArena() != nullptr
  816. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  817. ) {
  818. InternalSwap(&from);
  819. } else {
  820. CopyFrom(from);
  821. }
  822. return *this;
  823. }
  824. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  825. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  826. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  827. }
  828. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  829. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  830. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  831. }
  832. static const ::google::protobuf::Descriptor* descriptor() {
  833. return GetDescriptor();
  834. }
  835. static const ::google::protobuf::Descriptor* GetDescriptor() {
  836. return default_instance().GetMetadata().descriptor;
  837. }
  838. static const ::google::protobuf::Reflection* GetReflection() {
  839. return default_instance().GetMetadata().reflection;
  840. }
  841. static const TransactionOptions& default_instance() {
  842. return *internal_default_instance();
  843. }
  844. enum ModeCase {
  845. kReadOnly = 2,
  846. kReadWrite = 3,
  847. MODE_NOT_SET = 0,
  848. };
  849. static inline const TransactionOptions* internal_default_instance() {
  850. return reinterpret_cast<const TransactionOptions*>(
  851. &_TransactionOptions_default_instance_);
  852. }
  853. static constexpr int kIndexInFileMessages =
  854. 4;
  855. friend void swap(TransactionOptions& a, TransactionOptions& b) {
  856. a.Swap(&b);
  857. }
  858. inline void Swap(TransactionOptions* other) {
  859. if (other == this) return;
  860. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  861. if (GetArena() != nullptr &&
  862. GetArena() == other->GetArena()) {
  863. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  864. if (GetArena() == other->GetArena()) {
  865. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  866. InternalSwap(other);
  867. } else {
  868. ::google::protobuf::internal::GenericSwap(this, other);
  869. }
  870. }
  871. void UnsafeArenaSwap(TransactionOptions* other) {
  872. if (other == this) return;
  873. ABSL_DCHECK(GetArena() == other->GetArena());
  874. InternalSwap(other);
  875. }
  876. // implements Message ----------------------------------------------
  877. TransactionOptions* New(::google::protobuf::Arena* arena = nullptr) const final {
  878. return CreateMaybeMessage<TransactionOptions>(arena);
  879. }
  880. using ::google::protobuf::Message::CopyFrom;
  881. void CopyFrom(const TransactionOptions& from);
  882. using ::google::protobuf::Message::MergeFrom;
  883. void MergeFrom( const TransactionOptions& from) {
  884. TransactionOptions::MergeImpl(*this, from);
  885. }
  886. private:
  887. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  888. public:
  889. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  890. bool IsInitialized() const final;
  891. ::size_t ByteSizeLong() const final;
  892. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  893. ::uint8_t* _InternalSerialize(
  894. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  895. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  896. private:
  897. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  898. void SharedCtor(::google::protobuf::Arena* arena);
  899. void SharedDtor();
  900. void InternalSwap(TransactionOptions* other);
  901. private:
  902. friend class ::google::protobuf::internal::AnyMetadata;
  903. static ::absl::string_view FullMessageName() {
  904. return "google.firestore.v1.TransactionOptions";
  905. }
  906. protected:
  907. explicit TransactionOptions(::google::protobuf::Arena* arena);
  908. TransactionOptions(::google::protobuf::Arena* arena, const TransactionOptions& from);
  909. public:
  910. static const ClassData _class_data_;
  911. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  912. ::google::protobuf::Metadata GetMetadata() const final;
  913. // nested types ----------------------------------------------------
  914. using ReadWrite = TransactionOptions_ReadWrite;
  915. using ReadOnly = TransactionOptions_ReadOnly;
  916. // accessors -------------------------------------------------------
  917. enum : int {
  918. kReadOnlyFieldNumber = 2,
  919. kReadWriteFieldNumber = 3,
  920. };
  921. // .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
  922. bool has_read_only() const;
  923. private:
  924. bool _internal_has_read_only() const;
  925. public:
  926. void clear_read_only() ;
  927. const ::google::firestore::v1::TransactionOptions_ReadOnly& read_only() const;
  928. PROTOBUF_NODISCARD ::google::firestore::v1::TransactionOptions_ReadOnly* release_read_only();
  929. ::google::firestore::v1::TransactionOptions_ReadOnly* mutable_read_only();
  930. void set_allocated_read_only(::google::firestore::v1::TransactionOptions_ReadOnly* value);
  931. void unsafe_arena_set_allocated_read_only(::google::firestore::v1::TransactionOptions_ReadOnly* value);
  932. ::google::firestore::v1::TransactionOptions_ReadOnly* unsafe_arena_release_read_only();
  933. private:
  934. const ::google::firestore::v1::TransactionOptions_ReadOnly& _internal_read_only() const;
  935. ::google::firestore::v1::TransactionOptions_ReadOnly* _internal_mutable_read_only();
  936. public:
  937. // .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
  938. bool has_read_write() const;
  939. private:
  940. bool _internal_has_read_write() const;
  941. public:
  942. void clear_read_write() ;
  943. const ::google::firestore::v1::TransactionOptions_ReadWrite& read_write() const;
  944. PROTOBUF_NODISCARD ::google::firestore::v1::TransactionOptions_ReadWrite* release_read_write();
  945. ::google::firestore::v1::TransactionOptions_ReadWrite* mutable_read_write();
  946. void set_allocated_read_write(::google::firestore::v1::TransactionOptions_ReadWrite* value);
  947. void unsafe_arena_set_allocated_read_write(::google::firestore::v1::TransactionOptions_ReadWrite* value);
  948. ::google::firestore::v1::TransactionOptions_ReadWrite* unsafe_arena_release_read_write();
  949. private:
  950. const ::google::firestore::v1::TransactionOptions_ReadWrite& _internal_read_write() const;
  951. ::google::firestore::v1::TransactionOptions_ReadWrite* _internal_mutable_read_write();
  952. public:
  953. void clear_mode();
  954. ModeCase mode_case() const;
  955. // @@protoc_insertion_point(class_scope:google.firestore.v1.TransactionOptions)
  956. private:
  957. class _Internal;
  958. void set_has_read_only();
  959. void set_has_read_write();
  960. inline bool has_mode() const;
  961. inline void clear_has_mode();
  962. friend class ::google::protobuf::internal::TcParser;
  963. static const ::google::protobuf::internal::TcParseTable<
  964. 0, 2, 2,
  965. 0, 2>
  966. _table_;
  967. friend class ::google::protobuf::MessageLite;
  968. friend class ::google::protobuf::Arena;
  969. template <typename T>
  970. friend class ::google::protobuf::Arena::InternalHelper;
  971. using InternalArenaConstructable_ = void;
  972. using DestructorSkippable_ = void;
  973. struct Impl_ {
  974. inline explicit constexpr Impl_(
  975. ::google::protobuf::internal::ConstantInitialized) noexcept;
  976. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  977. ::google::protobuf::Arena* arena);
  978. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  979. ::google::protobuf::Arena* arena, const Impl_& from);
  980. union ModeUnion {
  981. constexpr ModeUnion() : _constinit_{} {}
  982. ::google::protobuf::internal::ConstantInitialized _constinit_;
  983. ::google::firestore::v1::TransactionOptions_ReadOnly* read_only_;
  984. ::google::firestore::v1::TransactionOptions_ReadWrite* read_write_;
  985. } mode_;
  986. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  987. ::uint32_t _oneof_case_[1];
  988. PROTOBUF_TSAN_DECLARE_MEMBER
  989. };
  990. union { Impl_ _impl_; };
  991. friend struct ::TableStruct_google_2ffirestore_2fv1_2fcommon_2eproto;
  992. };
  993. // ===================================================================
  994. // ===================================================================
  995. #ifdef __GNUC__
  996. #pragma GCC diagnostic push
  997. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  998. #endif // __GNUC__
  999. // -------------------------------------------------------------------
  1000. // DocumentMask
  1001. // repeated string field_paths = 1;
  1002. inline int DocumentMask::_internal_field_paths_size() const {
  1003. return _internal_field_paths().size();
  1004. }
  1005. inline int DocumentMask::field_paths_size() const {
  1006. return _internal_field_paths_size();
  1007. }
  1008. inline void DocumentMask::clear_field_paths() {
  1009. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1010. _impl_.field_paths_.Clear();
  1011. }
  1012. inline std::string* DocumentMask::add_field_paths()
  1013. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1014. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1015. std::string* _s = _internal_mutable_field_paths()->Add();
  1016. // @@protoc_insertion_point(field_add_mutable:google.firestore.v1.DocumentMask.field_paths)
  1017. return _s;
  1018. }
  1019. inline const std::string& DocumentMask::field_paths(int index) const
  1020. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1021. // @@protoc_insertion_point(field_get:google.firestore.v1.DocumentMask.field_paths)
  1022. return _internal_field_paths().Get(index);
  1023. }
  1024. inline std::string* DocumentMask::mutable_field_paths(int index)
  1025. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1026. // @@protoc_insertion_point(field_mutable:google.firestore.v1.DocumentMask.field_paths)
  1027. return _internal_mutable_field_paths()->Mutable(index);
  1028. }
  1029. inline void DocumentMask::set_field_paths(int index, const std::string& value) {
  1030. _internal_mutable_field_paths()->Mutable(index)->assign(value);
  1031. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentMask.field_paths)
  1032. }
  1033. inline void DocumentMask::set_field_paths(int index, std::string&& value) {
  1034. _internal_mutable_field_paths()->Mutable(index)->assign(std::move(value));
  1035. // @@protoc_insertion_point(field_set:google.firestore.v1.DocumentMask.field_paths)
  1036. }
  1037. inline void DocumentMask::set_field_paths(int index, const char* value) {
  1038. ABSL_DCHECK(value != nullptr);
  1039. _internal_mutable_field_paths()->Mutable(index)->assign(value);
  1040. // @@protoc_insertion_point(field_set_char:google.firestore.v1.DocumentMask.field_paths)
  1041. }
  1042. inline void DocumentMask::set_field_paths(int index, const char* value,
  1043. std::size_t size) {
  1044. _internal_mutable_field_paths()->Mutable(index)->assign(
  1045. reinterpret_cast<const char*>(value), size);
  1046. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.DocumentMask.field_paths)
  1047. }
  1048. inline void DocumentMask::set_field_paths(int index, absl::string_view value) {
  1049. _internal_mutable_field_paths()->Mutable(index)->assign(value.data(),
  1050. value.size());
  1051. // @@protoc_insertion_point(field_set_string_piece:google.firestore.v1.DocumentMask.field_paths)
  1052. }
  1053. inline void DocumentMask::add_field_paths(const std::string& value) {
  1054. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1055. _internal_mutable_field_paths()->Add()->assign(value);
  1056. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentMask.field_paths)
  1057. }
  1058. inline void DocumentMask::add_field_paths(std::string&& value) {
  1059. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1060. _internal_mutable_field_paths()->Add(std::move(value));
  1061. // @@protoc_insertion_point(field_add:google.firestore.v1.DocumentMask.field_paths)
  1062. }
  1063. inline void DocumentMask::add_field_paths(const char* value) {
  1064. ABSL_DCHECK(value != nullptr);
  1065. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1066. _internal_mutable_field_paths()->Add()->assign(value);
  1067. // @@protoc_insertion_point(field_add_char:google.firestore.v1.DocumentMask.field_paths)
  1068. }
  1069. inline void DocumentMask::add_field_paths(const char* value, std::size_t size) {
  1070. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1071. _internal_mutable_field_paths()->Add()->assign(
  1072. reinterpret_cast<const char*>(value), size);
  1073. // @@protoc_insertion_point(field_add_pointer:google.firestore.v1.DocumentMask.field_paths)
  1074. }
  1075. inline void DocumentMask::add_field_paths(absl::string_view value) {
  1076. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1077. _internal_mutable_field_paths()->Add()->assign(value.data(), value.size());
  1078. // @@protoc_insertion_point(field_add_string_piece:google.firestore.v1.DocumentMask.field_paths)
  1079. }
  1080. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  1081. DocumentMask::field_paths() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1082. // @@protoc_insertion_point(field_list:google.firestore.v1.DocumentMask.field_paths)
  1083. return _internal_field_paths();
  1084. }
  1085. inline ::google::protobuf::RepeatedPtrField<std::string>*
  1086. DocumentMask::mutable_field_paths() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1087. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.DocumentMask.field_paths)
  1088. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1089. return _internal_mutable_field_paths();
  1090. }
  1091. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  1092. DocumentMask::_internal_field_paths() const {
  1093. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1094. return _impl_.field_paths_;
  1095. }
  1096. inline ::google::protobuf::RepeatedPtrField<std::string>*
  1097. DocumentMask::_internal_mutable_field_paths() {
  1098. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1099. return &_impl_.field_paths_;
  1100. }
  1101. // -------------------------------------------------------------------
  1102. // Precondition
  1103. // bool exists = 1;
  1104. inline bool Precondition::has_exists() const {
  1105. return condition_type_case() == kExists;
  1106. }
  1107. inline void Precondition::set_has_exists() {
  1108. _impl_._oneof_case_[0] = kExists;
  1109. }
  1110. inline void Precondition::clear_exists() {
  1111. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1112. if (condition_type_case() == kExists) {
  1113. _impl_.condition_type_.exists_ = false;
  1114. clear_has_condition_type();
  1115. }
  1116. }
  1117. inline bool Precondition::exists() const {
  1118. // @@protoc_insertion_point(field_get:google.firestore.v1.Precondition.exists)
  1119. return _internal_exists();
  1120. }
  1121. inline void Precondition::set_exists(bool value) {
  1122. _internal_set_exists(value);
  1123. // @@protoc_insertion_point(field_set:google.firestore.v1.Precondition.exists)
  1124. }
  1125. inline bool Precondition::_internal_exists() const {
  1126. if (condition_type_case() == kExists) {
  1127. return _impl_.condition_type_.exists_;
  1128. }
  1129. return false;
  1130. }
  1131. inline void Precondition::_internal_set_exists(bool value) {
  1132. if (condition_type_case() != kExists) {
  1133. clear_condition_type();
  1134. set_has_exists();
  1135. }
  1136. _impl_.condition_type_.exists_ = value;
  1137. }
  1138. // .google.protobuf.Timestamp update_time = 2;
  1139. inline bool Precondition::has_update_time() const {
  1140. return condition_type_case() == kUpdateTime;
  1141. }
  1142. inline bool Precondition::_internal_has_update_time() const {
  1143. return condition_type_case() == kUpdateTime;
  1144. }
  1145. inline void Precondition::set_has_update_time() {
  1146. _impl_._oneof_case_[0] = kUpdateTime;
  1147. }
  1148. inline ::google::protobuf::Timestamp* Precondition::release_update_time() {
  1149. // @@protoc_insertion_point(field_release:google.firestore.v1.Precondition.update_time)
  1150. if (condition_type_case() == kUpdateTime) {
  1151. clear_has_condition_type();
  1152. auto* temp = _impl_.condition_type_.update_time_;
  1153. if (GetArena() != nullptr) {
  1154. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1155. }
  1156. _impl_.condition_type_.update_time_ = nullptr;
  1157. return temp;
  1158. } else {
  1159. return nullptr;
  1160. }
  1161. }
  1162. inline const ::google::protobuf::Timestamp& Precondition::_internal_update_time() const {
  1163. return condition_type_case() == kUpdateTime ? *_impl_.condition_type_.update_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1164. }
  1165. inline const ::google::protobuf::Timestamp& Precondition::update_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1166. // @@protoc_insertion_point(field_get:google.firestore.v1.Precondition.update_time)
  1167. return _internal_update_time();
  1168. }
  1169. inline ::google::protobuf::Timestamp* Precondition::unsafe_arena_release_update_time() {
  1170. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Precondition.update_time)
  1171. if (condition_type_case() == kUpdateTime) {
  1172. clear_has_condition_type();
  1173. auto* temp = _impl_.condition_type_.update_time_;
  1174. _impl_.condition_type_.update_time_ = nullptr;
  1175. return temp;
  1176. } else {
  1177. return nullptr;
  1178. }
  1179. }
  1180. inline void Precondition::unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value) {
  1181. // We rely on the oneof clear method to free the earlier contents
  1182. // of this oneof. We can directly use the pointer we're given to
  1183. // set the new value.
  1184. clear_condition_type();
  1185. if (value) {
  1186. set_has_update_time();
  1187. _impl_.condition_type_.update_time_ = value;
  1188. }
  1189. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Precondition.update_time)
  1190. }
  1191. inline ::google::protobuf::Timestamp* Precondition::_internal_mutable_update_time() {
  1192. if (condition_type_case() != kUpdateTime) {
  1193. clear_condition_type();
  1194. set_has_update_time();
  1195. _impl_.condition_type_.update_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1196. }
  1197. return _impl_.condition_type_.update_time_;
  1198. }
  1199. inline ::google::protobuf::Timestamp* Precondition::mutable_update_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1200. ::google::protobuf::Timestamp* _msg = _internal_mutable_update_time();
  1201. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Precondition.update_time)
  1202. return _msg;
  1203. }
  1204. inline bool Precondition::has_condition_type() const {
  1205. return condition_type_case() != CONDITION_TYPE_NOT_SET;
  1206. }
  1207. inline void Precondition::clear_has_condition_type() {
  1208. _impl_._oneof_case_[0] = CONDITION_TYPE_NOT_SET;
  1209. }
  1210. inline Precondition::ConditionTypeCase Precondition::condition_type_case() const {
  1211. return Precondition::ConditionTypeCase(_impl_._oneof_case_[0]);
  1212. }
  1213. // -------------------------------------------------------------------
  1214. // TransactionOptions_ReadWrite
  1215. // bytes retry_transaction = 1;
  1216. inline void TransactionOptions_ReadWrite::clear_retry_transaction() {
  1217. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1218. _impl_.retry_transaction_.ClearToEmpty();
  1219. }
  1220. inline const std::string& TransactionOptions_ReadWrite::retry_transaction() const
  1221. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1222. // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  1223. return _internal_retry_transaction();
  1224. }
  1225. template <typename Arg_, typename... Args_>
  1226. inline PROTOBUF_ALWAYS_INLINE void TransactionOptions_ReadWrite::set_retry_transaction(Arg_&& arg,
  1227. Args_... args) {
  1228. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1229. ;
  1230. _impl_.retry_transaction_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  1231. // @@protoc_insertion_point(field_set:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  1232. }
  1233. inline std::string* TransactionOptions_ReadWrite::mutable_retry_transaction() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1234. std::string* _s = _internal_mutable_retry_transaction();
  1235. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  1236. return _s;
  1237. }
  1238. inline const std::string& TransactionOptions_ReadWrite::_internal_retry_transaction() const {
  1239. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1240. return _impl_.retry_transaction_.Get();
  1241. }
  1242. inline void TransactionOptions_ReadWrite::_internal_set_retry_transaction(const std::string& value) {
  1243. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1244. ;
  1245. _impl_.retry_transaction_.Set(value, GetArena());
  1246. }
  1247. inline std::string* TransactionOptions_ReadWrite::_internal_mutable_retry_transaction() {
  1248. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1249. ;
  1250. return _impl_.retry_transaction_.Mutable( GetArena());
  1251. }
  1252. inline std::string* TransactionOptions_ReadWrite::release_retry_transaction() {
  1253. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1254. // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  1255. return _impl_.retry_transaction_.Release();
  1256. }
  1257. inline void TransactionOptions_ReadWrite::set_allocated_retry_transaction(std::string* value) {
  1258. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1259. _impl_.retry_transaction_.SetAllocated(value, GetArena());
  1260. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1261. if (_impl_.retry_transaction_.IsDefault()) {
  1262. _impl_.retry_transaction_.Set("", GetArena());
  1263. }
  1264. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1265. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.TransactionOptions.ReadWrite.retry_transaction)
  1266. }
  1267. // -------------------------------------------------------------------
  1268. // TransactionOptions_ReadOnly
  1269. // .google.protobuf.Timestamp read_time = 2;
  1270. inline bool TransactionOptions_ReadOnly::has_read_time() const {
  1271. return consistency_selector_case() == kReadTime;
  1272. }
  1273. inline bool TransactionOptions_ReadOnly::_internal_has_read_time() const {
  1274. return consistency_selector_case() == kReadTime;
  1275. }
  1276. inline void TransactionOptions_ReadOnly::set_has_read_time() {
  1277. _impl_._oneof_case_[0] = kReadTime;
  1278. }
  1279. inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::release_read_time() {
  1280. // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  1281. if (consistency_selector_case() == kReadTime) {
  1282. clear_has_consistency_selector();
  1283. auto* temp = _impl_.consistency_selector_.read_time_;
  1284. if (GetArena() != nullptr) {
  1285. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1286. }
  1287. _impl_.consistency_selector_.read_time_ = nullptr;
  1288. return temp;
  1289. } else {
  1290. return nullptr;
  1291. }
  1292. }
  1293. inline const ::google::protobuf::Timestamp& TransactionOptions_ReadOnly::_internal_read_time() const {
  1294. return consistency_selector_case() == kReadTime ? *_impl_.consistency_selector_.read_time_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1295. }
  1296. inline const ::google::protobuf::Timestamp& TransactionOptions_ReadOnly::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1297. // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  1298. return _internal_read_time();
  1299. }
  1300. inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::unsafe_arena_release_read_time() {
  1301. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  1302. if (consistency_selector_case() == kReadTime) {
  1303. clear_has_consistency_selector();
  1304. auto* temp = _impl_.consistency_selector_.read_time_;
  1305. _impl_.consistency_selector_.read_time_ = nullptr;
  1306. return temp;
  1307. } else {
  1308. return nullptr;
  1309. }
  1310. }
  1311. inline void TransactionOptions_ReadOnly::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  1312. // We rely on the oneof clear method to free the earlier contents
  1313. // of this oneof. We can directly use the pointer we're given to
  1314. // set the new value.
  1315. clear_consistency_selector();
  1316. if (value) {
  1317. set_has_read_time();
  1318. _impl_.consistency_selector_.read_time_ = value;
  1319. }
  1320. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  1321. }
  1322. inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::_internal_mutable_read_time() {
  1323. if (consistency_selector_case() != kReadTime) {
  1324. clear_consistency_selector();
  1325. set_has_read_time();
  1326. _impl_.consistency_selector_.read_time_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1327. }
  1328. return _impl_.consistency_selector_.read_time_;
  1329. }
  1330. inline ::google::protobuf::Timestamp* TransactionOptions_ReadOnly::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1331. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  1332. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.ReadOnly.read_time)
  1333. return _msg;
  1334. }
  1335. inline bool TransactionOptions_ReadOnly::has_consistency_selector() const {
  1336. return consistency_selector_case() != CONSISTENCY_SELECTOR_NOT_SET;
  1337. }
  1338. inline void TransactionOptions_ReadOnly::clear_has_consistency_selector() {
  1339. _impl_._oneof_case_[0] = CONSISTENCY_SELECTOR_NOT_SET;
  1340. }
  1341. inline TransactionOptions_ReadOnly::ConsistencySelectorCase TransactionOptions_ReadOnly::consistency_selector_case() const {
  1342. return TransactionOptions_ReadOnly::ConsistencySelectorCase(_impl_._oneof_case_[0]);
  1343. }
  1344. // -------------------------------------------------------------------
  1345. // TransactionOptions
  1346. // .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
  1347. inline bool TransactionOptions::has_read_only() const {
  1348. return mode_case() == kReadOnly;
  1349. }
  1350. inline bool TransactionOptions::_internal_has_read_only() const {
  1351. return mode_case() == kReadOnly;
  1352. }
  1353. inline void TransactionOptions::set_has_read_only() {
  1354. _impl_._oneof_case_[0] = kReadOnly;
  1355. }
  1356. inline void TransactionOptions::clear_read_only() {
  1357. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1358. if (mode_case() == kReadOnly) {
  1359. if (GetArena() == nullptr) {
  1360. delete _impl_.mode_.read_only_;
  1361. }
  1362. clear_has_mode();
  1363. }
  1364. }
  1365. inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::release_read_only() {
  1366. // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.read_only)
  1367. if (mode_case() == kReadOnly) {
  1368. clear_has_mode();
  1369. auto* temp = _impl_.mode_.read_only_;
  1370. if (GetArena() != nullptr) {
  1371. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1372. }
  1373. _impl_.mode_.read_only_ = nullptr;
  1374. return temp;
  1375. } else {
  1376. return nullptr;
  1377. }
  1378. }
  1379. inline const ::google::firestore::v1::TransactionOptions_ReadOnly& TransactionOptions::_internal_read_only() const {
  1380. return mode_case() == kReadOnly ? *_impl_.mode_.read_only_ : reinterpret_cast<::google::firestore::v1::TransactionOptions_ReadOnly&>(::google::firestore::v1::_TransactionOptions_ReadOnly_default_instance_);
  1381. }
  1382. inline const ::google::firestore::v1::TransactionOptions_ReadOnly& TransactionOptions::read_only() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1383. // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.read_only)
  1384. return _internal_read_only();
  1385. }
  1386. inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::unsafe_arena_release_read_only() {
  1387. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.TransactionOptions.read_only)
  1388. if (mode_case() == kReadOnly) {
  1389. clear_has_mode();
  1390. auto* temp = _impl_.mode_.read_only_;
  1391. _impl_.mode_.read_only_ = nullptr;
  1392. return temp;
  1393. } else {
  1394. return nullptr;
  1395. }
  1396. }
  1397. inline void TransactionOptions::unsafe_arena_set_allocated_read_only(::google::firestore::v1::TransactionOptions_ReadOnly* value) {
  1398. // We rely on the oneof clear method to free the earlier contents
  1399. // of this oneof. We can directly use the pointer we're given to
  1400. // set the new value.
  1401. clear_mode();
  1402. if (value) {
  1403. set_has_read_only();
  1404. _impl_.mode_.read_only_ = value;
  1405. }
  1406. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.TransactionOptions.read_only)
  1407. }
  1408. inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::_internal_mutable_read_only() {
  1409. if (mode_case() != kReadOnly) {
  1410. clear_mode();
  1411. set_has_read_only();
  1412. _impl_.mode_.read_only_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions_ReadOnly>(GetArena());
  1413. }
  1414. return _impl_.mode_.read_only_;
  1415. }
  1416. inline ::google::firestore::v1::TransactionOptions_ReadOnly* TransactionOptions::mutable_read_only() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1417. ::google::firestore::v1::TransactionOptions_ReadOnly* _msg = _internal_mutable_read_only();
  1418. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.read_only)
  1419. return _msg;
  1420. }
  1421. // .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
  1422. inline bool TransactionOptions::has_read_write() const {
  1423. return mode_case() == kReadWrite;
  1424. }
  1425. inline bool TransactionOptions::_internal_has_read_write() const {
  1426. return mode_case() == kReadWrite;
  1427. }
  1428. inline void TransactionOptions::set_has_read_write() {
  1429. _impl_._oneof_case_[0] = kReadWrite;
  1430. }
  1431. inline void TransactionOptions::clear_read_write() {
  1432. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1433. if (mode_case() == kReadWrite) {
  1434. if (GetArena() == nullptr) {
  1435. delete _impl_.mode_.read_write_;
  1436. }
  1437. clear_has_mode();
  1438. }
  1439. }
  1440. inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::release_read_write() {
  1441. // @@protoc_insertion_point(field_release:google.firestore.v1.TransactionOptions.read_write)
  1442. if (mode_case() == kReadWrite) {
  1443. clear_has_mode();
  1444. auto* temp = _impl_.mode_.read_write_;
  1445. if (GetArena() != nullptr) {
  1446. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1447. }
  1448. _impl_.mode_.read_write_ = nullptr;
  1449. return temp;
  1450. } else {
  1451. return nullptr;
  1452. }
  1453. }
  1454. inline const ::google::firestore::v1::TransactionOptions_ReadWrite& TransactionOptions::_internal_read_write() const {
  1455. return mode_case() == kReadWrite ? *_impl_.mode_.read_write_ : reinterpret_cast<::google::firestore::v1::TransactionOptions_ReadWrite&>(::google::firestore::v1::_TransactionOptions_ReadWrite_default_instance_);
  1456. }
  1457. inline const ::google::firestore::v1::TransactionOptions_ReadWrite& TransactionOptions::read_write() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1458. // @@protoc_insertion_point(field_get:google.firestore.v1.TransactionOptions.read_write)
  1459. return _internal_read_write();
  1460. }
  1461. inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::unsafe_arena_release_read_write() {
  1462. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.TransactionOptions.read_write)
  1463. if (mode_case() == kReadWrite) {
  1464. clear_has_mode();
  1465. auto* temp = _impl_.mode_.read_write_;
  1466. _impl_.mode_.read_write_ = nullptr;
  1467. return temp;
  1468. } else {
  1469. return nullptr;
  1470. }
  1471. }
  1472. inline void TransactionOptions::unsafe_arena_set_allocated_read_write(::google::firestore::v1::TransactionOptions_ReadWrite* value) {
  1473. // We rely on the oneof clear method to free the earlier contents
  1474. // of this oneof. We can directly use the pointer we're given to
  1475. // set the new value.
  1476. clear_mode();
  1477. if (value) {
  1478. set_has_read_write();
  1479. _impl_.mode_.read_write_ = value;
  1480. }
  1481. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.TransactionOptions.read_write)
  1482. }
  1483. inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::_internal_mutable_read_write() {
  1484. if (mode_case() != kReadWrite) {
  1485. clear_mode();
  1486. set_has_read_write();
  1487. _impl_.mode_.read_write_ = CreateMaybeMessage<::google::firestore::v1::TransactionOptions_ReadWrite>(GetArena());
  1488. }
  1489. return _impl_.mode_.read_write_;
  1490. }
  1491. inline ::google::firestore::v1::TransactionOptions_ReadWrite* TransactionOptions::mutable_read_write() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1492. ::google::firestore::v1::TransactionOptions_ReadWrite* _msg = _internal_mutable_read_write();
  1493. // @@protoc_insertion_point(field_mutable:google.firestore.v1.TransactionOptions.read_write)
  1494. return _msg;
  1495. }
  1496. inline bool TransactionOptions::has_mode() const {
  1497. return mode_case() != MODE_NOT_SET;
  1498. }
  1499. inline void TransactionOptions::clear_has_mode() {
  1500. _impl_._oneof_case_[0] = MODE_NOT_SET;
  1501. }
  1502. inline TransactionOptions::ModeCase TransactionOptions::mode_case() const {
  1503. return TransactionOptions::ModeCase(_impl_._oneof_case_[0]);
  1504. }
  1505. #ifdef __GNUC__
  1506. #pragma GCC diagnostic pop
  1507. #endif // __GNUC__
  1508. // @@protoc_insertion_point(namespace_scope)
  1509. } // namespace v1
  1510. } // namespace firestore
  1511. } // namespace google
  1512. // @@protoc_insertion_point(global_scope)
  1513. #include "google/protobuf/port_undef.inc"
  1514. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fcommon_2eproto_2epb_2eh