maybe_document.pb.h 31 KB

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