bundle.pb.h 99 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587
  1. /*
  2. * Copyright 2024 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: firestore/bundle.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2fbundle_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2fbundle_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/generated_enum_reflection.h"
  48. #include "google/protobuf/unknown_field_set.h"
  49. #include "google/firestore/v1/document.pb.h"
  50. #include "google/firestore/v1/query.pb.h"
  51. #include "google/protobuf/timestamp.pb.h"
  52. // @@protoc_insertion_point(includes)
  53. // Must be included last.
  54. #include "google/protobuf/port_def.inc"
  55. #define PROTOBUF_INTERNAL_EXPORT_firestore_2fbundle_2eproto
  56. namespace google {
  57. namespace protobuf {
  58. namespace internal {
  59. class AnyMetadata;
  60. } // namespace internal
  61. } // namespace protobuf
  62. } // namespace google
  63. // Internal implementation detail -- do not use these members.
  64. struct TableStruct_firestore_2fbundle_2eproto {
  65. static const ::uint32_t offsets[];
  66. };
  67. extern const ::google::protobuf::internal::DescriptorTable
  68. descriptor_table_firestore_2fbundle_2eproto;
  69. namespace firestore {
  70. class BundleElement;
  71. struct BundleElementDefaultTypeInternal;
  72. extern BundleElementDefaultTypeInternal _BundleElement_default_instance_;
  73. class BundleMetadata;
  74. struct BundleMetadataDefaultTypeInternal;
  75. extern BundleMetadataDefaultTypeInternal _BundleMetadata_default_instance_;
  76. class BundledDocumentMetadata;
  77. struct BundledDocumentMetadataDefaultTypeInternal;
  78. extern BundledDocumentMetadataDefaultTypeInternal _BundledDocumentMetadata_default_instance_;
  79. class BundledQuery;
  80. struct BundledQueryDefaultTypeInternal;
  81. extern BundledQueryDefaultTypeInternal _BundledQuery_default_instance_;
  82. class NamedQuery;
  83. struct NamedQueryDefaultTypeInternal;
  84. extern NamedQueryDefaultTypeInternal _NamedQuery_default_instance_;
  85. } // namespace firestore
  86. namespace google {
  87. namespace protobuf {
  88. } // namespace protobuf
  89. } // namespace google
  90. namespace firestore {
  91. enum BundledQuery_LimitType : int {
  92. BundledQuery_LimitType_FIRST = 0,
  93. BundledQuery_LimitType_LAST = 1,
  94. BundledQuery_LimitType_BundledQuery_LimitType_INT_MIN_SENTINEL_DO_NOT_USE_ =
  95. std::numeric_limits<::int32_t>::min(),
  96. BundledQuery_LimitType_BundledQuery_LimitType_INT_MAX_SENTINEL_DO_NOT_USE_ =
  97. std::numeric_limits<::int32_t>::max(),
  98. };
  99. bool BundledQuery_LimitType_IsValid(int value);
  100. extern const uint32_t BundledQuery_LimitType_internal_data_[];
  101. constexpr BundledQuery_LimitType BundledQuery_LimitType_LimitType_MIN = static_cast<BundledQuery_LimitType>(0);
  102. constexpr BundledQuery_LimitType BundledQuery_LimitType_LimitType_MAX = static_cast<BundledQuery_LimitType>(1);
  103. constexpr int BundledQuery_LimitType_LimitType_ARRAYSIZE = 1 + 1;
  104. const ::google::protobuf::EnumDescriptor*
  105. BundledQuery_LimitType_descriptor();
  106. template <typename T>
  107. const std::string& BundledQuery_LimitType_Name(T value) {
  108. static_assert(std::is_same<T, BundledQuery_LimitType>::value ||
  109. std::is_integral<T>::value,
  110. "Incorrect type passed to LimitType_Name().");
  111. return BundledQuery_LimitType_Name(static_cast<BundledQuery_LimitType>(value));
  112. }
  113. template <>
  114. inline const std::string& BundledQuery_LimitType_Name(BundledQuery_LimitType value) {
  115. return ::google::protobuf::internal::NameOfDenseEnum<BundledQuery_LimitType_descriptor,
  116. 0, 1>(
  117. static_cast<int>(value));
  118. }
  119. inline bool BundledQuery_LimitType_Parse(absl::string_view name, BundledQuery_LimitType* value) {
  120. return ::google::protobuf::internal::ParseNamedEnum<BundledQuery_LimitType>(
  121. BundledQuery_LimitType_descriptor(), name, value);
  122. }
  123. // ===================================================================
  124. // -------------------------------------------------------------------
  125. class BundledDocumentMetadata final :
  126. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.BundledDocumentMetadata) */ {
  127. public:
  128. inline BundledDocumentMetadata() : BundledDocumentMetadata(nullptr) {}
  129. ~BundledDocumentMetadata() override;
  130. template<typename = void>
  131. explicit PROTOBUF_CONSTEXPR BundledDocumentMetadata(::google::protobuf::internal::ConstantInitialized);
  132. inline BundledDocumentMetadata(const BundledDocumentMetadata& from)
  133. : BundledDocumentMetadata(nullptr, from) {}
  134. BundledDocumentMetadata(BundledDocumentMetadata&& from) noexcept
  135. : BundledDocumentMetadata() {
  136. *this = ::std::move(from);
  137. }
  138. inline BundledDocumentMetadata& operator=(const BundledDocumentMetadata& from) {
  139. CopyFrom(from);
  140. return *this;
  141. }
  142. inline BundledDocumentMetadata& operator=(BundledDocumentMetadata&& from) noexcept {
  143. if (this == &from) return *this;
  144. if (GetArena() == from.GetArena()
  145. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  146. && GetArena() != nullptr
  147. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  148. ) {
  149. InternalSwap(&from);
  150. } else {
  151. CopyFrom(from);
  152. }
  153. return *this;
  154. }
  155. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  156. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  157. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  158. }
  159. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  160. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  161. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  162. }
  163. static const ::google::protobuf::Descriptor* descriptor() {
  164. return GetDescriptor();
  165. }
  166. static const ::google::protobuf::Descriptor* GetDescriptor() {
  167. return default_instance().GetMetadata().descriptor;
  168. }
  169. static const ::google::protobuf::Reflection* GetReflection() {
  170. return default_instance().GetMetadata().reflection;
  171. }
  172. static const BundledDocumentMetadata& default_instance() {
  173. return *internal_default_instance();
  174. }
  175. static inline const BundledDocumentMetadata* internal_default_instance() {
  176. return reinterpret_cast<const BundledDocumentMetadata*>(
  177. &_BundledDocumentMetadata_default_instance_);
  178. }
  179. static constexpr int kIndexInFileMessages =
  180. 2;
  181. friend void swap(BundledDocumentMetadata& a, BundledDocumentMetadata& b) {
  182. a.Swap(&b);
  183. }
  184. inline void Swap(BundledDocumentMetadata* other) {
  185. if (other == this) return;
  186. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  187. if (GetArena() != nullptr &&
  188. GetArena() == other->GetArena()) {
  189. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  190. if (GetArena() == other->GetArena()) {
  191. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  192. InternalSwap(other);
  193. } else {
  194. ::google::protobuf::internal::GenericSwap(this, other);
  195. }
  196. }
  197. void UnsafeArenaSwap(BundledDocumentMetadata* other) {
  198. if (other == this) return;
  199. ABSL_DCHECK(GetArena() == other->GetArena());
  200. InternalSwap(other);
  201. }
  202. // implements Message ----------------------------------------------
  203. BundledDocumentMetadata* New(::google::protobuf::Arena* arena = nullptr) const final {
  204. return CreateMaybeMessage<BundledDocumentMetadata>(arena);
  205. }
  206. using ::google::protobuf::Message::CopyFrom;
  207. void CopyFrom(const BundledDocumentMetadata& from);
  208. using ::google::protobuf::Message::MergeFrom;
  209. void MergeFrom( const BundledDocumentMetadata& from) {
  210. BundledDocumentMetadata::MergeImpl(*this, from);
  211. }
  212. private:
  213. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  214. public:
  215. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  216. bool IsInitialized() const final;
  217. ::size_t ByteSizeLong() const final;
  218. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  219. ::uint8_t* _InternalSerialize(
  220. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  221. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  222. private:
  223. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  224. void SharedCtor(::google::protobuf::Arena* arena);
  225. void SharedDtor();
  226. void InternalSwap(BundledDocumentMetadata* other);
  227. private:
  228. friend class ::google::protobuf::internal::AnyMetadata;
  229. static ::absl::string_view FullMessageName() {
  230. return "firestore.BundledDocumentMetadata";
  231. }
  232. protected:
  233. explicit BundledDocumentMetadata(::google::protobuf::Arena* arena);
  234. BundledDocumentMetadata(::google::protobuf::Arena* arena, const BundledDocumentMetadata& from);
  235. public:
  236. static const ClassData _class_data_;
  237. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  238. ::google::protobuf::Metadata GetMetadata() const final;
  239. // nested types ----------------------------------------------------
  240. // accessors -------------------------------------------------------
  241. enum : int {
  242. kQueriesFieldNumber = 4,
  243. kNameFieldNumber = 1,
  244. kReadTimeFieldNumber = 2,
  245. kExistsFieldNumber = 3,
  246. };
  247. // repeated string queries = 4;
  248. int queries_size() const;
  249. private:
  250. int _internal_queries_size() const;
  251. public:
  252. void clear_queries() ;
  253. const std::string& queries(int index) const;
  254. std::string* mutable_queries(int index);
  255. void set_queries(int index, const std::string& value);
  256. void set_queries(int index, std::string&& value);
  257. void set_queries(int index, const char* value);
  258. void set_queries(int index, const char* value, std::size_t size);
  259. void set_queries(int index, absl::string_view value);
  260. std::string* add_queries();
  261. void add_queries(const std::string& value);
  262. void add_queries(std::string&& value);
  263. void add_queries(const char* value);
  264. void add_queries(const char* value, std::size_t size);
  265. void add_queries(absl::string_view value);
  266. const ::google::protobuf::RepeatedPtrField<std::string>& queries() const;
  267. ::google::protobuf::RepeatedPtrField<std::string>* mutable_queries();
  268. private:
  269. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_queries() const;
  270. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_queries();
  271. public:
  272. // string name = 1;
  273. void clear_name() ;
  274. const std::string& name() const;
  275. template <typename Arg_ = const std::string&, typename... Args_>
  276. void set_name(Arg_&& arg, Args_... args);
  277. std::string* mutable_name();
  278. PROTOBUF_NODISCARD std::string* release_name();
  279. void set_allocated_name(std::string* value);
  280. private:
  281. const std::string& _internal_name() const;
  282. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  283. const std::string& value);
  284. std::string* _internal_mutable_name();
  285. public:
  286. // .google.protobuf.Timestamp read_time = 2;
  287. bool has_read_time() const;
  288. void clear_read_time() ;
  289. const ::google::protobuf::Timestamp& read_time() const;
  290. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  291. ::google::protobuf::Timestamp* mutable_read_time();
  292. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  293. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  294. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  295. private:
  296. const ::google::protobuf::Timestamp& _internal_read_time() const;
  297. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  298. public:
  299. // bool exists = 3;
  300. void clear_exists() ;
  301. bool exists() const;
  302. void set_exists(bool value);
  303. private:
  304. bool _internal_exists() const;
  305. void _internal_set_exists(bool value);
  306. public:
  307. // @@protoc_insertion_point(class_scope:firestore.BundledDocumentMetadata)
  308. private:
  309. class _Internal;
  310. friend class ::google::protobuf::internal::TcParser;
  311. static const ::google::protobuf::internal::TcParseTable<
  312. 2, 4, 1,
  313. 53, 2>
  314. _table_;
  315. friend class ::google::protobuf::MessageLite;
  316. friend class ::google::protobuf::Arena;
  317. template <typename T>
  318. friend class ::google::protobuf::Arena::InternalHelper;
  319. using InternalArenaConstructable_ = void;
  320. using DestructorSkippable_ = void;
  321. struct Impl_ {
  322. inline explicit constexpr Impl_(
  323. ::google::protobuf::internal::ConstantInitialized) noexcept;
  324. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  325. ::google::protobuf::Arena* arena);
  326. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  327. ::google::protobuf::Arena* arena, const Impl_& from);
  328. ::google::protobuf::internal::HasBits<1> _has_bits_;
  329. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  330. ::google::protobuf::RepeatedPtrField<std::string> queries_;
  331. ::google::protobuf::internal::ArenaStringPtr name_;
  332. ::google::protobuf::Timestamp* read_time_;
  333. bool exists_;
  334. PROTOBUF_TSAN_DECLARE_MEMBER
  335. };
  336. union { Impl_ _impl_; };
  337. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  338. };// -------------------------------------------------------------------
  339. class BundleMetadata final :
  340. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.BundleMetadata) */ {
  341. public:
  342. inline BundleMetadata() : BundleMetadata(nullptr) {}
  343. ~BundleMetadata() override;
  344. template<typename = void>
  345. explicit PROTOBUF_CONSTEXPR BundleMetadata(::google::protobuf::internal::ConstantInitialized);
  346. inline BundleMetadata(const BundleMetadata& from)
  347. : BundleMetadata(nullptr, from) {}
  348. BundleMetadata(BundleMetadata&& from) noexcept
  349. : BundleMetadata() {
  350. *this = ::std::move(from);
  351. }
  352. inline BundleMetadata& operator=(const BundleMetadata& from) {
  353. CopyFrom(from);
  354. return *this;
  355. }
  356. inline BundleMetadata& operator=(BundleMetadata&& from) noexcept {
  357. if (this == &from) return *this;
  358. if (GetArena() == from.GetArena()
  359. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  360. && GetArena() != nullptr
  361. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  362. ) {
  363. InternalSwap(&from);
  364. } else {
  365. CopyFrom(from);
  366. }
  367. return *this;
  368. }
  369. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  370. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  371. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  372. }
  373. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  374. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  375. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  376. }
  377. static const ::google::protobuf::Descriptor* descriptor() {
  378. return GetDescriptor();
  379. }
  380. static const ::google::protobuf::Descriptor* GetDescriptor() {
  381. return default_instance().GetMetadata().descriptor;
  382. }
  383. static const ::google::protobuf::Reflection* GetReflection() {
  384. return default_instance().GetMetadata().reflection;
  385. }
  386. static const BundleMetadata& default_instance() {
  387. return *internal_default_instance();
  388. }
  389. static inline const BundleMetadata* internal_default_instance() {
  390. return reinterpret_cast<const BundleMetadata*>(
  391. &_BundleMetadata_default_instance_);
  392. }
  393. static constexpr int kIndexInFileMessages =
  394. 3;
  395. friend void swap(BundleMetadata& a, BundleMetadata& b) {
  396. a.Swap(&b);
  397. }
  398. inline void Swap(BundleMetadata* other) {
  399. if (other == this) return;
  400. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  401. if (GetArena() != nullptr &&
  402. GetArena() == other->GetArena()) {
  403. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  404. if (GetArena() == other->GetArena()) {
  405. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  406. InternalSwap(other);
  407. } else {
  408. ::google::protobuf::internal::GenericSwap(this, other);
  409. }
  410. }
  411. void UnsafeArenaSwap(BundleMetadata* other) {
  412. if (other == this) return;
  413. ABSL_DCHECK(GetArena() == other->GetArena());
  414. InternalSwap(other);
  415. }
  416. // implements Message ----------------------------------------------
  417. BundleMetadata* New(::google::protobuf::Arena* arena = nullptr) const final {
  418. return CreateMaybeMessage<BundleMetadata>(arena);
  419. }
  420. using ::google::protobuf::Message::CopyFrom;
  421. void CopyFrom(const BundleMetadata& from);
  422. using ::google::protobuf::Message::MergeFrom;
  423. void MergeFrom( const BundleMetadata& from) {
  424. BundleMetadata::MergeImpl(*this, from);
  425. }
  426. private:
  427. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  428. public:
  429. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  430. bool IsInitialized() const final;
  431. ::size_t ByteSizeLong() const final;
  432. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  433. ::uint8_t* _InternalSerialize(
  434. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  435. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  436. private:
  437. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  438. void SharedCtor(::google::protobuf::Arena* arena);
  439. void SharedDtor();
  440. void InternalSwap(BundleMetadata* other);
  441. private:
  442. friend class ::google::protobuf::internal::AnyMetadata;
  443. static ::absl::string_view FullMessageName() {
  444. return "firestore.BundleMetadata";
  445. }
  446. protected:
  447. explicit BundleMetadata(::google::protobuf::Arena* arena);
  448. BundleMetadata(::google::protobuf::Arena* arena, const BundleMetadata& from);
  449. public:
  450. static const ClassData _class_data_;
  451. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  452. ::google::protobuf::Metadata GetMetadata() const final;
  453. // nested types ----------------------------------------------------
  454. // accessors -------------------------------------------------------
  455. enum : int {
  456. kIdFieldNumber = 1,
  457. kCreateTimeFieldNumber = 2,
  458. kVersionFieldNumber = 3,
  459. kTotalDocumentsFieldNumber = 4,
  460. kTotalBytesFieldNumber = 5,
  461. };
  462. // string id = 1;
  463. void clear_id() ;
  464. const std::string& id() const;
  465. template <typename Arg_ = const std::string&, typename... Args_>
  466. void set_id(Arg_&& arg, Args_... args);
  467. std::string* mutable_id();
  468. PROTOBUF_NODISCARD std::string* release_id();
  469. void set_allocated_id(std::string* value);
  470. private:
  471. const std::string& _internal_id() const;
  472. inline PROTOBUF_ALWAYS_INLINE void _internal_set_id(
  473. const std::string& value);
  474. std::string* _internal_mutable_id();
  475. public:
  476. // .google.protobuf.Timestamp create_time = 2;
  477. bool has_create_time() const;
  478. void clear_create_time() ;
  479. const ::google::protobuf::Timestamp& create_time() const;
  480. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_create_time();
  481. ::google::protobuf::Timestamp* mutable_create_time();
  482. void set_allocated_create_time(::google::protobuf::Timestamp* value);
  483. void unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value);
  484. ::google::protobuf::Timestamp* unsafe_arena_release_create_time();
  485. private:
  486. const ::google::protobuf::Timestamp& _internal_create_time() const;
  487. ::google::protobuf::Timestamp* _internal_mutable_create_time();
  488. public:
  489. // uint32 version = 3;
  490. void clear_version() ;
  491. ::uint32_t version() const;
  492. void set_version(::uint32_t value);
  493. private:
  494. ::uint32_t _internal_version() const;
  495. void _internal_set_version(::uint32_t value);
  496. public:
  497. // uint32 total_documents = 4;
  498. void clear_total_documents() ;
  499. ::uint32_t total_documents() const;
  500. void set_total_documents(::uint32_t value);
  501. private:
  502. ::uint32_t _internal_total_documents() const;
  503. void _internal_set_total_documents(::uint32_t value);
  504. public:
  505. // uint64 total_bytes = 5;
  506. void clear_total_bytes() ;
  507. ::uint64_t total_bytes() const;
  508. void set_total_bytes(::uint64_t value);
  509. private:
  510. ::uint64_t _internal_total_bytes() const;
  511. void _internal_set_total_bytes(::uint64_t value);
  512. public:
  513. // @@protoc_insertion_point(class_scope:firestore.BundleMetadata)
  514. private:
  515. class _Internal;
  516. friend class ::google::protobuf::internal::TcParser;
  517. static const ::google::protobuf::internal::TcParseTable<
  518. 3, 5, 1,
  519. 35, 2>
  520. _table_;
  521. friend class ::google::protobuf::MessageLite;
  522. friend class ::google::protobuf::Arena;
  523. template <typename T>
  524. friend class ::google::protobuf::Arena::InternalHelper;
  525. using InternalArenaConstructable_ = void;
  526. using DestructorSkippable_ = void;
  527. struct Impl_ {
  528. inline explicit constexpr Impl_(
  529. ::google::protobuf::internal::ConstantInitialized) noexcept;
  530. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  531. ::google::protobuf::Arena* arena);
  532. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  533. ::google::protobuf::Arena* arena, const Impl_& from);
  534. ::google::protobuf::internal::HasBits<1> _has_bits_;
  535. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  536. ::google::protobuf::internal::ArenaStringPtr id_;
  537. ::google::protobuf::Timestamp* create_time_;
  538. ::uint32_t version_;
  539. ::uint32_t total_documents_;
  540. ::uint64_t total_bytes_;
  541. PROTOBUF_TSAN_DECLARE_MEMBER
  542. };
  543. union { Impl_ _impl_; };
  544. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  545. };// -------------------------------------------------------------------
  546. class BundledQuery final :
  547. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.BundledQuery) */ {
  548. public:
  549. inline BundledQuery() : BundledQuery(nullptr) {}
  550. ~BundledQuery() override;
  551. template<typename = void>
  552. explicit PROTOBUF_CONSTEXPR BundledQuery(::google::protobuf::internal::ConstantInitialized);
  553. inline BundledQuery(const BundledQuery& from)
  554. : BundledQuery(nullptr, from) {}
  555. BundledQuery(BundledQuery&& from) noexcept
  556. : BundledQuery() {
  557. *this = ::std::move(from);
  558. }
  559. inline BundledQuery& operator=(const BundledQuery& from) {
  560. CopyFrom(from);
  561. return *this;
  562. }
  563. inline BundledQuery& operator=(BundledQuery&& from) noexcept {
  564. if (this == &from) return *this;
  565. if (GetArena() == from.GetArena()
  566. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  567. && GetArena() != nullptr
  568. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  569. ) {
  570. InternalSwap(&from);
  571. } else {
  572. CopyFrom(from);
  573. }
  574. return *this;
  575. }
  576. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  577. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  578. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  579. }
  580. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  581. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  582. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  583. }
  584. static const ::google::protobuf::Descriptor* descriptor() {
  585. return GetDescriptor();
  586. }
  587. static const ::google::protobuf::Descriptor* GetDescriptor() {
  588. return default_instance().GetMetadata().descriptor;
  589. }
  590. static const ::google::protobuf::Reflection* GetReflection() {
  591. return default_instance().GetMetadata().reflection;
  592. }
  593. static const BundledQuery& default_instance() {
  594. return *internal_default_instance();
  595. }
  596. enum QueryTypeCase {
  597. kStructuredQuery = 2,
  598. QUERY_TYPE_NOT_SET = 0,
  599. };
  600. static inline const BundledQuery* internal_default_instance() {
  601. return reinterpret_cast<const BundledQuery*>(
  602. &_BundledQuery_default_instance_);
  603. }
  604. static constexpr int kIndexInFileMessages =
  605. 0;
  606. friend void swap(BundledQuery& a, BundledQuery& b) {
  607. a.Swap(&b);
  608. }
  609. inline void Swap(BundledQuery* other) {
  610. if (other == this) return;
  611. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  612. if (GetArena() != nullptr &&
  613. GetArena() == other->GetArena()) {
  614. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  615. if (GetArena() == other->GetArena()) {
  616. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  617. InternalSwap(other);
  618. } else {
  619. ::google::protobuf::internal::GenericSwap(this, other);
  620. }
  621. }
  622. void UnsafeArenaSwap(BundledQuery* other) {
  623. if (other == this) return;
  624. ABSL_DCHECK(GetArena() == other->GetArena());
  625. InternalSwap(other);
  626. }
  627. // implements Message ----------------------------------------------
  628. BundledQuery* New(::google::protobuf::Arena* arena = nullptr) const final {
  629. return CreateMaybeMessage<BundledQuery>(arena);
  630. }
  631. using ::google::protobuf::Message::CopyFrom;
  632. void CopyFrom(const BundledQuery& from);
  633. using ::google::protobuf::Message::MergeFrom;
  634. void MergeFrom( const BundledQuery& from) {
  635. BundledQuery::MergeImpl(*this, from);
  636. }
  637. private:
  638. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  639. public:
  640. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  641. bool IsInitialized() const final;
  642. ::size_t ByteSizeLong() const final;
  643. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  644. ::uint8_t* _InternalSerialize(
  645. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  646. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  647. private:
  648. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  649. void SharedCtor(::google::protobuf::Arena* arena);
  650. void SharedDtor();
  651. void InternalSwap(BundledQuery* other);
  652. private:
  653. friend class ::google::protobuf::internal::AnyMetadata;
  654. static ::absl::string_view FullMessageName() {
  655. return "firestore.BundledQuery";
  656. }
  657. protected:
  658. explicit BundledQuery(::google::protobuf::Arena* arena);
  659. BundledQuery(::google::protobuf::Arena* arena, const BundledQuery& from);
  660. public:
  661. static const ClassData _class_data_;
  662. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  663. ::google::protobuf::Metadata GetMetadata() const final;
  664. // nested types ----------------------------------------------------
  665. using LimitType = BundledQuery_LimitType;
  666. static constexpr LimitType FIRST = BundledQuery_LimitType_FIRST;
  667. static constexpr LimitType LAST = BundledQuery_LimitType_LAST;
  668. static inline bool LimitType_IsValid(int value) {
  669. return BundledQuery_LimitType_IsValid(value);
  670. }
  671. static constexpr LimitType LimitType_MIN = BundledQuery_LimitType_LimitType_MIN;
  672. static constexpr LimitType LimitType_MAX = BundledQuery_LimitType_LimitType_MAX;
  673. static constexpr int LimitType_ARRAYSIZE = BundledQuery_LimitType_LimitType_ARRAYSIZE;
  674. static inline const ::google::protobuf::EnumDescriptor* LimitType_descriptor() {
  675. return BundledQuery_LimitType_descriptor();
  676. }
  677. template <typename T>
  678. static inline const std::string& LimitType_Name(T value) {
  679. return BundledQuery_LimitType_Name(value);
  680. }
  681. static inline bool LimitType_Parse(absl::string_view name, LimitType* value) {
  682. return BundledQuery_LimitType_Parse(name, value);
  683. }
  684. // accessors -------------------------------------------------------
  685. enum : int {
  686. kParentFieldNumber = 1,
  687. kLimitTypeFieldNumber = 3,
  688. kStructuredQueryFieldNumber = 2,
  689. };
  690. // string parent = 1;
  691. void clear_parent() ;
  692. const std::string& parent() const;
  693. template <typename Arg_ = const std::string&, typename... Args_>
  694. void set_parent(Arg_&& arg, Args_... args);
  695. std::string* mutable_parent();
  696. PROTOBUF_NODISCARD std::string* release_parent();
  697. void set_allocated_parent(std::string* value);
  698. private:
  699. const std::string& _internal_parent() const;
  700. inline PROTOBUF_ALWAYS_INLINE void _internal_set_parent(
  701. const std::string& value);
  702. std::string* _internal_mutable_parent();
  703. public:
  704. // .firestore.BundledQuery.LimitType limit_type = 3;
  705. void clear_limit_type() ;
  706. ::firestore::BundledQuery_LimitType limit_type() const;
  707. void set_limit_type(::firestore::BundledQuery_LimitType value);
  708. private:
  709. ::firestore::BundledQuery_LimitType _internal_limit_type() const;
  710. void _internal_set_limit_type(::firestore::BundledQuery_LimitType value);
  711. public:
  712. // .google.firestore.v1.StructuredQuery structured_query = 2;
  713. bool has_structured_query() const;
  714. private:
  715. bool _internal_has_structured_query() const;
  716. public:
  717. void clear_structured_query() ;
  718. const ::google::firestore::v1::StructuredQuery& structured_query() const;
  719. PROTOBUF_NODISCARD ::google::firestore::v1::StructuredQuery* release_structured_query();
  720. ::google::firestore::v1::StructuredQuery* mutable_structured_query();
  721. void set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  722. void unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value);
  723. ::google::firestore::v1::StructuredQuery* unsafe_arena_release_structured_query();
  724. private:
  725. const ::google::firestore::v1::StructuredQuery& _internal_structured_query() const;
  726. ::google::firestore::v1::StructuredQuery* _internal_mutable_structured_query();
  727. public:
  728. void clear_query_type();
  729. QueryTypeCase query_type_case() const;
  730. // @@protoc_insertion_point(class_scope:firestore.BundledQuery)
  731. private:
  732. class _Internal;
  733. void set_has_structured_query();
  734. inline bool has_query_type() const;
  735. inline void clear_has_query_type();
  736. friend class ::google::protobuf::internal::TcParser;
  737. static const ::google::protobuf::internal::TcParseTable<
  738. 2, 3, 1,
  739. 37, 2>
  740. _table_;
  741. friend class ::google::protobuf::MessageLite;
  742. friend class ::google::protobuf::Arena;
  743. template <typename T>
  744. friend class ::google::protobuf::Arena::InternalHelper;
  745. using InternalArenaConstructable_ = void;
  746. using DestructorSkippable_ = void;
  747. struct Impl_ {
  748. inline explicit constexpr Impl_(
  749. ::google::protobuf::internal::ConstantInitialized) noexcept;
  750. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  751. ::google::protobuf::Arena* arena);
  752. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  753. ::google::protobuf::Arena* arena, const Impl_& from);
  754. ::google::protobuf::internal::ArenaStringPtr parent_;
  755. int limit_type_;
  756. union QueryTypeUnion {
  757. constexpr QueryTypeUnion() : _constinit_{} {}
  758. ::google::protobuf::internal::ConstantInitialized _constinit_;
  759. ::google::firestore::v1::StructuredQuery* structured_query_;
  760. } query_type_;
  761. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  762. ::uint32_t _oneof_case_[1];
  763. PROTOBUF_TSAN_DECLARE_MEMBER
  764. };
  765. union { Impl_ _impl_; };
  766. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  767. };// -------------------------------------------------------------------
  768. class NamedQuery final :
  769. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.NamedQuery) */ {
  770. public:
  771. inline NamedQuery() : NamedQuery(nullptr) {}
  772. ~NamedQuery() override;
  773. template<typename = void>
  774. explicit PROTOBUF_CONSTEXPR NamedQuery(::google::protobuf::internal::ConstantInitialized);
  775. inline NamedQuery(const NamedQuery& from)
  776. : NamedQuery(nullptr, from) {}
  777. NamedQuery(NamedQuery&& from) noexcept
  778. : NamedQuery() {
  779. *this = ::std::move(from);
  780. }
  781. inline NamedQuery& operator=(const NamedQuery& from) {
  782. CopyFrom(from);
  783. return *this;
  784. }
  785. inline NamedQuery& operator=(NamedQuery&& from) noexcept {
  786. if (this == &from) return *this;
  787. if (GetArena() == from.GetArena()
  788. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  789. && GetArena() != nullptr
  790. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  791. ) {
  792. InternalSwap(&from);
  793. } else {
  794. CopyFrom(from);
  795. }
  796. return *this;
  797. }
  798. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  799. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  800. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  801. }
  802. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  803. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  804. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  805. }
  806. static const ::google::protobuf::Descriptor* descriptor() {
  807. return GetDescriptor();
  808. }
  809. static const ::google::protobuf::Descriptor* GetDescriptor() {
  810. return default_instance().GetMetadata().descriptor;
  811. }
  812. static const ::google::protobuf::Reflection* GetReflection() {
  813. return default_instance().GetMetadata().reflection;
  814. }
  815. static const NamedQuery& default_instance() {
  816. return *internal_default_instance();
  817. }
  818. static inline const NamedQuery* internal_default_instance() {
  819. return reinterpret_cast<const NamedQuery*>(
  820. &_NamedQuery_default_instance_);
  821. }
  822. static constexpr int kIndexInFileMessages =
  823. 1;
  824. friend void swap(NamedQuery& a, NamedQuery& b) {
  825. a.Swap(&b);
  826. }
  827. inline void Swap(NamedQuery* other) {
  828. if (other == this) return;
  829. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  830. if (GetArena() != nullptr &&
  831. GetArena() == other->GetArena()) {
  832. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  833. if (GetArena() == other->GetArena()) {
  834. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  835. InternalSwap(other);
  836. } else {
  837. ::google::protobuf::internal::GenericSwap(this, other);
  838. }
  839. }
  840. void UnsafeArenaSwap(NamedQuery* other) {
  841. if (other == this) return;
  842. ABSL_DCHECK(GetArena() == other->GetArena());
  843. InternalSwap(other);
  844. }
  845. // implements Message ----------------------------------------------
  846. NamedQuery* New(::google::protobuf::Arena* arena = nullptr) const final {
  847. return CreateMaybeMessage<NamedQuery>(arena);
  848. }
  849. using ::google::protobuf::Message::CopyFrom;
  850. void CopyFrom(const NamedQuery& from);
  851. using ::google::protobuf::Message::MergeFrom;
  852. void MergeFrom( const NamedQuery& from) {
  853. NamedQuery::MergeImpl(*this, from);
  854. }
  855. private:
  856. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  857. public:
  858. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  859. bool IsInitialized() const final;
  860. ::size_t ByteSizeLong() const final;
  861. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  862. ::uint8_t* _InternalSerialize(
  863. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  864. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  865. private:
  866. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  867. void SharedCtor(::google::protobuf::Arena* arena);
  868. void SharedDtor();
  869. void InternalSwap(NamedQuery* other);
  870. private:
  871. friend class ::google::protobuf::internal::AnyMetadata;
  872. static ::absl::string_view FullMessageName() {
  873. return "firestore.NamedQuery";
  874. }
  875. protected:
  876. explicit NamedQuery(::google::protobuf::Arena* arena);
  877. NamedQuery(::google::protobuf::Arena* arena, const NamedQuery& from);
  878. public:
  879. static const ClassData _class_data_;
  880. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  881. ::google::protobuf::Metadata GetMetadata() const final;
  882. // nested types ----------------------------------------------------
  883. // accessors -------------------------------------------------------
  884. enum : int {
  885. kNameFieldNumber = 1,
  886. kBundledQueryFieldNumber = 2,
  887. kReadTimeFieldNumber = 3,
  888. };
  889. // string name = 1;
  890. void clear_name() ;
  891. const std::string& name() const;
  892. template <typename Arg_ = const std::string&, typename... Args_>
  893. void set_name(Arg_&& arg, Args_... args);
  894. std::string* mutable_name();
  895. PROTOBUF_NODISCARD std::string* release_name();
  896. void set_allocated_name(std::string* value);
  897. private:
  898. const std::string& _internal_name() const;
  899. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  900. const std::string& value);
  901. std::string* _internal_mutable_name();
  902. public:
  903. // .firestore.BundledQuery bundled_query = 2;
  904. bool has_bundled_query() const;
  905. void clear_bundled_query() ;
  906. const ::firestore::BundledQuery& bundled_query() const;
  907. PROTOBUF_NODISCARD ::firestore::BundledQuery* release_bundled_query();
  908. ::firestore::BundledQuery* mutable_bundled_query();
  909. void set_allocated_bundled_query(::firestore::BundledQuery* value);
  910. void unsafe_arena_set_allocated_bundled_query(::firestore::BundledQuery* value);
  911. ::firestore::BundledQuery* unsafe_arena_release_bundled_query();
  912. private:
  913. const ::firestore::BundledQuery& _internal_bundled_query() const;
  914. ::firestore::BundledQuery* _internal_mutable_bundled_query();
  915. public:
  916. // .google.protobuf.Timestamp read_time = 3;
  917. bool has_read_time() const;
  918. void clear_read_time() ;
  919. const ::google::protobuf::Timestamp& read_time() const;
  920. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_read_time();
  921. ::google::protobuf::Timestamp* mutable_read_time();
  922. void set_allocated_read_time(::google::protobuf::Timestamp* value);
  923. void unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value);
  924. ::google::protobuf::Timestamp* unsafe_arena_release_read_time();
  925. private:
  926. const ::google::protobuf::Timestamp& _internal_read_time() const;
  927. ::google::protobuf::Timestamp* _internal_mutable_read_time();
  928. public:
  929. // @@protoc_insertion_point(class_scope:firestore.NamedQuery)
  930. private:
  931. class _Internal;
  932. friend class ::google::protobuf::internal::TcParser;
  933. static const ::google::protobuf::internal::TcParseTable<
  934. 2, 3, 2,
  935. 33, 2>
  936. _table_;
  937. friend class ::google::protobuf::MessageLite;
  938. friend class ::google::protobuf::Arena;
  939. template <typename T>
  940. friend class ::google::protobuf::Arena::InternalHelper;
  941. using InternalArenaConstructable_ = void;
  942. using DestructorSkippable_ = void;
  943. struct Impl_ {
  944. inline explicit constexpr Impl_(
  945. ::google::protobuf::internal::ConstantInitialized) noexcept;
  946. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  947. ::google::protobuf::Arena* arena);
  948. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  949. ::google::protobuf::Arena* arena, const Impl_& from);
  950. ::google::protobuf::internal::HasBits<1> _has_bits_;
  951. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  952. ::google::protobuf::internal::ArenaStringPtr name_;
  953. ::firestore::BundledQuery* bundled_query_;
  954. ::google::protobuf::Timestamp* read_time_;
  955. PROTOBUF_TSAN_DECLARE_MEMBER
  956. };
  957. union { Impl_ _impl_; };
  958. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  959. };// -------------------------------------------------------------------
  960. class BundleElement final :
  961. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.BundleElement) */ {
  962. public:
  963. inline BundleElement() : BundleElement(nullptr) {}
  964. ~BundleElement() override;
  965. template<typename = void>
  966. explicit PROTOBUF_CONSTEXPR BundleElement(::google::protobuf::internal::ConstantInitialized);
  967. inline BundleElement(const BundleElement& from)
  968. : BundleElement(nullptr, from) {}
  969. BundleElement(BundleElement&& from) noexcept
  970. : BundleElement() {
  971. *this = ::std::move(from);
  972. }
  973. inline BundleElement& operator=(const BundleElement& from) {
  974. CopyFrom(from);
  975. return *this;
  976. }
  977. inline BundleElement& operator=(BundleElement&& from) noexcept {
  978. if (this == &from) return *this;
  979. if (GetArena() == from.GetArena()
  980. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  981. && GetArena() != nullptr
  982. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  983. ) {
  984. InternalSwap(&from);
  985. } else {
  986. CopyFrom(from);
  987. }
  988. return *this;
  989. }
  990. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  991. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  992. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  993. }
  994. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  995. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  996. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  997. }
  998. static const ::google::protobuf::Descriptor* descriptor() {
  999. return GetDescriptor();
  1000. }
  1001. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1002. return default_instance().GetMetadata().descriptor;
  1003. }
  1004. static const ::google::protobuf::Reflection* GetReflection() {
  1005. return default_instance().GetMetadata().reflection;
  1006. }
  1007. static const BundleElement& default_instance() {
  1008. return *internal_default_instance();
  1009. }
  1010. enum ElementTypeCase {
  1011. kMetadata = 1,
  1012. kNamedQuery = 2,
  1013. kDocumentMetadata = 3,
  1014. kDocument = 4,
  1015. ELEMENT_TYPE_NOT_SET = 0,
  1016. };
  1017. static inline const BundleElement* internal_default_instance() {
  1018. return reinterpret_cast<const BundleElement*>(
  1019. &_BundleElement_default_instance_);
  1020. }
  1021. static constexpr int kIndexInFileMessages =
  1022. 4;
  1023. friend void swap(BundleElement& a, BundleElement& b) {
  1024. a.Swap(&b);
  1025. }
  1026. inline void Swap(BundleElement* other) {
  1027. if (other == this) return;
  1028. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1029. if (GetArena() != nullptr &&
  1030. GetArena() == other->GetArena()) {
  1031. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1032. if (GetArena() == other->GetArena()) {
  1033. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1034. InternalSwap(other);
  1035. } else {
  1036. ::google::protobuf::internal::GenericSwap(this, other);
  1037. }
  1038. }
  1039. void UnsafeArenaSwap(BundleElement* other) {
  1040. if (other == this) return;
  1041. ABSL_DCHECK(GetArena() == other->GetArena());
  1042. InternalSwap(other);
  1043. }
  1044. // implements Message ----------------------------------------------
  1045. BundleElement* New(::google::protobuf::Arena* arena = nullptr) const final {
  1046. return CreateMaybeMessage<BundleElement>(arena);
  1047. }
  1048. using ::google::protobuf::Message::CopyFrom;
  1049. void CopyFrom(const BundleElement& from);
  1050. using ::google::protobuf::Message::MergeFrom;
  1051. void MergeFrom( const BundleElement& from) {
  1052. BundleElement::MergeImpl(*this, from);
  1053. }
  1054. private:
  1055. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1056. public:
  1057. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1058. bool IsInitialized() const final;
  1059. ::size_t ByteSizeLong() const final;
  1060. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1061. ::uint8_t* _InternalSerialize(
  1062. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1063. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1064. private:
  1065. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1066. void SharedCtor(::google::protobuf::Arena* arena);
  1067. void SharedDtor();
  1068. void InternalSwap(BundleElement* other);
  1069. private:
  1070. friend class ::google::protobuf::internal::AnyMetadata;
  1071. static ::absl::string_view FullMessageName() {
  1072. return "firestore.BundleElement";
  1073. }
  1074. protected:
  1075. explicit BundleElement(::google::protobuf::Arena* arena);
  1076. BundleElement(::google::protobuf::Arena* arena, const BundleElement& from);
  1077. public:
  1078. static const ClassData _class_data_;
  1079. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1080. ::google::protobuf::Metadata GetMetadata() const final;
  1081. // nested types ----------------------------------------------------
  1082. // accessors -------------------------------------------------------
  1083. enum : int {
  1084. kMetadataFieldNumber = 1,
  1085. kNamedQueryFieldNumber = 2,
  1086. kDocumentMetadataFieldNumber = 3,
  1087. kDocumentFieldNumber = 4,
  1088. };
  1089. // .firestore.BundleMetadata metadata = 1;
  1090. bool has_metadata() const;
  1091. private:
  1092. bool _internal_has_metadata() const;
  1093. public:
  1094. void clear_metadata() ;
  1095. const ::firestore::BundleMetadata& metadata() const;
  1096. PROTOBUF_NODISCARD ::firestore::BundleMetadata* release_metadata();
  1097. ::firestore::BundleMetadata* mutable_metadata();
  1098. void set_allocated_metadata(::firestore::BundleMetadata* value);
  1099. void unsafe_arena_set_allocated_metadata(::firestore::BundleMetadata* value);
  1100. ::firestore::BundleMetadata* unsafe_arena_release_metadata();
  1101. private:
  1102. const ::firestore::BundleMetadata& _internal_metadata() const;
  1103. ::firestore::BundleMetadata* _internal_mutable_metadata();
  1104. public:
  1105. // .firestore.NamedQuery named_query = 2;
  1106. bool has_named_query() const;
  1107. private:
  1108. bool _internal_has_named_query() const;
  1109. public:
  1110. void clear_named_query() ;
  1111. const ::firestore::NamedQuery& named_query() const;
  1112. PROTOBUF_NODISCARD ::firestore::NamedQuery* release_named_query();
  1113. ::firestore::NamedQuery* mutable_named_query();
  1114. void set_allocated_named_query(::firestore::NamedQuery* value);
  1115. void unsafe_arena_set_allocated_named_query(::firestore::NamedQuery* value);
  1116. ::firestore::NamedQuery* unsafe_arena_release_named_query();
  1117. private:
  1118. const ::firestore::NamedQuery& _internal_named_query() const;
  1119. ::firestore::NamedQuery* _internal_mutable_named_query();
  1120. public:
  1121. // .firestore.BundledDocumentMetadata document_metadata = 3;
  1122. bool has_document_metadata() const;
  1123. private:
  1124. bool _internal_has_document_metadata() const;
  1125. public:
  1126. void clear_document_metadata() ;
  1127. const ::firestore::BundledDocumentMetadata& document_metadata() const;
  1128. PROTOBUF_NODISCARD ::firestore::BundledDocumentMetadata* release_document_metadata();
  1129. ::firestore::BundledDocumentMetadata* mutable_document_metadata();
  1130. void set_allocated_document_metadata(::firestore::BundledDocumentMetadata* value);
  1131. void unsafe_arena_set_allocated_document_metadata(::firestore::BundledDocumentMetadata* value);
  1132. ::firestore::BundledDocumentMetadata* unsafe_arena_release_document_metadata();
  1133. private:
  1134. const ::firestore::BundledDocumentMetadata& _internal_document_metadata() const;
  1135. ::firestore::BundledDocumentMetadata* _internal_mutable_document_metadata();
  1136. public:
  1137. // .google.firestore.v1.Document document = 4;
  1138. bool has_document() const;
  1139. private:
  1140. bool _internal_has_document() const;
  1141. public:
  1142. void clear_document() ;
  1143. const ::google::firestore::v1::Document& document() const;
  1144. PROTOBUF_NODISCARD ::google::firestore::v1::Document* release_document();
  1145. ::google::firestore::v1::Document* mutable_document();
  1146. void set_allocated_document(::google::firestore::v1::Document* value);
  1147. void unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value);
  1148. ::google::firestore::v1::Document* unsafe_arena_release_document();
  1149. private:
  1150. const ::google::firestore::v1::Document& _internal_document() const;
  1151. ::google::firestore::v1::Document* _internal_mutable_document();
  1152. public:
  1153. void clear_element_type();
  1154. ElementTypeCase element_type_case() const;
  1155. // @@protoc_insertion_point(class_scope:firestore.BundleElement)
  1156. private:
  1157. class _Internal;
  1158. void set_has_metadata();
  1159. void set_has_named_query();
  1160. void set_has_document_metadata();
  1161. void set_has_document();
  1162. inline bool has_element_type() const;
  1163. inline void clear_has_element_type();
  1164. friend class ::google::protobuf::internal::TcParser;
  1165. static const ::google::protobuf::internal::TcParseTable<
  1166. 0, 4, 4,
  1167. 0, 2>
  1168. _table_;
  1169. friend class ::google::protobuf::MessageLite;
  1170. friend class ::google::protobuf::Arena;
  1171. template <typename T>
  1172. friend class ::google::protobuf::Arena::InternalHelper;
  1173. using InternalArenaConstructable_ = void;
  1174. using DestructorSkippable_ = void;
  1175. struct Impl_ {
  1176. inline explicit constexpr Impl_(
  1177. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1178. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1179. ::google::protobuf::Arena* arena);
  1180. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1181. ::google::protobuf::Arena* arena, const Impl_& from);
  1182. union ElementTypeUnion {
  1183. constexpr ElementTypeUnion() : _constinit_{} {}
  1184. ::google::protobuf::internal::ConstantInitialized _constinit_;
  1185. ::firestore::BundleMetadata* metadata_;
  1186. ::firestore::NamedQuery* named_query_;
  1187. ::firestore::BundledDocumentMetadata* document_metadata_;
  1188. ::google::firestore::v1::Document* document_;
  1189. } element_type_;
  1190. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1191. ::uint32_t _oneof_case_[1];
  1192. PROTOBUF_TSAN_DECLARE_MEMBER
  1193. };
  1194. union { Impl_ _impl_; };
  1195. friend struct ::TableStruct_firestore_2fbundle_2eproto;
  1196. };
  1197. // ===================================================================
  1198. // ===================================================================
  1199. #ifdef __GNUC__
  1200. #pragma GCC diagnostic push
  1201. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1202. #endif // __GNUC__
  1203. // -------------------------------------------------------------------
  1204. // BundledQuery
  1205. // string parent = 1;
  1206. inline void BundledQuery::clear_parent() {
  1207. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1208. _impl_.parent_.ClearToEmpty();
  1209. }
  1210. inline const std::string& BundledQuery::parent() const
  1211. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1212. // @@protoc_insertion_point(field_get:firestore.BundledQuery.parent)
  1213. return _internal_parent();
  1214. }
  1215. template <typename Arg_, typename... Args_>
  1216. inline PROTOBUF_ALWAYS_INLINE void BundledQuery::set_parent(Arg_&& arg,
  1217. Args_... args) {
  1218. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1219. ;
  1220. _impl_.parent_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1221. // @@protoc_insertion_point(field_set:firestore.BundledQuery.parent)
  1222. }
  1223. inline std::string* BundledQuery::mutable_parent() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1224. std::string* _s = _internal_mutable_parent();
  1225. // @@protoc_insertion_point(field_mutable:firestore.BundledQuery.parent)
  1226. return _s;
  1227. }
  1228. inline const std::string& BundledQuery::_internal_parent() const {
  1229. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1230. return _impl_.parent_.Get();
  1231. }
  1232. inline void BundledQuery::_internal_set_parent(const std::string& value) {
  1233. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1234. ;
  1235. _impl_.parent_.Set(value, GetArena());
  1236. }
  1237. inline std::string* BundledQuery::_internal_mutable_parent() {
  1238. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1239. ;
  1240. return _impl_.parent_.Mutable( GetArena());
  1241. }
  1242. inline std::string* BundledQuery::release_parent() {
  1243. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1244. // @@protoc_insertion_point(field_release:firestore.BundledQuery.parent)
  1245. return _impl_.parent_.Release();
  1246. }
  1247. inline void BundledQuery::set_allocated_parent(std::string* value) {
  1248. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1249. _impl_.parent_.SetAllocated(value, GetArena());
  1250. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1251. if (_impl_.parent_.IsDefault()) {
  1252. _impl_.parent_.Set("", GetArena());
  1253. }
  1254. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1255. // @@protoc_insertion_point(field_set_allocated:firestore.BundledQuery.parent)
  1256. }
  1257. // .google.firestore.v1.StructuredQuery structured_query = 2;
  1258. inline bool BundledQuery::has_structured_query() const {
  1259. return query_type_case() == kStructuredQuery;
  1260. }
  1261. inline bool BundledQuery::_internal_has_structured_query() const {
  1262. return query_type_case() == kStructuredQuery;
  1263. }
  1264. inline void BundledQuery::set_has_structured_query() {
  1265. _impl_._oneof_case_[0] = kStructuredQuery;
  1266. }
  1267. inline ::google::firestore::v1::StructuredQuery* BundledQuery::release_structured_query() {
  1268. // @@protoc_insertion_point(field_release:firestore.BundledQuery.structured_query)
  1269. if (query_type_case() == kStructuredQuery) {
  1270. clear_has_query_type();
  1271. auto* temp = _impl_.query_type_.structured_query_;
  1272. if (GetArena() != nullptr) {
  1273. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1274. }
  1275. _impl_.query_type_.structured_query_ = nullptr;
  1276. return temp;
  1277. } else {
  1278. return nullptr;
  1279. }
  1280. }
  1281. inline const ::google::firestore::v1::StructuredQuery& BundledQuery::_internal_structured_query() const {
  1282. return query_type_case() == kStructuredQuery ? *_impl_.query_type_.structured_query_ : reinterpret_cast<::google::firestore::v1::StructuredQuery&>(::google::firestore::v1::_StructuredQuery_default_instance_);
  1283. }
  1284. inline const ::google::firestore::v1::StructuredQuery& BundledQuery::structured_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1285. // @@protoc_insertion_point(field_get:firestore.BundledQuery.structured_query)
  1286. return _internal_structured_query();
  1287. }
  1288. inline ::google::firestore::v1::StructuredQuery* BundledQuery::unsafe_arena_release_structured_query() {
  1289. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.BundledQuery.structured_query)
  1290. if (query_type_case() == kStructuredQuery) {
  1291. clear_has_query_type();
  1292. auto* temp = _impl_.query_type_.structured_query_;
  1293. _impl_.query_type_.structured_query_ = nullptr;
  1294. return temp;
  1295. } else {
  1296. return nullptr;
  1297. }
  1298. }
  1299. inline void BundledQuery::unsafe_arena_set_allocated_structured_query(::google::firestore::v1::StructuredQuery* value) {
  1300. // We rely on the oneof clear method to free the earlier contents
  1301. // of this oneof. We can directly use the pointer we're given to
  1302. // set the new value.
  1303. clear_query_type();
  1304. if (value) {
  1305. set_has_structured_query();
  1306. _impl_.query_type_.structured_query_ = value;
  1307. }
  1308. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundledQuery.structured_query)
  1309. }
  1310. inline ::google::firestore::v1::StructuredQuery* BundledQuery::_internal_mutable_structured_query() {
  1311. if (query_type_case() != kStructuredQuery) {
  1312. clear_query_type();
  1313. set_has_structured_query();
  1314. _impl_.query_type_.structured_query_ = CreateMaybeMessage<::google::firestore::v1::StructuredQuery>(GetArena());
  1315. }
  1316. return _impl_.query_type_.structured_query_;
  1317. }
  1318. inline ::google::firestore::v1::StructuredQuery* BundledQuery::mutable_structured_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1319. ::google::firestore::v1::StructuredQuery* _msg = _internal_mutable_structured_query();
  1320. // @@protoc_insertion_point(field_mutable:firestore.BundledQuery.structured_query)
  1321. return _msg;
  1322. }
  1323. // .firestore.BundledQuery.LimitType limit_type = 3;
  1324. inline void BundledQuery::clear_limit_type() {
  1325. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1326. _impl_.limit_type_ = 0;
  1327. }
  1328. inline ::firestore::BundledQuery_LimitType BundledQuery::limit_type() const {
  1329. // @@protoc_insertion_point(field_get:firestore.BundledQuery.limit_type)
  1330. return _internal_limit_type();
  1331. }
  1332. inline void BundledQuery::set_limit_type(::firestore::BundledQuery_LimitType value) {
  1333. _internal_set_limit_type(value);
  1334. // @@protoc_insertion_point(field_set:firestore.BundledQuery.limit_type)
  1335. }
  1336. inline ::firestore::BundledQuery_LimitType BundledQuery::_internal_limit_type() const {
  1337. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1338. return static_cast<::firestore::BundledQuery_LimitType>(_impl_.limit_type_);
  1339. }
  1340. inline void BundledQuery::_internal_set_limit_type(::firestore::BundledQuery_LimitType value) {
  1341. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1342. ;
  1343. _impl_.limit_type_ = value;
  1344. }
  1345. inline bool BundledQuery::has_query_type() const {
  1346. return query_type_case() != QUERY_TYPE_NOT_SET;
  1347. }
  1348. inline void BundledQuery::clear_has_query_type() {
  1349. _impl_._oneof_case_[0] = QUERY_TYPE_NOT_SET;
  1350. }
  1351. inline BundledQuery::QueryTypeCase BundledQuery::query_type_case() const {
  1352. return BundledQuery::QueryTypeCase(_impl_._oneof_case_[0]);
  1353. }
  1354. // -------------------------------------------------------------------
  1355. // NamedQuery
  1356. // string name = 1;
  1357. inline void NamedQuery::clear_name() {
  1358. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1359. _impl_.name_.ClearToEmpty();
  1360. }
  1361. inline const std::string& NamedQuery::name() const
  1362. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1363. // @@protoc_insertion_point(field_get:firestore.NamedQuery.name)
  1364. return _internal_name();
  1365. }
  1366. template <typename Arg_, typename... Args_>
  1367. inline PROTOBUF_ALWAYS_INLINE void NamedQuery::set_name(Arg_&& arg,
  1368. Args_... args) {
  1369. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1370. ;
  1371. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1372. // @@protoc_insertion_point(field_set:firestore.NamedQuery.name)
  1373. }
  1374. inline std::string* NamedQuery::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1375. std::string* _s = _internal_mutable_name();
  1376. // @@protoc_insertion_point(field_mutable:firestore.NamedQuery.name)
  1377. return _s;
  1378. }
  1379. inline const std::string& NamedQuery::_internal_name() const {
  1380. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1381. return _impl_.name_.Get();
  1382. }
  1383. inline void NamedQuery::_internal_set_name(const std::string& value) {
  1384. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1385. ;
  1386. _impl_.name_.Set(value, GetArena());
  1387. }
  1388. inline std::string* NamedQuery::_internal_mutable_name() {
  1389. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1390. ;
  1391. return _impl_.name_.Mutable( GetArena());
  1392. }
  1393. inline std::string* NamedQuery::release_name() {
  1394. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1395. // @@protoc_insertion_point(field_release:firestore.NamedQuery.name)
  1396. return _impl_.name_.Release();
  1397. }
  1398. inline void NamedQuery::set_allocated_name(std::string* value) {
  1399. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1400. _impl_.name_.SetAllocated(value, GetArena());
  1401. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1402. if (_impl_.name_.IsDefault()) {
  1403. _impl_.name_.Set("", GetArena());
  1404. }
  1405. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1406. // @@protoc_insertion_point(field_set_allocated:firestore.NamedQuery.name)
  1407. }
  1408. // .firestore.BundledQuery bundled_query = 2;
  1409. inline bool NamedQuery::has_bundled_query() const {
  1410. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1411. PROTOBUF_ASSUME(!value || _impl_.bundled_query_ != nullptr);
  1412. return value;
  1413. }
  1414. inline void NamedQuery::clear_bundled_query() {
  1415. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1416. if (_impl_.bundled_query_ != nullptr) _impl_.bundled_query_->Clear();
  1417. _impl_._has_bits_[0] &= ~0x00000001u;
  1418. }
  1419. inline const ::firestore::BundledQuery& NamedQuery::_internal_bundled_query() const {
  1420. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1421. const ::firestore::BundledQuery* p = _impl_.bundled_query_;
  1422. return p != nullptr ? *p : reinterpret_cast<const ::firestore::BundledQuery&>(::firestore::_BundledQuery_default_instance_);
  1423. }
  1424. inline const ::firestore::BundledQuery& NamedQuery::bundled_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1425. // @@protoc_insertion_point(field_get:firestore.NamedQuery.bundled_query)
  1426. return _internal_bundled_query();
  1427. }
  1428. inline void NamedQuery::unsafe_arena_set_allocated_bundled_query(::firestore::BundledQuery* value) {
  1429. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1430. if (GetArena() == nullptr) {
  1431. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.bundled_query_);
  1432. }
  1433. _impl_.bundled_query_ = reinterpret_cast<::firestore::BundledQuery*>(value);
  1434. if (value != nullptr) {
  1435. _impl_._has_bits_[0] |= 0x00000001u;
  1436. } else {
  1437. _impl_._has_bits_[0] &= ~0x00000001u;
  1438. }
  1439. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.NamedQuery.bundled_query)
  1440. }
  1441. inline ::firestore::BundledQuery* NamedQuery::release_bundled_query() {
  1442. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1443. _impl_._has_bits_[0] &= ~0x00000001u;
  1444. ::firestore::BundledQuery* released = _impl_.bundled_query_;
  1445. _impl_.bundled_query_ = nullptr;
  1446. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1447. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1448. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1449. if (GetArena() == nullptr) {
  1450. delete old;
  1451. }
  1452. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1453. if (GetArena() != nullptr) {
  1454. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1455. }
  1456. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1457. return released;
  1458. }
  1459. inline ::firestore::BundledQuery* NamedQuery::unsafe_arena_release_bundled_query() {
  1460. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1461. // @@protoc_insertion_point(field_release:firestore.NamedQuery.bundled_query)
  1462. _impl_._has_bits_[0] &= ~0x00000001u;
  1463. ::firestore::BundledQuery* temp = _impl_.bundled_query_;
  1464. _impl_.bundled_query_ = nullptr;
  1465. return temp;
  1466. }
  1467. inline ::firestore::BundledQuery* NamedQuery::_internal_mutable_bundled_query() {
  1468. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1469. _impl_._has_bits_[0] |= 0x00000001u;
  1470. if (_impl_.bundled_query_ == nullptr) {
  1471. auto* p = CreateMaybeMessage<::firestore::BundledQuery>(GetArena());
  1472. _impl_.bundled_query_ = reinterpret_cast<::firestore::BundledQuery*>(p);
  1473. }
  1474. return _impl_.bundled_query_;
  1475. }
  1476. inline ::firestore::BundledQuery* NamedQuery::mutable_bundled_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1477. ::firestore::BundledQuery* _msg = _internal_mutable_bundled_query();
  1478. // @@protoc_insertion_point(field_mutable:firestore.NamedQuery.bundled_query)
  1479. return _msg;
  1480. }
  1481. inline void NamedQuery::set_allocated_bundled_query(::firestore::BundledQuery* value) {
  1482. ::google::protobuf::Arena* message_arena = GetArena();
  1483. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1484. if (message_arena == nullptr) {
  1485. delete reinterpret_cast<::firestore::BundledQuery*>(_impl_.bundled_query_);
  1486. }
  1487. if (value != nullptr) {
  1488. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::firestore::BundledQuery*>(value)->GetArena();
  1489. if (message_arena != submessage_arena) {
  1490. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1491. }
  1492. _impl_._has_bits_[0] |= 0x00000001u;
  1493. } else {
  1494. _impl_._has_bits_[0] &= ~0x00000001u;
  1495. }
  1496. _impl_.bundled_query_ = reinterpret_cast<::firestore::BundledQuery*>(value);
  1497. // @@protoc_insertion_point(field_set_allocated:firestore.NamedQuery.bundled_query)
  1498. }
  1499. // .google.protobuf.Timestamp read_time = 3;
  1500. inline bool NamedQuery::has_read_time() const {
  1501. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  1502. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  1503. return value;
  1504. }
  1505. inline const ::google::protobuf::Timestamp& NamedQuery::_internal_read_time() const {
  1506. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1507. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  1508. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1509. }
  1510. inline const ::google::protobuf::Timestamp& NamedQuery::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1511. // @@protoc_insertion_point(field_get:firestore.NamedQuery.read_time)
  1512. return _internal_read_time();
  1513. }
  1514. inline void NamedQuery::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  1515. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1516. if (GetArena() == nullptr) {
  1517. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  1518. }
  1519. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1520. if (value != nullptr) {
  1521. _impl_._has_bits_[0] |= 0x00000002u;
  1522. } else {
  1523. _impl_._has_bits_[0] &= ~0x00000002u;
  1524. }
  1525. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.NamedQuery.read_time)
  1526. }
  1527. inline ::google::protobuf::Timestamp* NamedQuery::release_read_time() {
  1528. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1529. _impl_._has_bits_[0] &= ~0x00000002u;
  1530. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  1531. _impl_.read_time_ = nullptr;
  1532. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1533. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1534. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1535. if (GetArena() == nullptr) {
  1536. delete old;
  1537. }
  1538. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1539. if (GetArena() != nullptr) {
  1540. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1541. }
  1542. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1543. return released;
  1544. }
  1545. inline ::google::protobuf::Timestamp* NamedQuery::unsafe_arena_release_read_time() {
  1546. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1547. // @@protoc_insertion_point(field_release:firestore.NamedQuery.read_time)
  1548. _impl_._has_bits_[0] &= ~0x00000002u;
  1549. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  1550. _impl_.read_time_ = nullptr;
  1551. return temp;
  1552. }
  1553. inline ::google::protobuf::Timestamp* NamedQuery::_internal_mutable_read_time() {
  1554. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1555. _impl_._has_bits_[0] |= 0x00000002u;
  1556. if (_impl_.read_time_ == nullptr) {
  1557. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1558. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1559. }
  1560. return _impl_.read_time_;
  1561. }
  1562. inline ::google::protobuf::Timestamp* NamedQuery::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1563. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  1564. // @@protoc_insertion_point(field_mutable:firestore.NamedQuery.read_time)
  1565. return _msg;
  1566. }
  1567. inline void NamedQuery::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  1568. ::google::protobuf::Arena* message_arena = GetArena();
  1569. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1570. if (message_arena == nullptr) {
  1571. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  1572. }
  1573. if (value != nullptr) {
  1574. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1575. if (message_arena != submessage_arena) {
  1576. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1577. }
  1578. _impl_._has_bits_[0] |= 0x00000002u;
  1579. } else {
  1580. _impl_._has_bits_[0] &= ~0x00000002u;
  1581. }
  1582. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1583. // @@protoc_insertion_point(field_set_allocated:firestore.NamedQuery.read_time)
  1584. }
  1585. // -------------------------------------------------------------------
  1586. // BundledDocumentMetadata
  1587. // string name = 1;
  1588. inline void BundledDocumentMetadata::clear_name() {
  1589. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1590. _impl_.name_.ClearToEmpty();
  1591. }
  1592. inline const std::string& BundledDocumentMetadata::name() const
  1593. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1594. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.name)
  1595. return _internal_name();
  1596. }
  1597. template <typename Arg_, typename... Args_>
  1598. inline PROTOBUF_ALWAYS_INLINE void BundledDocumentMetadata::set_name(Arg_&& arg,
  1599. Args_... args) {
  1600. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1601. ;
  1602. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1603. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.name)
  1604. }
  1605. inline std::string* BundledDocumentMetadata::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1606. std::string* _s = _internal_mutable_name();
  1607. // @@protoc_insertion_point(field_mutable:firestore.BundledDocumentMetadata.name)
  1608. return _s;
  1609. }
  1610. inline const std::string& BundledDocumentMetadata::_internal_name() const {
  1611. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1612. return _impl_.name_.Get();
  1613. }
  1614. inline void BundledDocumentMetadata::_internal_set_name(const std::string& value) {
  1615. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1616. ;
  1617. _impl_.name_.Set(value, GetArena());
  1618. }
  1619. inline std::string* BundledDocumentMetadata::_internal_mutable_name() {
  1620. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1621. ;
  1622. return _impl_.name_.Mutable( GetArena());
  1623. }
  1624. inline std::string* BundledDocumentMetadata::release_name() {
  1625. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1626. // @@protoc_insertion_point(field_release:firestore.BundledDocumentMetadata.name)
  1627. return _impl_.name_.Release();
  1628. }
  1629. inline void BundledDocumentMetadata::set_allocated_name(std::string* value) {
  1630. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1631. _impl_.name_.SetAllocated(value, GetArena());
  1632. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1633. if (_impl_.name_.IsDefault()) {
  1634. _impl_.name_.Set("", GetArena());
  1635. }
  1636. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1637. // @@protoc_insertion_point(field_set_allocated:firestore.BundledDocumentMetadata.name)
  1638. }
  1639. // .google.protobuf.Timestamp read_time = 2;
  1640. inline bool BundledDocumentMetadata::has_read_time() const {
  1641. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1642. PROTOBUF_ASSUME(!value || _impl_.read_time_ != nullptr);
  1643. return value;
  1644. }
  1645. inline const ::google::protobuf::Timestamp& BundledDocumentMetadata::_internal_read_time() const {
  1646. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1647. const ::google::protobuf::Timestamp* p = _impl_.read_time_;
  1648. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1649. }
  1650. inline const ::google::protobuf::Timestamp& BundledDocumentMetadata::read_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1651. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.read_time)
  1652. return _internal_read_time();
  1653. }
  1654. inline void BundledDocumentMetadata::unsafe_arena_set_allocated_read_time(::google::protobuf::Timestamp* value) {
  1655. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1656. if (GetArena() == nullptr) {
  1657. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  1658. }
  1659. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1660. if (value != nullptr) {
  1661. _impl_._has_bits_[0] |= 0x00000001u;
  1662. } else {
  1663. _impl_._has_bits_[0] &= ~0x00000001u;
  1664. }
  1665. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundledDocumentMetadata.read_time)
  1666. }
  1667. inline ::google::protobuf::Timestamp* BundledDocumentMetadata::release_read_time() {
  1668. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1669. _impl_._has_bits_[0] &= ~0x00000001u;
  1670. ::google::protobuf::Timestamp* released = _impl_.read_time_;
  1671. _impl_.read_time_ = nullptr;
  1672. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1673. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1674. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1675. if (GetArena() == nullptr) {
  1676. delete old;
  1677. }
  1678. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1679. if (GetArena() != nullptr) {
  1680. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1681. }
  1682. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1683. return released;
  1684. }
  1685. inline ::google::protobuf::Timestamp* BundledDocumentMetadata::unsafe_arena_release_read_time() {
  1686. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1687. // @@protoc_insertion_point(field_release:firestore.BundledDocumentMetadata.read_time)
  1688. _impl_._has_bits_[0] &= ~0x00000001u;
  1689. ::google::protobuf::Timestamp* temp = _impl_.read_time_;
  1690. _impl_.read_time_ = nullptr;
  1691. return temp;
  1692. }
  1693. inline ::google::protobuf::Timestamp* BundledDocumentMetadata::_internal_mutable_read_time() {
  1694. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1695. _impl_._has_bits_[0] |= 0x00000001u;
  1696. if (_impl_.read_time_ == nullptr) {
  1697. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1698. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1699. }
  1700. return _impl_.read_time_;
  1701. }
  1702. inline ::google::protobuf::Timestamp* BundledDocumentMetadata::mutable_read_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1703. ::google::protobuf::Timestamp* _msg = _internal_mutable_read_time();
  1704. // @@protoc_insertion_point(field_mutable:firestore.BundledDocumentMetadata.read_time)
  1705. return _msg;
  1706. }
  1707. inline void BundledDocumentMetadata::set_allocated_read_time(::google::protobuf::Timestamp* value) {
  1708. ::google::protobuf::Arena* message_arena = GetArena();
  1709. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1710. if (message_arena == nullptr) {
  1711. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.read_time_);
  1712. }
  1713. if (value != nullptr) {
  1714. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1715. if (message_arena != submessage_arena) {
  1716. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1717. }
  1718. _impl_._has_bits_[0] |= 0x00000001u;
  1719. } else {
  1720. _impl_._has_bits_[0] &= ~0x00000001u;
  1721. }
  1722. _impl_.read_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1723. // @@protoc_insertion_point(field_set_allocated:firestore.BundledDocumentMetadata.read_time)
  1724. }
  1725. // bool exists = 3;
  1726. inline void BundledDocumentMetadata::clear_exists() {
  1727. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1728. _impl_.exists_ = false;
  1729. }
  1730. inline bool BundledDocumentMetadata::exists() const {
  1731. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.exists)
  1732. return _internal_exists();
  1733. }
  1734. inline void BundledDocumentMetadata::set_exists(bool value) {
  1735. _internal_set_exists(value);
  1736. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.exists)
  1737. }
  1738. inline bool BundledDocumentMetadata::_internal_exists() const {
  1739. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1740. return _impl_.exists_;
  1741. }
  1742. inline void BundledDocumentMetadata::_internal_set_exists(bool value) {
  1743. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1744. ;
  1745. _impl_.exists_ = value;
  1746. }
  1747. // repeated string queries = 4;
  1748. inline int BundledDocumentMetadata::_internal_queries_size() const {
  1749. return _internal_queries().size();
  1750. }
  1751. inline int BundledDocumentMetadata::queries_size() const {
  1752. return _internal_queries_size();
  1753. }
  1754. inline void BundledDocumentMetadata::clear_queries() {
  1755. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1756. _impl_.queries_.Clear();
  1757. }
  1758. inline std::string* BundledDocumentMetadata::add_queries()
  1759. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1760. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1761. std::string* _s = _internal_mutable_queries()->Add();
  1762. // @@protoc_insertion_point(field_add_mutable:firestore.BundledDocumentMetadata.queries)
  1763. return _s;
  1764. }
  1765. inline const std::string& BundledDocumentMetadata::queries(int index) const
  1766. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1767. // @@protoc_insertion_point(field_get:firestore.BundledDocumentMetadata.queries)
  1768. return _internal_queries().Get(index);
  1769. }
  1770. inline std::string* BundledDocumentMetadata::mutable_queries(int index)
  1771. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1772. // @@protoc_insertion_point(field_mutable:firestore.BundledDocumentMetadata.queries)
  1773. return _internal_mutable_queries()->Mutable(index);
  1774. }
  1775. inline void BundledDocumentMetadata::set_queries(int index, const std::string& value) {
  1776. _internal_mutable_queries()->Mutable(index)->assign(value);
  1777. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.queries)
  1778. }
  1779. inline void BundledDocumentMetadata::set_queries(int index, std::string&& value) {
  1780. _internal_mutable_queries()->Mutable(index)->assign(std::move(value));
  1781. // @@protoc_insertion_point(field_set:firestore.BundledDocumentMetadata.queries)
  1782. }
  1783. inline void BundledDocumentMetadata::set_queries(int index, const char* value) {
  1784. ABSL_DCHECK(value != nullptr);
  1785. _internal_mutable_queries()->Mutable(index)->assign(value);
  1786. // @@protoc_insertion_point(field_set_char:firestore.BundledDocumentMetadata.queries)
  1787. }
  1788. inline void BundledDocumentMetadata::set_queries(int index, const char* value,
  1789. std::size_t size) {
  1790. _internal_mutable_queries()->Mutable(index)->assign(
  1791. reinterpret_cast<const char*>(value), size);
  1792. // @@protoc_insertion_point(field_set_pointer:firestore.BundledDocumentMetadata.queries)
  1793. }
  1794. inline void BundledDocumentMetadata::set_queries(int index, absl::string_view value) {
  1795. _internal_mutable_queries()->Mutable(index)->assign(value.data(),
  1796. value.size());
  1797. // @@protoc_insertion_point(field_set_string_piece:firestore.BundledDocumentMetadata.queries)
  1798. }
  1799. inline void BundledDocumentMetadata::add_queries(const std::string& value) {
  1800. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1801. _internal_mutable_queries()->Add()->assign(value);
  1802. // @@protoc_insertion_point(field_add:firestore.BundledDocumentMetadata.queries)
  1803. }
  1804. inline void BundledDocumentMetadata::add_queries(std::string&& value) {
  1805. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1806. _internal_mutable_queries()->Add(std::move(value));
  1807. // @@protoc_insertion_point(field_add:firestore.BundledDocumentMetadata.queries)
  1808. }
  1809. inline void BundledDocumentMetadata::add_queries(const char* value) {
  1810. ABSL_DCHECK(value != nullptr);
  1811. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1812. _internal_mutable_queries()->Add()->assign(value);
  1813. // @@protoc_insertion_point(field_add_char:firestore.BundledDocumentMetadata.queries)
  1814. }
  1815. inline void BundledDocumentMetadata::add_queries(const char* value, std::size_t size) {
  1816. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1817. _internal_mutable_queries()->Add()->assign(
  1818. reinterpret_cast<const char*>(value), size);
  1819. // @@protoc_insertion_point(field_add_pointer:firestore.BundledDocumentMetadata.queries)
  1820. }
  1821. inline void BundledDocumentMetadata::add_queries(absl::string_view value) {
  1822. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1823. _internal_mutable_queries()->Add()->assign(value.data(), value.size());
  1824. // @@protoc_insertion_point(field_add_string_piece:firestore.BundledDocumentMetadata.queries)
  1825. }
  1826. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  1827. BundledDocumentMetadata::queries() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1828. // @@protoc_insertion_point(field_list:firestore.BundledDocumentMetadata.queries)
  1829. return _internal_queries();
  1830. }
  1831. inline ::google::protobuf::RepeatedPtrField<std::string>*
  1832. BundledDocumentMetadata::mutable_queries() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1833. // @@protoc_insertion_point(field_mutable_list:firestore.BundledDocumentMetadata.queries)
  1834. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1835. return _internal_mutable_queries();
  1836. }
  1837. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  1838. BundledDocumentMetadata::_internal_queries() const {
  1839. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1840. return _impl_.queries_;
  1841. }
  1842. inline ::google::protobuf::RepeatedPtrField<std::string>*
  1843. BundledDocumentMetadata::_internal_mutable_queries() {
  1844. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1845. return &_impl_.queries_;
  1846. }
  1847. // -------------------------------------------------------------------
  1848. // BundleMetadata
  1849. // string id = 1;
  1850. inline void BundleMetadata::clear_id() {
  1851. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1852. _impl_.id_.ClearToEmpty();
  1853. }
  1854. inline const std::string& BundleMetadata::id() const
  1855. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1856. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.id)
  1857. return _internal_id();
  1858. }
  1859. template <typename Arg_, typename... Args_>
  1860. inline PROTOBUF_ALWAYS_INLINE void BundleMetadata::set_id(Arg_&& arg,
  1861. Args_... args) {
  1862. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1863. ;
  1864. _impl_.id_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1865. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.id)
  1866. }
  1867. inline std::string* BundleMetadata::mutable_id() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1868. std::string* _s = _internal_mutable_id();
  1869. // @@protoc_insertion_point(field_mutable:firestore.BundleMetadata.id)
  1870. return _s;
  1871. }
  1872. inline const std::string& BundleMetadata::_internal_id() const {
  1873. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1874. return _impl_.id_.Get();
  1875. }
  1876. inline void BundleMetadata::_internal_set_id(const std::string& value) {
  1877. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1878. ;
  1879. _impl_.id_.Set(value, GetArena());
  1880. }
  1881. inline std::string* BundleMetadata::_internal_mutable_id() {
  1882. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1883. ;
  1884. return _impl_.id_.Mutable( GetArena());
  1885. }
  1886. inline std::string* BundleMetadata::release_id() {
  1887. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1888. // @@protoc_insertion_point(field_release:firestore.BundleMetadata.id)
  1889. return _impl_.id_.Release();
  1890. }
  1891. inline void BundleMetadata::set_allocated_id(std::string* value) {
  1892. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1893. _impl_.id_.SetAllocated(value, GetArena());
  1894. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1895. if (_impl_.id_.IsDefault()) {
  1896. _impl_.id_.Set("", GetArena());
  1897. }
  1898. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1899. // @@protoc_insertion_point(field_set_allocated:firestore.BundleMetadata.id)
  1900. }
  1901. // .google.protobuf.Timestamp create_time = 2;
  1902. inline bool BundleMetadata::has_create_time() const {
  1903. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1904. PROTOBUF_ASSUME(!value || _impl_.create_time_ != nullptr);
  1905. return value;
  1906. }
  1907. inline const ::google::protobuf::Timestamp& BundleMetadata::_internal_create_time() const {
  1908. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1909. const ::google::protobuf::Timestamp* p = _impl_.create_time_;
  1910. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1911. }
  1912. inline const ::google::protobuf::Timestamp& BundleMetadata::create_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1913. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.create_time)
  1914. return _internal_create_time();
  1915. }
  1916. inline void BundleMetadata::unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value) {
  1917. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1918. if (GetArena() == nullptr) {
  1919. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_);
  1920. }
  1921. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1922. if (value != nullptr) {
  1923. _impl_._has_bits_[0] |= 0x00000001u;
  1924. } else {
  1925. _impl_._has_bits_[0] &= ~0x00000001u;
  1926. }
  1927. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundleMetadata.create_time)
  1928. }
  1929. inline ::google::protobuf::Timestamp* BundleMetadata::release_create_time() {
  1930. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1931. _impl_._has_bits_[0] &= ~0x00000001u;
  1932. ::google::protobuf::Timestamp* released = _impl_.create_time_;
  1933. _impl_.create_time_ = nullptr;
  1934. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1935. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1936. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1937. if (GetArena() == nullptr) {
  1938. delete old;
  1939. }
  1940. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1941. if (GetArena() != nullptr) {
  1942. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1943. }
  1944. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1945. return released;
  1946. }
  1947. inline ::google::protobuf::Timestamp* BundleMetadata::unsafe_arena_release_create_time() {
  1948. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1949. // @@protoc_insertion_point(field_release:firestore.BundleMetadata.create_time)
  1950. _impl_._has_bits_[0] &= ~0x00000001u;
  1951. ::google::protobuf::Timestamp* temp = _impl_.create_time_;
  1952. _impl_.create_time_ = nullptr;
  1953. return temp;
  1954. }
  1955. inline ::google::protobuf::Timestamp* BundleMetadata::_internal_mutable_create_time() {
  1956. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1957. _impl_._has_bits_[0] |= 0x00000001u;
  1958. if (_impl_.create_time_ == nullptr) {
  1959. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1960. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1961. }
  1962. return _impl_.create_time_;
  1963. }
  1964. inline ::google::protobuf::Timestamp* BundleMetadata::mutable_create_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1965. ::google::protobuf::Timestamp* _msg = _internal_mutable_create_time();
  1966. // @@protoc_insertion_point(field_mutable:firestore.BundleMetadata.create_time)
  1967. return _msg;
  1968. }
  1969. inline void BundleMetadata::set_allocated_create_time(::google::protobuf::Timestamp* value) {
  1970. ::google::protobuf::Arena* message_arena = GetArena();
  1971. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1972. if (message_arena == nullptr) {
  1973. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_);
  1974. }
  1975. if (value != nullptr) {
  1976. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1977. if (message_arena != submessage_arena) {
  1978. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1979. }
  1980. _impl_._has_bits_[0] |= 0x00000001u;
  1981. } else {
  1982. _impl_._has_bits_[0] &= ~0x00000001u;
  1983. }
  1984. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1985. // @@protoc_insertion_point(field_set_allocated:firestore.BundleMetadata.create_time)
  1986. }
  1987. // uint32 version = 3;
  1988. inline void BundleMetadata::clear_version() {
  1989. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1990. _impl_.version_ = 0u;
  1991. }
  1992. inline ::uint32_t BundleMetadata::version() const {
  1993. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.version)
  1994. return _internal_version();
  1995. }
  1996. inline void BundleMetadata::set_version(::uint32_t value) {
  1997. _internal_set_version(value);
  1998. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.version)
  1999. }
  2000. inline ::uint32_t BundleMetadata::_internal_version() const {
  2001. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2002. return _impl_.version_;
  2003. }
  2004. inline void BundleMetadata::_internal_set_version(::uint32_t value) {
  2005. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2006. ;
  2007. _impl_.version_ = value;
  2008. }
  2009. // uint32 total_documents = 4;
  2010. inline void BundleMetadata::clear_total_documents() {
  2011. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2012. _impl_.total_documents_ = 0u;
  2013. }
  2014. inline ::uint32_t BundleMetadata::total_documents() const {
  2015. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.total_documents)
  2016. return _internal_total_documents();
  2017. }
  2018. inline void BundleMetadata::set_total_documents(::uint32_t value) {
  2019. _internal_set_total_documents(value);
  2020. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.total_documents)
  2021. }
  2022. inline ::uint32_t BundleMetadata::_internal_total_documents() const {
  2023. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2024. return _impl_.total_documents_;
  2025. }
  2026. inline void BundleMetadata::_internal_set_total_documents(::uint32_t value) {
  2027. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2028. ;
  2029. _impl_.total_documents_ = value;
  2030. }
  2031. // uint64 total_bytes = 5;
  2032. inline void BundleMetadata::clear_total_bytes() {
  2033. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2034. _impl_.total_bytes_ = ::uint64_t{0u};
  2035. }
  2036. inline ::uint64_t BundleMetadata::total_bytes() const {
  2037. // @@protoc_insertion_point(field_get:firestore.BundleMetadata.total_bytes)
  2038. return _internal_total_bytes();
  2039. }
  2040. inline void BundleMetadata::set_total_bytes(::uint64_t value) {
  2041. _internal_set_total_bytes(value);
  2042. // @@protoc_insertion_point(field_set:firestore.BundleMetadata.total_bytes)
  2043. }
  2044. inline ::uint64_t BundleMetadata::_internal_total_bytes() const {
  2045. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2046. return _impl_.total_bytes_;
  2047. }
  2048. inline void BundleMetadata::_internal_set_total_bytes(::uint64_t value) {
  2049. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2050. ;
  2051. _impl_.total_bytes_ = value;
  2052. }
  2053. // -------------------------------------------------------------------
  2054. // BundleElement
  2055. // .firestore.BundleMetadata metadata = 1;
  2056. inline bool BundleElement::has_metadata() const {
  2057. return element_type_case() == kMetadata;
  2058. }
  2059. inline bool BundleElement::_internal_has_metadata() const {
  2060. return element_type_case() == kMetadata;
  2061. }
  2062. inline void BundleElement::set_has_metadata() {
  2063. _impl_._oneof_case_[0] = kMetadata;
  2064. }
  2065. inline void BundleElement::clear_metadata() {
  2066. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2067. if (element_type_case() == kMetadata) {
  2068. if (GetArena() == nullptr) {
  2069. delete _impl_.element_type_.metadata_;
  2070. }
  2071. clear_has_element_type();
  2072. }
  2073. }
  2074. inline ::firestore::BundleMetadata* BundleElement::release_metadata() {
  2075. // @@protoc_insertion_point(field_release:firestore.BundleElement.metadata)
  2076. if (element_type_case() == kMetadata) {
  2077. clear_has_element_type();
  2078. auto* temp = _impl_.element_type_.metadata_;
  2079. if (GetArena() != nullptr) {
  2080. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2081. }
  2082. _impl_.element_type_.metadata_ = nullptr;
  2083. return temp;
  2084. } else {
  2085. return nullptr;
  2086. }
  2087. }
  2088. inline const ::firestore::BundleMetadata& BundleElement::_internal_metadata() const {
  2089. return element_type_case() == kMetadata ? *_impl_.element_type_.metadata_ : reinterpret_cast<::firestore::BundleMetadata&>(::firestore::_BundleMetadata_default_instance_);
  2090. }
  2091. inline const ::firestore::BundleMetadata& BundleElement::metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2092. // @@protoc_insertion_point(field_get:firestore.BundleElement.metadata)
  2093. return _internal_metadata();
  2094. }
  2095. inline ::firestore::BundleMetadata* BundleElement::unsafe_arena_release_metadata() {
  2096. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.BundleElement.metadata)
  2097. if (element_type_case() == kMetadata) {
  2098. clear_has_element_type();
  2099. auto* temp = _impl_.element_type_.metadata_;
  2100. _impl_.element_type_.metadata_ = nullptr;
  2101. return temp;
  2102. } else {
  2103. return nullptr;
  2104. }
  2105. }
  2106. inline void BundleElement::unsafe_arena_set_allocated_metadata(::firestore::BundleMetadata* value) {
  2107. // We rely on the oneof clear method to free the earlier contents
  2108. // of this oneof. We can directly use the pointer we're given to
  2109. // set the new value.
  2110. clear_element_type();
  2111. if (value) {
  2112. set_has_metadata();
  2113. _impl_.element_type_.metadata_ = value;
  2114. }
  2115. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundleElement.metadata)
  2116. }
  2117. inline ::firestore::BundleMetadata* BundleElement::_internal_mutable_metadata() {
  2118. if (element_type_case() != kMetadata) {
  2119. clear_element_type();
  2120. set_has_metadata();
  2121. _impl_.element_type_.metadata_ = CreateMaybeMessage<::firestore::BundleMetadata>(GetArena());
  2122. }
  2123. return _impl_.element_type_.metadata_;
  2124. }
  2125. inline ::firestore::BundleMetadata* BundleElement::mutable_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2126. ::firestore::BundleMetadata* _msg = _internal_mutable_metadata();
  2127. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.metadata)
  2128. return _msg;
  2129. }
  2130. // .firestore.NamedQuery named_query = 2;
  2131. inline bool BundleElement::has_named_query() const {
  2132. return element_type_case() == kNamedQuery;
  2133. }
  2134. inline bool BundleElement::_internal_has_named_query() const {
  2135. return element_type_case() == kNamedQuery;
  2136. }
  2137. inline void BundleElement::set_has_named_query() {
  2138. _impl_._oneof_case_[0] = kNamedQuery;
  2139. }
  2140. inline void BundleElement::clear_named_query() {
  2141. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2142. if (element_type_case() == kNamedQuery) {
  2143. if (GetArena() == nullptr) {
  2144. delete _impl_.element_type_.named_query_;
  2145. }
  2146. clear_has_element_type();
  2147. }
  2148. }
  2149. inline ::firestore::NamedQuery* BundleElement::release_named_query() {
  2150. // @@protoc_insertion_point(field_release:firestore.BundleElement.named_query)
  2151. if (element_type_case() == kNamedQuery) {
  2152. clear_has_element_type();
  2153. auto* temp = _impl_.element_type_.named_query_;
  2154. if (GetArena() != nullptr) {
  2155. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2156. }
  2157. _impl_.element_type_.named_query_ = nullptr;
  2158. return temp;
  2159. } else {
  2160. return nullptr;
  2161. }
  2162. }
  2163. inline const ::firestore::NamedQuery& BundleElement::_internal_named_query() const {
  2164. return element_type_case() == kNamedQuery ? *_impl_.element_type_.named_query_ : reinterpret_cast<::firestore::NamedQuery&>(::firestore::_NamedQuery_default_instance_);
  2165. }
  2166. inline const ::firestore::NamedQuery& BundleElement::named_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2167. // @@protoc_insertion_point(field_get:firestore.BundleElement.named_query)
  2168. return _internal_named_query();
  2169. }
  2170. inline ::firestore::NamedQuery* BundleElement::unsafe_arena_release_named_query() {
  2171. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.BundleElement.named_query)
  2172. if (element_type_case() == kNamedQuery) {
  2173. clear_has_element_type();
  2174. auto* temp = _impl_.element_type_.named_query_;
  2175. _impl_.element_type_.named_query_ = nullptr;
  2176. return temp;
  2177. } else {
  2178. return nullptr;
  2179. }
  2180. }
  2181. inline void BundleElement::unsafe_arena_set_allocated_named_query(::firestore::NamedQuery* value) {
  2182. // We rely on the oneof clear method to free the earlier contents
  2183. // of this oneof. We can directly use the pointer we're given to
  2184. // set the new value.
  2185. clear_element_type();
  2186. if (value) {
  2187. set_has_named_query();
  2188. _impl_.element_type_.named_query_ = value;
  2189. }
  2190. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundleElement.named_query)
  2191. }
  2192. inline ::firestore::NamedQuery* BundleElement::_internal_mutable_named_query() {
  2193. if (element_type_case() != kNamedQuery) {
  2194. clear_element_type();
  2195. set_has_named_query();
  2196. _impl_.element_type_.named_query_ = CreateMaybeMessage<::firestore::NamedQuery>(GetArena());
  2197. }
  2198. return _impl_.element_type_.named_query_;
  2199. }
  2200. inline ::firestore::NamedQuery* BundleElement::mutable_named_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2201. ::firestore::NamedQuery* _msg = _internal_mutable_named_query();
  2202. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.named_query)
  2203. return _msg;
  2204. }
  2205. // .firestore.BundledDocumentMetadata document_metadata = 3;
  2206. inline bool BundleElement::has_document_metadata() const {
  2207. return element_type_case() == kDocumentMetadata;
  2208. }
  2209. inline bool BundleElement::_internal_has_document_metadata() const {
  2210. return element_type_case() == kDocumentMetadata;
  2211. }
  2212. inline void BundleElement::set_has_document_metadata() {
  2213. _impl_._oneof_case_[0] = kDocumentMetadata;
  2214. }
  2215. inline void BundleElement::clear_document_metadata() {
  2216. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2217. if (element_type_case() == kDocumentMetadata) {
  2218. if (GetArena() == nullptr) {
  2219. delete _impl_.element_type_.document_metadata_;
  2220. }
  2221. clear_has_element_type();
  2222. }
  2223. }
  2224. inline ::firestore::BundledDocumentMetadata* BundleElement::release_document_metadata() {
  2225. // @@protoc_insertion_point(field_release:firestore.BundleElement.document_metadata)
  2226. if (element_type_case() == kDocumentMetadata) {
  2227. clear_has_element_type();
  2228. auto* temp = _impl_.element_type_.document_metadata_;
  2229. if (GetArena() != nullptr) {
  2230. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2231. }
  2232. _impl_.element_type_.document_metadata_ = nullptr;
  2233. return temp;
  2234. } else {
  2235. return nullptr;
  2236. }
  2237. }
  2238. inline const ::firestore::BundledDocumentMetadata& BundleElement::_internal_document_metadata() const {
  2239. return element_type_case() == kDocumentMetadata ? *_impl_.element_type_.document_metadata_ : reinterpret_cast<::firestore::BundledDocumentMetadata&>(::firestore::_BundledDocumentMetadata_default_instance_);
  2240. }
  2241. inline const ::firestore::BundledDocumentMetadata& BundleElement::document_metadata() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2242. // @@protoc_insertion_point(field_get:firestore.BundleElement.document_metadata)
  2243. return _internal_document_metadata();
  2244. }
  2245. inline ::firestore::BundledDocumentMetadata* BundleElement::unsafe_arena_release_document_metadata() {
  2246. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.BundleElement.document_metadata)
  2247. if (element_type_case() == kDocumentMetadata) {
  2248. clear_has_element_type();
  2249. auto* temp = _impl_.element_type_.document_metadata_;
  2250. _impl_.element_type_.document_metadata_ = nullptr;
  2251. return temp;
  2252. } else {
  2253. return nullptr;
  2254. }
  2255. }
  2256. inline void BundleElement::unsafe_arena_set_allocated_document_metadata(::firestore::BundledDocumentMetadata* value) {
  2257. // We rely on the oneof clear method to free the earlier contents
  2258. // of this oneof. We can directly use the pointer we're given to
  2259. // set the new value.
  2260. clear_element_type();
  2261. if (value) {
  2262. set_has_document_metadata();
  2263. _impl_.element_type_.document_metadata_ = value;
  2264. }
  2265. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundleElement.document_metadata)
  2266. }
  2267. inline ::firestore::BundledDocumentMetadata* BundleElement::_internal_mutable_document_metadata() {
  2268. if (element_type_case() != kDocumentMetadata) {
  2269. clear_element_type();
  2270. set_has_document_metadata();
  2271. _impl_.element_type_.document_metadata_ = CreateMaybeMessage<::firestore::BundledDocumentMetadata>(GetArena());
  2272. }
  2273. return _impl_.element_type_.document_metadata_;
  2274. }
  2275. inline ::firestore::BundledDocumentMetadata* BundleElement::mutable_document_metadata() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2276. ::firestore::BundledDocumentMetadata* _msg = _internal_mutable_document_metadata();
  2277. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.document_metadata)
  2278. return _msg;
  2279. }
  2280. // .google.firestore.v1.Document document = 4;
  2281. inline bool BundleElement::has_document() const {
  2282. return element_type_case() == kDocument;
  2283. }
  2284. inline bool BundleElement::_internal_has_document() const {
  2285. return element_type_case() == kDocument;
  2286. }
  2287. inline void BundleElement::set_has_document() {
  2288. _impl_._oneof_case_[0] = kDocument;
  2289. }
  2290. inline ::google::firestore::v1::Document* BundleElement::release_document() {
  2291. // @@protoc_insertion_point(field_release:firestore.BundleElement.document)
  2292. if (element_type_case() == kDocument) {
  2293. clear_has_element_type();
  2294. auto* temp = _impl_.element_type_.document_;
  2295. if (GetArena() != nullptr) {
  2296. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2297. }
  2298. _impl_.element_type_.document_ = nullptr;
  2299. return temp;
  2300. } else {
  2301. return nullptr;
  2302. }
  2303. }
  2304. inline const ::google::firestore::v1::Document& BundleElement::_internal_document() const {
  2305. return element_type_case() == kDocument ? *_impl_.element_type_.document_ : reinterpret_cast<::google::firestore::v1::Document&>(::google::firestore::v1::_Document_default_instance_);
  2306. }
  2307. inline const ::google::firestore::v1::Document& BundleElement::document() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2308. // @@protoc_insertion_point(field_get:firestore.BundleElement.document)
  2309. return _internal_document();
  2310. }
  2311. inline ::google::firestore::v1::Document* BundleElement::unsafe_arena_release_document() {
  2312. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.BundleElement.document)
  2313. if (element_type_case() == kDocument) {
  2314. clear_has_element_type();
  2315. auto* temp = _impl_.element_type_.document_;
  2316. _impl_.element_type_.document_ = nullptr;
  2317. return temp;
  2318. } else {
  2319. return nullptr;
  2320. }
  2321. }
  2322. inline void BundleElement::unsafe_arena_set_allocated_document(::google::firestore::v1::Document* value) {
  2323. // We rely on the oneof clear method to free the earlier contents
  2324. // of this oneof. We can directly use the pointer we're given to
  2325. // set the new value.
  2326. clear_element_type();
  2327. if (value) {
  2328. set_has_document();
  2329. _impl_.element_type_.document_ = value;
  2330. }
  2331. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.BundleElement.document)
  2332. }
  2333. inline ::google::firestore::v1::Document* BundleElement::_internal_mutable_document() {
  2334. if (element_type_case() != kDocument) {
  2335. clear_element_type();
  2336. set_has_document();
  2337. _impl_.element_type_.document_ = CreateMaybeMessage<::google::firestore::v1::Document>(GetArena());
  2338. }
  2339. return _impl_.element_type_.document_;
  2340. }
  2341. inline ::google::firestore::v1::Document* BundleElement::mutable_document() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2342. ::google::firestore::v1::Document* _msg = _internal_mutable_document();
  2343. // @@protoc_insertion_point(field_mutable:firestore.BundleElement.document)
  2344. return _msg;
  2345. }
  2346. inline bool BundleElement::has_element_type() const {
  2347. return element_type_case() != ELEMENT_TYPE_NOT_SET;
  2348. }
  2349. inline void BundleElement::clear_has_element_type() {
  2350. _impl_._oneof_case_[0] = ELEMENT_TYPE_NOT_SET;
  2351. }
  2352. inline BundleElement::ElementTypeCase BundleElement::element_type_case() const {
  2353. return BundleElement::ElementTypeCase(_impl_._oneof_case_[0]);
  2354. }
  2355. #ifdef __GNUC__
  2356. #pragma GCC diagnostic pop
  2357. #endif // __GNUC__
  2358. // @@protoc_insertion_point(namespace_scope)
  2359. } // namespace firestore
  2360. namespace google {
  2361. namespace protobuf {
  2362. template <>
  2363. struct is_proto_enum<::firestore::BundledQuery_LimitType> : std::true_type {};
  2364. template <>
  2365. inline const EnumDescriptor* GetEnumDescriptor<::firestore::BundledQuery_LimitType>() {
  2366. return ::firestore::BundledQuery_LimitType_descriptor();
  2367. }
  2368. } // namespace protobuf
  2369. } // namespace google
  2370. // @@protoc_insertion_point(global_scope)
  2371. #include "google/protobuf/port_undef.inc"
  2372. #endif // GOOGLE_PROTOBUF_INCLUDED_firestore_2fbundle_2eproto_2epb_2eh