document.pb.h 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249
  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: google/firestore/v1/document.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fdocument_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fdocument_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/map.h" // IWYU pragma: export
  48. #include "google/protobuf/map_entry.h"
  49. #include "google/protobuf/map_field_inl.h"
  50. #include "google/protobuf/unknown_field_set.h"
  51. #include "google/protobuf/struct.pb.h"
  52. #include "google/protobuf/timestamp.pb.h"
  53. #include "google/type/latlng.pb.h"
  54. // @@protoc_insertion_point(includes)
  55. // Must be included last.
  56. #include "google/protobuf/port_def.inc"
  57. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto
  58. namespace google {
  59. namespace protobuf {
  60. namespace internal {
  61. class AnyMetadata;
  62. } // namespace internal
  63. } // namespace protobuf
  64. } // namespace google
  65. // Internal implementation detail -- do not use these members.
  66. struct TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto {
  67. static const ::uint32_t offsets[];
  68. };
  69. extern const ::google::protobuf::internal::DescriptorTable
  70. descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto;
  71. namespace google {
  72. namespace firestore {
  73. namespace v1 {
  74. class ArrayValue;
  75. struct ArrayValueDefaultTypeInternal;
  76. extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
  77. class Document;
  78. struct DocumentDefaultTypeInternal;
  79. extern DocumentDefaultTypeInternal _Document_default_instance_;
  80. class Document_FieldsEntry_DoNotUse;
  81. struct Document_FieldsEntry_DoNotUseDefaultTypeInternal;
  82. extern Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
  83. class MapValue;
  84. struct MapValueDefaultTypeInternal;
  85. extern MapValueDefaultTypeInternal _MapValue_default_instance_;
  86. class MapValue_FieldsEntry_DoNotUse;
  87. struct MapValue_FieldsEntry_DoNotUseDefaultTypeInternal;
  88. extern MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
  89. class Value;
  90. struct ValueDefaultTypeInternal;
  91. extern ValueDefaultTypeInternal _Value_default_instance_;
  92. } // namespace v1
  93. } // namespace firestore
  94. namespace protobuf {
  95. } // namespace protobuf
  96. } // namespace google
  97. namespace google {
  98. namespace firestore {
  99. namespace v1 {
  100. // ===================================================================
  101. // -------------------------------------------------------------------
  102. class ArrayValue final :
  103. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ArrayValue) */ {
  104. public:
  105. inline ArrayValue() : ArrayValue(nullptr) {}
  106. ~ArrayValue() override;
  107. template<typename = void>
  108. explicit PROTOBUF_CONSTEXPR ArrayValue(::google::protobuf::internal::ConstantInitialized);
  109. inline ArrayValue(const ArrayValue& from)
  110. : ArrayValue(nullptr, from) {}
  111. ArrayValue(ArrayValue&& from) noexcept
  112. : ArrayValue() {
  113. *this = ::std::move(from);
  114. }
  115. inline ArrayValue& operator=(const ArrayValue& from) {
  116. CopyFrom(from);
  117. return *this;
  118. }
  119. inline ArrayValue& operator=(ArrayValue&& from) noexcept {
  120. if (this == &from) return *this;
  121. if (GetArena() == from.GetArena()
  122. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  123. && GetArena() != nullptr
  124. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  125. ) {
  126. InternalSwap(&from);
  127. } else {
  128. CopyFrom(from);
  129. }
  130. return *this;
  131. }
  132. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  133. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  134. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  135. }
  136. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  137. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  138. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  139. }
  140. static const ::google::protobuf::Descriptor* descriptor() {
  141. return GetDescriptor();
  142. }
  143. static const ::google::protobuf::Descriptor* GetDescriptor() {
  144. return default_instance().GetMetadata().descriptor;
  145. }
  146. static const ::google::protobuf::Reflection* GetReflection() {
  147. return default_instance().GetMetadata().reflection;
  148. }
  149. static const ArrayValue& default_instance() {
  150. return *internal_default_instance();
  151. }
  152. static inline const ArrayValue* internal_default_instance() {
  153. return reinterpret_cast<const ArrayValue*>(
  154. &_ArrayValue_default_instance_);
  155. }
  156. static constexpr int kIndexInFileMessages =
  157. 3;
  158. friend void swap(ArrayValue& a, ArrayValue& b) {
  159. a.Swap(&b);
  160. }
  161. inline void Swap(ArrayValue* other) {
  162. if (other == this) return;
  163. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  164. if (GetArena() != nullptr &&
  165. GetArena() == other->GetArena()) {
  166. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  167. if (GetArena() == other->GetArena()) {
  168. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  169. InternalSwap(other);
  170. } else {
  171. ::google::protobuf::internal::GenericSwap(this, other);
  172. }
  173. }
  174. void UnsafeArenaSwap(ArrayValue* other) {
  175. if (other == this) return;
  176. ABSL_DCHECK(GetArena() == other->GetArena());
  177. InternalSwap(other);
  178. }
  179. // implements Message ----------------------------------------------
  180. ArrayValue* New(::google::protobuf::Arena* arena = nullptr) const final {
  181. return CreateMaybeMessage<ArrayValue>(arena);
  182. }
  183. using ::google::protobuf::Message::CopyFrom;
  184. void CopyFrom(const ArrayValue& from);
  185. using ::google::protobuf::Message::MergeFrom;
  186. void MergeFrom( const ArrayValue& from) {
  187. ArrayValue::MergeImpl(*this, from);
  188. }
  189. private:
  190. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  191. public:
  192. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  193. bool IsInitialized() const final;
  194. ::size_t ByteSizeLong() const final;
  195. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  196. ::uint8_t* _InternalSerialize(
  197. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  198. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  199. private:
  200. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  201. void SharedCtor(::google::protobuf::Arena* arena);
  202. void SharedDtor();
  203. void InternalSwap(ArrayValue* other);
  204. private:
  205. friend class ::google::protobuf::internal::AnyMetadata;
  206. static ::absl::string_view FullMessageName() {
  207. return "google.firestore.v1.ArrayValue";
  208. }
  209. protected:
  210. explicit ArrayValue(::google::protobuf::Arena* arena);
  211. ArrayValue(::google::protobuf::Arena* arena, const ArrayValue& from);
  212. public:
  213. static const ClassData _class_data_;
  214. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  215. ::google::protobuf::Metadata GetMetadata() const final;
  216. // nested types ----------------------------------------------------
  217. // accessors -------------------------------------------------------
  218. enum : int {
  219. kValuesFieldNumber = 1,
  220. };
  221. // repeated .google.firestore.v1.Value values = 1;
  222. int values_size() const;
  223. private:
  224. int _internal_values_size() const;
  225. public:
  226. void clear_values() ;
  227. ::google::firestore::v1::Value* mutable_values(int index);
  228. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  229. mutable_values();
  230. private:
  231. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& _internal_values() const;
  232. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* _internal_mutable_values();
  233. public:
  234. const ::google::firestore::v1::Value& values(int index) const;
  235. ::google::firestore::v1::Value* add_values();
  236. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  237. values() const;
  238. // @@protoc_insertion_point(class_scope:google.firestore.v1.ArrayValue)
  239. private:
  240. class _Internal;
  241. friend class ::google::protobuf::internal::TcParser;
  242. static const ::google::protobuf::internal::TcParseTable<
  243. 0, 1, 1,
  244. 0, 2>
  245. _table_;
  246. friend class ::google::protobuf::MessageLite;
  247. friend class ::google::protobuf::Arena;
  248. template <typename T>
  249. friend class ::google::protobuf::Arena::InternalHelper;
  250. using InternalArenaConstructable_ = void;
  251. using DestructorSkippable_ = void;
  252. struct Impl_ {
  253. inline explicit constexpr Impl_(
  254. ::google::protobuf::internal::ConstantInitialized) noexcept;
  255. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  256. ::google::protobuf::Arena* arena);
  257. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  258. ::google::protobuf::Arena* arena, const Impl_& from);
  259. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > values_;
  260. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  261. PROTOBUF_TSAN_DECLARE_MEMBER
  262. };
  263. union { Impl_ _impl_; };
  264. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  265. };// -------------------------------------------------------------------
  266. class MapValue final :
  267. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.MapValue) */ {
  268. public:
  269. inline MapValue() : MapValue(nullptr) {}
  270. ~MapValue() override;
  271. template<typename = void>
  272. explicit PROTOBUF_CONSTEXPR MapValue(::google::protobuf::internal::ConstantInitialized);
  273. inline MapValue(const MapValue& from)
  274. : MapValue(nullptr, from) {}
  275. MapValue(MapValue&& from) noexcept
  276. : MapValue() {
  277. *this = ::std::move(from);
  278. }
  279. inline MapValue& operator=(const MapValue& from) {
  280. CopyFrom(from);
  281. return *this;
  282. }
  283. inline MapValue& operator=(MapValue&& from) noexcept {
  284. if (this == &from) return *this;
  285. if (GetArena() == from.GetArena()
  286. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  287. && GetArena() != nullptr
  288. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  289. ) {
  290. InternalSwap(&from);
  291. } else {
  292. CopyFrom(from);
  293. }
  294. return *this;
  295. }
  296. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  297. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  298. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  299. }
  300. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  301. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  302. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  303. }
  304. static const ::google::protobuf::Descriptor* descriptor() {
  305. return GetDescriptor();
  306. }
  307. static const ::google::protobuf::Descriptor* GetDescriptor() {
  308. return default_instance().GetMetadata().descriptor;
  309. }
  310. static const ::google::protobuf::Reflection* GetReflection() {
  311. return default_instance().GetMetadata().reflection;
  312. }
  313. static const MapValue& default_instance() {
  314. return *internal_default_instance();
  315. }
  316. static inline const MapValue* internal_default_instance() {
  317. return reinterpret_cast<const MapValue*>(
  318. &_MapValue_default_instance_);
  319. }
  320. static constexpr int kIndexInFileMessages =
  321. 5;
  322. friend void swap(MapValue& a, MapValue& b) {
  323. a.Swap(&b);
  324. }
  325. inline void Swap(MapValue* other) {
  326. if (other == this) return;
  327. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  328. if (GetArena() != nullptr &&
  329. GetArena() == other->GetArena()) {
  330. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  331. if (GetArena() == other->GetArena()) {
  332. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  333. InternalSwap(other);
  334. } else {
  335. ::google::protobuf::internal::GenericSwap(this, other);
  336. }
  337. }
  338. void UnsafeArenaSwap(MapValue* other) {
  339. if (other == this) return;
  340. ABSL_DCHECK(GetArena() == other->GetArena());
  341. InternalSwap(other);
  342. }
  343. // implements Message ----------------------------------------------
  344. MapValue* New(::google::protobuf::Arena* arena = nullptr) const final {
  345. return CreateMaybeMessage<MapValue>(arena);
  346. }
  347. using ::google::protobuf::Message::CopyFrom;
  348. void CopyFrom(const MapValue& from);
  349. using ::google::protobuf::Message::MergeFrom;
  350. void MergeFrom( const MapValue& from) {
  351. MapValue::MergeImpl(*this, from);
  352. }
  353. private:
  354. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  355. public:
  356. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  357. bool IsInitialized() const final;
  358. ::size_t ByteSizeLong() const final;
  359. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  360. ::uint8_t* _InternalSerialize(
  361. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  362. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  363. private:
  364. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  365. void SharedCtor(::google::protobuf::Arena* arena);
  366. void SharedDtor();
  367. void InternalSwap(MapValue* other);
  368. private:
  369. friend class ::google::protobuf::internal::AnyMetadata;
  370. static ::absl::string_view FullMessageName() {
  371. return "google.firestore.v1.MapValue";
  372. }
  373. protected:
  374. explicit MapValue(::google::protobuf::Arena* arena);
  375. MapValue(::google::protobuf::Arena* arena, const MapValue& from);
  376. public:
  377. static const ClassData _class_data_;
  378. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  379. ::google::protobuf::Metadata GetMetadata() const final;
  380. // nested types ----------------------------------------------------
  381. // accessors -------------------------------------------------------
  382. enum : int {
  383. kFieldsFieldNumber = 1,
  384. };
  385. // map<string, .google.firestore.v1.Value> fields = 1;
  386. int fields_size() const;
  387. private:
  388. int _internal_fields_size() const;
  389. public:
  390. void clear_fields() ;
  391. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& fields() const;
  392. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_fields();
  393. private:
  394. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_fields() const;
  395. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_fields();
  396. public:
  397. // @@protoc_insertion_point(class_scope:google.firestore.v1.MapValue)
  398. private:
  399. class _Internal;
  400. friend class ::google::protobuf::internal::TcParser;
  401. static const ::google::protobuf::internal::TcParseTable<
  402. 0, 1, 2,
  403. 43, 2>
  404. _table_;
  405. friend class ::google::protobuf::MessageLite;
  406. friend class ::google::protobuf::Arena;
  407. template <typename T>
  408. friend class ::google::protobuf::Arena::InternalHelper;
  409. using InternalArenaConstructable_ = void;
  410. using DestructorSkippable_ = void;
  411. struct Impl_ {
  412. inline explicit constexpr Impl_(
  413. ::google::protobuf::internal::ConstantInitialized) noexcept;
  414. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  415. ::google::protobuf::Arena* arena);
  416. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  417. ::google::protobuf::Arena* arena, const Impl_& from);
  418. ::google::protobuf::internal::MapField<MapValue_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  419. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  420. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  421. fields_;
  422. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  423. PROTOBUF_TSAN_DECLARE_MEMBER
  424. };
  425. union { Impl_ _impl_; };
  426. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  427. };// -------------------------------------------------------------------
  428. class MapValue_FieldsEntry_DoNotUse final
  429. : public ::google::protobuf::internal::MapEntry<
  430. MapValue_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  431. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  432. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  433. public:
  434. using SuperType = ::google::protobuf::internal::MapEntry<
  435. MapValue_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  436. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  437. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  438. MapValue_FieldsEntry_DoNotUse();
  439. template <typename = void>
  440. explicit PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUse(
  441. ::google::protobuf::internal::ConstantInitialized);
  442. explicit MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  443. static const MapValue_FieldsEntry_DoNotUse* internal_default_instance() {
  444. return reinterpret_cast<const MapValue_FieldsEntry_DoNotUse*>(
  445. &_MapValue_FieldsEntry_DoNotUse_default_instance_);
  446. }
  447. static bool ValidateKey(std::string* s) {
  448. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.MapValue.FieldsEntry.key");
  449. }
  450. static bool ValidateValue(void*) { return true; }
  451. ::google::protobuf::Metadata GetMetadata() const final;
  452. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  453. };
  454. // -------------------------------------------------------------------
  455. class Value final :
  456. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Value) */ {
  457. public:
  458. inline Value() : Value(nullptr) {}
  459. ~Value() override;
  460. template<typename = void>
  461. explicit PROTOBUF_CONSTEXPR Value(::google::protobuf::internal::ConstantInitialized);
  462. inline Value(const Value& from)
  463. : Value(nullptr, from) {}
  464. Value(Value&& from) noexcept
  465. : Value() {
  466. *this = ::std::move(from);
  467. }
  468. inline Value& operator=(const Value& from) {
  469. CopyFrom(from);
  470. return *this;
  471. }
  472. inline Value& operator=(Value&& from) noexcept {
  473. if (this == &from) return *this;
  474. if (GetArena() == from.GetArena()
  475. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  476. && GetArena() != nullptr
  477. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  478. ) {
  479. InternalSwap(&from);
  480. } else {
  481. CopyFrom(from);
  482. }
  483. return *this;
  484. }
  485. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  486. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  487. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  488. }
  489. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  490. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  491. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  492. }
  493. static const ::google::protobuf::Descriptor* descriptor() {
  494. return GetDescriptor();
  495. }
  496. static const ::google::protobuf::Descriptor* GetDescriptor() {
  497. return default_instance().GetMetadata().descriptor;
  498. }
  499. static const ::google::protobuf::Reflection* GetReflection() {
  500. return default_instance().GetMetadata().reflection;
  501. }
  502. static const Value& default_instance() {
  503. return *internal_default_instance();
  504. }
  505. enum ValueTypeCase {
  506. kNullValue = 11,
  507. kBooleanValue = 1,
  508. kIntegerValue = 2,
  509. kDoubleValue = 3,
  510. kTimestampValue = 10,
  511. kStringValue = 17,
  512. kBytesValue = 18,
  513. kReferenceValue = 5,
  514. kGeoPointValue = 8,
  515. kArrayValue = 9,
  516. kMapValue = 6,
  517. VALUE_TYPE_NOT_SET = 0,
  518. };
  519. static inline const Value* internal_default_instance() {
  520. return reinterpret_cast<const Value*>(
  521. &_Value_default_instance_);
  522. }
  523. static constexpr int kIndexInFileMessages =
  524. 2;
  525. friend void swap(Value& a, Value& b) {
  526. a.Swap(&b);
  527. }
  528. inline void Swap(Value* other) {
  529. if (other == this) return;
  530. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  531. if (GetArena() != nullptr &&
  532. GetArena() == other->GetArena()) {
  533. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  534. if (GetArena() == other->GetArena()) {
  535. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  536. InternalSwap(other);
  537. } else {
  538. ::google::protobuf::internal::GenericSwap(this, other);
  539. }
  540. }
  541. void UnsafeArenaSwap(Value* other) {
  542. if (other == this) return;
  543. ABSL_DCHECK(GetArena() == other->GetArena());
  544. InternalSwap(other);
  545. }
  546. // implements Message ----------------------------------------------
  547. Value* New(::google::protobuf::Arena* arena = nullptr) const final {
  548. return CreateMaybeMessage<Value>(arena);
  549. }
  550. using ::google::protobuf::Message::CopyFrom;
  551. void CopyFrom(const Value& from);
  552. using ::google::protobuf::Message::MergeFrom;
  553. void MergeFrom( const Value& from) {
  554. Value::MergeImpl(*this, from);
  555. }
  556. private:
  557. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  558. public:
  559. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  560. bool IsInitialized() const final;
  561. ::size_t ByteSizeLong() const final;
  562. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  563. ::uint8_t* _InternalSerialize(
  564. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  565. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  566. private:
  567. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  568. void SharedCtor(::google::protobuf::Arena* arena);
  569. void SharedDtor();
  570. void InternalSwap(Value* other);
  571. private:
  572. friend class ::google::protobuf::internal::AnyMetadata;
  573. static ::absl::string_view FullMessageName() {
  574. return "google.firestore.v1.Value";
  575. }
  576. protected:
  577. explicit Value(::google::protobuf::Arena* arena);
  578. Value(::google::protobuf::Arena* arena, const Value& from);
  579. public:
  580. static const ClassData _class_data_;
  581. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  582. ::google::protobuf::Metadata GetMetadata() const final;
  583. // nested types ----------------------------------------------------
  584. // accessors -------------------------------------------------------
  585. enum : int {
  586. kNullValueFieldNumber = 11,
  587. kBooleanValueFieldNumber = 1,
  588. kIntegerValueFieldNumber = 2,
  589. kDoubleValueFieldNumber = 3,
  590. kTimestampValueFieldNumber = 10,
  591. kStringValueFieldNumber = 17,
  592. kBytesValueFieldNumber = 18,
  593. kReferenceValueFieldNumber = 5,
  594. kGeoPointValueFieldNumber = 8,
  595. kArrayValueFieldNumber = 9,
  596. kMapValueFieldNumber = 6,
  597. };
  598. // .google.protobuf.NullValue null_value = 11;
  599. bool has_null_value() const;
  600. void clear_null_value() ;
  601. ::google::protobuf::NullValue null_value() const;
  602. void set_null_value(::google::protobuf::NullValue value);
  603. private:
  604. ::google::protobuf::NullValue _internal_null_value() const;
  605. void _internal_set_null_value(::google::protobuf::NullValue value);
  606. public:
  607. // bool boolean_value = 1;
  608. bool has_boolean_value() const;
  609. void clear_boolean_value() ;
  610. bool boolean_value() const;
  611. void set_boolean_value(bool value);
  612. private:
  613. bool _internal_boolean_value() const;
  614. void _internal_set_boolean_value(bool value);
  615. public:
  616. // int64 integer_value = 2;
  617. bool has_integer_value() const;
  618. void clear_integer_value() ;
  619. ::int64_t integer_value() const;
  620. void set_integer_value(::int64_t value);
  621. private:
  622. ::int64_t _internal_integer_value() const;
  623. void _internal_set_integer_value(::int64_t value);
  624. public:
  625. // double double_value = 3;
  626. bool has_double_value() const;
  627. void clear_double_value() ;
  628. double double_value() const;
  629. void set_double_value(double value);
  630. private:
  631. double _internal_double_value() const;
  632. void _internal_set_double_value(double value);
  633. public:
  634. // .google.protobuf.Timestamp timestamp_value = 10;
  635. bool has_timestamp_value() const;
  636. private:
  637. bool _internal_has_timestamp_value() const;
  638. public:
  639. void clear_timestamp_value() ;
  640. const ::google::protobuf::Timestamp& timestamp_value() const;
  641. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_timestamp_value();
  642. ::google::protobuf::Timestamp* mutable_timestamp_value();
  643. void set_allocated_timestamp_value(::google::protobuf::Timestamp* value);
  644. void unsafe_arena_set_allocated_timestamp_value(::google::protobuf::Timestamp* value);
  645. ::google::protobuf::Timestamp* unsafe_arena_release_timestamp_value();
  646. private:
  647. const ::google::protobuf::Timestamp& _internal_timestamp_value() const;
  648. ::google::protobuf::Timestamp* _internal_mutable_timestamp_value();
  649. public:
  650. // string string_value = 17;
  651. bool has_string_value() const;
  652. void clear_string_value() ;
  653. const std::string& string_value() const;
  654. template <typename Arg_ = const std::string&, typename... Args_>
  655. void set_string_value(Arg_&& arg, Args_... args);
  656. std::string* mutable_string_value();
  657. PROTOBUF_NODISCARD std::string* release_string_value();
  658. void set_allocated_string_value(std::string* value);
  659. private:
  660. const std::string& _internal_string_value() const;
  661. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(
  662. const std::string& value);
  663. std::string* _internal_mutable_string_value();
  664. public:
  665. // bytes bytes_value = 18;
  666. bool has_bytes_value() const;
  667. void clear_bytes_value() ;
  668. const std::string& bytes_value() const;
  669. template <typename Arg_ = const std::string&, typename... Args_>
  670. void set_bytes_value(Arg_&& arg, Args_... args);
  671. std::string* mutable_bytes_value();
  672. PROTOBUF_NODISCARD std::string* release_bytes_value();
  673. void set_allocated_bytes_value(std::string* value);
  674. private:
  675. const std::string& _internal_bytes_value() const;
  676. inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(
  677. const std::string& value);
  678. std::string* _internal_mutable_bytes_value();
  679. public:
  680. // string reference_value = 5;
  681. bool has_reference_value() const;
  682. void clear_reference_value() ;
  683. const std::string& reference_value() const;
  684. template <typename Arg_ = const std::string&, typename... Args_>
  685. void set_reference_value(Arg_&& arg, Args_... args);
  686. std::string* mutable_reference_value();
  687. PROTOBUF_NODISCARD std::string* release_reference_value();
  688. void set_allocated_reference_value(std::string* value);
  689. private:
  690. const std::string& _internal_reference_value() const;
  691. inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_value(
  692. const std::string& value);
  693. std::string* _internal_mutable_reference_value();
  694. public:
  695. // .google.type.LatLng geo_point_value = 8;
  696. bool has_geo_point_value() const;
  697. private:
  698. bool _internal_has_geo_point_value() const;
  699. public:
  700. void clear_geo_point_value() ;
  701. const ::google::type::LatLng& geo_point_value() const;
  702. PROTOBUF_NODISCARD ::google::type::LatLng* release_geo_point_value();
  703. ::google::type::LatLng* mutable_geo_point_value();
  704. void set_allocated_geo_point_value(::google::type::LatLng* value);
  705. void unsafe_arena_set_allocated_geo_point_value(::google::type::LatLng* value);
  706. ::google::type::LatLng* unsafe_arena_release_geo_point_value();
  707. private:
  708. const ::google::type::LatLng& _internal_geo_point_value() const;
  709. ::google::type::LatLng* _internal_mutable_geo_point_value();
  710. public:
  711. // .google.firestore.v1.ArrayValue array_value = 9;
  712. bool has_array_value() const;
  713. private:
  714. bool _internal_has_array_value() const;
  715. public:
  716. void clear_array_value() ;
  717. const ::google::firestore::v1::ArrayValue& array_value() const;
  718. PROTOBUF_NODISCARD ::google::firestore::v1::ArrayValue* release_array_value();
  719. ::google::firestore::v1::ArrayValue* mutable_array_value();
  720. void set_allocated_array_value(::google::firestore::v1::ArrayValue* value);
  721. void unsafe_arena_set_allocated_array_value(::google::firestore::v1::ArrayValue* value);
  722. ::google::firestore::v1::ArrayValue* unsafe_arena_release_array_value();
  723. private:
  724. const ::google::firestore::v1::ArrayValue& _internal_array_value() const;
  725. ::google::firestore::v1::ArrayValue* _internal_mutable_array_value();
  726. public:
  727. // .google.firestore.v1.MapValue map_value = 6;
  728. bool has_map_value() const;
  729. private:
  730. bool _internal_has_map_value() const;
  731. public:
  732. void clear_map_value() ;
  733. const ::google::firestore::v1::MapValue& map_value() const;
  734. PROTOBUF_NODISCARD ::google::firestore::v1::MapValue* release_map_value();
  735. ::google::firestore::v1::MapValue* mutable_map_value();
  736. void set_allocated_map_value(::google::firestore::v1::MapValue* value);
  737. void unsafe_arena_set_allocated_map_value(::google::firestore::v1::MapValue* value);
  738. ::google::firestore::v1::MapValue* unsafe_arena_release_map_value();
  739. private:
  740. const ::google::firestore::v1::MapValue& _internal_map_value() const;
  741. ::google::firestore::v1::MapValue* _internal_mutable_map_value();
  742. public:
  743. void clear_value_type();
  744. ValueTypeCase value_type_case() const;
  745. // @@protoc_insertion_point(class_scope:google.firestore.v1.Value)
  746. private:
  747. class _Internal;
  748. void set_has_null_value();
  749. void set_has_boolean_value();
  750. void set_has_integer_value();
  751. void set_has_double_value();
  752. void set_has_timestamp_value();
  753. void set_has_string_value();
  754. void set_has_bytes_value();
  755. void set_has_reference_value();
  756. void set_has_geo_point_value();
  757. void set_has_array_value();
  758. void set_has_map_value();
  759. inline bool has_value_type() const;
  760. inline void clear_has_value_type();
  761. friend class ::google::protobuf::internal::TcParser;
  762. static const ::google::protobuf::internal::TcParseTable<
  763. 0, 11, 4,
  764. 69, 2>
  765. _table_;
  766. friend class ::google::protobuf::MessageLite;
  767. friend class ::google::protobuf::Arena;
  768. template <typename T>
  769. friend class ::google::protobuf::Arena::InternalHelper;
  770. using InternalArenaConstructable_ = void;
  771. using DestructorSkippable_ = void;
  772. struct Impl_ {
  773. inline explicit constexpr Impl_(
  774. ::google::protobuf::internal::ConstantInitialized) noexcept;
  775. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  776. ::google::protobuf::Arena* arena);
  777. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  778. ::google::protobuf::Arena* arena, const Impl_& from);
  779. union ValueTypeUnion {
  780. constexpr ValueTypeUnion() : _constinit_{} {}
  781. ::google::protobuf::internal::ConstantInitialized _constinit_;
  782. int null_value_;
  783. bool boolean_value_;
  784. ::int64_t integer_value_;
  785. double double_value_;
  786. ::google::protobuf::Timestamp* timestamp_value_;
  787. ::google::protobuf::internal::ArenaStringPtr string_value_;
  788. ::google::protobuf::internal::ArenaStringPtr bytes_value_;
  789. ::google::protobuf::internal::ArenaStringPtr reference_value_;
  790. ::google::type::LatLng* geo_point_value_;
  791. ::google::firestore::v1::ArrayValue* array_value_;
  792. ::google::firestore::v1::MapValue* map_value_;
  793. } value_type_;
  794. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  795. ::uint32_t _oneof_case_[1];
  796. PROTOBUF_TSAN_DECLARE_MEMBER
  797. };
  798. union { Impl_ _impl_; };
  799. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  800. };// -------------------------------------------------------------------
  801. class Document_FieldsEntry_DoNotUse final
  802. : public ::google::protobuf::internal::MapEntry<
  803. Document_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  804. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  805. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  806. public:
  807. using SuperType = ::google::protobuf::internal::MapEntry<
  808. Document_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  809. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  810. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  811. Document_FieldsEntry_DoNotUse();
  812. template <typename = void>
  813. explicit PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUse(
  814. ::google::protobuf::internal::ConstantInitialized);
  815. explicit Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  816. static const Document_FieldsEntry_DoNotUse* internal_default_instance() {
  817. return reinterpret_cast<const Document_FieldsEntry_DoNotUse*>(
  818. &_Document_FieldsEntry_DoNotUse_default_instance_);
  819. }
  820. static bool ValidateKey(std::string* s) {
  821. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.Document.FieldsEntry.key");
  822. }
  823. static bool ValidateValue(void*) { return true; }
  824. ::google::protobuf::Metadata GetMetadata() const final;
  825. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  826. };
  827. // -------------------------------------------------------------------
  828. class Document final :
  829. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Document) */ {
  830. public:
  831. inline Document() : Document(nullptr) {}
  832. ~Document() override;
  833. template<typename = void>
  834. explicit PROTOBUF_CONSTEXPR Document(::google::protobuf::internal::ConstantInitialized);
  835. inline Document(const Document& from)
  836. : Document(nullptr, from) {}
  837. Document(Document&& from) noexcept
  838. : Document() {
  839. *this = ::std::move(from);
  840. }
  841. inline Document& operator=(const Document& from) {
  842. CopyFrom(from);
  843. return *this;
  844. }
  845. inline Document& operator=(Document&& from) noexcept {
  846. if (this == &from) return *this;
  847. if (GetArena() == from.GetArena()
  848. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  849. && GetArena() != nullptr
  850. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  851. ) {
  852. InternalSwap(&from);
  853. } else {
  854. CopyFrom(from);
  855. }
  856. return *this;
  857. }
  858. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  859. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  860. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  861. }
  862. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  863. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  864. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  865. }
  866. static const ::google::protobuf::Descriptor* descriptor() {
  867. return GetDescriptor();
  868. }
  869. static const ::google::protobuf::Descriptor* GetDescriptor() {
  870. return default_instance().GetMetadata().descriptor;
  871. }
  872. static const ::google::protobuf::Reflection* GetReflection() {
  873. return default_instance().GetMetadata().reflection;
  874. }
  875. static const Document& default_instance() {
  876. return *internal_default_instance();
  877. }
  878. static inline const Document* internal_default_instance() {
  879. return reinterpret_cast<const Document*>(
  880. &_Document_default_instance_);
  881. }
  882. static constexpr int kIndexInFileMessages =
  883. 1;
  884. friend void swap(Document& a, Document& b) {
  885. a.Swap(&b);
  886. }
  887. inline void Swap(Document* other) {
  888. if (other == this) return;
  889. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  890. if (GetArena() != nullptr &&
  891. GetArena() == other->GetArena()) {
  892. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  893. if (GetArena() == other->GetArena()) {
  894. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  895. InternalSwap(other);
  896. } else {
  897. ::google::protobuf::internal::GenericSwap(this, other);
  898. }
  899. }
  900. void UnsafeArenaSwap(Document* other) {
  901. if (other == this) return;
  902. ABSL_DCHECK(GetArena() == other->GetArena());
  903. InternalSwap(other);
  904. }
  905. // implements Message ----------------------------------------------
  906. Document* New(::google::protobuf::Arena* arena = nullptr) const final {
  907. return CreateMaybeMessage<Document>(arena);
  908. }
  909. using ::google::protobuf::Message::CopyFrom;
  910. void CopyFrom(const Document& from);
  911. using ::google::protobuf::Message::MergeFrom;
  912. void MergeFrom( const Document& from) {
  913. Document::MergeImpl(*this, from);
  914. }
  915. private:
  916. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  917. public:
  918. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  919. bool IsInitialized() const final;
  920. ::size_t ByteSizeLong() const final;
  921. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  922. ::uint8_t* _InternalSerialize(
  923. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  924. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  925. private:
  926. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  927. void SharedCtor(::google::protobuf::Arena* arena);
  928. void SharedDtor();
  929. void InternalSwap(Document* other);
  930. private:
  931. friend class ::google::protobuf::internal::AnyMetadata;
  932. static ::absl::string_view FullMessageName() {
  933. return "google.firestore.v1.Document";
  934. }
  935. protected:
  936. explicit Document(::google::protobuf::Arena* arena);
  937. Document(::google::protobuf::Arena* arena, const Document& from);
  938. public:
  939. static const ClassData _class_data_;
  940. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  941. ::google::protobuf::Metadata GetMetadata() const final;
  942. // nested types ----------------------------------------------------
  943. // accessors -------------------------------------------------------
  944. enum : int {
  945. kFieldsFieldNumber = 2,
  946. kNameFieldNumber = 1,
  947. kCreateTimeFieldNumber = 3,
  948. kUpdateTimeFieldNumber = 4,
  949. };
  950. // map<string, .google.firestore.v1.Value> fields = 2;
  951. int fields_size() const;
  952. private:
  953. int _internal_fields_size() const;
  954. public:
  955. void clear_fields() ;
  956. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& fields() const;
  957. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_fields();
  958. private:
  959. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_fields() const;
  960. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_fields();
  961. public:
  962. // string name = 1;
  963. void clear_name() ;
  964. const std::string& name() const;
  965. template <typename Arg_ = const std::string&, typename... Args_>
  966. void set_name(Arg_&& arg, Args_... args);
  967. std::string* mutable_name();
  968. PROTOBUF_NODISCARD std::string* release_name();
  969. void set_allocated_name(std::string* value);
  970. private:
  971. const std::string& _internal_name() const;
  972. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  973. const std::string& value);
  974. std::string* _internal_mutable_name();
  975. public:
  976. // .google.protobuf.Timestamp create_time = 3;
  977. bool has_create_time() const;
  978. void clear_create_time() ;
  979. const ::google::protobuf::Timestamp& create_time() const;
  980. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_create_time();
  981. ::google::protobuf::Timestamp* mutable_create_time();
  982. void set_allocated_create_time(::google::protobuf::Timestamp* value);
  983. void unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value);
  984. ::google::protobuf::Timestamp* unsafe_arena_release_create_time();
  985. private:
  986. const ::google::protobuf::Timestamp& _internal_create_time() const;
  987. ::google::protobuf::Timestamp* _internal_mutable_create_time();
  988. public:
  989. // .google.protobuf.Timestamp update_time = 4;
  990. bool has_update_time() const;
  991. void clear_update_time() ;
  992. const ::google::protobuf::Timestamp& update_time() const;
  993. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_update_time();
  994. ::google::protobuf::Timestamp* mutable_update_time();
  995. void set_allocated_update_time(::google::protobuf::Timestamp* value);
  996. void unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value);
  997. ::google::protobuf::Timestamp* unsafe_arena_release_update_time();
  998. private:
  999. const ::google::protobuf::Timestamp& _internal_update_time() const;
  1000. ::google::protobuf::Timestamp* _internal_mutable_update_time();
  1001. public:
  1002. // @@protoc_insertion_point(class_scope:google.firestore.v1.Document)
  1003. private:
  1004. class _Internal;
  1005. friend class ::google::protobuf::internal::TcParser;
  1006. static const ::google::protobuf::internal::TcParseTable<
  1007. 2, 4, 4,
  1008. 47, 2>
  1009. _table_;
  1010. friend class ::google::protobuf::MessageLite;
  1011. friend class ::google::protobuf::Arena;
  1012. template <typename T>
  1013. friend class ::google::protobuf::Arena::InternalHelper;
  1014. using InternalArenaConstructable_ = void;
  1015. using DestructorSkippable_ = void;
  1016. struct Impl_ {
  1017. inline explicit constexpr Impl_(
  1018. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1019. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1020. ::google::protobuf::Arena* arena);
  1021. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1022. ::google::protobuf::Arena* arena, const Impl_& from);
  1023. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1024. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1025. ::google::protobuf::internal::MapField<Document_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1026. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1027. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  1028. fields_;
  1029. ::google::protobuf::internal::ArenaStringPtr name_;
  1030. ::google::protobuf::Timestamp* create_time_;
  1031. ::google::protobuf::Timestamp* update_time_;
  1032. PROTOBUF_TSAN_DECLARE_MEMBER
  1033. };
  1034. union { Impl_ _impl_; };
  1035. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  1036. };
  1037. // ===================================================================
  1038. // ===================================================================
  1039. #ifdef __GNUC__
  1040. #pragma GCC diagnostic push
  1041. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1042. #endif // __GNUC__
  1043. // -------------------------------------------------------------------
  1044. // -------------------------------------------------------------------
  1045. // Document
  1046. // string name = 1;
  1047. inline void Document::clear_name() {
  1048. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1049. _impl_.name_.ClearToEmpty();
  1050. }
  1051. inline const std::string& Document::name() const
  1052. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1053. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.name)
  1054. return _internal_name();
  1055. }
  1056. template <typename Arg_, typename... Args_>
  1057. inline PROTOBUF_ALWAYS_INLINE void Document::set_name(Arg_&& arg,
  1058. Args_... args) {
  1059. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1060. ;
  1061. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1062. // @@protoc_insertion_point(field_set:google.firestore.v1.Document.name)
  1063. }
  1064. inline std::string* Document::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1065. std::string* _s = _internal_mutable_name();
  1066. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.name)
  1067. return _s;
  1068. }
  1069. inline const std::string& Document::_internal_name() const {
  1070. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1071. return _impl_.name_.Get();
  1072. }
  1073. inline void Document::_internal_set_name(const std::string& value) {
  1074. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1075. ;
  1076. _impl_.name_.Set(value, GetArena());
  1077. }
  1078. inline std::string* Document::_internal_mutable_name() {
  1079. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1080. ;
  1081. return _impl_.name_.Mutable( GetArena());
  1082. }
  1083. inline std::string* Document::release_name() {
  1084. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1085. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.name)
  1086. return _impl_.name_.Release();
  1087. }
  1088. inline void Document::set_allocated_name(std::string* value) {
  1089. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1090. _impl_.name_.SetAllocated(value, GetArena());
  1091. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1092. if (_impl_.name_.IsDefault()) {
  1093. _impl_.name_.Set("", GetArena());
  1094. }
  1095. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1096. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.name)
  1097. }
  1098. // map<string, .google.firestore.v1.Value> fields = 2;
  1099. inline int Document::_internal_fields_size() const {
  1100. return _internal_fields().size();
  1101. }
  1102. inline int Document::fields_size() const {
  1103. return _internal_fields_size();
  1104. }
  1105. inline void Document::clear_fields() {
  1106. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1107. _impl_.fields_.Clear();
  1108. }
  1109. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Document::_internal_fields() const {
  1110. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1111. return _impl_.fields_.GetMap();
  1112. }
  1113. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Document::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1114. // @@protoc_insertion_point(field_map:google.firestore.v1.Document.fields)
  1115. return _internal_fields();
  1116. }
  1117. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Document::_internal_mutable_fields() {
  1118. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1119. return _impl_.fields_.MutableMap();
  1120. }
  1121. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Document::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1122. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.Document.fields)
  1123. return _internal_mutable_fields();
  1124. }
  1125. // .google.protobuf.Timestamp create_time = 3;
  1126. inline bool Document::has_create_time() const {
  1127. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1128. PROTOBUF_ASSUME(!value || _impl_.create_time_ != nullptr);
  1129. return value;
  1130. }
  1131. inline const ::google::protobuf::Timestamp& Document::_internal_create_time() const {
  1132. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1133. const ::google::protobuf::Timestamp* p = _impl_.create_time_;
  1134. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1135. }
  1136. inline const ::google::protobuf::Timestamp& Document::create_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1137. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.create_time)
  1138. return _internal_create_time();
  1139. }
  1140. inline void Document::unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value) {
  1141. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1142. if (GetArena() == nullptr) {
  1143. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_);
  1144. }
  1145. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1146. if (value != nullptr) {
  1147. _impl_._has_bits_[0] |= 0x00000001u;
  1148. } else {
  1149. _impl_._has_bits_[0] &= ~0x00000001u;
  1150. }
  1151. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Document.create_time)
  1152. }
  1153. inline ::google::protobuf::Timestamp* Document::release_create_time() {
  1154. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1155. _impl_._has_bits_[0] &= ~0x00000001u;
  1156. ::google::protobuf::Timestamp* released = _impl_.create_time_;
  1157. _impl_.create_time_ = nullptr;
  1158. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1159. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1160. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1161. if (GetArena() == nullptr) {
  1162. delete old;
  1163. }
  1164. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1165. if (GetArena() != nullptr) {
  1166. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1167. }
  1168. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1169. return released;
  1170. }
  1171. inline ::google::protobuf::Timestamp* Document::unsafe_arena_release_create_time() {
  1172. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1173. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.create_time)
  1174. _impl_._has_bits_[0] &= ~0x00000001u;
  1175. ::google::protobuf::Timestamp* temp = _impl_.create_time_;
  1176. _impl_.create_time_ = nullptr;
  1177. return temp;
  1178. }
  1179. inline ::google::protobuf::Timestamp* Document::_internal_mutable_create_time() {
  1180. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1181. _impl_._has_bits_[0] |= 0x00000001u;
  1182. if (_impl_.create_time_ == nullptr) {
  1183. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1184. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1185. }
  1186. return _impl_.create_time_;
  1187. }
  1188. inline ::google::protobuf::Timestamp* Document::mutable_create_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1189. ::google::protobuf::Timestamp* _msg = _internal_mutable_create_time();
  1190. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.create_time)
  1191. return _msg;
  1192. }
  1193. inline void Document::set_allocated_create_time(::google::protobuf::Timestamp* value) {
  1194. ::google::protobuf::Arena* message_arena = GetArena();
  1195. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1196. if (message_arena == nullptr) {
  1197. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_);
  1198. }
  1199. if (value != nullptr) {
  1200. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1201. if (message_arena != submessage_arena) {
  1202. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1203. }
  1204. _impl_._has_bits_[0] |= 0x00000001u;
  1205. } else {
  1206. _impl_._has_bits_[0] &= ~0x00000001u;
  1207. }
  1208. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1209. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.create_time)
  1210. }
  1211. // .google.protobuf.Timestamp update_time = 4;
  1212. inline bool Document::has_update_time() const {
  1213. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  1214. PROTOBUF_ASSUME(!value || _impl_.update_time_ != nullptr);
  1215. return value;
  1216. }
  1217. inline const ::google::protobuf::Timestamp& Document::_internal_update_time() const {
  1218. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1219. const ::google::protobuf::Timestamp* p = _impl_.update_time_;
  1220. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1221. }
  1222. inline const ::google::protobuf::Timestamp& Document::update_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1223. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.update_time)
  1224. return _internal_update_time();
  1225. }
  1226. inline void Document::unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value) {
  1227. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1228. if (GetArena() == nullptr) {
  1229. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_time_);
  1230. }
  1231. _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1232. if (value != nullptr) {
  1233. _impl_._has_bits_[0] |= 0x00000002u;
  1234. } else {
  1235. _impl_._has_bits_[0] &= ~0x00000002u;
  1236. }
  1237. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Document.update_time)
  1238. }
  1239. inline ::google::protobuf::Timestamp* Document::release_update_time() {
  1240. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1241. _impl_._has_bits_[0] &= ~0x00000002u;
  1242. ::google::protobuf::Timestamp* released = _impl_.update_time_;
  1243. _impl_.update_time_ = nullptr;
  1244. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1245. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1246. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1247. if (GetArena() == nullptr) {
  1248. delete old;
  1249. }
  1250. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1251. if (GetArena() != nullptr) {
  1252. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1253. }
  1254. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1255. return released;
  1256. }
  1257. inline ::google::protobuf::Timestamp* Document::unsafe_arena_release_update_time() {
  1258. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1259. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.update_time)
  1260. _impl_._has_bits_[0] &= ~0x00000002u;
  1261. ::google::protobuf::Timestamp* temp = _impl_.update_time_;
  1262. _impl_.update_time_ = nullptr;
  1263. return temp;
  1264. }
  1265. inline ::google::protobuf::Timestamp* Document::_internal_mutable_update_time() {
  1266. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1267. _impl_._has_bits_[0] |= 0x00000002u;
  1268. if (_impl_.update_time_ == nullptr) {
  1269. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1270. _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1271. }
  1272. return _impl_.update_time_;
  1273. }
  1274. inline ::google::protobuf::Timestamp* Document::mutable_update_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1275. ::google::protobuf::Timestamp* _msg = _internal_mutable_update_time();
  1276. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.update_time)
  1277. return _msg;
  1278. }
  1279. inline void Document::set_allocated_update_time(::google::protobuf::Timestamp* value) {
  1280. ::google::protobuf::Arena* message_arena = GetArena();
  1281. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1282. if (message_arena == nullptr) {
  1283. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_time_);
  1284. }
  1285. if (value != nullptr) {
  1286. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1287. if (message_arena != submessage_arena) {
  1288. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1289. }
  1290. _impl_._has_bits_[0] |= 0x00000002u;
  1291. } else {
  1292. _impl_._has_bits_[0] &= ~0x00000002u;
  1293. }
  1294. _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1295. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.update_time)
  1296. }
  1297. // -------------------------------------------------------------------
  1298. // Value
  1299. // .google.protobuf.NullValue null_value = 11;
  1300. inline bool Value::has_null_value() const {
  1301. return value_type_case() == kNullValue;
  1302. }
  1303. inline void Value::set_has_null_value() {
  1304. _impl_._oneof_case_[0] = kNullValue;
  1305. }
  1306. inline void Value::clear_null_value() {
  1307. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1308. if (value_type_case() == kNullValue) {
  1309. _impl_.value_type_.null_value_ = 0;
  1310. clear_has_value_type();
  1311. }
  1312. }
  1313. inline ::google::protobuf::NullValue Value::null_value() const {
  1314. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.null_value)
  1315. return _internal_null_value();
  1316. }
  1317. inline void Value::set_null_value(::google::protobuf::NullValue value) {
  1318. _internal_set_null_value(value);
  1319. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.null_value)
  1320. }
  1321. inline ::google::protobuf::NullValue Value::_internal_null_value() const {
  1322. if (value_type_case() == kNullValue) {
  1323. return static_cast<::google::protobuf::NullValue>(_impl_.value_type_.null_value_);
  1324. }
  1325. return static_cast<::google::protobuf::NullValue>(0);
  1326. }
  1327. inline void Value::_internal_set_null_value(::google::protobuf::NullValue value) {
  1328. if (value_type_case() != kNullValue) {
  1329. clear_value_type();
  1330. set_has_null_value();
  1331. }
  1332. _impl_.value_type_.null_value_ = value;
  1333. }
  1334. // bool boolean_value = 1;
  1335. inline bool Value::has_boolean_value() const {
  1336. return value_type_case() == kBooleanValue;
  1337. }
  1338. inline void Value::set_has_boolean_value() {
  1339. _impl_._oneof_case_[0] = kBooleanValue;
  1340. }
  1341. inline void Value::clear_boolean_value() {
  1342. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1343. if (value_type_case() == kBooleanValue) {
  1344. _impl_.value_type_.boolean_value_ = false;
  1345. clear_has_value_type();
  1346. }
  1347. }
  1348. inline bool Value::boolean_value() const {
  1349. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.boolean_value)
  1350. return _internal_boolean_value();
  1351. }
  1352. inline void Value::set_boolean_value(bool value) {
  1353. _internal_set_boolean_value(value);
  1354. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.boolean_value)
  1355. }
  1356. inline bool Value::_internal_boolean_value() const {
  1357. if (value_type_case() == kBooleanValue) {
  1358. return _impl_.value_type_.boolean_value_;
  1359. }
  1360. return false;
  1361. }
  1362. inline void Value::_internal_set_boolean_value(bool value) {
  1363. if (value_type_case() != kBooleanValue) {
  1364. clear_value_type();
  1365. set_has_boolean_value();
  1366. }
  1367. _impl_.value_type_.boolean_value_ = value;
  1368. }
  1369. // int64 integer_value = 2;
  1370. inline bool Value::has_integer_value() const {
  1371. return value_type_case() == kIntegerValue;
  1372. }
  1373. inline void Value::set_has_integer_value() {
  1374. _impl_._oneof_case_[0] = kIntegerValue;
  1375. }
  1376. inline void Value::clear_integer_value() {
  1377. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1378. if (value_type_case() == kIntegerValue) {
  1379. _impl_.value_type_.integer_value_ = ::int64_t{0};
  1380. clear_has_value_type();
  1381. }
  1382. }
  1383. inline ::int64_t Value::integer_value() const {
  1384. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.integer_value)
  1385. return _internal_integer_value();
  1386. }
  1387. inline void Value::set_integer_value(::int64_t value) {
  1388. _internal_set_integer_value(value);
  1389. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.integer_value)
  1390. }
  1391. inline ::int64_t Value::_internal_integer_value() const {
  1392. if (value_type_case() == kIntegerValue) {
  1393. return _impl_.value_type_.integer_value_;
  1394. }
  1395. return ::int64_t{0};
  1396. }
  1397. inline void Value::_internal_set_integer_value(::int64_t value) {
  1398. if (value_type_case() != kIntegerValue) {
  1399. clear_value_type();
  1400. set_has_integer_value();
  1401. }
  1402. _impl_.value_type_.integer_value_ = value;
  1403. }
  1404. // double double_value = 3;
  1405. inline bool Value::has_double_value() const {
  1406. return value_type_case() == kDoubleValue;
  1407. }
  1408. inline void Value::set_has_double_value() {
  1409. _impl_._oneof_case_[0] = kDoubleValue;
  1410. }
  1411. inline void Value::clear_double_value() {
  1412. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1413. if (value_type_case() == kDoubleValue) {
  1414. _impl_.value_type_.double_value_ = 0;
  1415. clear_has_value_type();
  1416. }
  1417. }
  1418. inline double Value::double_value() const {
  1419. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.double_value)
  1420. return _internal_double_value();
  1421. }
  1422. inline void Value::set_double_value(double value) {
  1423. _internal_set_double_value(value);
  1424. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.double_value)
  1425. }
  1426. inline double Value::_internal_double_value() const {
  1427. if (value_type_case() == kDoubleValue) {
  1428. return _impl_.value_type_.double_value_;
  1429. }
  1430. return 0;
  1431. }
  1432. inline void Value::_internal_set_double_value(double value) {
  1433. if (value_type_case() != kDoubleValue) {
  1434. clear_value_type();
  1435. set_has_double_value();
  1436. }
  1437. _impl_.value_type_.double_value_ = value;
  1438. }
  1439. // .google.protobuf.Timestamp timestamp_value = 10;
  1440. inline bool Value::has_timestamp_value() const {
  1441. return value_type_case() == kTimestampValue;
  1442. }
  1443. inline bool Value::_internal_has_timestamp_value() const {
  1444. return value_type_case() == kTimestampValue;
  1445. }
  1446. inline void Value::set_has_timestamp_value() {
  1447. _impl_._oneof_case_[0] = kTimestampValue;
  1448. }
  1449. inline ::google::protobuf::Timestamp* Value::release_timestamp_value() {
  1450. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.timestamp_value)
  1451. if (value_type_case() == kTimestampValue) {
  1452. clear_has_value_type();
  1453. auto* temp = _impl_.value_type_.timestamp_value_;
  1454. if (GetArena() != nullptr) {
  1455. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1456. }
  1457. _impl_.value_type_.timestamp_value_ = nullptr;
  1458. return temp;
  1459. } else {
  1460. return nullptr;
  1461. }
  1462. }
  1463. inline const ::google::protobuf::Timestamp& Value::_internal_timestamp_value() const {
  1464. return value_type_case() == kTimestampValue ? *_impl_.value_type_.timestamp_value_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1465. }
  1466. inline const ::google::protobuf::Timestamp& Value::timestamp_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1467. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.timestamp_value)
  1468. return _internal_timestamp_value();
  1469. }
  1470. inline ::google::protobuf::Timestamp* Value::unsafe_arena_release_timestamp_value() {
  1471. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.timestamp_value)
  1472. if (value_type_case() == kTimestampValue) {
  1473. clear_has_value_type();
  1474. auto* temp = _impl_.value_type_.timestamp_value_;
  1475. _impl_.value_type_.timestamp_value_ = nullptr;
  1476. return temp;
  1477. } else {
  1478. return nullptr;
  1479. }
  1480. }
  1481. inline void Value::unsafe_arena_set_allocated_timestamp_value(::google::protobuf::Timestamp* value) {
  1482. // We rely on the oneof clear method to free the earlier contents
  1483. // of this oneof. We can directly use the pointer we're given to
  1484. // set the new value.
  1485. clear_value_type();
  1486. if (value) {
  1487. set_has_timestamp_value();
  1488. _impl_.value_type_.timestamp_value_ = value;
  1489. }
  1490. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.timestamp_value)
  1491. }
  1492. inline ::google::protobuf::Timestamp* Value::_internal_mutable_timestamp_value() {
  1493. if (value_type_case() != kTimestampValue) {
  1494. clear_value_type();
  1495. set_has_timestamp_value();
  1496. _impl_.value_type_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1497. }
  1498. return _impl_.value_type_.timestamp_value_;
  1499. }
  1500. inline ::google::protobuf::Timestamp* Value::mutable_timestamp_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1501. ::google::protobuf::Timestamp* _msg = _internal_mutable_timestamp_value();
  1502. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.timestamp_value)
  1503. return _msg;
  1504. }
  1505. // string string_value = 17;
  1506. inline bool Value::has_string_value() const {
  1507. return value_type_case() == kStringValue;
  1508. }
  1509. inline void Value::set_has_string_value() {
  1510. _impl_._oneof_case_[0] = kStringValue;
  1511. }
  1512. inline void Value::clear_string_value() {
  1513. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1514. if (value_type_case() == kStringValue) {
  1515. _impl_.value_type_.string_value_.Destroy();
  1516. clear_has_value_type();
  1517. }
  1518. }
  1519. inline const std::string& Value::string_value() const
  1520. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1521. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.string_value)
  1522. return _internal_string_value();
  1523. }
  1524. template <typename Arg_, typename... Args_>
  1525. inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg,
  1526. Args_... args) {
  1527. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1528. if (value_type_case() != kStringValue) {
  1529. clear_value_type();
  1530. set_has_string_value();
  1531. _impl_.value_type_.string_value_.InitDefault();
  1532. }
  1533. _impl_.value_type_.string_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1534. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
  1535. }
  1536. inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1537. std::string* _s = _internal_mutable_string_value();
  1538. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.string_value)
  1539. return _s;
  1540. }
  1541. inline const std::string& Value::_internal_string_value() const {
  1542. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1543. if (value_type_case() != kStringValue) {
  1544. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1545. }
  1546. return _impl_.value_type_.string_value_.Get();
  1547. }
  1548. inline void Value::_internal_set_string_value(const std::string& value) {
  1549. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1550. if (value_type_case() != kStringValue) {
  1551. clear_value_type();
  1552. set_has_string_value();
  1553. _impl_.value_type_.string_value_.InitDefault();
  1554. }
  1555. _impl_.value_type_.string_value_.Set(value, GetArena());
  1556. }
  1557. inline std::string* Value::_internal_mutable_string_value() {
  1558. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1559. if (value_type_case() != kStringValue) {
  1560. clear_value_type();
  1561. set_has_string_value();
  1562. _impl_.value_type_.string_value_.InitDefault();
  1563. }
  1564. return _impl_.value_type_.string_value_.Mutable( GetArena());
  1565. }
  1566. inline std::string* Value::release_string_value() {
  1567. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1568. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.string_value)
  1569. if (value_type_case() != kStringValue) {
  1570. return nullptr;
  1571. }
  1572. clear_has_value_type();
  1573. return _impl_.value_type_.string_value_.Release();
  1574. }
  1575. inline void Value::set_allocated_string_value(std::string* value) {
  1576. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1577. if (has_value_type()) {
  1578. clear_value_type();
  1579. }
  1580. if (value != nullptr) {
  1581. set_has_string_value();
  1582. _impl_.value_type_.string_value_.InitAllocated(value, GetArena());
  1583. }
  1584. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.string_value)
  1585. }
  1586. // bytes bytes_value = 18;
  1587. inline bool Value::has_bytes_value() const {
  1588. return value_type_case() == kBytesValue;
  1589. }
  1590. inline void Value::set_has_bytes_value() {
  1591. _impl_._oneof_case_[0] = kBytesValue;
  1592. }
  1593. inline void Value::clear_bytes_value() {
  1594. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1595. if (value_type_case() == kBytesValue) {
  1596. _impl_.value_type_.bytes_value_.Destroy();
  1597. clear_has_value_type();
  1598. }
  1599. }
  1600. inline const std::string& Value::bytes_value() const
  1601. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1602. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.bytes_value)
  1603. return _internal_bytes_value();
  1604. }
  1605. template <typename Arg_, typename... Args_>
  1606. inline PROTOBUF_ALWAYS_INLINE void Value::set_bytes_value(Arg_&& arg,
  1607. Args_... args) {
  1608. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1609. if (value_type_case() != kBytesValue) {
  1610. clear_value_type();
  1611. set_has_bytes_value();
  1612. _impl_.value_type_.bytes_value_.InitDefault();
  1613. }
  1614. _impl_.value_type_.bytes_value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  1615. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
  1616. }
  1617. inline std::string* Value::mutable_bytes_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1618. std::string* _s = _internal_mutable_bytes_value();
  1619. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.bytes_value)
  1620. return _s;
  1621. }
  1622. inline const std::string& Value::_internal_bytes_value() const {
  1623. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1624. if (value_type_case() != kBytesValue) {
  1625. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1626. }
  1627. return _impl_.value_type_.bytes_value_.Get();
  1628. }
  1629. inline void Value::_internal_set_bytes_value(const std::string& value) {
  1630. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1631. if (value_type_case() != kBytesValue) {
  1632. clear_value_type();
  1633. set_has_bytes_value();
  1634. _impl_.value_type_.bytes_value_.InitDefault();
  1635. }
  1636. _impl_.value_type_.bytes_value_.Set(value, GetArena());
  1637. }
  1638. inline std::string* Value::_internal_mutable_bytes_value() {
  1639. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1640. if (value_type_case() != kBytesValue) {
  1641. clear_value_type();
  1642. set_has_bytes_value();
  1643. _impl_.value_type_.bytes_value_.InitDefault();
  1644. }
  1645. return _impl_.value_type_.bytes_value_.Mutable( GetArena());
  1646. }
  1647. inline std::string* Value::release_bytes_value() {
  1648. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1649. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.bytes_value)
  1650. if (value_type_case() != kBytesValue) {
  1651. return nullptr;
  1652. }
  1653. clear_has_value_type();
  1654. return _impl_.value_type_.bytes_value_.Release();
  1655. }
  1656. inline void Value::set_allocated_bytes_value(std::string* value) {
  1657. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1658. if (has_value_type()) {
  1659. clear_value_type();
  1660. }
  1661. if (value != nullptr) {
  1662. set_has_bytes_value();
  1663. _impl_.value_type_.bytes_value_.InitAllocated(value, GetArena());
  1664. }
  1665. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.bytes_value)
  1666. }
  1667. // string reference_value = 5;
  1668. inline bool Value::has_reference_value() const {
  1669. return value_type_case() == kReferenceValue;
  1670. }
  1671. inline void Value::set_has_reference_value() {
  1672. _impl_._oneof_case_[0] = kReferenceValue;
  1673. }
  1674. inline void Value::clear_reference_value() {
  1675. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1676. if (value_type_case() == kReferenceValue) {
  1677. _impl_.value_type_.reference_value_.Destroy();
  1678. clear_has_value_type();
  1679. }
  1680. }
  1681. inline const std::string& Value::reference_value() const
  1682. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1683. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.reference_value)
  1684. return _internal_reference_value();
  1685. }
  1686. template <typename Arg_, typename... Args_>
  1687. inline PROTOBUF_ALWAYS_INLINE void Value::set_reference_value(Arg_&& arg,
  1688. Args_... args) {
  1689. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1690. if (value_type_case() != kReferenceValue) {
  1691. clear_value_type();
  1692. set_has_reference_value();
  1693. _impl_.value_type_.reference_value_.InitDefault();
  1694. }
  1695. _impl_.value_type_.reference_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1696. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
  1697. }
  1698. inline std::string* Value::mutable_reference_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1699. std::string* _s = _internal_mutable_reference_value();
  1700. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.reference_value)
  1701. return _s;
  1702. }
  1703. inline const std::string& Value::_internal_reference_value() const {
  1704. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1705. if (value_type_case() != kReferenceValue) {
  1706. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1707. }
  1708. return _impl_.value_type_.reference_value_.Get();
  1709. }
  1710. inline void Value::_internal_set_reference_value(const std::string& value) {
  1711. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1712. if (value_type_case() != kReferenceValue) {
  1713. clear_value_type();
  1714. set_has_reference_value();
  1715. _impl_.value_type_.reference_value_.InitDefault();
  1716. }
  1717. _impl_.value_type_.reference_value_.Set(value, GetArena());
  1718. }
  1719. inline std::string* Value::_internal_mutable_reference_value() {
  1720. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1721. if (value_type_case() != kReferenceValue) {
  1722. clear_value_type();
  1723. set_has_reference_value();
  1724. _impl_.value_type_.reference_value_.InitDefault();
  1725. }
  1726. return _impl_.value_type_.reference_value_.Mutable( GetArena());
  1727. }
  1728. inline std::string* Value::release_reference_value() {
  1729. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1730. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.reference_value)
  1731. if (value_type_case() != kReferenceValue) {
  1732. return nullptr;
  1733. }
  1734. clear_has_value_type();
  1735. return _impl_.value_type_.reference_value_.Release();
  1736. }
  1737. inline void Value::set_allocated_reference_value(std::string* value) {
  1738. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1739. if (has_value_type()) {
  1740. clear_value_type();
  1741. }
  1742. if (value != nullptr) {
  1743. set_has_reference_value();
  1744. _impl_.value_type_.reference_value_.InitAllocated(value, GetArena());
  1745. }
  1746. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.reference_value)
  1747. }
  1748. // .google.type.LatLng geo_point_value = 8;
  1749. inline bool Value::has_geo_point_value() const {
  1750. return value_type_case() == kGeoPointValue;
  1751. }
  1752. inline bool Value::_internal_has_geo_point_value() const {
  1753. return value_type_case() == kGeoPointValue;
  1754. }
  1755. inline void Value::set_has_geo_point_value() {
  1756. _impl_._oneof_case_[0] = kGeoPointValue;
  1757. }
  1758. inline ::google::type::LatLng* Value::release_geo_point_value() {
  1759. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.geo_point_value)
  1760. if (value_type_case() == kGeoPointValue) {
  1761. clear_has_value_type();
  1762. auto* temp = _impl_.value_type_.geo_point_value_;
  1763. if (GetArena() != nullptr) {
  1764. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1765. }
  1766. _impl_.value_type_.geo_point_value_ = nullptr;
  1767. return temp;
  1768. } else {
  1769. return nullptr;
  1770. }
  1771. }
  1772. inline const ::google::type::LatLng& Value::_internal_geo_point_value() const {
  1773. return value_type_case() == kGeoPointValue ? *_impl_.value_type_.geo_point_value_ : reinterpret_cast<::google::type::LatLng&>(::google::type::_LatLng_default_instance_);
  1774. }
  1775. inline const ::google::type::LatLng& Value::geo_point_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1776. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.geo_point_value)
  1777. return _internal_geo_point_value();
  1778. }
  1779. inline ::google::type::LatLng* Value::unsafe_arena_release_geo_point_value() {
  1780. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.geo_point_value)
  1781. if (value_type_case() == kGeoPointValue) {
  1782. clear_has_value_type();
  1783. auto* temp = _impl_.value_type_.geo_point_value_;
  1784. _impl_.value_type_.geo_point_value_ = nullptr;
  1785. return temp;
  1786. } else {
  1787. return nullptr;
  1788. }
  1789. }
  1790. inline void Value::unsafe_arena_set_allocated_geo_point_value(::google::type::LatLng* value) {
  1791. // We rely on the oneof clear method to free the earlier contents
  1792. // of this oneof. We can directly use the pointer we're given to
  1793. // set the new value.
  1794. clear_value_type();
  1795. if (value) {
  1796. set_has_geo_point_value();
  1797. _impl_.value_type_.geo_point_value_ = value;
  1798. }
  1799. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.geo_point_value)
  1800. }
  1801. inline ::google::type::LatLng* Value::_internal_mutable_geo_point_value() {
  1802. if (value_type_case() != kGeoPointValue) {
  1803. clear_value_type();
  1804. set_has_geo_point_value();
  1805. _impl_.value_type_.geo_point_value_ = CreateMaybeMessage<::google::type::LatLng>(GetArena());
  1806. }
  1807. return _impl_.value_type_.geo_point_value_;
  1808. }
  1809. inline ::google::type::LatLng* Value::mutable_geo_point_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1810. ::google::type::LatLng* _msg = _internal_mutable_geo_point_value();
  1811. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.geo_point_value)
  1812. return _msg;
  1813. }
  1814. // .google.firestore.v1.ArrayValue array_value = 9;
  1815. inline bool Value::has_array_value() const {
  1816. return value_type_case() == kArrayValue;
  1817. }
  1818. inline bool Value::_internal_has_array_value() const {
  1819. return value_type_case() == kArrayValue;
  1820. }
  1821. inline void Value::set_has_array_value() {
  1822. _impl_._oneof_case_[0] = kArrayValue;
  1823. }
  1824. inline void Value::clear_array_value() {
  1825. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1826. if (value_type_case() == kArrayValue) {
  1827. if (GetArena() == nullptr) {
  1828. delete _impl_.value_type_.array_value_;
  1829. }
  1830. clear_has_value_type();
  1831. }
  1832. }
  1833. inline ::google::firestore::v1::ArrayValue* Value::release_array_value() {
  1834. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.array_value)
  1835. if (value_type_case() == kArrayValue) {
  1836. clear_has_value_type();
  1837. auto* temp = _impl_.value_type_.array_value_;
  1838. if (GetArena() != nullptr) {
  1839. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1840. }
  1841. _impl_.value_type_.array_value_ = nullptr;
  1842. return temp;
  1843. } else {
  1844. return nullptr;
  1845. }
  1846. }
  1847. inline const ::google::firestore::v1::ArrayValue& Value::_internal_array_value() const {
  1848. return value_type_case() == kArrayValue ? *_impl_.value_type_.array_value_ : reinterpret_cast<::google::firestore::v1::ArrayValue&>(::google::firestore::v1::_ArrayValue_default_instance_);
  1849. }
  1850. inline const ::google::firestore::v1::ArrayValue& Value::array_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1851. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.array_value)
  1852. return _internal_array_value();
  1853. }
  1854. inline ::google::firestore::v1::ArrayValue* Value::unsafe_arena_release_array_value() {
  1855. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.array_value)
  1856. if (value_type_case() == kArrayValue) {
  1857. clear_has_value_type();
  1858. auto* temp = _impl_.value_type_.array_value_;
  1859. _impl_.value_type_.array_value_ = nullptr;
  1860. return temp;
  1861. } else {
  1862. return nullptr;
  1863. }
  1864. }
  1865. inline void Value::unsafe_arena_set_allocated_array_value(::google::firestore::v1::ArrayValue* value) {
  1866. // We rely on the oneof clear method to free the earlier contents
  1867. // of this oneof. We can directly use the pointer we're given to
  1868. // set the new value.
  1869. clear_value_type();
  1870. if (value) {
  1871. set_has_array_value();
  1872. _impl_.value_type_.array_value_ = value;
  1873. }
  1874. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.array_value)
  1875. }
  1876. inline ::google::firestore::v1::ArrayValue* Value::_internal_mutable_array_value() {
  1877. if (value_type_case() != kArrayValue) {
  1878. clear_value_type();
  1879. set_has_array_value();
  1880. _impl_.value_type_.array_value_ = CreateMaybeMessage<::google::firestore::v1::ArrayValue>(GetArena());
  1881. }
  1882. return _impl_.value_type_.array_value_;
  1883. }
  1884. inline ::google::firestore::v1::ArrayValue* Value::mutable_array_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1885. ::google::firestore::v1::ArrayValue* _msg = _internal_mutable_array_value();
  1886. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.array_value)
  1887. return _msg;
  1888. }
  1889. // .google.firestore.v1.MapValue map_value = 6;
  1890. inline bool Value::has_map_value() const {
  1891. return value_type_case() == kMapValue;
  1892. }
  1893. inline bool Value::_internal_has_map_value() const {
  1894. return value_type_case() == kMapValue;
  1895. }
  1896. inline void Value::set_has_map_value() {
  1897. _impl_._oneof_case_[0] = kMapValue;
  1898. }
  1899. inline void Value::clear_map_value() {
  1900. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1901. if (value_type_case() == kMapValue) {
  1902. if (GetArena() == nullptr) {
  1903. delete _impl_.value_type_.map_value_;
  1904. }
  1905. clear_has_value_type();
  1906. }
  1907. }
  1908. inline ::google::firestore::v1::MapValue* Value::release_map_value() {
  1909. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.map_value)
  1910. if (value_type_case() == kMapValue) {
  1911. clear_has_value_type();
  1912. auto* temp = _impl_.value_type_.map_value_;
  1913. if (GetArena() != nullptr) {
  1914. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  1915. }
  1916. _impl_.value_type_.map_value_ = nullptr;
  1917. return temp;
  1918. } else {
  1919. return nullptr;
  1920. }
  1921. }
  1922. inline const ::google::firestore::v1::MapValue& Value::_internal_map_value() const {
  1923. return value_type_case() == kMapValue ? *_impl_.value_type_.map_value_ : reinterpret_cast<::google::firestore::v1::MapValue&>(::google::firestore::v1::_MapValue_default_instance_);
  1924. }
  1925. inline const ::google::firestore::v1::MapValue& Value::map_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1926. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.map_value)
  1927. return _internal_map_value();
  1928. }
  1929. inline ::google::firestore::v1::MapValue* Value::unsafe_arena_release_map_value() {
  1930. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.map_value)
  1931. if (value_type_case() == kMapValue) {
  1932. clear_has_value_type();
  1933. auto* temp = _impl_.value_type_.map_value_;
  1934. _impl_.value_type_.map_value_ = nullptr;
  1935. return temp;
  1936. } else {
  1937. return nullptr;
  1938. }
  1939. }
  1940. inline void Value::unsafe_arena_set_allocated_map_value(::google::firestore::v1::MapValue* value) {
  1941. // We rely on the oneof clear method to free the earlier contents
  1942. // of this oneof. We can directly use the pointer we're given to
  1943. // set the new value.
  1944. clear_value_type();
  1945. if (value) {
  1946. set_has_map_value();
  1947. _impl_.value_type_.map_value_ = value;
  1948. }
  1949. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.map_value)
  1950. }
  1951. inline ::google::firestore::v1::MapValue* Value::_internal_mutable_map_value() {
  1952. if (value_type_case() != kMapValue) {
  1953. clear_value_type();
  1954. set_has_map_value();
  1955. _impl_.value_type_.map_value_ = CreateMaybeMessage<::google::firestore::v1::MapValue>(GetArena());
  1956. }
  1957. return _impl_.value_type_.map_value_;
  1958. }
  1959. inline ::google::firestore::v1::MapValue* Value::mutable_map_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1960. ::google::firestore::v1::MapValue* _msg = _internal_mutable_map_value();
  1961. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.map_value)
  1962. return _msg;
  1963. }
  1964. inline bool Value::has_value_type() const {
  1965. return value_type_case() != VALUE_TYPE_NOT_SET;
  1966. }
  1967. inline void Value::clear_has_value_type() {
  1968. _impl_._oneof_case_[0] = VALUE_TYPE_NOT_SET;
  1969. }
  1970. inline Value::ValueTypeCase Value::value_type_case() const {
  1971. return Value::ValueTypeCase(_impl_._oneof_case_[0]);
  1972. }
  1973. // -------------------------------------------------------------------
  1974. // ArrayValue
  1975. // repeated .google.firestore.v1.Value values = 1;
  1976. inline int ArrayValue::_internal_values_size() const {
  1977. return _internal_values().size();
  1978. }
  1979. inline int ArrayValue::values_size() const {
  1980. return _internal_values_size();
  1981. }
  1982. inline void ArrayValue::clear_values() {
  1983. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1984. _impl_.values_.Clear();
  1985. }
  1986. inline ::google::firestore::v1::Value* ArrayValue::mutable_values(int index)
  1987. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1988. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ArrayValue.values)
  1989. return _internal_mutable_values()->Mutable(index);
  1990. }
  1991. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* ArrayValue::mutable_values()
  1992. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1993. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ArrayValue.values)
  1994. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1995. return _internal_mutable_values();
  1996. }
  1997. inline const ::google::firestore::v1::Value& ArrayValue::values(int index) const
  1998. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1999. // @@protoc_insertion_point(field_get:google.firestore.v1.ArrayValue.values)
  2000. return _internal_values().Get(index);
  2001. }
  2002. inline ::google::firestore::v1::Value* ArrayValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2003. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2004. ::google::firestore::v1::Value* _add = _internal_mutable_values()->Add();
  2005. // @@protoc_insertion_point(field_add:google.firestore.v1.ArrayValue.values)
  2006. return _add;
  2007. }
  2008. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& ArrayValue::values() const
  2009. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2010. // @@protoc_insertion_point(field_list:google.firestore.v1.ArrayValue.values)
  2011. return _internal_values();
  2012. }
  2013. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>&
  2014. ArrayValue::_internal_values() const {
  2015. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2016. return _impl_.values_;
  2017. }
  2018. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>*
  2019. ArrayValue::_internal_mutable_values() {
  2020. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2021. return &_impl_.values_;
  2022. }
  2023. // -------------------------------------------------------------------
  2024. // -------------------------------------------------------------------
  2025. // MapValue
  2026. // map<string, .google.firestore.v1.Value> fields = 1;
  2027. inline int MapValue::_internal_fields_size() const {
  2028. return _internal_fields().size();
  2029. }
  2030. inline int MapValue::fields_size() const {
  2031. return _internal_fields_size();
  2032. }
  2033. inline void MapValue::clear_fields() {
  2034. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2035. _impl_.fields_.Clear();
  2036. }
  2037. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& MapValue::_internal_fields() const {
  2038. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2039. return _impl_.fields_.GetMap();
  2040. }
  2041. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& MapValue::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2042. // @@protoc_insertion_point(field_map:google.firestore.v1.MapValue.fields)
  2043. return _internal_fields();
  2044. }
  2045. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* MapValue::_internal_mutable_fields() {
  2046. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2047. return _impl_.fields_.MutableMap();
  2048. }
  2049. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* MapValue::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2050. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.MapValue.fields)
  2051. return _internal_mutable_fields();
  2052. }
  2053. #ifdef __GNUC__
  2054. #pragma GCC diagnostic pop
  2055. #endif // __GNUC__
  2056. // @@protoc_insertion_point(namespace_scope)
  2057. } // namespace v1
  2058. } // namespace firestore
  2059. } // namespace google
  2060. // @@protoc_insertion_point(global_scope)
  2061. #include "google/protobuf/port_undef.inc"
  2062. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fdocument_2eproto_2epb_2eh