maybe_document.pb.h 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037
  1. /*
  2. * Copyright 2023 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. #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 < 3011000
  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 3011002 < 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. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  151. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  152. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  153. int GetCachedSize() const final { return _cached_size_.Get(); }
  154. private:
  155. inline void SharedCtor();
  156. inline void SharedDtor();
  157. void SetCachedSize(int size) const final;
  158. void InternalSwap(NoDocument* other);
  159. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  160. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  161. return "firestore.client.NoDocument";
  162. }
  163. private:
  164. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  165. return nullptr;
  166. }
  167. inline void* MaybeArenaPtr() const {
  168. return nullptr;
  169. }
  170. public:
  171. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  172. private:
  173. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  174. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto);
  175. return ::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto.file_level_metadata[kIndexInFileMessages];
  176. }
  177. public:
  178. // nested types ----------------------------------------------------
  179. // accessors -------------------------------------------------------
  180. enum : int {
  181. kNameFieldNumber = 1,
  182. kReadTimeFieldNumber = 2,
  183. };
  184. // string name = 1;
  185. void clear_name();
  186. const std::string& name() const;
  187. void set_name(const std::string& value);
  188. void set_name(std::string&& value);
  189. void set_name(const char* value);
  190. void set_name(const char* value, size_t size);
  191. std::string* mutable_name();
  192. std::string* release_name();
  193. void set_allocated_name(std::string* name);
  194. private:
  195. const std::string& _internal_name() const;
  196. void _internal_set_name(const std::string& value);
  197. std::string* _internal_mutable_name();
  198. public:
  199. // .google.protobuf.Timestamp read_time = 2;
  200. bool has_read_time() const;
  201. private:
  202. bool _internal_has_read_time() const;
  203. public:
  204. void clear_read_time();
  205. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  206. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  207. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  208. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  209. private:
  210. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  211. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  212. public:
  213. // @@protoc_insertion_point(class_scope:firestore.client.NoDocument)
  214. private:
  215. class _Internal;
  216. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  217. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  218. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  219. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  220. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  221. };
  222. // -------------------------------------------------------------------
  223. class UnknownDocument :
  224. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.UnknownDocument) */ {
  225. public:
  226. UnknownDocument();
  227. virtual ~UnknownDocument();
  228. UnknownDocument(const UnknownDocument& from);
  229. UnknownDocument(UnknownDocument&& from) noexcept
  230. : UnknownDocument() {
  231. *this = ::std::move(from);
  232. }
  233. inline UnknownDocument& operator=(const UnknownDocument& from) {
  234. CopyFrom(from);
  235. return *this;
  236. }
  237. inline UnknownDocument& operator=(UnknownDocument&& from) noexcept {
  238. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  239. if (this != &from) InternalSwap(&from);
  240. } else {
  241. CopyFrom(from);
  242. }
  243. return *this;
  244. }
  245. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  246. return GetDescriptor();
  247. }
  248. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  249. return GetMetadataStatic().descriptor;
  250. }
  251. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  252. return GetMetadataStatic().reflection;
  253. }
  254. static const UnknownDocument& default_instance();
  255. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  256. static inline const UnknownDocument* internal_default_instance() {
  257. return reinterpret_cast<const UnknownDocument*>(
  258. &_UnknownDocument_default_instance_);
  259. }
  260. static constexpr int kIndexInFileMessages =
  261. 1;
  262. friend void swap(UnknownDocument& a, UnknownDocument& b) {
  263. a.Swap(&b);
  264. }
  265. inline void Swap(UnknownDocument* other) {
  266. if (other == this) return;
  267. InternalSwap(other);
  268. }
  269. // implements Message ----------------------------------------------
  270. inline UnknownDocument* New() const final {
  271. return CreateMaybeMessage<UnknownDocument>(nullptr);
  272. }
  273. UnknownDocument* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  274. return CreateMaybeMessage<UnknownDocument>(arena);
  275. }
  276. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  277. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  278. void CopyFrom(const UnknownDocument& from);
  279. void MergeFrom(const UnknownDocument& from);
  280. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  281. bool IsInitialized() const final;
  282. size_t ByteSizeLong() const final;
  283. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  284. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  285. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  286. int GetCachedSize() const final { return _cached_size_.Get(); }
  287. private:
  288. inline void SharedCtor();
  289. inline void SharedDtor();
  290. void SetCachedSize(int size) const final;
  291. void InternalSwap(UnknownDocument* other);
  292. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  293. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  294. return "firestore.client.UnknownDocument";
  295. }
  296. private:
  297. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  298. return nullptr;
  299. }
  300. inline void* MaybeArenaPtr() const {
  301. return nullptr;
  302. }
  303. public:
  304. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  305. private:
  306. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  307. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto);
  308. return ::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto.file_level_metadata[kIndexInFileMessages];
  309. }
  310. public:
  311. // nested types ----------------------------------------------------
  312. // accessors -------------------------------------------------------
  313. enum : int {
  314. kNameFieldNumber = 1,
  315. kVersionFieldNumber = 2,
  316. };
  317. // string name = 1;
  318. void clear_name();
  319. const std::string& name() const;
  320. void set_name(const std::string& value);
  321. void set_name(std::string&& value);
  322. void set_name(const char* value);
  323. void set_name(const char* value, size_t size);
  324. std::string* mutable_name();
  325. std::string* release_name();
  326. void set_allocated_name(std::string* name);
  327. private:
  328. const std::string& _internal_name() const;
  329. void _internal_set_name(const std::string& value);
  330. std::string* _internal_mutable_name();
  331. public:
  332. // .google.protobuf.Timestamp version = 2;
  333. bool has_version() const;
  334. private:
  335. bool _internal_has_version() const;
  336. public:
  337. void clear_version();
  338. const PROTOBUF_NAMESPACE_ID::Timestamp& version() const;
  339. PROTOBUF_NAMESPACE_ID::Timestamp* release_version();
  340. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_version();
  341. void set_allocated_version(PROTOBUF_NAMESPACE_ID::Timestamp* version);
  342. private:
  343. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_version() const;
  344. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_version();
  345. public:
  346. // @@protoc_insertion_point(class_scope:firestore.client.UnknownDocument)
  347. private:
  348. class _Internal;
  349. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  350. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  351. PROTOBUF_NAMESPACE_ID::Timestamp* version_;
  352. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  353. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  354. };
  355. // -------------------------------------------------------------------
  356. class MaybeDocument :
  357. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.MaybeDocument) */ {
  358. public:
  359. MaybeDocument();
  360. virtual ~MaybeDocument();
  361. MaybeDocument(const MaybeDocument& from);
  362. MaybeDocument(MaybeDocument&& from) noexcept
  363. : MaybeDocument() {
  364. *this = ::std::move(from);
  365. }
  366. inline MaybeDocument& operator=(const MaybeDocument& from) {
  367. CopyFrom(from);
  368. return *this;
  369. }
  370. inline MaybeDocument& operator=(MaybeDocument&& from) noexcept {
  371. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  372. if (this != &from) InternalSwap(&from);
  373. } else {
  374. CopyFrom(from);
  375. }
  376. return *this;
  377. }
  378. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  379. return GetDescriptor();
  380. }
  381. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  382. return GetMetadataStatic().descriptor;
  383. }
  384. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  385. return GetMetadataStatic().reflection;
  386. }
  387. static const MaybeDocument& default_instance();
  388. enum DocumentTypeCase {
  389. kNoDocument = 1,
  390. kDocument = 2,
  391. kUnknownDocument = 3,
  392. DOCUMENT_TYPE_NOT_SET = 0,
  393. };
  394. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  395. static inline const MaybeDocument* internal_default_instance() {
  396. return reinterpret_cast<const MaybeDocument*>(
  397. &_MaybeDocument_default_instance_);
  398. }
  399. static constexpr int kIndexInFileMessages =
  400. 2;
  401. friend void swap(MaybeDocument& a, MaybeDocument& b) {
  402. a.Swap(&b);
  403. }
  404. inline void Swap(MaybeDocument* other) {
  405. if (other == this) return;
  406. InternalSwap(other);
  407. }
  408. // implements Message ----------------------------------------------
  409. inline MaybeDocument* New() const final {
  410. return CreateMaybeMessage<MaybeDocument>(nullptr);
  411. }
  412. MaybeDocument* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  413. return CreateMaybeMessage<MaybeDocument>(arena);
  414. }
  415. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  416. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  417. void CopyFrom(const MaybeDocument& from);
  418. void MergeFrom(const MaybeDocument& from);
  419. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  420. bool IsInitialized() const final;
  421. size_t ByteSizeLong() const final;
  422. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  423. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  424. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  425. int GetCachedSize() const final { return _cached_size_.Get(); }
  426. private:
  427. inline void SharedCtor();
  428. inline void SharedDtor();
  429. void SetCachedSize(int size) const final;
  430. void InternalSwap(MaybeDocument* other);
  431. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  432. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  433. return "firestore.client.MaybeDocument";
  434. }
  435. private:
  436. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  437. return nullptr;
  438. }
  439. inline void* MaybeArenaPtr() const {
  440. return nullptr;
  441. }
  442. public:
  443. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  444. private:
  445. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  446. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto);
  447. return ::descriptor_table_firestore_2flocal_2fmaybe_5fdocument_2eproto.file_level_metadata[kIndexInFileMessages];
  448. }
  449. public:
  450. // nested types ----------------------------------------------------
  451. // accessors -------------------------------------------------------
  452. enum : int {
  453. kHasCommittedMutationsFieldNumber = 4,
  454. kNoDocumentFieldNumber = 1,
  455. kDocumentFieldNumber = 2,
  456. kUnknownDocumentFieldNumber = 3,
  457. };
  458. // bool has_committed_mutations = 4;
  459. void clear_has_committed_mutations();
  460. bool has_committed_mutations() const;
  461. void set_has_committed_mutations(bool value);
  462. private:
  463. bool _internal_has_committed_mutations() const;
  464. void _internal_set_has_committed_mutations(bool value);
  465. public:
  466. // .firestore.client.NoDocument no_document = 1;
  467. bool has_no_document() const;
  468. private:
  469. bool _internal_has_no_document() const;
  470. public:
  471. void clear_no_document();
  472. const ::firestore::client::NoDocument& no_document() const;
  473. ::firestore::client::NoDocument* release_no_document();
  474. ::firestore::client::NoDocument* mutable_no_document();
  475. void set_allocated_no_document(::firestore::client::NoDocument* no_document);
  476. private:
  477. const ::firestore::client::NoDocument& _internal_no_document() const;
  478. ::firestore::client::NoDocument* _internal_mutable_no_document();
  479. public:
  480. // .google.firestore.v1.Document document = 2;
  481. bool has_document() const;
  482. private:
  483. bool _internal_has_document() const;
  484. public:
  485. void clear_document();
  486. const ::google::firestore::v1::Document& document() const;
  487. ::google::firestore::v1::Document* release_document();
  488. ::google::firestore::v1::Document* mutable_document();
  489. void set_allocated_document(::google::firestore::v1::Document* document);
  490. private:
  491. const ::google::firestore::v1::Document& _internal_document() const;
  492. ::google::firestore::v1::Document* _internal_mutable_document();
  493. public:
  494. // .firestore.client.UnknownDocument unknown_document = 3;
  495. bool has_unknown_document() const;
  496. private:
  497. bool _internal_has_unknown_document() const;
  498. public:
  499. void clear_unknown_document();
  500. const ::firestore::client::UnknownDocument& unknown_document() const;
  501. ::firestore::client::UnknownDocument* release_unknown_document();
  502. ::firestore::client::UnknownDocument* mutable_unknown_document();
  503. void set_allocated_unknown_document(::firestore::client::UnknownDocument* unknown_document);
  504. private:
  505. const ::firestore::client::UnknownDocument& _internal_unknown_document() const;
  506. ::firestore::client::UnknownDocument* _internal_mutable_unknown_document();
  507. public:
  508. void clear_document_type();
  509. DocumentTypeCase document_type_case() const;
  510. // @@protoc_insertion_point(class_scope:firestore.client.MaybeDocument)
  511. private:
  512. class _Internal;
  513. void set_has_no_document();
  514. void set_has_document();
  515. void set_has_unknown_document();
  516. inline bool has_document_type() const;
  517. inline void clear_has_document_type();
  518. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  519. bool has_committed_mutations_;
  520. union DocumentTypeUnion {
  521. DocumentTypeUnion() {}
  522. ::firestore::client::NoDocument* no_document_;
  523. ::google::firestore::v1::Document* document_;
  524. ::firestore::client::UnknownDocument* unknown_document_;
  525. } document_type_;
  526. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  527. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  528. friend struct ::TableStruct_firestore_2flocal_2fmaybe_5fdocument_2eproto;
  529. };
  530. // ===================================================================
  531. // ===================================================================
  532. #ifdef __GNUC__
  533. #pragma GCC diagnostic push
  534. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  535. #endif // __GNUC__
  536. // NoDocument
  537. // string name = 1;
  538. inline void NoDocument::clear_name() {
  539. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  540. }
  541. inline const std::string& NoDocument::name() const {
  542. // @@protoc_insertion_point(field_get:firestore.client.NoDocument.name)
  543. return _internal_name();
  544. }
  545. inline void NoDocument::set_name(const std::string& value) {
  546. _internal_set_name(value);
  547. // @@protoc_insertion_point(field_set:firestore.client.NoDocument.name)
  548. }
  549. inline std::string* NoDocument::mutable_name() {
  550. // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.name)
  551. return _internal_mutable_name();
  552. }
  553. inline const std::string& NoDocument::_internal_name() const {
  554. return name_.GetNoArena();
  555. }
  556. inline void NoDocument::_internal_set_name(const std::string& value) {
  557. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  558. }
  559. inline void NoDocument::set_name(std::string&& value) {
  560. name_.SetNoArena(
  561. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  562. // @@protoc_insertion_point(field_set_rvalue:firestore.client.NoDocument.name)
  563. }
  564. inline void NoDocument::set_name(const char* value) {
  565. GOOGLE_DCHECK(value != nullptr);
  566. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  567. // @@protoc_insertion_point(field_set_char:firestore.client.NoDocument.name)
  568. }
  569. inline void NoDocument::set_name(const char* value, size_t size) {
  570. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  571. ::std::string(reinterpret_cast<const char*>(value), size));
  572. // @@protoc_insertion_point(field_set_pointer:firestore.client.NoDocument.name)
  573. }
  574. inline std::string* NoDocument::_internal_mutable_name() {
  575. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  576. }
  577. inline std::string* NoDocument::release_name() {
  578. // @@protoc_insertion_point(field_release:firestore.client.NoDocument.name)
  579. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  580. }
  581. inline void NoDocument::set_allocated_name(std::string* name) {
  582. if (name != nullptr) {
  583. } else {
  584. }
  585. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  586. // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.name)
  587. }
  588. // .google.protobuf.Timestamp read_time = 2;
  589. inline bool NoDocument::_internal_has_read_time() const {
  590. return this != internal_default_instance() && read_time_ != nullptr;
  591. }
  592. inline bool NoDocument::has_read_time() const {
  593. return _internal_has_read_time();
  594. }
  595. inline const PROTOBUF_NAMESPACE_ID::Timestamp& NoDocument::_internal_read_time() const {
  596. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  597. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  598. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  599. }
  600. inline const PROTOBUF_NAMESPACE_ID::Timestamp& NoDocument::read_time() const {
  601. // @@protoc_insertion_point(field_get:firestore.client.NoDocument.read_time)
  602. return _internal_read_time();
  603. }
  604. inline PROTOBUF_NAMESPACE_ID::Timestamp* NoDocument::release_read_time() {
  605. // @@protoc_insertion_point(field_release:firestore.client.NoDocument.read_time)
  606. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  607. read_time_ = nullptr;
  608. return temp;
  609. }
  610. inline PROTOBUF_NAMESPACE_ID::Timestamp* NoDocument::_internal_mutable_read_time() {
  611. if (read_time_ == nullptr) {
  612. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  613. read_time_ = p;
  614. }
  615. return read_time_;
  616. }
  617. inline PROTOBUF_NAMESPACE_ID::Timestamp* NoDocument::mutable_read_time() {
  618. // @@protoc_insertion_point(field_mutable:firestore.client.NoDocument.read_time)
  619. return _internal_mutable_read_time();
  620. }
  621. inline void NoDocument::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  622. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  623. if (message_arena == nullptr) {
  624. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  625. }
  626. if (read_time) {
  627. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  628. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  629. if (message_arena != submessage_arena) {
  630. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  631. message_arena, read_time, submessage_arena);
  632. }
  633. } else {
  634. }
  635. read_time_ = read_time;
  636. // @@protoc_insertion_point(field_set_allocated:firestore.client.NoDocument.read_time)
  637. }
  638. // -------------------------------------------------------------------
  639. // UnknownDocument
  640. // string name = 1;
  641. inline void UnknownDocument::clear_name() {
  642. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  643. }
  644. inline const std::string& UnknownDocument::name() const {
  645. // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.name)
  646. return _internal_name();
  647. }
  648. inline void UnknownDocument::set_name(const std::string& value) {
  649. _internal_set_name(value);
  650. // @@protoc_insertion_point(field_set:firestore.client.UnknownDocument.name)
  651. }
  652. inline std::string* UnknownDocument::mutable_name() {
  653. // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.name)
  654. return _internal_mutable_name();
  655. }
  656. inline const std::string& UnknownDocument::_internal_name() const {
  657. return name_.GetNoArena();
  658. }
  659. inline void UnknownDocument::_internal_set_name(const std::string& value) {
  660. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  661. }
  662. inline void UnknownDocument::set_name(std::string&& value) {
  663. name_.SetNoArena(
  664. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  665. // @@protoc_insertion_point(field_set_rvalue:firestore.client.UnknownDocument.name)
  666. }
  667. inline void UnknownDocument::set_name(const char* value) {
  668. GOOGLE_DCHECK(value != nullptr);
  669. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  670. // @@protoc_insertion_point(field_set_char:firestore.client.UnknownDocument.name)
  671. }
  672. inline void UnknownDocument::set_name(const char* value, size_t size) {
  673. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  674. ::std::string(reinterpret_cast<const char*>(value), size));
  675. // @@protoc_insertion_point(field_set_pointer:firestore.client.UnknownDocument.name)
  676. }
  677. inline std::string* UnknownDocument::_internal_mutable_name() {
  678. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  679. }
  680. inline std::string* UnknownDocument::release_name() {
  681. // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.name)
  682. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  683. }
  684. inline void UnknownDocument::set_allocated_name(std::string* name) {
  685. if (name != nullptr) {
  686. } else {
  687. }
  688. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  689. // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.name)
  690. }
  691. // .google.protobuf.Timestamp version = 2;
  692. inline bool UnknownDocument::_internal_has_version() const {
  693. return this != internal_default_instance() && version_ != nullptr;
  694. }
  695. inline bool UnknownDocument::has_version() const {
  696. return _internal_has_version();
  697. }
  698. inline const PROTOBUF_NAMESPACE_ID::Timestamp& UnknownDocument::_internal_version() const {
  699. const PROTOBUF_NAMESPACE_ID::Timestamp* p = version_;
  700. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  701. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  702. }
  703. inline const PROTOBUF_NAMESPACE_ID::Timestamp& UnknownDocument::version() const {
  704. // @@protoc_insertion_point(field_get:firestore.client.UnknownDocument.version)
  705. return _internal_version();
  706. }
  707. inline PROTOBUF_NAMESPACE_ID::Timestamp* UnknownDocument::release_version() {
  708. // @@protoc_insertion_point(field_release:firestore.client.UnknownDocument.version)
  709. PROTOBUF_NAMESPACE_ID::Timestamp* temp = version_;
  710. version_ = nullptr;
  711. return temp;
  712. }
  713. inline PROTOBUF_NAMESPACE_ID::Timestamp* UnknownDocument::_internal_mutable_version() {
  714. if (version_ == nullptr) {
  715. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  716. version_ = p;
  717. }
  718. return version_;
  719. }
  720. inline PROTOBUF_NAMESPACE_ID::Timestamp* UnknownDocument::mutable_version() {
  721. // @@protoc_insertion_point(field_mutable:firestore.client.UnknownDocument.version)
  722. return _internal_mutable_version();
  723. }
  724. inline void UnknownDocument::set_allocated_version(PROTOBUF_NAMESPACE_ID::Timestamp* version) {
  725. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  726. if (message_arena == nullptr) {
  727. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_);
  728. }
  729. if (version) {
  730. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  731. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version)->GetArena();
  732. if (message_arena != submessage_arena) {
  733. version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  734. message_arena, version, submessage_arena);
  735. }
  736. } else {
  737. }
  738. version_ = version;
  739. // @@protoc_insertion_point(field_set_allocated:firestore.client.UnknownDocument.version)
  740. }
  741. // -------------------------------------------------------------------
  742. // MaybeDocument
  743. // .firestore.client.NoDocument no_document = 1;
  744. inline bool MaybeDocument::_internal_has_no_document() const {
  745. return document_type_case() == kNoDocument;
  746. }
  747. inline bool MaybeDocument::has_no_document() const {
  748. return _internal_has_no_document();
  749. }
  750. inline void MaybeDocument::set_has_no_document() {
  751. _oneof_case_[0] = kNoDocument;
  752. }
  753. inline void MaybeDocument::clear_no_document() {
  754. if (_internal_has_no_document()) {
  755. delete document_type_.no_document_;
  756. clear_has_document_type();
  757. }
  758. }
  759. inline ::firestore::client::NoDocument* MaybeDocument::release_no_document() {
  760. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.no_document)
  761. if (_internal_has_no_document()) {
  762. clear_has_document_type();
  763. ::firestore::client::NoDocument* temp = document_type_.no_document_;
  764. document_type_.no_document_ = nullptr;
  765. return temp;
  766. } else {
  767. return nullptr;
  768. }
  769. }
  770. inline const ::firestore::client::NoDocument& MaybeDocument::_internal_no_document() const {
  771. return _internal_has_no_document()
  772. ? *document_type_.no_document_
  773. : *reinterpret_cast< ::firestore::client::NoDocument*>(&::firestore::client::_NoDocument_default_instance_);
  774. }
  775. inline const ::firestore::client::NoDocument& MaybeDocument::no_document() const {
  776. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.no_document)
  777. return _internal_no_document();
  778. }
  779. inline ::firestore::client::NoDocument* MaybeDocument::_internal_mutable_no_document() {
  780. if (!_internal_has_no_document()) {
  781. clear_document_type();
  782. set_has_no_document();
  783. document_type_.no_document_ = CreateMaybeMessage< ::firestore::client::NoDocument >(
  784. GetArenaNoVirtual());
  785. }
  786. return document_type_.no_document_;
  787. }
  788. inline ::firestore::client::NoDocument* MaybeDocument::mutable_no_document() {
  789. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.no_document)
  790. return _internal_mutable_no_document();
  791. }
  792. // .google.firestore.v1.Document document = 2;
  793. inline bool MaybeDocument::_internal_has_document() const {
  794. return document_type_case() == kDocument;
  795. }
  796. inline bool MaybeDocument::has_document() const {
  797. return _internal_has_document();
  798. }
  799. inline void MaybeDocument::set_has_document() {
  800. _oneof_case_[0] = kDocument;
  801. }
  802. inline ::google::firestore::v1::Document* MaybeDocument::release_document() {
  803. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.document)
  804. if (_internal_has_document()) {
  805. clear_has_document_type();
  806. ::google::firestore::v1::Document* temp = document_type_.document_;
  807. document_type_.document_ = nullptr;
  808. return temp;
  809. } else {
  810. return nullptr;
  811. }
  812. }
  813. inline const ::google::firestore::v1::Document& MaybeDocument::_internal_document() const {
  814. return _internal_has_document()
  815. ? *document_type_.document_
  816. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  817. }
  818. inline const ::google::firestore::v1::Document& MaybeDocument::document() const {
  819. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.document)
  820. return _internal_document();
  821. }
  822. inline ::google::firestore::v1::Document* MaybeDocument::_internal_mutable_document() {
  823. if (!_internal_has_document()) {
  824. clear_document_type();
  825. set_has_document();
  826. document_type_.document_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  827. GetArenaNoVirtual());
  828. }
  829. return document_type_.document_;
  830. }
  831. inline ::google::firestore::v1::Document* MaybeDocument::mutable_document() {
  832. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.document)
  833. return _internal_mutable_document();
  834. }
  835. // .firestore.client.UnknownDocument unknown_document = 3;
  836. inline bool MaybeDocument::_internal_has_unknown_document() const {
  837. return document_type_case() == kUnknownDocument;
  838. }
  839. inline bool MaybeDocument::has_unknown_document() const {
  840. return _internal_has_unknown_document();
  841. }
  842. inline void MaybeDocument::set_has_unknown_document() {
  843. _oneof_case_[0] = kUnknownDocument;
  844. }
  845. inline void MaybeDocument::clear_unknown_document() {
  846. if (_internal_has_unknown_document()) {
  847. delete document_type_.unknown_document_;
  848. clear_has_document_type();
  849. }
  850. }
  851. inline ::firestore::client::UnknownDocument* MaybeDocument::release_unknown_document() {
  852. // @@protoc_insertion_point(field_release:firestore.client.MaybeDocument.unknown_document)
  853. if (_internal_has_unknown_document()) {
  854. clear_has_document_type();
  855. ::firestore::client::UnknownDocument* temp = document_type_.unknown_document_;
  856. document_type_.unknown_document_ = nullptr;
  857. return temp;
  858. } else {
  859. return nullptr;
  860. }
  861. }
  862. inline const ::firestore::client::UnknownDocument& MaybeDocument::_internal_unknown_document() const {
  863. return _internal_has_unknown_document()
  864. ? *document_type_.unknown_document_
  865. : *reinterpret_cast< ::firestore::client::UnknownDocument*>(&::firestore::client::_UnknownDocument_default_instance_);
  866. }
  867. inline const ::firestore::client::UnknownDocument& MaybeDocument::unknown_document() const {
  868. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.unknown_document)
  869. return _internal_unknown_document();
  870. }
  871. inline ::firestore::client::UnknownDocument* MaybeDocument::_internal_mutable_unknown_document() {
  872. if (!_internal_has_unknown_document()) {
  873. clear_document_type();
  874. set_has_unknown_document();
  875. document_type_.unknown_document_ = CreateMaybeMessage< ::firestore::client::UnknownDocument >(
  876. GetArenaNoVirtual());
  877. }
  878. return document_type_.unknown_document_;
  879. }
  880. inline ::firestore::client::UnknownDocument* MaybeDocument::mutable_unknown_document() {
  881. // @@protoc_insertion_point(field_mutable:firestore.client.MaybeDocument.unknown_document)
  882. return _internal_mutable_unknown_document();
  883. }
  884. // bool has_committed_mutations = 4;
  885. inline void MaybeDocument::clear_has_committed_mutations() {
  886. has_committed_mutations_ = false;
  887. }
  888. inline bool MaybeDocument::_internal_has_committed_mutations() const {
  889. return has_committed_mutations_;
  890. }
  891. inline bool MaybeDocument::has_committed_mutations() const {
  892. // @@protoc_insertion_point(field_get:firestore.client.MaybeDocument.has_committed_mutations)
  893. return _internal_has_committed_mutations();
  894. }
  895. inline void MaybeDocument::_internal_set_has_committed_mutations(bool value) {
  896. has_committed_mutations_ = value;
  897. }
  898. inline void MaybeDocument::set_has_committed_mutations(bool value) {
  899. _internal_set_has_committed_mutations(value);
  900. // @@protoc_insertion_point(field_set:firestore.client.MaybeDocument.has_committed_mutations)
  901. }
  902. inline bool MaybeDocument::has_document_type() const {
  903. return document_type_case() != DOCUMENT_TYPE_NOT_SET;
  904. }
  905. inline void MaybeDocument::clear_has_document_type() {
  906. _oneof_case_[0] = DOCUMENT_TYPE_NOT_SET;
  907. }
  908. inline MaybeDocument::DocumentTypeCase MaybeDocument::document_type_case() const {
  909. return MaybeDocument::DocumentTypeCase(_oneof_case_[0]);
  910. }
  911. #ifdef __GNUC__
  912. #pragma GCC diagnostic pop
  913. #endif // __GNUC__
  914. // -------------------------------------------------------------------
  915. // -------------------------------------------------------------------
  916. // @@protoc_insertion_point(namespace_scope)
  917. } // namespace client
  918. } // namespace firestore
  919. // @@protoc_insertion_point(global_scope)
  920. #include <google/protobuf/port_undef.inc>
  921. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmaybe_5fdocument_2eproto