maybe_document.pb.h 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940
  1. /*
  2. * Copyright 2018 Google
  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. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3009000
  24. #error This file was generated by a newer version of protoc which is
  25. #error incompatible with your Protocol Buffer headers. Please update
  26. #error your headers.
  27. #endif
  28. #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/unknown_field_set.h>
  46. #include "google/firestore/v1/document.pb.h"
  47. #include <google/protobuf/timestamp.pb.h>
  48. // @@protoc_insertion_point(includes)
  49. #include <google/protobuf/port_def.inc>
  50. #define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2fmaybe_5fdocument_2eproto
  51. PROTOBUF_NAMESPACE_OPEN
  52. namespace internal {
  53. class AnyMetadata;
  54. } // namespace internal
  55. PROTOBUF_NAMESPACE_CLOSE
  56. // Internal implementation detail -- do not use these members.
  57. struct TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto {
  58. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  59. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  60. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  61. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  62. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
  63. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  65. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  66. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  67. };
  68. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  69. namespace firestore {
  70. namespace client {
  71. class MaybeDocument;
  72. class MaybeDocumentDefaultTypeInternal;
  73. extern MaybeDocumentDefaultTypeInternal _MaybeDocument_default_instance_;
  74. class NoDocument;
  75. class NoDocumentDefaultTypeInternal;
  76. extern NoDocumentDefaultTypeInternal _NoDocument_default_instance_;
  77. class UnknownDocument;
  78. class UnknownDocumentDefaultTypeInternal;
  79. extern UnknownDocumentDefaultTypeInternal _UnknownDocument_default_instance_;
  80. } // namespace client
  81. } // namespace firestore
  82. PROTOBUF_NAMESPACE_OPEN
  83. template<> ::firestore::client::MaybeDocument* Arena::CreateMaybeMessage<::firestore::client::MaybeDocument>(Arena*);
  84. template<> ::firestore::client::NoDocument* Arena::CreateMaybeMessage<::firestore::client::NoDocument>(Arena*);
  85. template<> ::firestore::client::UnknownDocument* Arena::CreateMaybeMessage<::firestore::client::UnknownDocument>(Arena*);
  86. PROTOBUF_NAMESPACE_CLOSE
  87. namespace firestore {
  88. namespace client {
  89. // ===================================================================
  90. class NoDocument :
  91. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.NoDocument) */ {
  92. public:
  93. NoDocument();
  94. virtual ~NoDocument();
  95. NoDocument(const NoDocument& from);
  96. NoDocument(NoDocument&& from) noexcept
  97. : NoDocument() {
  98. *this = ::std::move(from);
  99. }
  100. inline NoDocument& operator=(const NoDocument& from) {
  101. CopyFrom(from);
  102. return *this;
  103. }
  104. inline NoDocument& operator=(NoDocument&& from) noexcept {
  105. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  106. if (this != &from) InternalSwap(&from);
  107. } else {
  108. CopyFrom(from);
  109. }
  110. return *this;
  111. }
  112. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  113. return GetDescriptor();
  114. }
  115. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  116. return GetMetadataStatic().descriptor;
  117. }
  118. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  119. return GetMetadataStatic().reflection;
  120. }
  121. static const NoDocument& default_instance();
  122. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  123. static inline const NoDocument* internal_default_instance() {
  124. return reinterpret_cast<const NoDocument*>(
  125. &_NoDocument_default_instance_);
  126. }
  127. static constexpr int kIndexInFileMessages =
  128. 0;
  129. friend void swap(NoDocument& a, NoDocument& b) {
  130. a.Swap(&b);
  131. }
  132. inline void Swap(NoDocument* other) {
  133. if (other == this) return;
  134. InternalSwap(other);
  135. }
  136. // implements Message ----------------------------------------------
  137. inline NoDocument* New() const final {
  138. return CreateMaybeMessage<NoDocument>(nullptr);
  139. }
  140. NoDocument* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  141. return CreateMaybeMessage<NoDocument>(arena);
  142. }
  143. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  144. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  145. void CopyFrom(const NoDocument& from);
  146. void MergeFrom(const NoDocument& from);
  147. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  148. bool IsInitialized() const final;
  149. size_t ByteSizeLong() const final;
  150. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  151. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  152. #else
  153. bool MergePartialFromCodedStream(
  154. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  155. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  156. void SerializeWithCachedSizes(
  157. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  158. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  159. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  160. int GetCachedSize() const final { return _cached_size_.Get(); }
  161. private:
  162. inline void SharedCtor();
  163. inline void SharedDtor();
  164. void SetCachedSize(int size) const final;
  165. void InternalSwap(NoDocument* other);
  166. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  167. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  168. return "firestore.client.NoDocument";
  169. }
  170. private:
  171. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  172. return nullptr;
  173. }
  174. inline void* MaybeArenaPtr() const {
  175. return nullptr;
  176. }
  177. public:
  178. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  179. private:
  180. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  181. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto);
  182. return ::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto.file_level_metadata[kIndexInFileMessages];
  183. }
  184. public:
  185. // nested types ----------------------------------------------------
  186. // accessors -------------------------------------------------------
  187. enum : int {
  188. kNameFieldNumber = 1,
  189. kReadTimeFieldNumber = 2,
  190. };
  191. // string name = 1;
  192. void clear_name();
  193. const std::string& name() const;
  194. void set_name(const std::string& value);
  195. void set_name(std::string&& value);
  196. void set_name(const char* value);
  197. void set_name(const char* value, size_t size);
  198. std::string* mutable_name();
  199. std::string* release_name();
  200. void set_allocated_name(std::string* name);
  201. // .google.protobuf.Timestamp read_time = 2;
  202. bool has_read_time() const;
  203. void clear_read_time();
  204. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  205. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  206. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  207. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  208. // @@protoc_insertion_point(class_scope:firestore.client.NoDocument)
  209. private:
  210. class _Internal;
  211. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  212. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  213. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  214. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  215. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  216. };
  217. // -------------------------------------------------------------------
  218. class UnknownDocument :
  219. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.UnknownDocument) */ {
  220. public:
  221. UnknownDocument();
  222. virtual ~UnknownDocument();
  223. UnknownDocument(const UnknownDocument& from);
  224. UnknownDocument(UnknownDocument&& from) noexcept
  225. : UnknownDocument() {
  226. *this = ::std::move(from);
  227. }
  228. inline UnknownDocument& operator=(const UnknownDocument& from) {
  229. CopyFrom(from);
  230. return *this;
  231. }
  232. inline UnknownDocument& operator=(UnknownDocument&& from) noexcept {
  233. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  234. if (this != &from) InternalSwap(&from);
  235. } else {
  236. CopyFrom(from);
  237. }
  238. return *this;
  239. }
  240. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  241. return GetDescriptor();
  242. }
  243. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  244. return GetMetadataStatic().descriptor;
  245. }
  246. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  247. return GetMetadataStatic().reflection;
  248. }
  249. static const UnknownDocument& default_instance();
  250. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  251. static inline const UnknownDocument* internal_default_instance() {
  252. return reinterpret_cast<const UnknownDocument*>(
  253. &_UnknownDocument_default_instance_);
  254. }
  255. static constexpr int kIndexInFileMessages =
  256. 1;
  257. friend void swap(UnknownDocument& a, UnknownDocument& b) {
  258. a.Swap(&b);
  259. }
  260. inline void Swap(UnknownDocument* other) {
  261. if (other == this) return;
  262. InternalSwap(other);
  263. }
  264. // implements Message ----------------------------------------------
  265. inline UnknownDocument* New() const final {
  266. return CreateMaybeMessage<UnknownDocument>(nullptr);
  267. }
  268. UnknownDocument* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  269. return CreateMaybeMessage<UnknownDocument>(arena);
  270. }
  271. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  272. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  273. void CopyFrom(const UnknownDocument& from);
  274. void MergeFrom(const UnknownDocument& from);
  275. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  276. bool IsInitialized() const final;
  277. size_t ByteSizeLong() const final;
  278. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  279. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  280. #else
  281. bool MergePartialFromCodedStream(
  282. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  283. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  284. void SerializeWithCachedSizes(
  285. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  286. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  287. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  288. int GetCachedSize() const final { return _cached_size_.Get(); }
  289. private:
  290. inline void SharedCtor();
  291. inline void SharedDtor();
  292. void SetCachedSize(int size) const final;
  293. void InternalSwap(UnknownDocument* other);
  294. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  295. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  296. return "firestore.client.UnknownDocument";
  297. }
  298. private:
  299. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  300. return nullptr;
  301. }
  302. inline void* MaybeArenaPtr() const {
  303. return nullptr;
  304. }
  305. public:
  306. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  307. private:
  308. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  309. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto);
  310. return ::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto.file_level_metadata[kIndexInFileMessages];
  311. }
  312. public:
  313. // nested types ----------------------------------------------------
  314. // accessors -------------------------------------------------------
  315. enum : int {
  316. kNameFieldNumber = 1,
  317. kVersionFieldNumber = 2,
  318. };
  319. // string name = 1;
  320. void clear_name();
  321. const std::string& name() const;
  322. void set_name(const std::string& value);
  323. void set_name(std::string&& value);
  324. void set_name(const char* value);
  325. void set_name(const char* value, size_t size);
  326. std::string* mutable_name();
  327. std::string* release_name();
  328. void set_allocated_name(std::string* name);
  329. // .google.protobuf.Timestamp version = 2;
  330. bool has_version() const;
  331. void clear_version();
  332. const PROTOBUF_NAMESPACE_ID::Timestamp& version() const;
  333. PROTOBUF_NAMESPACE_ID::Timestamp* release_version();
  334. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_version();
  335. void set_allocated_version(PROTOBUF_NAMESPACE_ID::Timestamp* version);
  336. // @@protoc_insertion_point(class_scope:firestore.client.UnknownDocument)
  337. private:
  338. class _Internal;
  339. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  340. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  341. PROTOBUF_NAMESPACE_ID::Timestamp* version_;
  342. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  343. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  344. };
  345. // -------------------------------------------------------------------
  346. class MaybeDocument :
  347. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.MaybeDocument) */ {
  348. public:
  349. MaybeDocument();
  350. virtual ~MaybeDocument();
  351. MaybeDocument(const MaybeDocument& from);
  352. MaybeDocument(MaybeDocument&& from) noexcept
  353. : MaybeDocument() {
  354. *this = ::std::move(from);
  355. }
  356. inline MaybeDocument& operator=(const MaybeDocument& from) {
  357. CopyFrom(from);
  358. return *this;
  359. }
  360. inline MaybeDocument& operator=(MaybeDocument&& from) noexcept {
  361. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  362. if (this != &from) InternalSwap(&from);
  363. } else {
  364. CopyFrom(from);
  365. }
  366. return *this;
  367. }
  368. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  369. return GetDescriptor();
  370. }
  371. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  372. return GetMetadataStatic().descriptor;
  373. }
  374. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  375. return GetMetadataStatic().reflection;
  376. }
  377. static const MaybeDocument& default_instance();
  378. enum DocumentTypeCase {
  379. kNoDocument = 1,
  380. kDocument = 2,
  381. kUnknownDocument = 3,
  382. DOCUMENT_TYPE_NOT_SET = 0,
  383. };
  384. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  385. static inline const MaybeDocument* internal_default_instance() {
  386. return reinterpret_cast<const MaybeDocument*>(
  387. &_MaybeDocument_default_instance_);
  388. }
  389. static constexpr int kIndexInFileMessages =
  390. 2;
  391. friend void swap(MaybeDocument& a, MaybeDocument& b) {
  392. a.Swap(&b);
  393. }
  394. inline void Swap(MaybeDocument* other) {
  395. if (other == this) return;
  396. InternalSwap(other);
  397. }
  398. // implements Message ----------------------------------------------
  399. inline MaybeDocument* New() const final {
  400. return CreateMaybeMessage<MaybeDocument>(nullptr);
  401. }
  402. MaybeDocument* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  403. return CreateMaybeMessage<MaybeDocument>(arena);
  404. }
  405. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  406. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  407. void CopyFrom(const MaybeDocument& from);
  408. void MergeFrom(const MaybeDocument& from);
  409. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  410. bool IsInitialized() const final;
  411. size_t ByteSizeLong() const final;
  412. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  413. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  414. #else
  415. bool MergePartialFromCodedStream(
  416. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  417. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  418. void SerializeWithCachedSizes(
  419. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  420. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  421. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  422. int GetCachedSize() const final { return _cached_size_.Get(); }
  423. private:
  424. inline void SharedCtor();
  425. inline void SharedDtor();
  426. void SetCachedSize(int size) const final;
  427. void InternalSwap(MaybeDocument* other);
  428. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  429. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  430. return "firestore.client.MaybeDocument";
  431. }
  432. private:
  433. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  434. return nullptr;
  435. }
  436. inline void* MaybeArenaPtr() const {
  437. return nullptr;
  438. }
  439. public:
  440. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  441. private:
  442. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  443. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto);
  444. return ::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto.file_level_metadata[kIndexInFileMessages];
  445. }
  446. public:
  447. // nested types ----------------------------------------------------
  448. // accessors -------------------------------------------------------
  449. enum : int {
  450. kHasCommittedMutationsFieldNumber = 4,
  451. kNoDocumentFieldNumber = 1,
  452. kDocumentFieldNumber = 2,
  453. kUnknownDocumentFieldNumber = 3,
  454. };
  455. // bool has_committed_mutations = 4;
  456. void clear_has_committed_mutations();
  457. bool has_committed_mutations() const;
  458. void set_has_committed_mutations(bool value);
  459. // .firestore.client.NoDocument no_document = 1;
  460. bool has_no_document() const;
  461. void clear_no_document();
  462. const ::firestore::client::NoDocument& no_document() const;
  463. ::firestore::client::NoDocument* release_no_document();
  464. ::firestore::client::NoDocument* mutable_no_document();
  465. void set_allocated_no_document(::firestore::client::NoDocument* no_document);
  466. // .google.firestore.v1.Document document = 2;
  467. bool has_document() const;
  468. void clear_document();
  469. const ::google::firestore::v1::Document& document() const;
  470. ::google::firestore::v1::Document* release_document();
  471. ::google::firestore::v1::Document* mutable_document();
  472. void set_allocated_document(::google::firestore::v1::Document* document);
  473. // .firestore.client.UnknownDocument unknown_document = 3;
  474. bool has_unknown_document() const;
  475. void clear_unknown_document();
  476. const ::firestore::client::UnknownDocument& unknown_document() const;
  477. ::firestore::client::UnknownDocument* release_unknown_document();
  478. ::firestore::client::UnknownDocument* mutable_unknown_document();
  479. void set_allocated_unknown_document(::firestore::client::UnknownDocument* unknown_document);
  480. void clear_document_type();
  481. DocumentTypeCase document_type_case() const;
  482. // @@protoc_insertion_point(class_scope:firestore.client.MaybeDocument)
  483. private:
  484. class _Internal;
  485. void set_has_no_document();
  486. void set_has_document();
  487. void set_has_unknown_document();
  488. inline bool has_document_type() const;
  489. inline void clear_has_document_type();
  490. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  491. bool has_committed_mutations_;
  492. union DocumentTypeUnion {
  493. DocumentTypeUnion() {}
  494. ::firestore::client::NoDocument* no_document_;
  495. ::google::firestore::v1::Document* document_;
  496. ::firestore::client::UnknownDocument* unknown_document_;
  497. } document_type_;
  498. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  499. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  500. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  501. };
  502. // ===================================================================
  503. // ===================================================================
  504. #ifdef __GNUC__
  505. #pragma GCC diagnostic push
  506. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  507. #endif // __GNUC__
  508. // NoDocument
  509. // string name = 1;
  510. inline void NoDocument::clear_name() {
  511. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  512. }
  513. inline const std::string& NoDocument::name() const {
  514. // @@protoc_insertion_point(field_get:firestore.client.NoDocument.name)
  515. return name_.GetNoArena();
  516. }
  517. inline void NoDocument::set_name(const std::string& value) {
  518. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  519. // @@protoc_insertion_point(field_set:firestore.client.NoDocument.name)
  520. }
  521. inline void NoDocument::set_name(std::string&& value) {
  522. name_.SetNoArena(
  523. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  524. // @@protoc_insertion_point(field_set_rvalue:firestore.client.NoDocument.name)
  525. }
  526. inline void NoDocument::set_name(const char* value) {
  527. GOOGLE_DCHECK(value != nullptr);
  528. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  529. // @@protoc_insertion_point(field_set_char:firestore.client.NoDocument.name)
  530. }
  531. inline void NoDocument::set_name(const char* value, size_t size) {
  532. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  533. ::std::string(reinterpret_cast<const char*>(value), size));
  534. // @@protoc_insertion_point(field_set_pointer:firestore.client.NoDocument.name)
  535. }
  536. inline std::string* NoDocument::mutable_name() {
  537. // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.name)
  538. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  539. }
  540. inline std::string* NoDocument::release_name() {
  541. // @@protoc_insertion_point(field_release:firestore.client.NoDocument.name)
  542. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  543. }
  544. inline void NoDocument::set_allocated_name(std::string* name) {
  545. if (name != nullptr) {
  546. } else {
  547. }
  548. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  549. // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.name)
  550. }
  551. // .google.protobuf.Timestamp read_time = 2;
  552. inline bool NoDocument::has_read_time() const {
  553. return this != internal_default_instance() && read_time_ != nullptr;
  554. }
  555. inline const PROTOBUF_NAMESPACE_ID::Timestamp& NoDocument::read_time() const {
  556. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  557. // @@protoc_insertion_point(field_get:firestore.client.NoDocument.read_time)
  558. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  559. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  560. }
  561. inline PROTOBUF_NAMESPACE_ID::Timestamp* NoDocument::release_read_time() {
  562. // @@protoc_insertion_point(field_release:firestore.client.NoDocument.read_time)
  563. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  564. read_time_ = nullptr;
  565. return temp;
  566. }
  567. inline PROTOBUF_NAMESPACE_ID::Timestamp* NoDocument::mutable_read_time() {
  568. if (read_time_ == nullptr) {
  569. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  570. read_time_ = p;
  571. }
  572. // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.read_time)
  573. return read_time_;
  574. }
  575. inline void NoDocument::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  576. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  577. if (message_arena == nullptr) {
  578. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  579. }
  580. if (read_time) {
  581. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  582. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  583. if (message_arena != submessage_arena) {
  584. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  585. message_arena, read_time, submessage_arena);
  586. }
  587. } else {
  588. }
  589. read_time_ = read_time;
  590. // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.read_time)
  591. }
  592. // -------------------------------------------------------------------
  593. // UnknownDocument
  594. // string name = 1;
  595. inline void UnknownDocument::clear_name() {
  596. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  597. }
  598. inline const std::string& UnknownDocument::name() const {
  599. // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.name)
  600. return name_.GetNoArena();
  601. }
  602. inline void UnknownDocument::set_name(const std::string& value) {
  603. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  604. // @@protoc_insertion_point(field_set:firestore.client.UnknownDocument.name)
  605. }
  606. inline void UnknownDocument::set_name(std::string&& value) {
  607. name_.SetNoArena(
  608. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  609. // @@protoc_insertion_point(field_set_rvalue:firestore.client.UnknownDocument.name)
  610. }
  611. inline void UnknownDocument::set_name(const char* value) {
  612. GOOGLE_DCHECK(value != nullptr);
  613. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  614. // @@protoc_insertion_point(field_set_char:firestore.client.UnknownDocument.name)
  615. }
  616. inline void UnknownDocument::set_name(const char* value, size_t size) {
  617. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  618. ::std::string(reinterpret_cast<const char*>(value), size));
  619. // @@protoc_insertion_point(field_set_pointer:firestore.client.UnknownDocument.name)
  620. }
  621. inline std::string* UnknownDocument::mutable_name() {
  622. // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.name)
  623. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  624. }
  625. inline std::string* UnknownDocument::release_name() {
  626. // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.name)
  627. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  628. }
  629. inline void UnknownDocument::set_allocated_name(std::string* name) {
  630. if (name != nullptr) {
  631. } else {
  632. }
  633. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  634. // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.name)
  635. }
  636. // .google.protobuf.Timestamp version = 2;
  637. inline bool UnknownDocument::has_version() const {
  638. return this != internal_default_instance() && version_ != nullptr;
  639. }
  640. inline const PROTOBUF_NAMESPACE_ID::Timestamp& UnknownDocument::version() const {
  641. const PROTOBUF_NAMESPACE_ID::Timestamp* p = version_;
  642. // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.version)
  643. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  644. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  645. }
  646. inline PROTOBUF_NAMESPACE_ID::Timestamp* UnknownDocument::release_version() {
  647. // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.version)
  648. PROTOBUF_NAMESPACE_ID::Timestamp* temp = version_;
  649. version_ = nullptr;
  650. return temp;
  651. }
  652. inline PROTOBUF_NAMESPACE_ID::Timestamp* UnknownDocument::mutable_version() {
  653. if (version_ == nullptr) {
  654. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  655. version_ = p;
  656. }
  657. // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.version)
  658. return version_;
  659. }
  660. inline void UnknownDocument::set_allocated_version(PROTOBUF_NAMESPACE_ID::Timestamp* version) {
  661. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  662. if (message_arena == nullptr) {
  663. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_);
  664. }
  665. if (version) {
  666. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  667. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version)->GetArena();
  668. if (message_arena != submessage_arena) {
  669. version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  670. message_arena, version, submessage_arena);
  671. }
  672. } else {
  673. }
  674. version_ = version;
  675. // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.version)
  676. }
  677. // -------------------------------------------------------------------
  678. // MaybeDocument
  679. // .firestore.client.NoDocument no_document = 1;
  680. inline bool MaybeDocument::has_no_document() const {
  681. return document_type_case() == kNoDocument;
  682. }
  683. inline void MaybeDocument::set_has_no_document() {
  684. _oneof_case_[0] = kNoDocument;
  685. }
  686. inline void MaybeDocument::clear_no_document() {
  687. if (has_no_document()) {
  688. delete document_type_.no_document_;
  689. clear_has_document_type();
  690. }
  691. }
  692. inline ::firestore::client::NoDocument* MaybeDocument::release_no_document() {
  693. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.no_document)
  694. if (has_no_document()) {
  695. clear_has_document_type();
  696. ::firestore::client::NoDocument* temp = document_type_.no_document_;
  697. document_type_.no_document_ = nullptr;
  698. return temp;
  699. } else {
  700. return nullptr;
  701. }
  702. }
  703. inline const ::firestore::client::NoDocument& MaybeDocument::no_document() const {
  704. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.no_document)
  705. return has_no_document()
  706. ? *document_type_.no_document_
  707. : *reinterpret_cast< ::firestore::client::NoDocument*>(&::firestore::client::_NoDocument_default_instance_);
  708. }
  709. inline ::firestore::client::NoDocument* MaybeDocument::mutable_no_document() {
  710. if (!has_no_document()) {
  711. clear_document_type();
  712. set_has_no_document();
  713. document_type_.no_document_ = CreateMaybeMessage< ::firestore::client::NoDocument >(
  714. GetArenaNoVirtual());
  715. }
  716. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.no_document)
  717. return document_type_.no_document_;
  718. }
  719. // .google.firestore.v1.Document document = 2;
  720. inline bool MaybeDocument::has_document() const {
  721. return document_type_case() == kDocument;
  722. }
  723. inline void MaybeDocument::set_has_document() {
  724. _oneof_case_[0] = kDocument;
  725. }
  726. inline ::google::firestore::v1::Document* MaybeDocument::release_document() {
  727. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.document)
  728. if (has_document()) {
  729. clear_has_document_type();
  730. ::google::firestore::v1::Document* temp = document_type_.document_;
  731. document_type_.document_ = nullptr;
  732. return temp;
  733. } else {
  734. return nullptr;
  735. }
  736. }
  737. inline const ::google::firestore::v1::Document& MaybeDocument::document() const {
  738. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.document)
  739. return has_document()
  740. ? *document_type_.document_
  741. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  742. }
  743. inline ::google::firestore::v1::Document* MaybeDocument::mutable_document() {
  744. if (!has_document()) {
  745. clear_document_type();
  746. set_has_document();
  747. document_type_.document_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  748. GetArenaNoVirtual());
  749. }
  750. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.document)
  751. return document_type_.document_;
  752. }
  753. // .firestore.client.UnknownDocument unknown_document = 3;
  754. inline bool MaybeDocument::has_unknown_document() const {
  755. return document_type_case() == kUnknownDocument;
  756. }
  757. inline void MaybeDocument::set_has_unknown_document() {
  758. _oneof_case_[0] = kUnknownDocument;
  759. }
  760. inline void MaybeDocument::clear_unknown_document() {
  761. if (has_unknown_document()) {
  762. delete document_type_.unknown_document_;
  763. clear_has_document_type();
  764. }
  765. }
  766. inline ::firestore::client::UnknownDocument* MaybeDocument::release_unknown_document() {
  767. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.unknown_document)
  768. if (has_unknown_document()) {
  769. clear_has_document_type();
  770. ::firestore::client::UnknownDocument* temp = document_type_.unknown_document_;
  771. document_type_.unknown_document_ = nullptr;
  772. return temp;
  773. } else {
  774. return nullptr;
  775. }
  776. }
  777. inline const ::firestore::client::UnknownDocument& MaybeDocument::unknown_document() const {
  778. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.unknown_document)
  779. return has_unknown_document()
  780. ? *document_type_.unknown_document_
  781. : *reinterpret_cast< ::firestore::client::UnknownDocument*>(&::firestore::client::_UnknownDocument_default_instance_);
  782. }
  783. inline ::firestore::client::UnknownDocument* MaybeDocument::mutable_unknown_document() {
  784. if (!has_unknown_document()) {
  785. clear_document_type();
  786. set_has_unknown_document();
  787. document_type_.unknown_document_ = CreateMaybeMessage< ::firestore::client::UnknownDocument >(
  788. GetArenaNoVirtual());
  789. }
  790. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.unknown_document)
  791. return document_type_.unknown_document_;
  792. }
  793. // bool has_committed_mutations = 4;
  794. inline void MaybeDocument::clear_has_committed_mutations() {
  795. has_committed_mutations_ = false;
  796. }
  797. inline bool MaybeDocument::has_committed_mutations() const {
  798. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.has_committed_mutations)
  799. return has_committed_mutations_;
  800. }
  801. inline void MaybeDocument::set_has_committed_mutations(bool value) {
  802. has_committed_mutations_ = value;
  803. // @@protoc_insertion_point(field_set:firestore.client.MaybeDocument.has_committed_mutations)
  804. }
  805. inline bool MaybeDocument::has_document_type() const {
  806. return document_type_case() != DOCUMENT_TYPE_NOT_SET;
  807. }
  808. inline void MaybeDocument::clear_has_document_type() {
  809. _oneof_case_[0] = DOCUMENT_TYPE_NOT_SET;
  810. }
  811. inline MaybeDocument::DocumentTypeCase MaybeDocument::document_type_case() const {
  812. return MaybeDocument::DocumentTypeCase(_oneof_case_[0]);
  813. }
  814. #ifdef __GNUC__
  815. #pragma GCC diagnostic pop
  816. #endif // __GNUC__
  817. // -------------------------------------------------------------------
  818. // -------------------------------------------------------------------
  819. // @@protoc_insertion_point(namespace_scope)
  820. } // namespace client
  821. } // namespace firestore
  822. // @@protoc_insertion_point(global_scope)
  823. #include <google/protobuf/port_undef.inc>
  824. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_2eproto