maybe_document.pb.h 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335
  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: firestore/local/maybe_document.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_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/firestore/v1/document.pb.h"
  49. #include "google/protobuf/timestamp.pb.h"
  50. // @@protoc_insertion_point(includes)
  51. // Must be included last.
  52. #include "google/protobuf/port_def.inc"
  53. #define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2fmaybe_5fdocument_2eproto
  54. namespace google {
  55. namespace protobuf {
  56. namespace internal {
  57. class AnyMetadata;
  58. } // namespace internal
  59. } // namespace protobuf
  60. } // namespace google
  61. // Internal implementation detail -- do not use these members.
  62. struct TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto {
  63. static const ::uint32_t offsets[];
  64. };
  65. extern const ::google::protobuf::internal::DescriptorTable
  66. descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  67. namespace firestore {
  68. namespace client {
  69. class MaybeDocument;
  70. struct MaybeDocumentDefaultTypeInternal;
  71. extern MaybeDocumentDefaultTypeInternal _MaybeDocument_default_instance_;
  72. class NoDocument;
  73. struct NoDocumentDefaultTypeInternal;
  74. extern NoDocumentDefaultTypeInternal _NoDocument_default_instance_;
  75. class UnknownDocument;
  76. struct UnknownDocumentDefaultTypeInternal;
  77. extern UnknownDocumentDefaultTypeInternal _UnknownDocument_default_instance_;
  78. } // namespace client
  79. } // namespace firestore
  80. namespace google {
  81. namespace protobuf {
  82. } // namespace protobuf
  83. } // namespace google
  84. namespace firestore {
  85. namespace client {
  86. // ===================================================================
  87. // -------------------------------------------------------------------
  88. class UnknownDocument final :
  89. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.UnknownDocument) */ {
  90. public:
  91. inline UnknownDocument() : UnknownDocument(nullptr) {}
  92. ~UnknownDocument() override;
  93. template<typename = void>
  94. explicit PROTOBUF_CONSTEXPR UnknownDocument(::google::protobuf::internal::ConstantInitialized);
  95. inline UnknownDocument(const UnknownDocument& from)
  96. : UnknownDocument(nullptr, from) {}
  97. UnknownDocument(UnknownDocument&& from) noexcept
  98. : UnknownDocument() {
  99. *this = ::std::move(from);
  100. }
  101. inline UnknownDocument& operator=(const UnknownDocument& from) {
  102. CopyFrom(from);
  103. return *this;
  104. }
  105. inline UnknownDocument& operator=(UnknownDocument&& from) noexcept {
  106. if (this == &from) return *this;
  107. if (GetArena() == from.GetArena()
  108. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  109. && GetArena() != nullptr
  110. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  111. ) {
  112. InternalSwap(&from);
  113. } else {
  114. CopyFrom(from);
  115. }
  116. return *this;
  117. }
  118. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  119. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  120. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  121. }
  122. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  123. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  124. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  125. }
  126. static const ::google::protobuf::Descriptor* descriptor() {
  127. return GetDescriptor();
  128. }
  129. static const ::google::protobuf::Descriptor* GetDescriptor() {
  130. return default_instance().GetMetadata().descriptor;
  131. }
  132. static const ::google::protobuf::Reflection* GetReflection() {
  133. return default_instance().GetMetadata().reflection;
  134. }
  135. static const UnknownDocument& default_instance() {
  136. return *internal_default_instance();
  137. }
  138. static inline const UnknownDocument* internal_default_instance() {
  139. return reinterpret_cast<const UnknownDocument*>(
  140. &_UnknownDocument_default_instance_);
  141. }
  142. static constexpr int kIndexInFileMessages =
  143. 1;
  144. friend void swap(UnknownDocument& a, UnknownDocument& b) {
  145. a.Swap(&b);
  146. }
  147. inline void Swap(UnknownDocument* other) {
  148. if (other == this) return;
  149. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  150. if (GetArena() != nullptr &&
  151. GetArena() == other->GetArena()) {
  152. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  153. if (GetArena() == other->GetArena()) {
  154. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  155. InternalSwap(other);
  156. } else {
  157. ::google::protobuf::internal::GenericSwap(this, other);
  158. }
  159. }
  160. void UnsafeArenaSwap(UnknownDocument* other) {
  161. if (other == this) return;
  162. ABSL_DCHECK(GetArena() == other->GetArena());
  163. InternalSwap(other);
  164. }
  165. // implements Message ----------------------------------------------
  166. UnknownDocument* New(::google::protobuf::Arena* arena = nullptr) const final {
  167. return CreateMaybeMessage<UnknownDocument>(arena);
  168. }
  169. using ::google::protobuf::Message::CopyFrom;
  170. void CopyFrom(const UnknownDocument& from);
  171. using ::google::protobuf::Message::MergeFrom;
  172. void MergeFrom( const UnknownDocument& from) {
  173. UnknownDocument::MergeImpl(*this, from);
  174. }
  175. private:
  176. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  177. public:
  178. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  179. bool IsInitialized() const final;
  180. ::size_t ByteSizeLong() const final;
  181. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  182. ::uint8_t* _InternalSerialize(
  183. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  184. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  185. private:
  186. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  187. void SharedCtor(::google::protobuf::Arena* arena);
  188. void SharedDtor();
  189. void InternalSwap(UnknownDocument* other);
  190. private:
  191. friend class ::google::protobuf::internal::AnyMetadata;
  192. static ::absl::string_view FullMessageName() {
  193. return "firestore.client.UnknownDocument";
  194. }
  195. protected:
  196. explicit UnknownDocument(::google::protobuf::Arena* arena);
  197. UnknownDocument(::google::protobuf::Arena* arena, const UnknownDocument& from);
  198. public:
  199. static const ClassData _class_data_;
  200. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  201. ::google::protobuf::Metadata GetMetadata() const final;
  202. // nested types ----------------------------------------------------
  203. // accessors -------------------------------------------------------
  204. enum : int {
  205. kNameFieldNumber = 1,
  206. kVersionFieldNumber = 2,
  207. };
  208. // string name = 1;
  209. void clear_name() ;
  210. const std::string& name() const;
  211. template <typename Arg_ = const std::string&, typename... Args_>
  212. void set_name(Arg_&& arg, Args_... args);
  213. std::string* mutable_name();
  214. PROTOBUF_NODISCARD std::string* release_name();
  215. void set_allocated_name(std::string* value);
  216. private:
  217. const std::string& _internal_name() const;
  218. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  219. const std::string& value);
  220. std::string* _internal_mutable_name();
  221. public:
  222. // .google.protobuf.Timestamp version = 2;
  223. bool has_version() const;
  224. void clear_version() ;
  225. const ::google::protobuf::Timestamp& version() const;
  226. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_version();
  227. ::google::protobuf::Timestamp* mutable_version();
  228. void set_allocated_version(::google::protobuf::Timestamp* value);
  229. void unsafe_arena_set_allocated_version(::google::protobuf::Timestamp* value);
  230. ::google::protobuf::Timestamp* unsafe_arena_release_version();
  231. private:
  232. const ::google::protobuf::Timestamp& _internal_version() const;
  233. ::google::protobuf::Timestamp* _internal_mutable_version();
  234. public:
  235. // @@protoc_insertion_point(class_scope:firestore.client.UnknownDocument)
  236. private:
  237. class _Internal;
  238. friend class ::google::protobuf::internal::TcParser;
  239. static const ::google::protobuf::internal::TcParseTable<
  240. 1, 2, 1,
  241. 45, 2>
  242. _table_;
  243. friend class ::google::protobuf::MessageLite;
  244. friend class ::google::protobuf::Arena;
  245. template <typename T>
  246. friend class ::google::protobuf::Arena::InternalHelper;
  247. using InternalArenaConstructable_ = void;
  248. using DestructorSkippable_ = void;
  249. struct Impl_ {
  250. inline explicit constexpr Impl_(
  251. ::google::protobuf::internal::ConstantInitialized) noexcept;
  252. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  253. ::google::protobuf::Arena* arena);
  254. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  255. ::google::protobuf::Arena* arena, const Impl_& from);
  256. ::google::protobuf::internal::HasBits<1> _has_bits_;
  257. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  258. ::google::protobuf::internal::ArenaStringPtr name_;
  259. ::google::protobuf::Timestamp* version_;
  260. PROTOBUF_TSAN_DECLARE_MEMBER
  261. };
  262. union { Impl_ _impl_; };
  263. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  264. };// -------------------------------------------------------------------
  265. class NoDocument final :
  266. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.NoDocument) */ {
  267. public:
  268. inline NoDocument() : NoDocument(nullptr) {}
  269. ~NoDocument() override;
  270. template<typename = void>
  271. explicit PROTOBUF_CONSTEXPR NoDocument(::google::protobuf::internal::ConstantInitialized);
  272. inline NoDocument(const NoDocument& from)
  273. : NoDocument(nullptr, from) {}
  274. NoDocument(NoDocument&& from) noexcept
  275. : NoDocument() {
  276. *this = ::std::move(from);
  277. }
  278. inline NoDocument& operator=(const NoDocument& from) {
  279. CopyFrom(from);
  280. return *this;
  281. }
  282. inline NoDocument& operator=(NoDocument&& from) noexcept {
  283. if (this == &from) return *this;
  284. if (GetArena() == from.GetArena()
  285. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  286. && GetArena() != nullptr
  287. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  288. ) {
  289. InternalSwap(&from);
  290. } else {
  291. CopyFrom(from);
  292. }
  293. return *this;
  294. }
  295. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  296. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  297. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  298. }
  299. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  300. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  301. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  302. }
  303. static const ::google::protobuf::Descriptor* descriptor() {
  304. return GetDescriptor();
  305. }
  306. static const ::google::protobuf::Descriptor* GetDescriptor() {
  307. return default_instance().GetMetadata().descriptor;
  308. }
  309. static const ::google::protobuf::Reflection* GetReflection() {
  310. return default_instance().GetMetadata().reflection;
  311. }
  312. static const NoDocument& default_instance() {
  313. return *internal_default_instance();
  314. }
  315. static inline const NoDocument* internal_default_instance() {
  316. return reinterpret_cast<const NoDocument*>(
  317. &_NoDocument_default_instance_);
  318. }
  319. static constexpr int kIndexInFileMessages =
  320. 0;
  321. friend void swap(NoDocument& a, NoDocument& b) {
  322. a.Swap(&b);
  323. }
  324. inline void Swap(NoDocument* other) {
  325. if (other == this) return;
  326. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  327. if (GetArena() != nullptr &&
  328. GetArena() == other->GetArena()) {
  329. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  330. if (GetArena() == other->GetArena()) {
  331. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  332. InternalSwap(other);
  333. } else {
  334. ::google::protobuf::internal::GenericSwap(this, other);
  335. }
  336. }
  337. void UnsafeArenaSwap(NoDocument* other) {
  338. if (other == this) return;
  339. ABSL_DCHECK(GetArena() == other->GetArena());
  340. InternalSwap(other);
  341. }
  342. // implements Message ----------------------------------------------
  343. NoDocument* New(::google::protobuf::Arena* arena = nullptr) const final {
  344. return CreateMaybeMessage<NoDocument>(arena);
  345. }
  346. using ::google::protobuf::Message::CopyFrom;
  347. void CopyFrom(const NoDocument& from);
  348. using ::google::protobuf::Message::MergeFrom;
  349. void MergeFrom( const NoDocument& from) {
  350. NoDocument::MergeImpl(*this, from);
  351. }
  352. private:
  353. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  354. public:
  355. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  356. bool IsInitialized() const final;
  357. ::size_t ByteSizeLong() const final;
  358. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  359. ::uint8_t* _InternalSerialize(
  360. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  361. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  362. private:
  363. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  364. void SharedCtor(::google::protobuf::Arena* arena);
  365. void SharedDtor();
  366. void InternalSwap(NoDocument* other);
  367. private:
  368. friend class ::google::protobuf::internal::AnyMetadata;
  369. static ::absl::string_view FullMessageName() {
  370. return "firestore.client.NoDocument";
  371. }
  372. protected:
  373. explicit NoDocument(::google::protobuf::Arena* arena);
  374. NoDocument(::google::protobuf::Arena* arena, const NoDocument& from);
  375. public:
  376. static const ClassData _class_data_;
  377. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  378. ::google::protobuf::Metadata GetMetadata() const final;
  379. // nested types ----------------------------------------------------
  380. // accessors -------------------------------------------------------
  381. enum : int {
  382. kNameFieldNumber = 1,
  383. kReadTimeFieldNumber = 2,
  384. };
  385. // string name = 1;
  386. void clear_name() ;
  387. const std::string& name() const;
  388. template <typename Arg_ = const std::string&, typename... Args_>
  389. void set_name(Arg_&& arg, Args_... args);
  390. std::string* mutable_name();
  391. PROTOBUF_NODISCARD std::string* release_name();
  392. void set_allocated_name(std::string* value);
  393. private:
  394. const std::string& _internal_name() const;
  395. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  396. const std::string& value);
  397. std::string* _internal_mutable_name();
  398. public:
  399. // .google.protobuf.Timestamp read_time = 2;
  400. bool has_read_time() const;
  401. void clear_read_time() ;
  402. const ::google::protobuf::Timestamp& read_time() const;
  403. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  404. ::google::protobuf::Timestamp* mutable_read_time();
  405. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  406. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  407. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  408. private:
  409. const ::google::protobuf::Timestamp& _internal_read_time() const;
  410. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  411. public:
  412. // @@protoc_insertion_point(class_scope:firestore.client.NoDocument)
  413. private:
  414. class _Internal;
  415. friend class ::google::protobuf::internal::TcParser;
  416. static const ::google::protobuf::internal::TcParseTable<
  417. 1, 2, 1,
  418. 40, 2>
  419. _table_;
  420. friend class ::google::protobuf::MessageLite;
  421. friend class ::google::protobuf::Arena;
  422. template <typename T>
  423. friend class ::google::protobuf::Arena::InternalHelper;
  424. using InternalArenaConstructable_ = void;
  425. using DestructorSkippable_ = void;
  426. struct Impl_ {
  427. inline explicit constexpr Impl_(
  428. ::google::protobuf::internal::ConstantInitialized) noexcept;
  429. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  430. ::google::protobuf::Arena* arena);
  431. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  432. ::google::protobuf::Arena* arena, const Impl_& from);
  433. ::google::protobuf::internal::HasBits<1> _has_bits_;
  434. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  435. ::google::protobuf::internal::ArenaStringPtr name_;
  436. ::google::protobuf::Timestamp* read_time_;
  437. PROTOBUF_TSAN_DECLARE_MEMBER
  438. };
  439. union { Impl_ _impl_; };
  440. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  441. };// -------------------------------------------------------------------
  442. class MaybeDocument final :
  443. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.MaybeDocument) */ {
  444. public:
  445. inline MaybeDocument() : MaybeDocument(nullptr) {}
  446. ~MaybeDocument() override;
  447. template<typename = void>
  448. explicit PROTOBUF_CONSTEXPR MaybeDocument(::google::protobuf::internal::ConstantInitialized);
  449. inline MaybeDocument(const MaybeDocument& from)
  450. : MaybeDocument(nullptr, from) {}
  451. MaybeDocument(MaybeDocument&& from) noexcept
  452. : MaybeDocument() {
  453. *this = ::std::move(from);
  454. }
  455. inline MaybeDocument& operator=(const MaybeDocument& from) {
  456. CopyFrom(from);
  457. return *this;
  458. }
  459. inline MaybeDocument& operator=(MaybeDocument&& from) noexcept {
  460. if (this == &from) return *this;
  461. if (GetArena() == from.GetArena()
  462. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  463. && GetArena() != nullptr
  464. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  465. ) {
  466. InternalSwap(&from);
  467. } else {
  468. CopyFrom(from);
  469. }
  470. return *this;
  471. }
  472. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  473. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  474. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  475. }
  476. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  477. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  478. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  479. }
  480. static const ::google::protobuf::Descriptor* descriptor() {
  481. return GetDescriptor();
  482. }
  483. static const ::google::protobuf::Descriptor* GetDescriptor() {
  484. return default_instance().GetMetadata().descriptor;
  485. }
  486. static const ::google::protobuf::Reflection* GetReflection() {
  487. return default_instance().GetMetadata().reflection;
  488. }
  489. static const MaybeDocument& default_instance() {
  490. return *internal_default_instance();
  491. }
  492. enum DocumentTypeCase {
  493. kNoDocument = 1,
  494. kDocument = 2,
  495. kUnknownDocument = 3,
  496. DOCUMENT_TYPE_NOT_SET = 0,
  497. };
  498. static inline const MaybeDocument* internal_default_instance() {
  499. return reinterpret_cast<const MaybeDocument*>(
  500. &_MaybeDocument_default_instance_);
  501. }
  502. static constexpr int kIndexInFileMessages =
  503. 2;
  504. friend void swap(MaybeDocument& a, MaybeDocument& b) {
  505. a.Swap(&b);
  506. }
  507. inline void Swap(MaybeDocument* other) {
  508. if (other == this) return;
  509. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  510. if (GetArena() != nullptr &&
  511. GetArena() == other->GetArena()) {
  512. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  513. if (GetArena() == other->GetArena()) {
  514. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  515. InternalSwap(other);
  516. } else {
  517. ::google::protobuf::internal::GenericSwap(this, other);
  518. }
  519. }
  520. void UnsafeArenaSwap(MaybeDocument* other) {
  521. if (other == this) return;
  522. ABSL_DCHECK(GetArena() == other->GetArena());
  523. InternalSwap(other);
  524. }
  525. // implements Message ----------------------------------------------
  526. MaybeDocument* New(::google::protobuf::Arena* arena = nullptr) const final {
  527. return CreateMaybeMessage<MaybeDocument>(arena);
  528. }
  529. using ::google::protobuf::Message::CopyFrom;
  530. void CopyFrom(const MaybeDocument& from);
  531. using ::google::protobuf::Message::MergeFrom;
  532. void MergeFrom( const MaybeDocument& from) {
  533. MaybeDocument::MergeImpl(*this, from);
  534. }
  535. private:
  536. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  537. public:
  538. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  539. bool IsInitialized() const final;
  540. ::size_t ByteSizeLong() const final;
  541. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  542. ::uint8_t* _InternalSerialize(
  543. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  544. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  545. private:
  546. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  547. void SharedCtor(::google::protobuf::Arena* arena);
  548. void SharedDtor();
  549. void InternalSwap(MaybeDocument* other);
  550. private:
  551. friend class ::google::protobuf::internal::AnyMetadata;
  552. static ::absl::string_view FullMessageName() {
  553. return "firestore.client.MaybeDocument";
  554. }
  555. protected:
  556. explicit MaybeDocument(::google::protobuf::Arena* arena);
  557. MaybeDocument(::google::protobuf::Arena* arena, const MaybeDocument& from);
  558. public:
  559. static const ClassData _class_data_;
  560. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  561. ::google::protobuf::Metadata GetMetadata() const final;
  562. // nested types ----------------------------------------------------
  563. // accessors -------------------------------------------------------
  564. enum : int {
  565. kHasCommittedMutationsFieldNumber = 4,
  566. kNoDocumentFieldNumber = 1,
  567. kDocumentFieldNumber = 2,
  568. kUnknownDocumentFieldNumber = 3,
  569. };
  570. // bool has_committed_mutations = 4;
  571. void clear_has_committed_mutations() ;
  572. bool has_committed_mutations() const;
  573. void set_has_committed_mutations(bool value);
  574. private:
  575. bool _internal_has_committed_mutations() const;
  576. void _internal_set_has_committed_mutations(bool value);
  577. public:
  578. // .firestore.client.NoDocument no_document = 1;
  579. bool has_no_document() const;
  580. private:
  581. bool _internal_has_no_document() const;
  582. public:
  583. void clear_no_document() ;
  584. const ::firestore::client::NoDocument& no_document() const;
  585. PROTOBUF_NODISCARD ::firestore::client::NoDocument* release_no_document();
  586. ::firestore::client::NoDocument* mutable_no_document();
  587. void set_allocated_no_document(::firestore::client::NoDocument* value);
  588. void unsafe_arena_set_allocated_no_document(::firestore::client::NoDocument* value);
  589. ::firestore::client::NoDocument* unsafe_arena_release_no_document();
  590. private:
  591. const ::firestore::client::NoDocument& _internal_no_document() const;
  592. ::firestore::client::NoDocument* _internal_mutable_no_document();
  593. public:
  594. // .google.firestore.v1.Document document = 2;
  595. bool has_document() const;
  596. private:
  597. bool _internal_has_document() const;
  598. public:
  599. void clear_document() ;
  600. const ::google::firestore::v1::Document& document() const;
  601. PROTOBUF_NODISCARD ::google::firestore::v1::Document* release_document();
  602. ::google::firestore::v1::Document* mutable_document();
  603. void set_allocated_document(::google::firestore::v1::Document* value);
  604. void unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value);
  605. ::google::firestore::v1::Document* unsafe_arena_release_document();
  606. private:
  607. const ::google::firestore::v1::Document& _internal_document() const;
  608. ::google::firestore::v1::Document* _internal_mutable_document();
  609. public:
  610. // .firestore.client.UnknownDocument unknown_document = 3;
  611. bool has_unknown_document() const;
  612. private:
  613. bool _internal_has_unknown_document() const;
  614. public:
  615. void clear_unknown_document() ;
  616. const ::firestore::client::UnknownDocument& unknown_document() const;
  617. PROTOBUF_NODISCARD ::firestore::client::UnknownDocument* release_unknown_document();
  618. ::firestore::client::UnknownDocument* mutable_unknown_document();
  619. void set_allocated_unknown_document(::firestore::client::UnknownDocument* value);
  620. void unsafe_arena_set_allocated_unknown_document(::firestore::client::UnknownDocument* value);
  621. ::firestore::client::UnknownDocument* unsafe_arena_release_unknown_document();
  622. private:
  623. const ::firestore::client::UnknownDocument& _internal_unknown_document() const;
  624. ::firestore::client::UnknownDocument* _internal_mutable_unknown_document();
  625. public:
  626. void clear_document_type();
  627. DocumentTypeCase document_type_case() const;
  628. // @@protoc_insertion_point(class_scope:firestore.client.MaybeDocument)
  629. private:
  630. class _Internal;
  631. void set_has_no_document();
  632. void set_has_document();
  633. void set_has_unknown_document();
  634. inline bool has_document_type() const;
  635. inline void clear_has_document_type();
  636. friend class ::google::protobuf::internal::TcParser;
  637. static const ::google::protobuf::internal::TcParseTable<
  638. 0, 4, 3,
  639. 0, 2>
  640. _table_;
  641. friend class ::google::protobuf::MessageLite;
  642. friend class ::google::protobuf::Arena;
  643. template <typename T>
  644. friend class ::google::protobuf::Arena::InternalHelper;
  645. using InternalArenaConstructable_ = void;
  646. using DestructorSkippable_ = void;
  647. struct Impl_ {
  648. inline explicit constexpr Impl_(
  649. ::google::protobuf::internal::ConstantInitialized) noexcept;
  650. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  651. ::google::protobuf::Arena* arena);
  652. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  653. ::google::protobuf::Arena* arena, const Impl_& from);
  654. bool has_committed_mutations_;
  655. union DocumentTypeUnion {
  656. constexpr DocumentTypeUnion() : _constinit_{} {}
  657. ::google::protobuf::internal::ConstantInitialized _constinit_;
  658. ::firestore::client::NoDocument* no_document_;
  659. ::google::firestore::v1::Document* document_;
  660. ::firestore::client::UnknownDocument* unknown_document_;
  661. } document_type_;
  662. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  663. ::uint32_t _oneof_case_[1];
  664. PROTOBUF_TSAN_DECLARE_MEMBER
  665. };
  666. union { Impl_ _impl_; };
  667. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  668. };
  669. // ===================================================================
  670. // ===================================================================
  671. #ifdef __GNUC__
  672. #pragma GCC diagnostic push
  673. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  674. #endif // __GNUC__
  675. // -------------------------------------------------------------------
  676. // NoDocument
  677. // string name = 1;
  678. inline void NoDocument::clear_name() {
  679. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  680. _impl_.name_.ClearToEmpty();
  681. }
  682. inline const std::string& NoDocument::name() const
  683. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  684. // @@protoc_insertion_point(field_get:firestore.client.NoDocument.name)
  685. return _internal_name();
  686. }
  687. template <typename Arg_, typename... Args_>
  688. inline PROTOBUF_ALWAYS_INLINE void NoDocument::set_name(Arg_&& arg,
  689. Args_... args) {
  690. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  691. ;
  692. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  693. // @@protoc_insertion_point(field_set:firestore.client.NoDocument.name)
  694. }
  695. inline std::string* NoDocument::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  696. std::string* _s = _internal_mutable_name();
  697. // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.name)
  698. return _s;
  699. }
  700. inline const std::string& NoDocument::_internal_name() const {
  701. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  702. return _impl_.name_.Get();
  703. }
  704. inline void NoDocument::_internal_set_name(const std::string& value) {
  705. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  706. ;
  707. _impl_.name_.Set(value, GetArena());
  708. }
  709. inline std::string* NoDocument::_internal_mutable_name() {
  710. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  711. ;
  712. return _impl_.name_.Mutable( GetArena());
  713. }
  714. inline std::string* NoDocument::release_name() {
  715. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  716. // @@protoc_insertion_point(field_release:firestore.client.NoDocument.name)
  717. return _impl_.name_.Release();
  718. }
  719. inline void NoDocument::set_allocated_name(std::string* value) {
  720. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  721. _impl_.name_.SetAllocated(value, GetArena());
  722. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  723. if (_impl_.name_.IsDefault()) {
  724. _impl_.name_.Set("", GetArena());
  725. }
  726. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  727. // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.name)
  728. }
  729. // .google.protobuf.Timestamp read_time = 2;
  730. inline bool NoDocument::has_read_time() const {
  731. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  732. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  733. return value;
  734. }
  735. inline const ::google::protobuf::Timestamp& NoDocument::_internal_read_time() const {
  736. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  737. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  738. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  739. }
  740. inline const ::google::protobuf::Timestamp& NoDocument::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  741. // @@protoc_insertion_point(field_get:firestore.client.NoDocument.read_time)
  742. return _internal_read_time();
  743. }
  744. inline void NoDocument::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  745. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  746. if (GetArena() == nullptr) {
  747. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  748. }
  749. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  750. if (value != nullptr) {
  751. _impl_._has_bits_[0] |= 0x00000001u;
  752. } else {
  753. _impl_._has_bits_[0] &= ~0x00000001u;
  754. }
  755. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.NoDocument.read_time)
  756. }
  757. inline ::google::protobuf::Timestamp* NoDocument::release_read_time() {
  758. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  759. _impl_._has_bits_[0] &= ~0x00000001u;
  760. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  761. _impl_.read_time_ = nullptr;
  762. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  763. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  764. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  765. if (GetArena() == nullptr) {
  766. delete old;
  767. }
  768. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  769. if (GetArena() != nullptr) {
  770. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  771. }
  772. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  773. return released;
  774. }
  775. inline ::google::protobuf::Timestamp* NoDocument::unsafe_arena_release_read_time() {
  776. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  777. // @@protoc_insertion_point(field_release:firestore.client.NoDocument.read_time)
  778. _impl_._has_bits_[0] &= ~0x00000001u;
  779. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  780. _impl_.read_time_ = nullptr;
  781. return temp;
  782. }
  783. inline ::google::protobuf::Timestamp* NoDocument::_internal_mutable_read_time() {
  784. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  785. _impl_._has_bits_[0] |= 0x00000001u;
  786. if (_impl_.read_time_ == nullptr) {
  787. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  788. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  789. }
  790. return _impl_.read_time_;
  791. }
  792. inline ::google::protobuf::Timestamp* NoDocument::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  793. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  794. // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.read_time)
  795. return _msg;
  796. }
  797. inline void NoDocument::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  798. ::google::protobuf::Arena* message_arena = GetArena();
  799. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  800. if (message_arena == nullptr) {
  801. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  802. }
  803. if (value != nullptr) {
  804. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  805. if (message_arena != submessage_arena) {
  806. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  807. }
  808. _impl_._has_bits_[0] |= 0x00000001u;
  809. } else {
  810. _impl_._has_bits_[0] &= ~0x00000001u;
  811. }
  812. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  813. // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.read_time)
  814. }
  815. // -------------------------------------------------------------------
  816. // UnknownDocument
  817. // string name = 1;
  818. inline void UnknownDocument::clear_name() {
  819. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  820. _impl_.name_.ClearToEmpty();
  821. }
  822. inline const std::string& UnknownDocument::name() const
  823. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  824. // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.name)
  825. return _internal_name();
  826. }
  827. template <typename Arg_, typename... Args_>
  828. inline PROTOBUF_ALWAYS_INLINE void UnknownDocument::set_name(Arg_&& arg,
  829. Args_... args) {
  830. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  831. ;
  832. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  833. // @@protoc_insertion_point(field_set:firestore.client.UnknownDocument.name)
  834. }
  835. inline std::string* UnknownDocument::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  836. std::string* _s = _internal_mutable_name();
  837. // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.name)
  838. return _s;
  839. }
  840. inline const std::string& UnknownDocument::_internal_name() const {
  841. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  842. return _impl_.name_.Get();
  843. }
  844. inline void UnknownDocument::_internal_set_name(const std::string& value) {
  845. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  846. ;
  847. _impl_.name_.Set(value, GetArena());
  848. }
  849. inline std::string* UnknownDocument::_internal_mutable_name() {
  850. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  851. ;
  852. return _impl_.name_.Mutable( GetArena());
  853. }
  854. inline std::string* UnknownDocument::release_name() {
  855. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  856. // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.name)
  857. return _impl_.name_.Release();
  858. }
  859. inline void UnknownDocument::set_allocated_name(std::string* value) {
  860. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  861. _impl_.name_.SetAllocated(value, GetArena());
  862. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  863. if (_impl_.name_.IsDefault()) {
  864. _impl_.name_.Set("", GetArena());
  865. }
  866. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  867. // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.name)
  868. }
  869. // .google.protobuf.Timestamp version = 2;
  870. inline bool UnknownDocument::has_version() const {
  871. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  872. PROTOBUF_ASSUME(!value || _impl_.version_ != nullptr);
  873. return value;
  874. }
  875. inline const ::google::protobuf::Timestamp& UnknownDocument::_internal_version() const {
  876. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  877. const ::google::protobuf::Timestamp* p = _impl_.version_;
  878. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  879. }
  880. inline const ::google::protobuf::Timestamp& UnknownDocument::version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  881. // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.version)
  882. return _internal_version();
  883. }
  884. inline void UnknownDocument::unsafe_arena_set_allocated_version(::google::protobuf::Timestamp* value) {
  885. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  886. if (GetArena() == nullptr) {
  887. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.version_);
  888. }
  889. _impl_.version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  890. if (value != nullptr) {
  891. _impl_._has_bits_[0] |= 0x00000001u;
  892. } else {
  893. _impl_._has_bits_[0] &= ~0x00000001u;
  894. }
  895. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.UnknownDocument.version)
  896. }
  897. inline ::google::protobuf::Timestamp* UnknownDocument::release_version() {
  898. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  899. _impl_._has_bits_[0] &= ~0x00000001u;
  900. ::google::protobuf::Timestamp* released = _impl_.version_;
  901. _impl_.version_ = nullptr;
  902. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  903. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  904. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  905. if (GetArena() == nullptr) {
  906. delete old;
  907. }
  908. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  909. if (GetArena() != nullptr) {
  910. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  911. }
  912. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  913. return released;
  914. }
  915. inline ::google::protobuf::Timestamp* UnknownDocument::unsafe_arena_release_version() {
  916. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  917. // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.version)
  918. _impl_._has_bits_[0] &= ~0x00000001u;
  919. ::google::protobuf::Timestamp* temp = _impl_.version_;
  920. _impl_.version_ = nullptr;
  921. return temp;
  922. }
  923. inline ::google::protobuf::Timestamp* UnknownDocument::_internal_mutable_version() {
  924. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  925. _impl_._has_bits_[0] |= 0x00000001u;
  926. if (_impl_.version_ == nullptr) {
  927. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  928. _impl_.version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  929. }
  930. return _impl_.version_;
  931. }
  932. inline ::google::protobuf::Timestamp* UnknownDocument::mutable_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  933. ::google::protobuf::Timestamp* _msg = _internal_mutable_version();
  934. // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.version)
  935. return _msg;
  936. }
  937. inline void UnknownDocument::set_allocated_version(::google::protobuf::Timestamp* value) {
  938. ::google::protobuf::Arena* message_arena = GetArena();
  939. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  940. if (message_arena == nullptr) {
  941. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.version_);
  942. }
  943. if (value != nullptr) {
  944. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  945. if (message_arena != submessage_arena) {
  946. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  947. }
  948. _impl_._has_bits_[0] |= 0x00000001u;
  949. } else {
  950. _impl_._has_bits_[0] &= ~0x00000001u;
  951. }
  952. _impl_.version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  953. // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.version)
  954. }
  955. // -------------------------------------------------------------------
  956. // MaybeDocument
  957. // .firestore.client.NoDocument no_document = 1;
  958. inline bool MaybeDocument::has_no_document() const {
  959. return document_type_case() == kNoDocument;
  960. }
  961. inline bool MaybeDocument::_internal_has_no_document() const {
  962. return document_type_case() == kNoDocument;
  963. }
  964. inline void MaybeDocument::set_has_no_document() {
  965. _impl_._oneof_case_[0] = kNoDocument;
  966. }
  967. inline void MaybeDocument::clear_no_document() {
  968. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  969. if (document_type_case() == kNoDocument) {
  970. if (GetArena() == nullptr) {
  971. delete _impl_.document_type_.no_document_;
  972. }
  973. clear_has_document_type();
  974. }
  975. }
  976. inline ::firestore::client::NoDocument* MaybeDocument::release_no_document() {
  977. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.no_document)
  978. if (document_type_case() == kNoDocument) {
  979. clear_has_document_type();
  980. auto* temp = _impl_.document_type_.no_document_;
  981. if (GetArena() != nullptr) {
  982. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  983. }
  984. _impl_.document_type_.no_document_ = nullptr;
  985. return temp;
  986. } else {
  987. return nullptr;
  988. }
  989. }
  990. inline const ::firestore::client::NoDocument& MaybeDocument::_internal_no_document() const {
  991. return document_type_case() == kNoDocument ? *_impl_.document_type_.no_document_ : reinterpret_cast<::firestore::client::NoDocument&>(::firestore::client::_NoDocument_default_instance_);
  992. }
  993. inline const ::firestore::client::NoDocument& MaybeDocument::no_document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  994. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.no_document)
  995. return _internal_no_document();
  996. }
  997. inline ::firestore::client::NoDocument* MaybeDocument::unsafe_arena_release_no_document() {
  998. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.MaybeDocument.no_document)
  999. if (document_type_case() == kNoDocument) {
  1000. clear_has_document_type();
  1001. auto* temp = _impl_.document_type_.no_document_;
  1002. _impl_.document_type_.no_document_ = nullptr;
  1003. return temp;
  1004. } else {
  1005. return nullptr;
  1006. }
  1007. }
  1008. inline void MaybeDocument::unsafe_arena_set_allocated_no_document(::firestore::client::NoDocument* value) {
  1009. // We rely on the oneof clear method to free the earlier contents
  1010. // of this oneof. We can directly use the pointer we're given to
  1011. // set the new value.
  1012. clear_document_type();
  1013. if (value) {
  1014. set_has_no_document();
  1015. _impl_.document_type_.no_document_ = value;
  1016. }
  1017. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.MaybeDocument.no_document)
  1018. }
  1019. inline ::firestore::client::NoDocument* MaybeDocument::_internal_mutable_no_document() {
  1020. if (document_type_case() != kNoDocument) {
  1021. clear_document_type();
  1022. set_has_no_document();
  1023. _impl_.document_type_.no_document_ = CreateMaybeMessage<::firestore::client::NoDocument>(GetArena());
  1024. }
  1025. return _impl_.document_type_.no_document_;
  1026. }
  1027. inline ::firestore::client::NoDocument* MaybeDocument::mutable_no_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1028. ::firestore::client::NoDocument* _msg = _internal_mutable_no_document();
  1029. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.no_document)
  1030. return _msg;
  1031. }
  1032. // .google.firestore.v1.Document document = 2;
  1033. inline bool MaybeDocument::has_document() const {
  1034. return document_type_case() == kDocument;
  1035. }
  1036. inline bool MaybeDocument::_internal_has_document() const {
  1037. return document_type_case() == kDocument;
  1038. }
  1039. inline void MaybeDocument::set_has_document() {
  1040. _impl_._oneof_case_[0] = kDocument;
  1041. }
  1042. inline ::google::firestore::v1::Document* MaybeDocument::release_document() {
  1043. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.document)
  1044. if (document_type_case() == kDocument) {
  1045. clear_has_document_type();
  1046. auto* temp = _impl_.document_type_.document_;
  1047. if (GetArena() != nullptr) {
  1048. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1049. }
  1050. _impl_.document_type_.document_ = nullptr;
  1051. return temp;
  1052. } else {
  1053. return nullptr;
  1054. }
  1055. }
  1056. inline const ::google::firestore::v1::Document& MaybeDocument::_internal_document() const {
  1057. return document_type_case() == kDocument ? *_impl_.document_type_.document_ : reinterpret_cast<::google::firestore::v1::Document&>(::google::firestore::v1::_Document_default_instance_);
  1058. }
  1059. inline const ::google::firestore::v1::Document& MaybeDocument::document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1060. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.document)
  1061. return _internal_document();
  1062. }
  1063. inline ::google::firestore::v1::Document* MaybeDocument::unsafe_arena_release_document() {
  1064. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.MaybeDocument.document)
  1065. if (document_type_case() == kDocument) {
  1066. clear_has_document_type();
  1067. auto* temp = _impl_.document_type_.document_;
  1068. _impl_.document_type_.document_ = nullptr;
  1069. return temp;
  1070. } else {
  1071. return nullptr;
  1072. }
  1073. }
  1074. inline void MaybeDocument::unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value) {
  1075. // We rely on the oneof clear method to free the earlier contents
  1076. // of this oneof. We can directly use the pointer we're given to
  1077. // set the new value.
  1078. clear_document_type();
  1079. if (value) {
  1080. set_has_document();
  1081. _impl_.document_type_.document_ = value;
  1082. }
  1083. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.MaybeDocument.document)
  1084. }
  1085. inline ::google::firestore::v1::Document* MaybeDocument::_internal_mutable_document() {
  1086. if (document_type_case() != kDocument) {
  1087. clear_document_type();
  1088. set_has_document();
  1089. _impl_.document_type_.document_ = CreateMaybeMessage<::google::firestore::v1::Document>(GetArena());
  1090. }
  1091. return _impl_.document_type_.document_;
  1092. }
  1093. inline ::google::firestore::v1::Document* MaybeDocument::mutable_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1094. ::google::firestore::v1::Document* _msg = _internal_mutable_document();
  1095. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.document)
  1096. return _msg;
  1097. }
  1098. // .firestore.client.UnknownDocument unknown_document = 3;
  1099. inline bool MaybeDocument::has_unknown_document() const {
  1100. return document_type_case() == kUnknownDocument;
  1101. }
  1102. inline bool MaybeDocument::_internal_has_unknown_document() const {
  1103. return document_type_case() == kUnknownDocument;
  1104. }
  1105. inline void MaybeDocument::set_has_unknown_document() {
  1106. _impl_._oneof_case_[0] = kUnknownDocument;
  1107. }
  1108. inline void MaybeDocument::clear_unknown_document() {
  1109. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1110. if (document_type_case() == kUnknownDocument) {
  1111. if (GetArena() == nullptr) {
  1112. delete _impl_.document_type_.unknown_document_;
  1113. }
  1114. clear_has_document_type();
  1115. }
  1116. }
  1117. inline ::firestore::client::UnknownDocument* MaybeDocument::release_unknown_document() {
  1118. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.unknown_document)
  1119. if (document_type_case() == kUnknownDocument) {
  1120. clear_has_document_type();
  1121. auto* temp = _impl_.document_type_.unknown_document_;
  1122. if (GetArena() != nullptr) {
  1123. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1124. }
  1125. _impl_.document_type_.unknown_document_ = nullptr;
  1126. return temp;
  1127. } else {
  1128. return nullptr;
  1129. }
  1130. }
  1131. inline const ::firestore::client::UnknownDocument& MaybeDocument::_internal_unknown_document() const {
  1132. return document_type_case() == kUnknownDocument ? *_impl_.document_type_.unknown_document_ : reinterpret_cast<::firestore::client::UnknownDocument&>(::firestore::client::_UnknownDocument_default_instance_);
  1133. }
  1134. inline const ::firestore::client::UnknownDocument& MaybeDocument::unknown_document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1135. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.unknown_document)
  1136. return _internal_unknown_document();
  1137. }
  1138. inline ::firestore::client::UnknownDocument* MaybeDocument::unsafe_arena_release_unknown_document() {
  1139. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.MaybeDocument.unknown_document)
  1140. if (document_type_case() == kUnknownDocument) {
  1141. clear_has_document_type();
  1142. auto* temp = _impl_.document_type_.unknown_document_;
  1143. _impl_.document_type_.unknown_document_ = nullptr;
  1144. return temp;
  1145. } else {
  1146. return nullptr;
  1147. }
  1148. }
  1149. inline void MaybeDocument::unsafe_arena_set_allocated_unknown_document(::firestore::client::UnknownDocument* value) {
  1150. // We rely on the oneof clear method to free the earlier contents
  1151. // of this oneof. We can directly use the pointer we're given to
  1152. // set the new value.
  1153. clear_document_type();
  1154. if (value) {
  1155. set_has_unknown_document();
  1156. _impl_.document_type_.unknown_document_ = value;
  1157. }
  1158. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.MaybeDocument.unknown_document)
  1159. }
  1160. inline ::firestore::client::UnknownDocument* MaybeDocument::_internal_mutable_unknown_document() {
  1161. if (document_type_case() != kUnknownDocument) {
  1162. clear_document_type();
  1163. set_has_unknown_document();
  1164. _impl_.document_type_.unknown_document_ = CreateMaybeMessage<::firestore::client::UnknownDocument>(GetArena());
  1165. }
  1166. return _impl_.document_type_.unknown_document_;
  1167. }
  1168. inline ::firestore::client::UnknownDocument* MaybeDocument::mutable_unknown_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1169. ::firestore::client::UnknownDocument* _msg = _internal_mutable_unknown_document();
  1170. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.unknown_document)
  1171. return _msg;
  1172. }
  1173. // bool has_committed_mutations = 4;
  1174. inline void MaybeDocument::clear_has_committed_mutations() {
  1175. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1176. _impl_.has_committed_mutations_ = false;
  1177. }
  1178. inline bool MaybeDocument::has_committed_mutations() const {
  1179. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.has_committed_mutations)
  1180. return _internal_has_committed_mutations();
  1181. }
  1182. inline void MaybeDocument::set_has_committed_mutations(bool value) {
  1183. _internal_set_has_committed_mutations(value);
  1184. // @@protoc_insertion_point(field_set:firestore.client.MaybeDocument.has_committed_mutations)
  1185. }
  1186. inline bool MaybeDocument::_internal_has_committed_mutations() const {
  1187. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1188. return _impl_.has_committed_mutations_;
  1189. }
  1190. inline void MaybeDocument::_internal_set_has_committed_mutations(bool value) {
  1191. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1192. ;
  1193. _impl_.has_committed_mutations_ = value;
  1194. }
  1195. inline bool MaybeDocument::has_document_type() const {
  1196. return document_type_case() != DOCUMENT_TYPE_NOT_SET;
  1197. }
  1198. inline void MaybeDocument::clear_has_document_type() {
  1199. _impl_._oneof_case_[0] = DOCUMENT_TYPE_NOT_SET;
  1200. }
  1201. inline MaybeDocument::DocumentTypeCase MaybeDocument::document_type_case() const {
  1202. return MaybeDocument::DocumentTypeCase(_impl_._oneof_case_[0]);
  1203. }
  1204. #ifdef __GNUC__
  1205. #pragma GCC diagnostic pop
  1206. #endif // __GNUC__
  1207. // @@protoc_insertion_point(namespace_scope)
  1208. } // namespace client
  1209. } // namespace firestore
  1210. // @@protoc_insertion_point(global_scope)
  1211. #include "google/protobuf/port_undef.inc"
  1212. #endif // GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_2eproto_2epb_2eh