bundle.pb.h 76 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038
  1. /*
  2. * Copyright 2021 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/bundle.proto
  18. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2fbundle_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2fbundle_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/generated_enum_reflection.h>
  46. #include <google/protobuf/unknown_field_set.h>
  47. #include "google/firestore/v1/document.pb.h"
  48. #include "google/firestore/v1/query.pb.h"
  49. #include <google/protobuf/timestamp.pb.h>
  50. // @@protoc_insertion_point(includes)
  51. #include <google/protobuf/port_def.inc>
  52. #define PROTOBUF_INTERNAL_EXPORT_firestore_2fbundle_2eproto
  53. PROTOBUF_NAMESPACE_OPEN
  54. namespace internal {
  55. class AnyMetadata;
  56. } // namespace internal
  57. PROTOBUF_NAMESPACE_CLOSE
  58. // Internal implementation detail -- do not use these members.
  59. struct TableStruct_firestore_2fbundle_2eproto {
  60. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  61. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  62. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  63. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
  65. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  66. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  67. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  68. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  69. };
  70. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_firestore_2fbundle_2eproto;
  71. namespace firestore {
  72. class BundleElement;
  73. class BundleElementDefaultTypeInternal;
  74. extern BundleElementDefaultTypeInternal _BundleElement_default_instance_;
  75. class BundleMetadata;
  76. class BundleMetadataDefaultTypeInternal;
  77. extern BundleMetadataDefaultTypeInternal _BundleMetadata_default_instance_;
  78. class BundledDocumentMetadata;
  79. class BundledDocumentMetadataDefaultTypeInternal;
  80. extern BundledDocumentMetadataDefaultTypeInternal _BundledDocumentMetadata_default_instance_;
  81. class BundledQuery;
  82. class BundledQueryDefaultTypeInternal;
  83. extern BundledQueryDefaultTypeInternal _BundledQuery_default_instance_;
  84. class NamedQuery;
  85. class NamedQueryDefaultTypeInternal;
  86. extern NamedQueryDefaultTypeInternal _NamedQuery_default_instance_;
  87. } // namespace firestore
  88. PROTOBUF_NAMESPACE_OPEN
  89. template<> ::firestore::BundleElement* Arena::CreateMaybeMessage<::firestore::BundleElement>(Arena*);
  90. template<> ::firestore::BundleMetadata* Arena::CreateMaybeMessage<::firestore::BundleMetadata>(Arena*);
  91. template<> ::firestore::BundledDocumentMetadata* Arena::CreateMaybeMessage<::firestore::BundledDocumentMetadata>(Arena*);
  92. template<> ::firestore::BundledQuery* Arena::CreateMaybeMessage<::firestore::BundledQuery>(Arena*);
  93. template<> ::firestore::NamedQuery* Arena::CreateMaybeMessage<::firestore::NamedQuery>(Arena*);
  94. PROTOBUF_NAMESPACE_CLOSE
  95. namespace firestore {
  96. enum BundledQuery_LimitType : int {
  97. BundledQuery_LimitType_FIRST = 0,
  98. BundledQuery_LimitType_LAST = 1,
  99. BundledQuery_LimitType_BundledQuery_LimitType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
  100. BundledQuery_LimitType_BundledQuery_LimitType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
  101. };
  102. bool BundledQuery_LimitType_IsValid(int value);
  103. constexpr BundledQuery_LimitType BundledQuery_LimitType_LimitType_MIN = BundledQuery_LimitType_FIRST;
  104. constexpr BundledQuery_LimitType BundledQuery_LimitType_LimitType_MAX = BundledQuery_LimitType_LAST;
  105. constexpr int BundledQuery_LimitType_LimitType_ARRAYSIZE = BundledQuery_LimitType_LimitType_MAX + 1;
  106. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* BundledQuery_LimitType_descriptor();
  107. template<typename T>
  108. inline const std::string& BundledQuery_LimitType_Name(T enum_t_value) {
  109. static_assert(::std::is_same<T, BundledQuery_LimitType>::value ||
  110. ::std::is_integral<T>::value,
  111. "Incorrect type passed to function BundledQuery_LimitType_Name.");
  112. return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
  113. BundledQuery_LimitType_descriptor(), enum_t_value);
  114. }
  115. inline bool BundledQuery_LimitType_Parse(
  116. const std::string& name, BundledQuery_LimitType* value) {
  117. return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<BundledQuery_LimitType>(
  118. BundledQuery_LimitType_descriptor(), name, value);
  119. }
  120. // ===================================================================
  121. class BundledQuery :
  122. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.BundledQuery) */ {
  123. public:
  124. BundledQuery();
  125. virtual ~BundledQuery();
  126. BundledQuery(const BundledQuery& from);
  127. BundledQuery(BundledQuery&& from) noexcept
  128. : BundledQuery() {
  129. *this = ::std::move(from);
  130. }
  131. inline BundledQuery& operator=(const BundledQuery& from) {
  132. CopyFrom(from);
  133. return *this;
  134. }
  135. inline BundledQuery& operator=(BundledQuery&& from) noexcept {
  136. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  137. if (this != &from) InternalSwap(&from);
  138. } else {
  139. CopyFrom(from);
  140. }
  141. return *this;
  142. }
  143. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  144. return GetDescriptor();
  145. }
  146. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  147. return GetMetadataStatic().descriptor;
  148. }
  149. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  150. return GetMetadataStatic().reflection;
  151. }
  152. static const BundledQuery& default_instance();
  153. enum QueryTypeCase {
  154. kStructuredQuery = 2,
  155. QUERY_TYPE_NOT_SET = 0,
  156. };
  157. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  158. static inline const BundledQuery* internal_default_instance() {
  159. return reinterpret_cast<const BundledQuery*>(
  160. &_BundledQuery_default_instance_);
  161. }
  162. static constexpr int kIndexInFileMessages =
  163. 0;
  164. friend void swap(BundledQuery& a, BundledQuery& b) {
  165. a.Swap(&b);
  166. }
  167. inline void Swap(BundledQuery* other) {
  168. if (other == this) return;
  169. InternalSwap(other);
  170. }
  171. // implements Message ----------------------------------------------
  172. inline BundledQuery* New() const final {
  173. return CreateMaybeMessage<BundledQuery>(nullptr);
  174. }
  175. BundledQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  176. return CreateMaybeMessage<BundledQuery>(arena);
  177. }
  178. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  179. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  180. void CopyFrom(const BundledQuery& from);
  181. void MergeFrom(const BundledQuery& from);
  182. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  183. bool IsInitialized() const final;
  184. size_t ByteSizeLong() const final;
  185. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  186. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  187. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  188. int GetCachedSize() const final { return _cached_size_.Get(); }
  189. private:
  190. inline void SharedCtor();
  191. inline void SharedDtor();
  192. void SetCachedSize(int size) const final;
  193. void InternalSwap(BundledQuery* other);
  194. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  195. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  196. return "firestore.BundledQuery";
  197. }
  198. private:
  199. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  200. return nullptr;
  201. }
  202. inline void* MaybeArenaPtr() const {
  203. return nullptr;
  204. }
  205. public:
  206. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  207. private:
  208. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  209. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2fbundle_2eproto);
  210. return ::descriptor_table_firestore_2fbundle_2eproto.file_level_metadata[kIndexInFileMessages];
  211. }
  212. public:
  213. // nested types ----------------------------------------------------
  214. typedef BundledQuery_LimitType LimitType;
  215. static constexpr LimitType FIRST =
  216. BundledQuery_LimitType_FIRST;
  217. static constexpr LimitType LAST =
  218. BundledQuery_LimitType_LAST;
  219. static inline bool LimitType_IsValid(int value) {
  220. return BundledQuery_LimitType_IsValid(value);
  221. }
  222. static constexpr LimitType LimitType_MIN =
  223. BundledQuery_LimitType_LimitType_MIN;
  224. static constexpr LimitType LimitType_MAX =
  225. BundledQuery_LimitType_LimitType_MAX;
  226. static constexpr int LimitType_ARRAYSIZE =
  227. BundledQuery_LimitType_LimitType_ARRAYSIZE;
  228. static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
  229. LimitType_descriptor() {
  230. return BundledQuery_LimitType_descriptor();
  231. }
  232. template<typename T>
  233. static inline const std::string& LimitType_Name(T enum_t_value) {
  234. static_assert(::std::is_same<T, LimitType>::value ||
  235. ::std::is_integral<T>::value,
  236. "Incorrect type passed to function LimitType_Name.");
  237. return BundledQuery_LimitType_Name(enum_t_value);
  238. }
  239. static inline bool LimitType_Parse(const std::string& name,
  240. LimitType* value) {
  241. return BundledQuery_LimitType_Parse(name, value);
  242. }
  243. // accessors -------------------------------------------------------
  244. enum : int {
  245. kParentFieldNumber = 1,
  246. kLimitTypeFieldNumber = 3,
  247. kStructuredQueryFieldNumber = 2,
  248. };
  249. // string parent = 1;
  250. void clear_parent();
  251. const std::string& parent() const;
  252. void set_parent(const std::string& value);
  253. void set_parent(std::string&& value);
  254. void set_parent(const char* value);
  255. void set_parent(const char* value, size_t size);
  256. std::string* mutable_parent();
  257. std::string* release_parent();
  258. void set_allocated_parent(std::string* parent);
  259. private:
  260. const std::string& _internal_parent() const;
  261. void _internal_set_parent(const std::string& value);
  262. std::string* _internal_mutable_parent();
  263. public:
  264. // .firestore.BundledQuery.LimitType limit_type = 3;
  265. void clear_limit_type();
  266. ::firestore::BundledQuery_LimitType limit_type() const;
  267. void set_limit_type(::firestore::BundledQuery_LimitType value);
  268. private:
  269. ::firestore::BundledQuery_LimitType _internal_limit_type() const;
  270. void _internal_set_limit_type(::firestore::BundledQuery_LimitType value);
  271. public:
  272. // .google.firestore.v1.StructuredQuery structured_query = 2;
  273. bool has_structured_query() const;
  274. private:
  275. bool _internal_has_structured_query() const;
  276. public:
  277. void clear_structured_query();
  278. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  279. ::google::firestore::v1::StructuredQuery* release_structured_query();
  280. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  281. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* structured_query);
  282. private:
  283. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  284. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  285. public:
  286. void clear_query_type();
  287. QueryTypeCase query_type_case() const;
  288. // @@protoc_insertion_point(class_scope:firestore.BundledQuery)
  289. private:
  290. class _Internal;
  291. void set_has_structured_query();
  292. inline bool has_query_type() const;
  293. inline void clear_has_query_type();
  294. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  295. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr parent_;
  296. int limit_type_;
  297. union QueryTypeUnion {
  298. QueryTypeUnion() {}
  299. ::google::firestore::v1::StructuredQuery* structured_query_;
  300. } query_type_;
  301. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  302. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  303. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  304. };
  305. // -------------------------------------------------------------------
  306. class NamedQuery :
  307. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.NamedQuery) */ {
  308. public:
  309. NamedQuery();
  310. virtual ~NamedQuery();
  311. NamedQuery(const NamedQuery& from);
  312. NamedQuery(NamedQuery&& from) noexcept
  313. : NamedQuery() {
  314. *this = ::std::move(from);
  315. }
  316. inline NamedQuery& operator=(const NamedQuery& from) {
  317. CopyFrom(from);
  318. return *this;
  319. }
  320. inline NamedQuery& operator=(NamedQuery&& from) noexcept {
  321. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  322. if (this != &from) InternalSwap(&from);
  323. } else {
  324. CopyFrom(from);
  325. }
  326. return *this;
  327. }
  328. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  329. return GetDescriptor();
  330. }
  331. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  332. return GetMetadataStatic().descriptor;
  333. }
  334. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  335. return GetMetadataStatic().reflection;
  336. }
  337. static const NamedQuery& default_instance();
  338. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  339. static inline const NamedQuery* internal_default_instance() {
  340. return reinterpret_cast<const NamedQuery*>(
  341. &_NamedQuery_default_instance_);
  342. }
  343. static constexpr int kIndexInFileMessages =
  344. 1;
  345. friend void swap(NamedQuery& a, NamedQuery& b) {
  346. a.Swap(&b);
  347. }
  348. inline void Swap(NamedQuery* other) {
  349. if (other == this) return;
  350. InternalSwap(other);
  351. }
  352. // implements Message ----------------------------------------------
  353. inline NamedQuery* New() const final {
  354. return CreateMaybeMessage<NamedQuery>(nullptr);
  355. }
  356. NamedQuery* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  357. return CreateMaybeMessage<NamedQuery>(arena);
  358. }
  359. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  360. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  361. void CopyFrom(const NamedQuery& from);
  362. void MergeFrom(const NamedQuery& from);
  363. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  364. bool IsInitialized() const final;
  365. size_t ByteSizeLong() const final;
  366. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  367. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  368. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  369. int GetCachedSize() const final { return _cached_size_.Get(); }
  370. private:
  371. inline void SharedCtor();
  372. inline void SharedDtor();
  373. void SetCachedSize(int size) const final;
  374. void InternalSwap(NamedQuery* other);
  375. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  376. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  377. return "firestore.NamedQuery";
  378. }
  379. private:
  380. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  381. return nullptr;
  382. }
  383. inline void* MaybeArenaPtr() const {
  384. return nullptr;
  385. }
  386. public:
  387. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  388. private:
  389. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  390. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2fbundle_2eproto);
  391. return ::descriptor_table_firestore_2fbundle_2eproto.file_level_metadata[kIndexInFileMessages];
  392. }
  393. public:
  394. // nested types ----------------------------------------------------
  395. // accessors -------------------------------------------------------
  396. enum : int {
  397. kNameFieldNumber = 1,
  398. kBundledQueryFieldNumber = 2,
  399. kReadTimeFieldNumber = 3,
  400. };
  401. // string name = 1;
  402. void clear_name();
  403. const std::string& name() const;
  404. void set_name(const std::string& value);
  405. void set_name(std::string&& value);
  406. void set_name(const char* value);
  407. void set_name(const char* value, size_t size);
  408. std::string* mutable_name();
  409. std::string* release_name();
  410. void set_allocated_name(std::string* name);
  411. private:
  412. const std::string& _internal_name() const;
  413. void _internal_set_name(const std::string& value);
  414. std::string* _internal_mutable_name();
  415. public:
  416. // .firestore.BundledQuery bundled_query = 2;
  417. bool has_bundled_query() const;
  418. private:
  419. bool _internal_has_bundled_query() const;
  420. public:
  421. void clear_bundled_query();
  422. const ::firestore::BundledQuery& bundled_query() const;
  423. ::firestore::BundledQuery* release_bundled_query();
  424. ::firestore::BundledQuery* mutable_bundled_query();
  425. void set_allocated_bundled_query(::firestore::BundledQuery* bundled_query);
  426. private:
  427. const ::firestore::BundledQuery& _internal_bundled_query() const;
  428. ::firestore::BundledQuery* _internal_mutable_bundled_query();
  429. public:
  430. // .google.protobuf.Timestamp read_time = 3;
  431. bool has_read_time() const;
  432. private:
  433. bool _internal_has_read_time() const;
  434. public:
  435. void clear_read_time();
  436. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  437. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  438. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  439. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  440. private:
  441. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  442. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  443. public:
  444. // @@protoc_insertion_point(class_scope:firestore.NamedQuery)
  445. private:
  446. class _Internal;
  447. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  448. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  449. ::firestore::BundledQuery* bundled_query_;
  450. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  451. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  452. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  453. };
  454. // -------------------------------------------------------------------
  455. class BundledDocumentMetadata :
  456. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.BundledDocumentMetadata) */ {
  457. public:
  458. BundledDocumentMetadata();
  459. virtual ~BundledDocumentMetadata();
  460. BundledDocumentMetadata(const BundledDocumentMetadata& from);
  461. BundledDocumentMetadata(BundledDocumentMetadata&& from) noexcept
  462. : BundledDocumentMetadata() {
  463. *this = ::std::move(from);
  464. }
  465. inline BundledDocumentMetadata& operator=(const BundledDocumentMetadata& from) {
  466. CopyFrom(from);
  467. return *this;
  468. }
  469. inline BundledDocumentMetadata& operator=(BundledDocumentMetadata&& from) noexcept {
  470. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  471. if (this != &from) InternalSwap(&from);
  472. } else {
  473. CopyFrom(from);
  474. }
  475. return *this;
  476. }
  477. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  478. return GetDescriptor();
  479. }
  480. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  481. return GetMetadataStatic().descriptor;
  482. }
  483. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  484. return GetMetadataStatic().reflection;
  485. }
  486. static const BundledDocumentMetadata& default_instance();
  487. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  488. static inline const BundledDocumentMetadata* internal_default_instance() {
  489. return reinterpret_cast<const BundledDocumentMetadata*>(
  490. &_BundledDocumentMetadata_default_instance_);
  491. }
  492. static constexpr int kIndexInFileMessages =
  493. 2;
  494. friend void swap(BundledDocumentMetadata& a, BundledDocumentMetadata& b) {
  495. a.Swap(&b);
  496. }
  497. inline void Swap(BundledDocumentMetadata* other) {
  498. if (other == this) return;
  499. InternalSwap(other);
  500. }
  501. // implements Message ----------------------------------------------
  502. inline BundledDocumentMetadata* New() const final {
  503. return CreateMaybeMessage<BundledDocumentMetadata>(nullptr);
  504. }
  505. BundledDocumentMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  506. return CreateMaybeMessage<BundledDocumentMetadata>(arena);
  507. }
  508. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  509. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  510. void CopyFrom(const BundledDocumentMetadata& from);
  511. void MergeFrom(const BundledDocumentMetadata& from);
  512. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  513. bool IsInitialized() const final;
  514. size_t ByteSizeLong() const final;
  515. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  516. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  517. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  518. int GetCachedSize() const final { return _cached_size_.Get(); }
  519. private:
  520. inline void SharedCtor();
  521. inline void SharedDtor();
  522. void SetCachedSize(int size) const final;
  523. void InternalSwap(BundledDocumentMetadata* other);
  524. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  525. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  526. return "firestore.BundledDocumentMetadata";
  527. }
  528. private:
  529. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  530. return nullptr;
  531. }
  532. inline void* MaybeArenaPtr() const {
  533. return nullptr;
  534. }
  535. public:
  536. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  537. private:
  538. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  539. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2fbundle_2eproto);
  540. return ::descriptor_table_firestore_2fbundle_2eproto.file_level_metadata[kIndexInFileMessages];
  541. }
  542. public:
  543. // nested types ----------------------------------------------------
  544. // accessors -------------------------------------------------------
  545. enum : int {
  546. kQueriesFieldNumber = 4,
  547. kNameFieldNumber = 1,
  548. kReadTimeFieldNumber = 2,
  549. kExistsFieldNumber = 3,
  550. };
  551. // repeated string queries = 4;
  552. int queries_size() const;
  553. private:
  554. int _internal_queries_size() const;
  555. public:
  556. void clear_queries();
  557. const std::string& queries(int index) const;
  558. std::string* mutable_queries(int index);
  559. void set_queries(int index, const std::string& value);
  560. void set_queries(int index, std::string&& value);
  561. void set_queries(int index, const char* value);
  562. void set_queries(int index, const char* value, size_t size);
  563. std::string* add_queries();
  564. void add_queries(const std::string& value);
  565. void add_queries(std::string&& value);
  566. void add_queries(const char* value);
  567. void add_queries(const char* value, size_t size);
  568. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& queries() const;
  569. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_queries();
  570. private:
  571. const std::string& _internal_queries(int index) const;
  572. std::string* _internal_add_queries();
  573. public:
  574. // string name = 1;
  575. void clear_name();
  576. const std::string& name() const;
  577. void set_name(const std::string& value);
  578. void set_name(std::string&& value);
  579. void set_name(const char* value);
  580. void set_name(const char* value, size_t size);
  581. std::string* mutable_name();
  582. std::string* release_name();
  583. void set_allocated_name(std::string* name);
  584. private:
  585. const std::string& _internal_name() const;
  586. void _internal_set_name(const std::string& value);
  587. std::string* _internal_mutable_name();
  588. public:
  589. // .google.protobuf.Timestamp read_time = 2;
  590. bool has_read_time() const;
  591. private:
  592. bool _internal_has_read_time() const;
  593. public:
  594. void clear_read_time();
  595. const PROTOBUF_NAMESPACE_ID::Timestamp& read_time() const;
  596. PROTOBUF_NAMESPACE_ID::Timestamp* release_read_time();
  597. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_read_time();
  598. void set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time);
  599. private:
  600. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_read_time() const;
  601. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_read_time();
  602. public:
  603. // bool exists = 3;
  604. void clear_exists();
  605. bool exists() const;
  606. void set_exists(bool value);
  607. private:
  608. bool _internal_exists() const;
  609. void _internal_set_exists(bool value);
  610. public:
  611. // @@protoc_insertion_point(class_scope:firestore.BundledDocumentMetadata)
  612. private:
  613. class _Internal;
  614. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  615. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> queries_;
  616. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  617. PROTOBUF_NAMESPACE_ID::Timestamp* read_time_;
  618. bool exists_;
  619. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  620. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  621. };
  622. // -------------------------------------------------------------------
  623. class BundleMetadata :
  624. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.BundleMetadata) */ {
  625. public:
  626. BundleMetadata();
  627. virtual ~BundleMetadata();
  628. BundleMetadata(const BundleMetadata& from);
  629. BundleMetadata(BundleMetadata&& from) noexcept
  630. : BundleMetadata() {
  631. *this = ::std::move(from);
  632. }
  633. inline BundleMetadata& operator=(const BundleMetadata& from) {
  634. CopyFrom(from);
  635. return *this;
  636. }
  637. inline BundleMetadata& operator=(BundleMetadata&& from) noexcept {
  638. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  639. if (this != &from) InternalSwap(&from);
  640. } else {
  641. CopyFrom(from);
  642. }
  643. return *this;
  644. }
  645. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  646. return GetDescriptor();
  647. }
  648. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  649. return GetMetadataStatic().descriptor;
  650. }
  651. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  652. return GetMetadataStatic().reflection;
  653. }
  654. static const BundleMetadata& default_instance();
  655. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  656. static inline const BundleMetadata* internal_default_instance() {
  657. return reinterpret_cast<const BundleMetadata*>(
  658. &_BundleMetadata_default_instance_);
  659. }
  660. static constexpr int kIndexInFileMessages =
  661. 3;
  662. friend void swap(BundleMetadata& a, BundleMetadata& b) {
  663. a.Swap(&b);
  664. }
  665. inline void Swap(BundleMetadata* other) {
  666. if (other == this) return;
  667. InternalSwap(other);
  668. }
  669. // implements Message ----------------------------------------------
  670. inline BundleMetadata* New() const final {
  671. return CreateMaybeMessage<BundleMetadata>(nullptr);
  672. }
  673. BundleMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  674. return CreateMaybeMessage<BundleMetadata>(arena);
  675. }
  676. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  677. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  678. void CopyFrom(const BundleMetadata& from);
  679. void MergeFrom(const BundleMetadata& from);
  680. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  681. bool IsInitialized() const final;
  682. size_t ByteSizeLong() const final;
  683. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  684. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  685. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  686. int GetCachedSize() const final { return _cached_size_.Get(); }
  687. private:
  688. inline void SharedCtor();
  689. inline void SharedDtor();
  690. void SetCachedSize(int size) const final;
  691. void InternalSwap(BundleMetadata* other);
  692. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  693. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  694. return "firestore.BundleMetadata";
  695. }
  696. private:
  697. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  698. return nullptr;
  699. }
  700. inline void* MaybeArenaPtr() const {
  701. return nullptr;
  702. }
  703. public:
  704. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  705. private:
  706. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  707. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2fbundle_2eproto);
  708. return ::descriptor_table_firestore_2fbundle_2eproto.file_level_metadata[kIndexInFileMessages];
  709. }
  710. public:
  711. // nested types ----------------------------------------------------
  712. // accessors -------------------------------------------------------
  713. enum : int {
  714. kIdFieldNumber = 1,
  715. kCreateTimeFieldNumber = 2,
  716. kVersionFieldNumber = 3,
  717. kTotalDocumentsFieldNumber = 4,
  718. kTotalBytesFieldNumber = 5,
  719. };
  720. // string id = 1;
  721. void clear_id();
  722. const std::string& id() const;
  723. void set_id(const std::string& value);
  724. void set_id(std::string&& value);
  725. void set_id(const char* value);
  726. void set_id(const char* value, size_t size);
  727. std::string* mutable_id();
  728. std::string* release_id();
  729. void set_allocated_id(std::string* id);
  730. private:
  731. const std::string& _internal_id() const;
  732. void _internal_set_id(const std::string& value);
  733. std::string* _internal_mutable_id();
  734. public:
  735. // .google.protobuf.Timestamp create_time = 2;
  736. bool has_create_time() const;
  737. private:
  738. bool _internal_has_create_time() const;
  739. public:
  740. void clear_create_time();
  741. const PROTOBUF_NAMESPACE_ID::Timestamp& create_time() const;
  742. PROTOBUF_NAMESPACE_ID::Timestamp* release_create_time();
  743. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_create_time();
  744. void set_allocated_create_time(PROTOBUF_NAMESPACE_ID::Timestamp* create_time);
  745. private:
  746. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_create_time() const;
  747. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_create_time();
  748. public:
  749. // uint32 version = 3;
  750. void clear_version();
  751. ::PROTOBUF_NAMESPACE_ID::uint32 version() const;
  752. void set_version(::PROTOBUF_NAMESPACE_ID::uint32 value);
  753. private:
  754. ::PROTOBUF_NAMESPACE_ID::uint32 _internal_version() const;
  755. void _internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value);
  756. public:
  757. // uint32 total_documents = 4;
  758. void clear_total_documents();
  759. ::PROTOBUF_NAMESPACE_ID::uint32 total_documents() const;
  760. void set_total_documents(::PROTOBUF_NAMESPACE_ID::uint32 value);
  761. private:
  762. ::PROTOBUF_NAMESPACE_ID::uint32 _internal_total_documents() const;
  763. void _internal_set_total_documents(::PROTOBUF_NAMESPACE_ID::uint32 value);
  764. public:
  765. // uint64 total_bytes = 5;
  766. void clear_total_bytes();
  767. ::PROTOBUF_NAMESPACE_ID::uint64 total_bytes() const;
  768. void set_total_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value);
  769. private:
  770. ::PROTOBUF_NAMESPACE_ID::uint64 _internal_total_bytes() const;
  771. void _internal_set_total_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value);
  772. public:
  773. // @@protoc_insertion_point(class_scope:firestore.BundleMetadata)
  774. private:
  775. class _Internal;
  776. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  777. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr id_;
  778. PROTOBUF_NAMESPACE_ID::Timestamp* create_time_;
  779. ::PROTOBUF_NAMESPACE_ID::uint32 version_;
  780. ::PROTOBUF_NAMESPACE_ID::uint32 total_documents_;
  781. ::PROTOBUF_NAMESPACE_ID::uint64 total_bytes_;
  782. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  783. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  784. };
  785. // -------------------------------------------------------------------
  786. class BundleElement :
  787. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.BundleElement) */ {
  788. public:
  789. BundleElement();
  790. virtual ~BundleElement();
  791. BundleElement(const BundleElement& from);
  792. BundleElement(BundleElement&& from) noexcept
  793. : BundleElement() {
  794. *this = ::std::move(from);
  795. }
  796. inline BundleElement& operator=(const BundleElement& from) {
  797. CopyFrom(from);
  798. return *this;
  799. }
  800. inline BundleElement& operator=(BundleElement&& from) noexcept {
  801. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  802. if (this != &from) InternalSwap(&from);
  803. } else {
  804. CopyFrom(from);
  805. }
  806. return *this;
  807. }
  808. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  809. return GetDescriptor();
  810. }
  811. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  812. return GetMetadataStatic().descriptor;
  813. }
  814. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  815. return GetMetadataStatic().reflection;
  816. }
  817. static const BundleElement& default_instance();
  818. enum ElementTypeCase {
  819. kMetadata = 1,
  820. kNamedQuery = 2,
  821. kDocumentMetadata = 3,
  822. kDocument = 4,
  823. ELEMENT_TYPE_NOT_SET = 0,
  824. };
  825. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  826. static inline const BundleElement* internal_default_instance() {
  827. return reinterpret_cast<const BundleElement*>(
  828. &_BundleElement_default_instance_);
  829. }
  830. static constexpr int kIndexInFileMessages =
  831. 4;
  832. friend void swap(BundleElement& a, BundleElement& b) {
  833. a.Swap(&b);
  834. }
  835. inline void Swap(BundleElement* other) {
  836. if (other == this) return;
  837. InternalSwap(other);
  838. }
  839. // implements Message ----------------------------------------------
  840. inline BundleElement* New() const final {
  841. return CreateMaybeMessage<BundleElement>(nullptr);
  842. }
  843. BundleElement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  844. return CreateMaybeMessage<BundleElement>(arena);
  845. }
  846. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  847. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  848. void CopyFrom(const BundleElement& from);
  849. void MergeFrom(const BundleElement& from);
  850. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  851. bool IsInitialized() const final;
  852. size_t ByteSizeLong() const final;
  853. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  854. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  855. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  856. int GetCachedSize() const final { return _cached_size_.Get(); }
  857. private:
  858. inline void SharedCtor();
  859. inline void SharedDtor();
  860. void SetCachedSize(int size) const final;
  861. void InternalSwap(BundleElement* other);
  862. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  863. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  864. return "firestore.BundleElement";
  865. }
  866. private:
  867. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  868. return nullptr;
  869. }
  870. inline void* MaybeArenaPtr() const {
  871. return nullptr;
  872. }
  873. public:
  874. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  875. private:
  876. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  877. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2fbundle_2eproto);
  878. return ::descriptor_table_firestore_2fbundle_2eproto.file_level_metadata[kIndexInFileMessages];
  879. }
  880. public:
  881. // nested types ----------------------------------------------------
  882. // accessors -------------------------------------------------------
  883. enum : int {
  884. kMetadataFieldNumber = 1,
  885. kNamedQueryFieldNumber = 2,
  886. kDocumentMetadataFieldNumber = 3,
  887. kDocumentFieldNumber = 4,
  888. };
  889. // .firestore.BundleMetadata metadata = 1;
  890. bool has_metadata() const;
  891. private:
  892. bool _internal_has_metadata() const;
  893. public:
  894. void clear_metadata();
  895. const ::firestore::BundleMetadata& metadata() const;
  896. ::firestore::BundleMetadata* release_metadata();
  897. ::firestore::BundleMetadata* mutable_metadata();
  898. void set_allocated_metadata(::firestore::BundleMetadata* metadata);
  899. private:
  900. const ::firestore::BundleMetadata& _internal_metadata() const;
  901. ::firestore::BundleMetadata* _internal_mutable_metadata();
  902. public:
  903. // .firestore.NamedQuery named_query = 2;
  904. bool has_named_query() const;
  905. private:
  906. bool _internal_has_named_query() const;
  907. public:
  908. void clear_named_query();
  909. const ::firestore::NamedQuery& named_query() const;
  910. ::firestore::NamedQuery* release_named_query();
  911. ::firestore::NamedQuery* mutable_named_query();
  912. void set_allocated_named_query(::firestore::NamedQuery* named_query);
  913. private:
  914. const ::firestore::NamedQuery& _internal_named_query() const;
  915. ::firestore::NamedQuery* _internal_mutable_named_query();
  916. public:
  917. // .firestore.BundledDocumentMetadata document_metadata = 3;
  918. bool has_document_metadata() const;
  919. private:
  920. bool _internal_has_document_metadata() const;
  921. public:
  922. void clear_document_metadata();
  923. const ::firestore::BundledDocumentMetadata& document_metadata() const;
  924. ::firestore::BundledDocumentMetadata* release_document_metadata();
  925. ::firestore::BundledDocumentMetadata* mutable_document_metadata();
  926. void set_allocated_document_metadata(::firestore::BundledDocumentMetadata* document_metadata);
  927. private:
  928. const ::firestore::BundledDocumentMetadata& _internal_document_metadata() const;
  929. ::firestore::BundledDocumentMetadata* _internal_mutable_document_metadata();
  930. public:
  931. // .google.firestore.v1.Document document = 4;
  932. bool has_document() const;
  933. private:
  934. bool _internal_has_document() const;
  935. public:
  936. void clear_document();
  937. const ::google::firestore::v1::Document& document() const;
  938. ::google::firestore::v1::Document* release_document();
  939. ::google::firestore::v1::Document* mutable_document();
  940. void set_allocated_document(::google::firestore::v1::Document* document);
  941. private:
  942. const ::google::firestore::v1::Document& _internal_document() const;
  943. ::google::firestore::v1::Document* _internal_mutable_document();
  944. public:
  945. void clear_element_type();
  946. ElementTypeCase element_type_case() const;
  947. // @@protoc_insertion_point(class_scope:firestore.BundleElement)
  948. private:
  949. class _Internal;
  950. void set_has_metadata();
  951. void set_has_named_query();
  952. void set_has_document_metadata();
  953. void set_has_document();
  954. inline bool has_element_type() const;
  955. inline void clear_has_element_type();
  956. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  957. union ElementTypeUnion {
  958. ElementTypeUnion() {}
  959. ::firestore::BundleMetadata* metadata_;
  960. ::firestore::NamedQuery* named_query_;
  961. ::firestore::BundledDocumentMetadata* document_metadata_;
  962. ::google::firestore::v1::Document* document_;
  963. } element_type_;
  964. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  965. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  966. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  967. };
  968. // ===================================================================
  969. // ===================================================================
  970. #ifdef __GNUC__
  971. #pragma GCC diagnostic push
  972. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  973. #endif // __GNUC__
  974. // BundledQuery
  975. // string parent = 1;
  976. inline void BundledQuery::clear_parent() {
  977. parent_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  978. }
  979. inline const std::string& BundledQuery::parent() const {
  980. // @@protoc_insertion_point(field_get:firestore.BundledQuery.parent)
  981. return _internal_parent();
  982. }
  983. inline void BundledQuery::set_parent(const std::string& value) {
  984. _internal_set_parent(value);
  985. // @@protoc_insertion_point(field_set:firestore.BundledQuery.parent)
  986. }
  987. inline std::string* BundledQuery::mutable_parent() {
  988. // @@protoc_insertion_point(field_mutable:firestore.BundledQuery.parent)
  989. return _internal_mutable_parent();
  990. }
  991. inline const std::string& BundledQuery::_internal_parent() const {
  992. return parent_.GetNoArena();
  993. }
  994. inline void BundledQuery::_internal_set_parent(const std::string& value) {
  995. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  996. }
  997. inline void BundledQuery::set_parent(std::string&& value) {
  998. parent_.SetNoArena(
  999. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1000. // @@protoc_insertion_point(field_set_rvalue:firestore.BundledQuery.parent)
  1001. }
  1002. inline void BundledQuery::set_parent(const char* value) {
  1003. GOOGLE_DCHECK(value != nullptr);
  1004. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1005. // @@protoc_insertion_point(field_set_char:firestore.BundledQuery.parent)
  1006. }
  1007. inline void BundledQuery::set_parent(const char* value, size_t size) {
  1008. parent_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1009. ::std::string(reinterpret_cast<const char*>(value), size));
  1010. // @@protoc_insertion_point(field_set_pointer:firestore.BundledQuery.parent)
  1011. }
  1012. inline std::string* BundledQuery::_internal_mutable_parent() {
  1013. return parent_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1014. }
  1015. inline std::string* BundledQuery::release_parent() {
  1016. // @@protoc_insertion_point(field_release:firestore.BundledQuery.parent)
  1017. return parent_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1018. }
  1019. inline void BundledQuery::set_allocated_parent(std::string* parent) {
  1020. if (parent != nullptr) {
  1021. } else {
  1022. }
  1023. parent_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), parent);
  1024. // @@protoc_insertion_point(field_set_allocated:firestore.BundledQuery.parent)
  1025. }
  1026. // .google.firestore.v1.StructuredQuery structured_query = 2;
  1027. inline bool BundledQuery::_internal_has_structured_query() const {
  1028. return query_type_case() == kStructuredQuery;
  1029. }
  1030. inline bool BundledQuery::has_structured_query() const {
  1031. return _internal_has_structured_query();
  1032. }
  1033. inline void BundledQuery::set_has_structured_query() {
  1034. _oneof_case_[0] = kStructuredQuery;
  1035. }
  1036. inline ::google::firestore::v1::StructuredQuery* BundledQuery::release_structured_query() {
  1037. // @@protoc_insertion_point(field_release:firestore.BundledQuery.structured_query)
  1038. if (_internal_has_structured_query()) {
  1039. clear_has_query_type();
  1040. ::google::firestore::v1::StructuredQuery* temp = query_type_.structured_query_;
  1041. query_type_.structured_query_ = nullptr;
  1042. return temp;
  1043. } else {
  1044. return nullptr;
  1045. }
  1046. }
  1047. inline const ::google::firestore::v1::StructuredQuery& BundledQuery::_internal_structured_query() const {
  1048. return _internal_has_structured_query()
  1049. ? *query_type_.structured_query_
  1050. : *reinterpret_cast< ::google::firestore::v1::StructuredQuery*>(&::google::firestore::v1::_StructuredQuery_default_instance_);
  1051. }
  1052. inline const ::google::firestore::v1::StructuredQuery& BundledQuery::structured_query() const {
  1053. // @@protoc_insertion_point(field_get:firestore.BundledQuery.structured_query)
  1054. return _internal_structured_query();
  1055. }
  1056. inline ::google::firestore::v1::StructuredQuery* BundledQuery::_internal_mutable_structured_query() {
  1057. if (!_internal_has_structured_query()) {
  1058. clear_query_type();
  1059. set_has_structured_query();
  1060. query_type_.structured_query_ = CreateMaybeMessage< ::google::firestore::v1::StructuredQuery >(
  1061. GetArenaNoVirtual());
  1062. }
  1063. return query_type_.structured_query_;
  1064. }
  1065. inline ::google::firestore::v1::StructuredQuery* BundledQuery::mutable_structured_query() {
  1066. // @@protoc_insertion_point(field_mutable:firestore.BundledQuery.structured_query)
  1067. return _internal_mutable_structured_query();
  1068. }
  1069. // .firestore.BundledQuery.LimitType limit_type = 3;
  1070. inline void BundledQuery::clear_limit_type() {
  1071. limit_type_ = 0;
  1072. }
  1073. inline ::firestore::BundledQuery_LimitType BundledQuery::_internal_limit_type() const {
  1074. return static_cast< ::firestore::BundledQuery_LimitType >(limit_type_);
  1075. }
  1076. inline ::firestore::BundledQuery_LimitType BundledQuery::limit_type() const {
  1077. // @@protoc_insertion_point(field_get:firestore.BundledQuery.limit_type)
  1078. return _internal_limit_type();
  1079. }
  1080. inline void BundledQuery::_internal_set_limit_type(::firestore::BundledQuery_LimitType value) {
  1081. limit_type_ = value;
  1082. }
  1083. inline void BundledQuery::set_limit_type(::firestore::BundledQuery_LimitType value) {
  1084. _internal_set_limit_type(value);
  1085. // @@protoc_insertion_point(field_set:firestore.BundledQuery.limit_type)
  1086. }
  1087. inline bool BundledQuery::has_query_type() const {
  1088. return query_type_case() != QUERY_TYPE_NOT_SET;
  1089. }
  1090. inline void BundledQuery::clear_has_query_type() {
  1091. _oneof_case_[0] = QUERY_TYPE_NOT_SET;
  1092. }
  1093. inline BundledQuery::QueryTypeCase BundledQuery::query_type_case() const {
  1094. return BundledQuery::QueryTypeCase(_oneof_case_[0]);
  1095. }
  1096. // -------------------------------------------------------------------
  1097. // NamedQuery
  1098. // string name = 1;
  1099. inline void NamedQuery::clear_name() {
  1100. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1101. }
  1102. inline const std::string& NamedQuery::name() const {
  1103. // @@protoc_insertion_point(field_get:firestore.NamedQuery.name)
  1104. return _internal_name();
  1105. }
  1106. inline void NamedQuery::set_name(const std::string& value) {
  1107. _internal_set_name(value);
  1108. // @@protoc_insertion_point(field_set:firestore.NamedQuery.name)
  1109. }
  1110. inline std::string* NamedQuery::mutable_name() {
  1111. // @@protoc_insertion_point(field_mutable:firestore.NamedQuery.name)
  1112. return _internal_mutable_name();
  1113. }
  1114. inline const std::string& NamedQuery::_internal_name() const {
  1115. return name_.GetNoArena();
  1116. }
  1117. inline void NamedQuery::_internal_set_name(const std::string& value) {
  1118. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1119. }
  1120. inline void NamedQuery::set_name(std::string&& value) {
  1121. name_.SetNoArena(
  1122. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1123. // @@protoc_insertion_point(field_set_rvalue:firestore.NamedQuery.name)
  1124. }
  1125. inline void NamedQuery::set_name(const char* value) {
  1126. GOOGLE_DCHECK(value != nullptr);
  1127. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1128. // @@protoc_insertion_point(field_set_char:firestore.NamedQuery.name)
  1129. }
  1130. inline void NamedQuery::set_name(const char* value, size_t size) {
  1131. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1132. ::std::string(reinterpret_cast<const char*>(value), size));
  1133. // @@protoc_insertion_point(field_set_pointer:firestore.NamedQuery.name)
  1134. }
  1135. inline std::string* NamedQuery::_internal_mutable_name() {
  1136. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1137. }
  1138. inline std::string* NamedQuery::release_name() {
  1139. // @@protoc_insertion_point(field_release:firestore.NamedQuery.name)
  1140. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1141. }
  1142. inline void NamedQuery::set_allocated_name(std::string* name) {
  1143. if (name != nullptr) {
  1144. } else {
  1145. }
  1146. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  1147. // @@protoc_insertion_point(field_set_allocated:firestore.NamedQuery.name)
  1148. }
  1149. // .firestore.BundledQuery bundled_query = 2;
  1150. inline bool NamedQuery::_internal_has_bundled_query() const {
  1151. return this != internal_default_instance() && bundled_query_ != nullptr;
  1152. }
  1153. inline bool NamedQuery::has_bundled_query() const {
  1154. return _internal_has_bundled_query();
  1155. }
  1156. inline void NamedQuery::clear_bundled_query() {
  1157. if (GetArenaNoVirtual() == nullptr && bundled_query_ != nullptr) {
  1158. delete bundled_query_;
  1159. }
  1160. bundled_query_ = nullptr;
  1161. }
  1162. inline const ::firestore::BundledQuery& NamedQuery::_internal_bundled_query() const {
  1163. const ::firestore::BundledQuery* p = bundled_query_;
  1164. return p != nullptr ? *p : *reinterpret_cast<const ::firestore::BundledQuery*>(
  1165. &::firestore::_BundledQuery_default_instance_);
  1166. }
  1167. inline const ::firestore::BundledQuery& NamedQuery::bundled_query() const {
  1168. // @@protoc_insertion_point(field_get:firestore.NamedQuery.bundled_query)
  1169. return _internal_bundled_query();
  1170. }
  1171. inline ::firestore::BundledQuery* NamedQuery::release_bundled_query() {
  1172. // @@protoc_insertion_point(field_release:firestore.NamedQuery.bundled_query)
  1173. ::firestore::BundledQuery* temp = bundled_query_;
  1174. bundled_query_ = nullptr;
  1175. return temp;
  1176. }
  1177. inline ::firestore::BundledQuery* NamedQuery::_internal_mutable_bundled_query() {
  1178. if (bundled_query_ == nullptr) {
  1179. auto* p = CreateMaybeMessage<::firestore::BundledQuery>(GetArenaNoVirtual());
  1180. bundled_query_ = p;
  1181. }
  1182. return bundled_query_;
  1183. }
  1184. inline ::firestore::BundledQuery* NamedQuery::mutable_bundled_query() {
  1185. // @@protoc_insertion_point(field_mutable:firestore.NamedQuery.bundled_query)
  1186. return _internal_mutable_bundled_query();
  1187. }
  1188. inline void NamedQuery::set_allocated_bundled_query(::firestore::BundledQuery* bundled_query) {
  1189. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1190. if (message_arena == nullptr) {
  1191. delete bundled_query_;
  1192. }
  1193. if (bundled_query) {
  1194. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
  1195. if (message_arena != submessage_arena) {
  1196. bundled_query = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1197. message_arena, bundled_query, submessage_arena);
  1198. }
  1199. } else {
  1200. }
  1201. bundled_query_ = bundled_query;
  1202. // @@protoc_insertion_point(field_set_allocated:firestore.NamedQuery.bundled_query)
  1203. }
  1204. // .google.protobuf.Timestamp read_time = 3;
  1205. inline bool NamedQuery::_internal_has_read_time() const {
  1206. return this != internal_default_instance() && read_time_ != nullptr;
  1207. }
  1208. inline bool NamedQuery::has_read_time() const {
  1209. return _internal_has_read_time();
  1210. }
  1211. inline const PROTOBUF_NAMESPACE_ID::Timestamp& NamedQuery::_internal_read_time() const {
  1212. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  1213. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  1214. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  1215. }
  1216. inline const PROTOBUF_NAMESPACE_ID::Timestamp& NamedQuery::read_time() const {
  1217. // @@protoc_insertion_point(field_get:firestore.NamedQuery.read_time)
  1218. return _internal_read_time();
  1219. }
  1220. inline PROTOBUF_NAMESPACE_ID::Timestamp* NamedQuery::release_read_time() {
  1221. // @@protoc_insertion_point(field_release:firestore.NamedQuery.read_time)
  1222. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  1223. read_time_ = nullptr;
  1224. return temp;
  1225. }
  1226. inline PROTOBUF_NAMESPACE_ID::Timestamp* NamedQuery::_internal_mutable_read_time() {
  1227. if (read_time_ == nullptr) {
  1228. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  1229. read_time_ = p;
  1230. }
  1231. return read_time_;
  1232. }
  1233. inline PROTOBUF_NAMESPACE_ID::Timestamp* NamedQuery::mutable_read_time() {
  1234. // @@protoc_insertion_point(field_mutable:firestore.NamedQuery.read_time)
  1235. return _internal_mutable_read_time();
  1236. }
  1237. inline void NamedQuery::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  1238. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1239. if (message_arena == nullptr) {
  1240. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  1241. }
  1242. if (read_time) {
  1243. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1244. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  1245. if (message_arena != submessage_arena) {
  1246. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1247. message_arena, read_time, submessage_arena);
  1248. }
  1249. } else {
  1250. }
  1251. read_time_ = read_time;
  1252. // @@protoc_insertion_point(field_set_allocated:firestore.NamedQuery.read_time)
  1253. }
  1254. // -------------------------------------------------------------------
  1255. // BundledDocumentMetadata
  1256. // string name = 1;
  1257. inline void BundledDocumentMetadata::clear_name() {
  1258. name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1259. }
  1260. inline const std::string& BundledDocumentMetadata::name() const {
  1261. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.name)
  1262. return _internal_name();
  1263. }
  1264. inline void BundledDocumentMetadata::set_name(const std::string& value) {
  1265. _internal_set_name(value);
  1266. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.name)
  1267. }
  1268. inline std::string* BundledDocumentMetadata::mutable_name() {
  1269. // @@protoc_insertion_point(field_mutable:firestore.BundledDocumentMetadata.name)
  1270. return _internal_mutable_name();
  1271. }
  1272. inline const std::string& BundledDocumentMetadata::_internal_name() const {
  1273. return name_.GetNoArena();
  1274. }
  1275. inline void BundledDocumentMetadata::_internal_set_name(const std::string& value) {
  1276. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1277. }
  1278. inline void BundledDocumentMetadata::set_name(std::string&& value) {
  1279. name_.SetNoArena(
  1280. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1281. // @@protoc_insertion_point(field_set_rvalue:firestore.BundledDocumentMetadata.name)
  1282. }
  1283. inline void BundledDocumentMetadata::set_name(const char* value) {
  1284. GOOGLE_DCHECK(value != nullptr);
  1285. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1286. // @@protoc_insertion_point(field_set_char:firestore.BundledDocumentMetadata.name)
  1287. }
  1288. inline void BundledDocumentMetadata::set_name(const char* value, size_t size) {
  1289. name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1290. ::std::string(reinterpret_cast<const char*>(value), size));
  1291. // @@protoc_insertion_point(field_set_pointer:firestore.BundledDocumentMetadata.name)
  1292. }
  1293. inline std::string* BundledDocumentMetadata::_internal_mutable_name() {
  1294. return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1295. }
  1296. inline std::string* BundledDocumentMetadata::release_name() {
  1297. // @@protoc_insertion_point(field_release:firestore.BundledDocumentMetadata.name)
  1298. return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1299. }
  1300. inline void BundledDocumentMetadata::set_allocated_name(std::string* name) {
  1301. if (name != nullptr) {
  1302. } else {
  1303. }
  1304. name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
  1305. // @@protoc_insertion_point(field_set_allocated:firestore.BundledDocumentMetadata.name)
  1306. }
  1307. // .google.protobuf.Timestamp read_time = 2;
  1308. inline bool BundledDocumentMetadata::_internal_has_read_time() const {
  1309. return this != internal_default_instance() && read_time_ != nullptr;
  1310. }
  1311. inline bool BundledDocumentMetadata::has_read_time() const {
  1312. return _internal_has_read_time();
  1313. }
  1314. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BundledDocumentMetadata::_internal_read_time() const {
  1315. const PROTOBUF_NAMESPACE_ID::Timestamp* p = read_time_;
  1316. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  1317. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  1318. }
  1319. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BundledDocumentMetadata::read_time() const {
  1320. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.read_time)
  1321. return _internal_read_time();
  1322. }
  1323. inline PROTOBUF_NAMESPACE_ID::Timestamp* BundledDocumentMetadata::release_read_time() {
  1324. // @@protoc_insertion_point(field_release:firestore.BundledDocumentMetadata.read_time)
  1325. PROTOBUF_NAMESPACE_ID::Timestamp* temp = read_time_;
  1326. read_time_ = nullptr;
  1327. return temp;
  1328. }
  1329. inline PROTOBUF_NAMESPACE_ID::Timestamp* BundledDocumentMetadata::_internal_mutable_read_time() {
  1330. if (read_time_ == nullptr) {
  1331. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  1332. read_time_ = p;
  1333. }
  1334. return read_time_;
  1335. }
  1336. inline PROTOBUF_NAMESPACE_ID::Timestamp* BundledDocumentMetadata::mutable_read_time() {
  1337. // @@protoc_insertion_point(field_mutable:firestore.BundledDocumentMetadata.read_time)
  1338. return _internal_mutable_read_time();
  1339. }
  1340. inline void BundledDocumentMetadata::set_allocated_read_time(PROTOBUF_NAMESPACE_ID::Timestamp* read_time) {
  1341. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1342. if (message_arena == nullptr) {
  1343. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time_);
  1344. }
  1345. if (read_time) {
  1346. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1347. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(read_time)->GetArena();
  1348. if (message_arena != submessage_arena) {
  1349. read_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1350. message_arena, read_time, submessage_arena);
  1351. }
  1352. } else {
  1353. }
  1354. read_time_ = read_time;
  1355. // @@protoc_insertion_point(field_set_allocated:firestore.BundledDocumentMetadata.read_time)
  1356. }
  1357. // bool exists = 3;
  1358. inline void BundledDocumentMetadata::clear_exists() {
  1359. exists_ = false;
  1360. }
  1361. inline bool BundledDocumentMetadata::_internal_exists() const {
  1362. return exists_;
  1363. }
  1364. inline bool BundledDocumentMetadata::exists() const {
  1365. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.exists)
  1366. return _internal_exists();
  1367. }
  1368. inline void BundledDocumentMetadata::_internal_set_exists(bool value) {
  1369. exists_ = value;
  1370. }
  1371. inline void BundledDocumentMetadata::set_exists(bool value) {
  1372. _internal_set_exists(value);
  1373. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.exists)
  1374. }
  1375. // repeated string queries = 4;
  1376. inline int BundledDocumentMetadata::_internal_queries_size() const {
  1377. return queries_.size();
  1378. }
  1379. inline int BundledDocumentMetadata::queries_size() const {
  1380. return _internal_queries_size();
  1381. }
  1382. inline void BundledDocumentMetadata::clear_queries() {
  1383. queries_.Clear();
  1384. }
  1385. inline std::string* BundledDocumentMetadata::add_queries() {
  1386. // @@protoc_insertion_point(field_add_mutable:firestore.BundledDocumentMetadata.queries)
  1387. return _internal_add_queries();
  1388. }
  1389. inline const std::string& BundledDocumentMetadata::_internal_queries(int index) const {
  1390. return queries_.Get(index);
  1391. }
  1392. inline const std::string& BundledDocumentMetadata::queries(int index) const {
  1393. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.queries)
  1394. return _internal_queries(index);
  1395. }
  1396. inline std::string* BundledDocumentMetadata::mutable_queries(int index) {
  1397. // @@protoc_insertion_point(field_mutable:firestore.BundledDocumentMetadata.queries)
  1398. return queries_.Mutable(index);
  1399. }
  1400. inline void BundledDocumentMetadata::set_queries(int index, const std::string& value) {
  1401. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.queries)
  1402. queries_.Mutable(index)->assign(value);
  1403. }
  1404. inline void BundledDocumentMetadata::set_queries(int index, std::string&& value) {
  1405. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.queries)
  1406. queries_.Mutable(index)->assign(std::move(value));
  1407. }
  1408. inline void BundledDocumentMetadata::set_queries(int index, const char* value) {
  1409. GOOGLE_DCHECK(value != nullptr);
  1410. queries_.Mutable(index)->assign(value);
  1411. // @@protoc_insertion_point(field_set_char:firestore.BundledDocumentMetadata.queries)
  1412. }
  1413. inline void BundledDocumentMetadata::set_queries(int index, const char* value, size_t size) {
  1414. queries_.Mutable(index)->assign(
  1415. reinterpret_cast<const char*>(value), size);
  1416. // @@protoc_insertion_point(field_set_pointer:firestore.BundledDocumentMetadata.queries)
  1417. }
  1418. inline std::string* BundledDocumentMetadata::_internal_add_queries() {
  1419. return queries_.Add();
  1420. }
  1421. inline void BundledDocumentMetadata::add_queries(const std::string& value) {
  1422. queries_.Add()->assign(value);
  1423. // @@protoc_insertion_point(field_add:firestore.BundledDocumentMetadata.queries)
  1424. }
  1425. inline void BundledDocumentMetadata::add_queries(std::string&& value) {
  1426. queries_.Add(std::move(value));
  1427. // @@protoc_insertion_point(field_add:firestore.BundledDocumentMetadata.queries)
  1428. }
  1429. inline void BundledDocumentMetadata::add_queries(const char* value) {
  1430. GOOGLE_DCHECK(value != nullptr);
  1431. queries_.Add()->assign(value);
  1432. // @@protoc_insertion_point(field_add_char:firestore.BundledDocumentMetadata.queries)
  1433. }
  1434. inline void BundledDocumentMetadata::add_queries(const char* value, size_t size) {
  1435. queries_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1436. // @@protoc_insertion_point(field_add_pointer:firestore.BundledDocumentMetadata.queries)
  1437. }
  1438. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
  1439. BundledDocumentMetadata::queries() const {
  1440. // @@protoc_insertion_point(field_list:firestore.BundledDocumentMetadata.queries)
  1441. return queries_;
  1442. }
  1443. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
  1444. BundledDocumentMetadata::mutable_queries() {
  1445. // @@protoc_insertion_point(field_mutable_list:firestore.BundledDocumentMetadata.queries)
  1446. return &queries_;
  1447. }
  1448. // -------------------------------------------------------------------
  1449. // BundleMetadata
  1450. // string id = 1;
  1451. inline void BundleMetadata::clear_id() {
  1452. id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1453. }
  1454. inline const std::string& BundleMetadata::id() const {
  1455. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.id)
  1456. return _internal_id();
  1457. }
  1458. inline void BundleMetadata::set_id(const std::string& value) {
  1459. _internal_set_id(value);
  1460. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.id)
  1461. }
  1462. inline std::string* BundleMetadata::mutable_id() {
  1463. // @@protoc_insertion_point(field_mutable:firestore.BundleMetadata.id)
  1464. return _internal_mutable_id();
  1465. }
  1466. inline const std::string& BundleMetadata::_internal_id() const {
  1467. return id_.GetNoArena();
  1468. }
  1469. inline void BundleMetadata::_internal_set_id(const std::string& value) {
  1470. id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  1471. }
  1472. inline void BundleMetadata::set_id(std::string&& value) {
  1473. id_.SetNoArena(
  1474. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1475. // @@protoc_insertion_point(field_set_rvalue:firestore.BundleMetadata.id)
  1476. }
  1477. inline void BundleMetadata::set_id(const char* value) {
  1478. GOOGLE_DCHECK(value != nullptr);
  1479. id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  1480. // @@protoc_insertion_point(field_set_char:firestore.BundleMetadata.id)
  1481. }
  1482. inline void BundleMetadata::set_id(const char* value, size_t size) {
  1483. id_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  1484. ::std::string(reinterpret_cast<const char*>(value), size));
  1485. // @@protoc_insertion_point(field_set_pointer:firestore.BundleMetadata.id)
  1486. }
  1487. inline std::string* BundleMetadata::_internal_mutable_id() {
  1488. return id_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1489. }
  1490. inline std::string* BundleMetadata::release_id() {
  1491. // @@protoc_insertion_point(field_release:firestore.BundleMetadata.id)
  1492. return id_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  1493. }
  1494. inline void BundleMetadata::set_allocated_id(std::string* id) {
  1495. if (id != nullptr) {
  1496. } else {
  1497. }
  1498. id_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), id);
  1499. // @@protoc_insertion_point(field_set_allocated:firestore.BundleMetadata.id)
  1500. }
  1501. // .google.protobuf.Timestamp create_time = 2;
  1502. inline bool BundleMetadata::_internal_has_create_time() const {
  1503. return this != internal_default_instance() && create_time_ != nullptr;
  1504. }
  1505. inline bool BundleMetadata::has_create_time() const {
  1506. return _internal_has_create_time();
  1507. }
  1508. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BundleMetadata::_internal_create_time() const {
  1509. const PROTOBUF_NAMESPACE_ID::Timestamp* p = create_time_;
  1510. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  1511. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  1512. }
  1513. inline const PROTOBUF_NAMESPACE_ID::Timestamp& BundleMetadata::create_time() const {
  1514. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.create_time)
  1515. return _internal_create_time();
  1516. }
  1517. inline PROTOBUF_NAMESPACE_ID::Timestamp* BundleMetadata::release_create_time() {
  1518. // @@protoc_insertion_point(field_release:firestore.BundleMetadata.create_time)
  1519. PROTOBUF_NAMESPACE_ID::Timestamp* temp = create_time_;
  1520. create_time_ = nullptr;
  1521. return temp;
  1522. }
  1523. inline PROTOBUF_NAMESPACE_ID::Timestamp* BundleMetadata::_internal_mutable_create_time() {
  1524. if (create_time_ == nullptr) {
  1525. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  1526. create_time_ = p;
  1527. }
  1528. return create_time_;
  1529. }
  1530. inline PROTOBUF_NAMESPACE_ID::Timestamp* BundleMetadata::mutable_create_time() {
  1531. // @@protoc_insertion_point(field_mutable:firestore.BundleMetadata.create_time)
  1532. return _internal_mutable_create_time();
  1533. }
  1534. inline void BundleMetadata::set_allocated_create_time(PROTOBUF_NAMESPACE_ID::Timestamp* create_time) {
  1535. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  1536. if (message_arena == nullptr) {
  1537. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_time_);
  1538. }
  1539. if (create_time) {
  1540. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  1541. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(create_time)->GetArena();
  1542. if (message_arena != submessage_arena) {
  1543. create_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  1544. message_arena, create_time, submessage_arena);
  1545. }
  1546. } else {
  1547. }
  1548. create_time_ = create_time;
  1549. // @@protoc_insertion_point(field_set_allocated:firestore.BundleMetadata.create_time)
  1550. }
  1551. // uint32 version = 3;
  1552. inline void BundleMetadata::clear_version() {
  1553. version_ = 0u;
  1554. }
  1555. inline ::PROTOBUF_NAMESPACE_ID::uint32 BundleMetadata::_internal_version() const {
  1556. return version_;
  1557. }
  1558. inline ::PROTOBUF_NAMESPACE_ID::uint32 BundleMetadata::version() const {
  1559. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.version)
  1560. return _internal_version();
  1561. }
  1562. inline void BundleMetadata::_internal_set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  1563. version_ = value;
  1564. }
  1565. inline void BundleMetadata::set_version(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  1566. _internal_set_version(value);
  1567. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.version)
  1568. }
  1569. // uint32 total_documents = 4;
  1570. inline void BundleMetadata::clear_total_documents() {
  1571. total_documents_ = 0u;
  1572. }
  1573. inline ::PROTOBUF_NAMESPACE_ID::uint32 BundleMetadata::_internal_total_documents() const {
  1574. return total_documents_;
  1575. }
  1576. inline ::PROTOBUF_NAMESPACE_ID::uint32 BundleMetadata::total_documents() const {
  1577. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.total_documents)
  1578. return _internal_total_documents();
  1579. }
  1580. inline void BundleMetadata::_internal_set_total_documents(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  1581. total_documents_ = value;
  1582. }
  1583. inline void BundleMetadata::set_total_documents(::PROTOBUF_NAMESPACE_ID::uint32 value) {
  1584. _internal_set_total_documents(value);
  1585. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.total_documents)
  1586. }
  1587. // uint64 total_bytes = 5;
  1588. inline void BundleMetadata::clear_total_bytes() {
  1589. total_bytes_ = PROTOBUF_ULONGLONG(0);
  1590. }
  1591. inline ::PROTOBUF_NAMESPACE_ID::uint64 BundleMetadata::_internal_total_bytes() const {
  1592. return total_bytes_;
  1593. }
  1594. inline ::PROTOBUF_NAMESPACE_ID::uint64 BundleMetadata::total_bytes() const {
  1595. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.total_bytes)
  1596. return _internal_total_bytes();
  1597. }
  1598. inline void BundleMetadata::_internal_set_total_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value) {
  1599. total_bytes_ = value;
  1600. }
  1601. inline void BundleMetadata::set_total_bytes(::PROTOBUF_NAMESPACE_ID::uint64 value) {
  1602. _internal_set_total_bytes(value);
  1603. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.total_bytes)
  1604. }
  1605. // -------------------------------------------------------------------
  1606. // BundleElement
  1607. // .firestore.BundleMetadata metadata = 1;
  1608. inline bool BundleElement::_internal_has_metadata() const {
  1609. return element_type_case() == kMetadata;
  1610. }
  1611. inline bool BundleElement::has_metadata() const {
  1612. return _internal_has_metadata();
  1613. }
  1614. inline void BundleElement::set_has_metadata() {
  1615. _oneof_case_[0] = kMetadata;
  1616. }
  1617. inline void BundleElement::clear_metadata() {
  1618. if (_internal_has_metadata()) {
  1619. delete element_type_.metadata_;
  1620. clear_has_element_type();
  1621. }
  1622. }
  1623. inline ::firestore::BundleMetadata* BundleElement::release_metadata() {
  1624. // @@protoc_insertion_point(field_release:firestore.BundleElement.metadata)
  1625. if (_internal_has_metadata()) {
  1626. clear_has_element_type();
  1627. ::firestore::BundleMetadata* temp = element_type_.metadata_;
  1628. element_type_.metadata_ = nullptr;
  1629. return temp;
  1630. } else {
  1631. return nullptr;
  1632. }
  1633. }
  1634. inline const ::firestore::BundleMetadata& BundleElement::_internal_metadata() const {
  1635. return _internal_has_metadata()
  1636. ? *element_type_.metadata_
  1637. : *reinterpret_cast< ::firestore::BundleMetadata*>(&::firestore::_BundleMetadata_default_instance_);
  1638. }
  1639. inline const ::firestore::BundleMetadata& BundleElement::metadata() const {
  1640. // @@protoc_insertion_point(field_get:firestore.BundleElement.metadata)
  1641. return _internal_metadata();
  1642. }
  1643. inline ::firestore::BundleMetadata* BundleElement::_internal_mutable_metadata() {
  1644. if (!_internal_has_metadata()) {
  1645. clear_element_type();
  1646. set_has_metadata();
  1647. element_type_.metadata_ = CreateMaybeMessage< ::firestore::BundleMetadata >(
  1648. GetArenaNoVirtual());
  1649. }
  1650. return element_type_.metadata_;
  1651. }
  1652. inline ::firestore::BundleMetadata* BundleElement::mutable_metadata() {
  1653. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.metadata)
  1654. return _internal_mutable_metadata();
  1655. }
  1656. // .firestore.NamedQuery named_query = 2;
  1657. inline bool BundleElement::_internal_has_named_query() const {
  1658. return element_type_case() == kNamedQuery;
  1659. }
  1660. inline bool BundleElement::has_named_query() const {
  1661. return _internal_has_named_query();
  1662. }
  1663. inline void BundleElement::set_has_named_query() {
  1664. _oneof_case_[0] = kNamedQuery;
  1665. }
  1666. inline void BundleElement::clear_named_query() {
  1667. if (_internal_has_named_query()) {
  1668. delete element_type_.named_query_;
  1669. clear_has_element_type();
  1670. }
  1671. }
  1672. inline ::firestore::NamedQuery* BundleElement::release_named_query() {
  1673. // @@protoc_insertion_point(field_release:firestore.BundleElement.named_query)
  1674. if (_internal_has_named_query()) {
  1675. clear_has_element_type();
  1676. ::firestore::NamedQuery* temp = element_type_.named_query_;
  1677. element_type_.named_query_ = nullptr;
  1678. return temp;
  1679. } else {
  1680. return nullptr;
  1681. }
  1682. }
  1683. inline const ::firestore::NamedQuery& BundleElement::_internal_named_query() const {
  1684. return _internal_has_named_query()
  1685. ? *element_type_.named_query_
  1686. : *reinterpret_cast< ::firestore::NamedQuery*>(&::firestore::_NamedQuery_default_instance_);
  1687. }
  1688. inline const ::firestore::NamedQuery& BundleElement::named_query() const {
  1689. // @@protoc_insertion_point(field_get:firestore.BundleElement.named_query)
  1690. return _internal_named_query();
  1691. }
  1692. inline ::firestore::NamedQuery* BundleElement::_internal_mutable_named_query() {
  1693. if (!_internal_has_named_query()) {
  1694. clear_element_type();
  1695. set_has_named_query();
  1696. element_type_.named_query_ = CreateMaybeMessage< ::firestore::NamedQuery >(
  1697. GetArenaNoVirtual());
  1698. }
  1699. return element_type_.named_query_;
  1700. }
  1701. inline ::firestore::NamedQuery* BundleElement::mutable_named_query() {
  1702. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.named_query)
  1703. return _internal_mutable_named_query();
  1704. }
  1705. // .firestore.BundledDocumentMetadata document_metadata = 3;
  1706. inline bool BundleElement::_internal_has_document_metadata() const {
  1707. return element_type_case() == kDocumentMetadata;
  1708. }
  1709. inline bool BundleElement::has_document_metadata() const {
  1710. return _internal_has_document_metadata();
  1711. }
  1712. inline void BundleElement::set_has_document_metadata() {
  1713. _oneof_case_[0] = kDocumentMetadata;
  1714. }
  1715. inline void BundleElement::clear_document_metadata() {
  1716. if (_internal_has_document_metadata()) {
  1717. delete element_type_.document_metadata_;
  1718. clear_has_element_type();
  1719. }
  1720. }
  1721. inline ::firestore::BundledDocumentMetadata* BundleElement::release_document_metadata() {
  1722. // @@protoc_insertion_point(field_release:firestore.BundleElement.document_metadata)
  1723. if (_internal_has_document_metadata()) {
  1724. clear_has_element_type();
  1725. ::firestore::BundledDocumentMetadata* temp = element_type_.document_metadata_;
  1726. element_type_.document_metadata_ = nullptr;
  1727. return temp;
  1728. } else {
  1729. return nullptr;
  1730. }
  1731. }
  1732. inline const ::firestore::BundledDocumentMetadata& BundleElement::_internal_document_metadata() const {
  1733. return _internal_has_document_metadata()
  1734. ? *element_type_.document_metadata_
  1735. : *reinterpret_cast< ::firestore::BundledDocumentMetadata*>(&::firestore::_BundledDocumentMetadata_default_instance_);
  1736. }
  1737. inline const ::firestore::BundledDocumentMetadata& BundleElement::document_metadata() const {
  1738. // @@protoc_insertion_point(field_get:firestore.BundleElement.document_metadata)
  1739. return _internal_document_metadata();
  1740. }
  1741. inline ::firestore::BundledDocumentMetadata* BundleElement::_internal_mutable_document_metadata() {
  1742. if (!_internal_has_document_metadata()) {
  1743. clear_element_type();
  1744. set_has_document_metadata();
  1745. element_type_.document_metadata_ = CreateMaybeMessage< ::firestore::BundledDocumentMetadata >(
  1746. GetArenaNoVirtual());
  1747. }
  1748. return element_type_.document_metadata_;
  1749. }
  1750. inline ::firestore::BundledDocumentMetadata* BundleElement::mutable_document_metadata() {
  1751. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.document_metadata)
  1752. return _internal_mutable_document_metadata();
  1753. }
  1754. // .google.firestore.v1.Document document = 4;
  1755. inline bool BundleElement::_internal_has_document() const {
  1756. return element_type_case() == kDocument;
  1757. }
  1758. inline bool BundleElement::has_document() const {
  1759. return _internal_has_document();
  1760. }
  1761. inline void BundleElement::set_has_document() {
  1762. _oneof_case_[0] = kDocument;
  1763. }
  1764. inline ::google::firestore::v1::Document* BundleElement::release_document() {
  1765. // @@protoc_insertion_point(field_release:firestore.BundleElement.document)
  1766. if (_internal_has_document()) {
  1767. clear_has_element_type();
  1768. ::google::firestore::v1::Document* temp = element_type_.document_;
  1769. element_type_.document_ = nullptr;
  1770. return temp;
  1771. } else {
  1772. return nullptr;
  1773. }
  1774. }
  1775. inline const ::google::firestore::v1::Document& BundleElement::_internal_document() const {
  1776. return _internal_has_document()
  1777. ? *element_type_.document_
  1778. : *reinterpret_cast< ::google::firestore::v1::Document*>(&::google::firestore::v1::_Document_default_instance_);
  1779. }
  1780. inline const ::google::firestore::v1::Document& BundleElement::document() const {
  1781. // @@protoc_insertion_point(field_get:firestore.BundleElement.document)
  1782. return _internal_document();
  1783. }
  1784. inline ::google::firestore::v1::Document* BundleElement::_internal_mutable_document() {
  1785. if (!_internal_has_document()) {
  1786. clear_element_type();
  1787. set_has_document();
  1788. element_type_.document_ = CreateMaybeMessage< ::google::firestore::v1::Document >(
  1789. GetArenaNoVirtual());
  1790. }
  1791. return element_type_.document_;
  1792. }
  1793. inline ::google::firestore::v1::Document* BundleElement::mutable_document() {
  1794. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.document)
  1795. return _internal_mutable_document();
  1796. }
  1797. inline bool BundleElement::has_element_type() const {
  1798. return element_type_case() != ELEMENT_TYPE_NOT_SET;
  1799. }
  1800. inline void BundleElement::clear_has_element_type() {
  1801. _oneof_case_[0] = ELEMENT_TYPE_NOT_SET;
  1802. }
  1803. inline BundleElement::ElementTypeCase BundleElement::element_type_case() const {
  1804. return BundleElement::ElementTypeCase(_oneof_case_[0]);
  1805. }
  1806. #ifdef __GNUC__
  1807. #pragma GCC diagnostic pop
  1808. #endif // __GNUC__
  1809. // -------------------------------------------------------------------
  1810. // -------------------------------------------------------------------
  1811. // -------------------------------------------------------------------
  1812. // -------------------------------------------------------------------
  1813. // @@protoc_insertion_point(namespace_scope)
  1814. } // namespace firestore
  1815. PROTOBUF_NAMESPACE_OPEN
  1816. template <> struct is_proto_enum< ::firestore::BundledQuery_LimitType> : ::std::true_type {};
  1817. template <>
  1818. inline const EnumDescriptor* GetEnumDescriptor< ::firestore::BundledQuery_LimitType>() {
  1819. return ::firestore::BundledQuery_LimitType_descriptor();
  1820. }
  1821. PROTOBUF_NAMESPACE_CLOSE
  1822. // @@protoc_insertion_point(global_scope)
  1823. #include <google/protobuf/port_undef.inc>
  1824. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2fbundle_2eproto