document.pb.h 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579
  1. /*
  2. * Copyright 2025 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/api/field_behavior.pb.h"
  52. #include "google/protobuf/struct.pb.h"
  53. #include "google/protobuf/timestamp.pb.h"
  54. #include "google/type/latlng.pb.h"
  55. // @@protoc_insertion_point(includes)
  56. // Must be included last.
  57. #include "google/protobuf/port_def.inc"
  58. #define PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto
  59. namespace google {
  60. namespace protobuf {
  61. namespace internal {
  62. class AnyMetadata;
  63. } // namespace internal
  64. } // namespace protobuf
  65. } // namespace google
  66. // Internal implementation detail -- do not use these members.
  67. struct TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto {
  68. static const ::uint32_t offsets[];
  69. };
  70. extern const ::google::protobuf::internal::DescriptorTable
  71. descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto;
  72. namespace google {
  73. namespace firestore {
  74. namespace v1 {
  75. class ArrayValue;
  76. struct ArrayValueDefaultTypeInternal;
  77. extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
  78. class Document;
  79. struct DocumentDefaultTypeInternal;
  80. extern DocumentDefaultTypeInternal _Document_default_instance_;
  81. class Document_FieldsEntry_DoNotUse;
  82. struct Document_FieldsEntry_DoNotUseDefaultTypeInternal;
  83. extern Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
  84. class Function;
  85. struct FunctionDefaultTypeInternal;
  86. extern FunctionDefaultTypeInternal _Function_default_instance_;
  87. class Function_OptionsEntry_DoNotUse;
  88. struct Function_OptionsEntry_DoNotUseDefaultTypeInternal;
  89. extern Function_OptionsEntry_DoNotUseDefaultTypeInternal _Function_OptionsEntry_DoNotUse_default_instance_;
  90. class MapValue;
  91. struct MapValueDefaultTypeInternal;
  92. extern MapValueDefaultTypeInternal _MapValue_default_instance_;
  93. class MapValue_FieldsEntry_DoNotUse;
  94. struct MapValue_FieldsEntry_DoNotUseDefaultTypeInternal;
  95. extern MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
  96. class Pipeline;
  97. struct PipelineDefaultTypeInternal;
  98. extern PipelineDefaultTypeInternal _Pipeline_default_instance_;
  99. class Pipeline_Stage;
  100. struct Pipeline_StageDefaultTypeInternal;
  101. extern Pipeline_StageDefaultTypeInternal _Pipeline_Stage_default_instance_;
  102. class Pipeline_Stage_OptionsEntry_DoNotUse;
  103. struct Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal;
  104. extern Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal _Pipeline_Stage_OptionsEntry_DoNotUse_default_instance_;
  105. class Value;
  106. struct ValueDefaultTypeInternal;
  107. extern ValueDefaultTypeInternal _Value_default_instance_;
  108. } // namespace v1
  109. } // namespace firestore
  110. namespace protobuf {
  111. } // namespace protobuf
  112. } // namespace google
  113. namespace google {
  114. namespace firestore {
  115. namespace v1 {
  116. // ===================================================================
  117. // -------------------------------------------------------------------
  118. class ArrayValue final :
  119. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ArrayValue) */ {
  120. public:
  121. inline ArrayValue() : ArrayValue(nullptr) {}
  122. ~ArrayValue() override;
  123. template<typename = void>
  124. explicit PROTOBUF_CONSTEXPR ArrayValue(::google::protobuf::internal::ConstantInitialized);
  125. inline ArrayValue(const ArrayValue& from)
  126. : ArrayValue(nullptr, from) {}
  127. ArrayValue(ArrayValue&& from) noexcept
  128. : ArrayValue() {
  129. *this = ::std::move(from);
  130. }
  131. inline ArrayValue& operator=(const ArrayValue& from) {
  132. CopyFrom(from);
  133. return *this;
  134. }
  135. inline ArrayValue& operator=(ArrayValue&& from) noexcept {
  136. if (this == &from) return *this;
  137. if (GetArena() == from.GetArena()
  138. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  139. && GetArena() != nullptr
  140. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  141. ) {
  142. InternalSwap(&from);
  143. } else {
  144. CopyFrom(from);
  145. }
  146. return *this;
  147. }
  148. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  149. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  150. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  151. }
  152. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  153. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  154. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  155. }
  156. static const ::google::protobuf::Descriptor* descriptor() {
  157. return GetDescriptor();
  158. }
  159. static const ::google::protobuf::Descriptor* GetDescriptor() {
  160. return default_instance().GetMetadata().descriptor;
  161. }
  162. static const ::google::protobuf::Reflection* GetReflection() {
  163. return default_instance().GetMetadata().reflection;
  164. }
  165. static const ArrayValue& default_instance() {
  166. return *internal_default_instance();
  167. }
  168. static inline const ArrayValue* internal_default_instance() {
  169. return reinterpret_cast<const ArrayValue*>(
  170. &_ArrayValue_default_instance_);
  171. }
  172. static constexpr int kIndexInFileMessages =
  173. 3;
  174. friend void swap(ArrayValue& a, ArrayValue& b) {
  175. a.Swap(&b);
  176. }
  177. inline void Swap(ArrayValue* other) {
  178. if (other == this) return;
  179. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  180. if (GetArena() != nullptr &&
  181. GetArena() == other->GetArena()) {
  182. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  183. if (GetArena() == other->GetArena()) {
  184. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  185. InternalSwap(other);
  186. } else {
  187. ::google::protobuf::internal::GenericSwap(this, other);
  188. }
  189. }
  190. void UnsafeArenaSwap(ArrayValue* other) {
  191. if (other == this) return;
  192. ABSL_DCHECK(GetArena() == other->GetArena());
  193. InternalSwap(other);
  194. }
  195. // implements Message ----------------------------------------------
  196. ArrayValue* New(::google::protobuf::Arena* arena = nullptr) const final {
  197. return CreateMaybeMessage<ArrayValue>(arena);
  198. }
  199. using ::google::protobuf::Message::CopyFrom;
  200. void CopyFrom(const ArrayValue& from);
  201. using ::google::protobuf::Message::MergeFrom;
  202. void MergeFrom( const ArrayValue& from) {
  203. ArrayValue::MergeImpl(*this, from);
  204. }
  205. private:
  206. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  207. public:
  208. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  209. bool IsInitialized() const final;
  210. ::size_t ByteSizeLong() const final;
  211. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  212. ::uint8_t* _InternalSerialize(
  213. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  214. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  215. private:
  216. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  217. void SharedCtor(::google::protobuf::Arena* arena);
  218. void SharedDtor();
  219. void InternalSwap(ArrayValue* other);
  220. private:
  221. friend class ::google::protobuf::internal::AnyMetadata;
  222. static ::absl::string_view FullMessageName() {
  223. return "google.firestore.v1.ArrayValue";
  224. }
  225. protected:
  226. explicit ArrayValue(::google::protobuf::Arena* arena);
  227. ArrayValue(::google::protobuf::Arena* arena, const ArrayValue& from);
  228. public:
  229. static const ClassData _class_data_;
  230. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  231. ::google::protobuf::Metadata GetMetadata() const final;
  232. // nested types ----------------------------------------------------
  233. // accessors -------------------------------------------------------
  234. enum : int {
  235. kValuesFieldNumber = 1,
  236. };
  237. // repeated .google.firestore.v1.Value values = 1;
  238. int values_size() const;
  239. private:
  240. int _internal_values_size() const;
  241. public:
  242. void clear_values() ;
  243. ::google::firestore::v1::Value* mutable_values(int index);
  244. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  245. mutable_values();
  246. private:
  247. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& _internal_values() const;
  248. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* _internal_mutable_values();
  249. public:
  250. const ::google::firestore::v1::Value& values(int index) const;
  251. ::google::firestore::v1::Value* add_values();
  252. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  253. values() const;
  254. // @@protoc_insertion_point(class_scope:google.firestore.v1.ArrayValue)
  255. private:
  256. class _Internal;
  257. friend class ::google::protobuf::internal::TcParser;
  258. static const ::google::protobuf::internal::TcParseTable<
  259. 0, 1, 1,
  260. 0, 2>
  261. _table_;
  262. friend class ::google::protobuf::MessageLite;
  263. friend class ::google::protobuf::Arena;
  264. template <typename T>
  265. friend class ::google::protobuf::Arena::InternalHelper;
  266. using InternalArenaConstructable_ = void;
  267. using DestructorSkippable_ = void;
  268. struct Impl_ {
  269. inline explicit constexpr Impl_(
  270. ::google::protobuf::internal::ConstantInitialized) noexcept;
  271. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  272. ::google::protobuf::Arena* arena);
  273. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  274. ::google::protobuf::Arena* arena, const Impl_& from);
  275. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > values_;
  276. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  277. PROTOBUF_TSAN_DECLARE_MEMBER
  278. };
  279. union { Impl_ _impl_; };
  280. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  281. };// -------------------------------------------------------------------
  282. class Function final :
  283. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Function) */ {
  284. public:
  285. inline Function() : Function(nullptr) {}
  286. ~Function() override;
  287. template<typename = void>
  288. explicit PROTOBUF_CONSTEXPR Function(::google::protobuf::internal::ConstantInitialized);
  289. inline Function(const Function& from)
  290. : Function(nullptr, from) {}
  291. Function(Function&& from) noexcept
  292. : Function() {
  293. *this = ::std::move(from);
  294. }
  295. inline Function& operator=(const Function& from) {
  296. CopyFrom(from);
  297. return *this;
  298. }
  299. inline Function& operator=(Function&& from) noexcept {
  300. if (this == &from) return *this;
  301. if (GetArena() == from.GetArena()
  302. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  303. && GetArena() != nullptr
  304. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  305. ) {
  306. InternalSwap(&from);
  307. } else {
  308. CopyFrom(from);
  309. }
  310. return *this;
  311. }
  312. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  313. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  314. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  315. }
  316. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  317. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  318. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  319. }
  320. static const ::google::protobuf::Descriptor* descriptor() {
  321. return GetDescriptor();
  322. }
  323. static const ::google::protobuf::Descriptor* GetDescriptor() {
  324. return default_instance().GetMetadata().descriptor;
  325. }
  326. static const ::google::protobuf::Reflection* GetReflection() {
  327. return default_instance().GetMetadata().reflection;
  328. }
  329. static const Function& default_instance() {
  330. return *internal_default_instance();
  331. }
  332. static inline const Function* internal_default_instance() {
  333. return reinterpret_cast<const Function*>(
  334. &_Function_default_instance_);
  335. }
  336. static constexpr int kIndexInFileMessages =
  337. 7;
  338. friend void swap(Function& a, Function& b) {
  339. a.Swap(&b);
  340. }
  341. inline void Swap(Function* other) {
  342. if (other == this) return;
  343. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  344. if (GetArena() != nullptr &&
  345. GetArena() == other->GetArena()) {
  346. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  347. if (GetArena() == other->GetArena()) {
  348. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  349. InternalSwap(other);
  350. } else {
  351. ::google::protobuf::internal::GenericSwap(this, other);
  352. }
  353. }
  354. void UnsafeArenaSwap(Function* other) {
  355. if (other == this) return;
  356. ABSL_DCHECK(GetArena() == other->GetArena());
  357. InternalSwap(other);
  358. }
  359. // implements Message ----------------------------------------------
  360. Function* New(::google::protobuf::Arena* arena = nullptr) const final {
  361. return CreateMaybeMessage<Function>(arena);
  362. }
  363. using ::google::protobuf::Message::CopyFrom;
  364. void CopyFrom(const Function& from);
  365. using ::google::protobuf::Message::MergeFrom;
  366. void MergeFrom( const Function& from) {
  367. Function::MergeImpl(*this, from);
  368. }
  369. private:
  370. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  371. public:
  372. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  373. bool IsInitialized() const final;
  374. ::size_t ByteSizeLong() const final;
  375. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  376. ::uint8_t* _InternalSerialize(
  377. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  378. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  379. private:
  380. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  381. void SharedCtor(::google::protobuf::Arena* arena);
  382. void SharedDtor();
  383. void InternalSwap(Function* other);
  384. private:
  385. friend class ::google::protobuf::internal::AnyMetadata;
  386. static ::absl::string_view FullMessageName() {
  387. return "google.firestore.v1.Function";
  388. }
  389. protected:
  390. explicit Function(::google::protobuf::Arena* arena);
  391. Function(::google::protobuf::Arena* arena, const Function& from);
  392. public:
  393. static const ClassData _class_data_;
  394. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  395. ::google::protobuf::Metadata GetMetadata() const final;
  396. // nested types ----------------------------------------------------
  397. // accessors -------------------------------------------------------
  398. enum : int {
  399. kArgsFieldNumber = 2,
  400. kOptionsFieldNumber = 3,
  401. kNameFieldNumber = 1,
  402. };
  403. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  404. int args_size() const;
  405. private:
  406. int _internal_args_size() const;
  407. public:
  408. void clear_args() ;
  409. ::google::firestore::v1::Value* mutable_args(int index);
  410. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  411. mutable_args();
  412. private:
  413. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& _internal_args() const;
  414. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* _internal_mutable_args();
  415. public:
  416. const ::google::firestore::v1::Value& args(int index) const;
  417. ::google::firestore::v1::Value* add_args();
  418. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  419. args() const;
  420. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  421. int options_size() const;
  422. private:
  423. int _internal_options_size() const;
  424. public:
  425. void clear_options() ;
  426. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& options() const;
  427. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_options();
  428. private:
  429. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_options() const;
  430. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_options();
  431. public:
  432. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  433. void clear_name() ;
  434. const std::string& name() const;
  435. template <typename Arg_ = const std::string&, typename... Args_>
  436. void set_name(Arg_&& arg, Args_... args);
  437. std::string* mutable_name();
  438. PROTOBUF_NODISCARD std::string* release_name();
  439. void set_allocated_name(std::string* value);
  440. private:
  441. const std::string& _internal_name() const;
  442. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  443. const std::string& value);
  444. std::string* _internal_mutable_name();
  445. public:
  446. // @@protoc_insertion_point(class_scope:google.firestore.v1.Function)
  447. private:
  448. class _Internal;
  449. friend class ::google::protobuf::internal::TcParser;
  450. static const ::google::protobuf::internal::TcParseTable<
  451. 1, 3, 3,
  452. 48, 2>
  453. _table_;
  454. friend class ::google::protobuf::MessageLite;
  455. friend class ::google::protobuf::Arena;
  456. template <typename T>
  457. friend class ::google::protobuf::Arena::InternalHelper;
  458. using InternalArenaConstructable_ = void;
  459. using DestructorSkippable_ = void;
  460. struct Impl_ {
  461. inline explicit constexpr Impl_(
  462. ::google::protobuf::internal::ConstantInitialized) noexcept;
  463. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  464. ::google::protobuf::Arena* arena);
  465. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  466. ::google::protobuf::Arena* arena, const Impl_& from);
  467. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > args_;
  468. ::google::protobuf::internal::MapField<Function_OptionsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  469. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  470. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  471. options_;
  472. ::google::protobuf::internal::ArenaStringPtr name_;
  473. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  474. PROTOBUF_TSAN_DECLARE_MEMBER
  475. };
  476. union { Impl_ _impl_; };
  477. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  478. };// -------------------------------------------------------------------
  479. class Function_OptionsEntry_DoNotUse final
  480. : public ::google::protobuf::internal::MapEntry<
  481. Function_OptionsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  482. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  483. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  484. public:
  485. using SuperType = ::google::protobuf::internal::MapEntry<
  486. Function_OptionsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  487. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  488. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  489. Function_OptionsEntry_DoNotUse();
  490. template <typename = void>
  491. explicit PROTOBUF_CONSTEXPR Function_OptionsEntry_DoNotUse(
  492. ::google::protobuf::internal::ConstantInitialized);
  493. explicit Function_OptionsEntry_DoNotUse(::google::protobuf::Arena* arena);
  494. static const Function_OptionsEntry_DoNotUse* internal_default_instance() {
  495. return reinterpret_cast<const Function_OptionsEntry_DoNotUse*>(
  496. &_Function_OptionsEntry_DoNotUse_default_instance_);
  497. }
  498. static bool ValidateKey(std::string* s) {
  499. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.Function.OptionsEntry.key");
  500. }
  501. static bool ValidateValue(void*) { return true; }
  502. ::google::protobuf::Metadata GetMetadata() const final;
  503. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  504. };
  505. // -------------------------------------------------------------------
  506. class MapValue final :
  507. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.MapValue) */ {
  508. public:
  509. inline MapValue() : MapValue(nullptr) {}
  510. ~MapValue() override;
  511. template<typename = void>
  512. explicit PROTOBUF_CONSTEXPR MapValue(::google::protobuf::internal::ConstantInitialized);
  513. inline MapValue(const MapValue& from)
  514. : MapValue(nullptr, from) {}
  515. MapValue(MapValue&& from) noexcept
  516. : MapValue() {
  517. *this = ::std::move(from);
  518. }
  519. inline MapValue& operator=(const MapValue& from) {
  520. CopyFrom(from);
  521. return *this;
  522. }
  523. inline MapValue& operator=(MapValue&& from) noexcept {
  524. if (this == &from) return *this;
  525. if (GetArena() == from.GetArena()
  526. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  527. && GetArena() != nullptr
  528. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  529. ) {
  530. InternalSwap(&from);
  531. } else {
  532. CopyFrom(from);
  533. }
  534. return *this;
  535. }
  536. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  537. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  538. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  539. }
  540. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  541. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  542. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  543. }
  544. static const ::google::protobuf::Descriptor* descriptor() {
  545. return GetDescriptor();
  546. }
  547. static const ::google::protobuf::Descriptor* GetDescriptor() {
  548. return default_instance().GetMetadata().descriptor;
  549. }
  550. static const ::google::protobuf::Reflection* GetReflection() {
  551. return default_instance().GetMetadata().reflection;
  552. }
  553. static const MapValue& default_instance() {
  554. return *internal_default_instance();
  555. }
  556. static inline const MapValue* internal_default_instance() {
  557. return reinterpret_cast<const MapValue*>(
  558. &_MapValue_default_instance_);
  559. }
  560. static constexpr int kIndexInFileMessages =
  561. 5;
  562. friend void swap(MapValue& a, MapValue& b) {
  563. a.Swap(&b);
  564. }
  565. inline void Swap(MapValue* other) {
  566. if (other == this) return;
  567. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  568. if (GetArena() != nullptr &&
  569. GetArena() == other->GetArena()) {
  570. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  571. if (GetArena() == other->GetArena()) {
  572. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  573. InternalSwap(other);
  574. } else {
  575. ::google::protobuf::internal::GenericSwap(this, other);
  576. }
  577. }
  578. void UnsafeArenaSwap(MapValue* other) {
  579. if (other == this) return;
  580. ABSL_DCHECK(GetArena() == other->GetArena());
  581. InternalSwap(other);
  582. }
  583. // implements Message ----------------------------------------------
  584. MapValue* New(::google::protobuf::Arena* arena = nullptr) const final {
  585. return CreateMaybeMessage<MapValue>(arena);
  586. }
  587. using ::google::protobuf::Message::CopyFrom;
  588. void CopyFrom(const MapValue& from);
  589. using ::google::protobuf::Message::MergeFrom;
  590. void MergeFrom( const MapValue& from) {
  591. MapValue::MergeImpl(*this, from);
  592. }
  593. private:
  594. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  595. public:
  596. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  597. bool IsInitialized() const final;
  598. ::size_t ByteSizeLong() const final;
  599. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  600. ::uint8_t* _InternalSerialize(
  601. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  602. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  603. private:
  604. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  605. void SharedCtor(::google::protobuf::Arena* arena);
  606. void SharedDtor();
  607. void InternalSwap(MapValue* other);
  608. private:
  609. friend class ::google::protobuf::internal::AnyMetadata;
  610. static ::absl::string_view FullMessageName() {
  611. return "google.firestore.v1.MapValue";
  612. }
  613. protected:
  614. explicit MapValue(::google::protobuf::Arena* arena);
  615. MapValue(::google::protobuf::Arena* arena, const MapValue& from);
  616. public:
  617. static const ClassData _class_data_;
  618. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  619. ::google::protobuf::Metadata GetMetadata() const final;
  620. // nested types ----------------------------------------------------
  621. // accessors -------------------------------------------------------
  622. enum : int {
  623. kFieldsFieldNumber = 1,
  624. };
  625. // map<string, .google.firestore.v1.Value> fields = 1;
  626. int fields_size() const;
  627. private:
  628. int _internal_fields_size() const;
  629. public:
  630. void clear_fields() ;
  631. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& fields() const;
  632. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_fields();
  633. private:
  634. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_fields() const;
  635. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_fields();
  636. public:
  637. // @@protoc_insertion_point(class_scope:google.firestore.v1.MapValue)
  638. private:
  639. class _Internal;
  640. friend class ::google::protobuf::internal::TcParser;
  641. static const ::google::protobuf::internal::TcParseTable<
  642. 0, 1, 2,
  643. 43, 2>
  644. _table_;
  645. friend class ::google::protobuf::MessageLite;
  646. friend class ::google::protobuf::Arena;
  647. template <typename T>
  648. friend class ::google::protobuf::Arena::InternalHelper;
  649. using InternalArenaConstructable_ = void;
  650. using DestructorSkippable_ = void;
  651. struct Impl_ {
  652. inline explicit constexpr Impl_(
  653. ::google::protobuf::internal::ConstantInitialized) noexcept;
  654. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  655. ::google::protobuf::Arena* arena);
  656. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  657. ::google::protobuf::Arena* arena, const Impl_& from);
  658. ::google::protobuf::internal::MapField<MapValue_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  659. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  660. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  661. fields_;
  662. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  663. PROTOBUF_TSAN_DECLARE_MEMBER
  664. };
  665. union { Impl_ _impl_; };
  666. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  667. };// -------------------------------------------------------------------
  668. class MapValue_FieldsEntry_DoNotUse final
  669. : public ::google::protobuf::internal::MapEntry<
  670. MapValue_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  671. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  672. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  673. public:
  674. using SuperType = ::google::protobuf::internal::MapEntry<
  675. MapValue_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  676. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  677. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  678. MapValue_FieldsEntry_DoNotUse();
  679. template <typename = void>
  680. explicit PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUse(
  681. ::google::protobuf::internal::ConstantInitialized);
  682. explicit MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  683. static const MapValue_FieldsEntry_DoNotUse* internal_default_instance() {
  684. return reinterpret_cast<const MapValue_FieldsEntry_DoNotUse*>(
  685. &_MapValue_FieldsEntry_DoNotUse_default_instance_);
  686. }
  687. static bool ValidateKey(std::string* s) {
  688. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.MapValue.FieldsEntry.key");
  689. }
  690. static bool ValidateValue(void*) { return true; }
  691. ::google::protobuf::Metadata GetMetadata() const final;
  692. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  693. };
  694. // -------------------------------------------------------------------
  695. class Pipeline final :
  696. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Pipeline) */ {
  697. public:
  698. inline Pipeline() : Pipeline(nullptr) {}
  699. ~Pipeline() override;
  700. template<typename = void>
  701. explicit PROTOBUF_CONSTEXPR Pipeline(::google::protobuf::internal::ConstantInitialized);
  702. inline Pipeline(const Pipeline& from)
  703. : Pipeline(nullptr, from) {}
  704. Pipeline(Pipeline&& from) noexcept
  705. : Pipeline() {
  706. *this = ::std::move(from);
  707. }
  708. inline Pipeline& operator=(const Pipeline& from) {
  709. CopyFrom(from);
  710. return *this;
  711. }
  712. inline Pipeline& operator=(Pipeline&& from) noexcept {
  713. if (this == &from) return *this;
  714. if (GetArena() == from.GetArena()
  715. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  716. && GetArena() != nullptr
  717. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  718. ) {
  719. InternalSwap(&from);
  720. } else {
  721. CopyFrom(from);
  722. }
  723. return *this;
  724. }
  725. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  726. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  727. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  728. }
  729. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  730. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  731. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  732. }
  733. static const ::google::protobuf::Descriptor* descriptor() {
  734. return GetDescriptor();
  735. }
  736. static const ::google::protobuf::Descriptor* GetDescriptor() {
  737. return default_instance().GetMetadata().descriptor;
  738. }
  739. static const ::google::protobuf::Reflection* GetReflection() {
  740. return default_instance().GetMetadata().reflection;
  741. }
  742. static const Pipeline& default_instance() {
  743. return *internal_default_instance();
  744. }
  745. static inline const Pipeline* internal_default_instance() {
  746. return reinterpret_cast<const Pipeline*>(
  747. &_Pipeline_default_instance_);
  748. }
  749. static constexpr int kIndexInFileMessages =
  750. 10;
  751. friend void swap(Pipeline& a, Pipeline& b) {
  752. a.Swap(&b);
  753. }
  754. inline void Swap(Pipeline* other) {
  755. if (other == this) return;
  756. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  757. if (GetArena() != nullptr &&
  758. GetArena() == other->GetArena()) {
  759. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  760. if (GetArena() == other->GetArena()) {
  761. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  762. InternalSwap(other);
  763. } else {
  764. ::google::protobuf::internal::GenericSwap(this, other);
  765. }
  766. }
  767. void UnsafeArenaSwap(Pipeline* other) {
  768. if (other == this) return;
  769. ABSL_DCHECK(GetArena() == other->GetArena());
  770. InternalSwap(other);
  771. }
  772. // implements Message ----------------------------------------------
  773. Pipeline* New(::google::protobuf::Arena* arena = nullptr) const final {
  774. return CreateMaybeMessage<Pipeline>(arena);
  775. }
  776. using ::google::protobuf::Message::CopyFrom;
  777. void CopyFrom(const Pipeline& from);
  778. using ::google::protobuf::Message::MergeFrom;
  779. void MergeFrom( const Pipeline& from) {
  780. Pipeline::MergeImpl(*this, from);
  781. }
  782. private:
  783. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  784. public:
  785. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  786. bool IsInitialized() const final;
  787. ::size_t ByteSizeLong() const final;
  788. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  789. ::uint8_t* _InternalSerialize(
  790. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  791. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  792. private:
  793. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  794. void SharedCtor(::google::protobuf::Arena* arena);
  795. void SharedDtor();
  796. void InternalSwap(Pipeline* other);
  797. private:
  798. friend class ::google::protobuf::internal::AnyMetadata;
  799. static ::absl::string_view FullMessageName() {
  800. return "google.firestore.v1.Pipeline";
  801. }
  802. protected:
  803. explicit Pipeline(::google::protobuf::Arena* arena);
  804. Pipeline(::google::protobuf::Arena* arena, const Pipeline& from);
  805. public:
  806. static const ClassData _class_data_;
  807. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  808. ::google::protobuf::Metadata GetMetadata() const final;
  809. // nested types ----------------------------------------------------
  810. using Stage = Pipeline_Stage;
  811. // accessors -------------------------------------------------------
  812. enum : int {
  813. kStagesFieldNumber = 1,
  814. };
  815. // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
  816. int stages_size() const;
  817. private:
  818. int _internal_stages_size() const;
  819. public:
  820. void clear_stages() ;
  821. ::google::firestore::v1::Pipeline_Stage* mutable_stages(int index);
  822. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Pipeline_Stage >*
  823. mutable_stages();
  824. private:
  825. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Pipeline_Stage>& _internal_stages() const;
  826. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Pipeline_Stage>* _internal_mutable_stages();
  827. public:
  828. const ::google::firestore::v1::Pipeline_Stage& stages(int index) const;
  829. ::google::firestore::v1::Pipeline_Stage* add_stages();
  830. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Pipeline_Stage >&
  831. stages() const;
  832. // @@protoc_insertion_point(class_scope:google.firestore.v1.Pipeline)
  833. private:
  834. class _Internal;
  835. friend class ::google::protobuf::internal::TcParser;
  836. static const ::google::protobuf::internal::TcParseTable<
  837. 0, 1, 1,
  838. 0, 2>
  839. _table_;
  840. friend class ::google::protobuf::MessageLite;
  841. friend class ::google::protobuf::Arena;
  842. template <typename T>
  843. friend class ::google::protobuf::Arena::InternalHelper;
  844. using InternalArenaConstructable_ = void;
  845. using DestructorSkippable_ = void;
  846. struct Impl_ {
  847. inline explicit constexpr Impl_(
  848. ::google::protobuf::internal::ConstantInitialized) noexcept;
  849. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  850. ::google::protobuf::Arena* arena);
  851. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  852. ::google::protobuf::Arena* arena, const Impl_& from);
  853. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Pipeline_Stage > stages_;
  854. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  855. PROTOBUF_TSAN_DECLARE_MEMBER
  856. };
  857. union { Impl_ _impl_; };
  858. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  859. };// -------------------------------------------------------------------
  860. class Pipeline_Stage final :
  861. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Pipeline.Stage) */ {
  862. public:
  863. inline Pipeline_Stage() : Pipeline_Stage(nullptr) {}
  864. ~Pipeline_Stage() override;
  865. template<typename = void>
  866. explicit PROTOBUF_CONSTEXPR Pipeline_Stage(::google::protobuf::internal::ConstantInitialized);
  867. inline Pipeline_Stage(const Pipeline_Stage& from)
  868. : Pipeline_Stage(nullptr, from) {}
  869. Pipeline_Stage(Pipeline_Stage&& from) noexcept
  870. : Pipeline_Stage() {
  871. *this = ::std::move(from);
  872. }
  873. inline Pipeline_Stage& operator=(const Pipeline_Stage& from) {
  874. CopyFrom(from);
  875. return *this;
  876. }
  877. inline Pipeline_Stage& operator=(Pipeline_Stage&& from) noexcept {
  878. if (this == &from) return *this;
  879. if (GetArena() == from.GetArena()
  880. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  881. && GetArena() != nullptr
  882. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  883. ) {
  884. InternalSwap(&from);
  885. } else {
  886. CopyFrom(from);
  887. }
  888. return *this;
  889. }
  890. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  891. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  892. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  893. }
  894. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  895. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  896. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  897. }
  898. static const ::google::protobuf::Descriptor* descriptor() {
  899. return GetDescriptor();
  900. }
  901. static const ::google::protobuf::Descriptor* GetDescriptor() {
  902. return default_instance().GetMetadata().descriptor;
  903. }
  904. static const ::google::protobuf::Reflection* GetReflection() {
  905. return default_instance().GetMetadata().reflection;
  906. }
  907. static const Pipeline_Stage& default_instance() {
  908. return *internal_default_instance();
  909. }
  910. static inline const Pipeline_Stage* internal_default_instance() {
  911. return reinterpret_cast<const Pipeline_Stage*>(
  912. &_Pipeline_Stage_default_instance_);
  913. }
  914. static constexpr int kIndexInFileMessages =
  915. 9;
  916. friend void swap(Pipeline_Stage& a, Pipeline_Stage& b) {
  917. a.Swap(&b);
  918. }
  919. inline void Swap(Pipeline_Stage* other) {
  920. if (other == this) return;
  921. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  922. if (GetArena() != nullptr &&
  923. GetArena() == other->GetArena()) {
  924. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  925. if (GetArena() == other->GetArena()) {
  926. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  927. InternalSwap(other);
  928. } else {
  929. ::google::protobuf::internal::GenericSwap(this, other);
  930. }
  931. }
  932. void UnsafeArenaSwap(Pipeline_Stage* other) {
  933. if (other == this) return;
  934. ABSL_DCHECK(GetArena() == other->GetArena());
  935. InternalSwap(other);
  936. }
  937. // implements Message ----------------------------------------------
  938. Pipeline_Stage* New(::google::protobuf::Arena* arena = nullptr) const final {
  939. return CreateMaybeMessage<Pipeline_Stage>(arena);
  940. }
  941. using ::google::protobuf::Message::CopyFrom;
  942. void CopyFrom(const Pipeline_Stage& from);
  943. using ::google::protobuf::Message::MergeFrom;
  944. void MergeFrom( const Pipeline_Stage& from) {
  945. Pipeline_Stage::MergeImpl(*this, from);
  946. }
  947. private:
  948. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  949. public:
  950. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  951. bool IsInitialized() const final;
  952. ::size_t ByteSizeLong() const final;
  953. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  954. ::uint8_t* _InternalSerialize(
  955. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  956. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  957. private:
  958. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  959. void SharedCtor(::google::protobuf::Arena* arena);
  960. void SharedDtor();
  961. void InternalSwap(Pipeline_Stage* other);
  962. private:
  963. friend class ::google::protobuf::internal::AnyMetadata;
  964. static ::absl::string_view FullMessageName() {
  965. return "google.firestore.v1.Pipeline.Stage";
  966. }
  967. protected:
  968. explicit Pipeline_Stage(::google::protobuf::Arena* arena);
  969. Pipeline_Stage(::google::protobuf::Arena* arena, const Pipeline_Stage& from);
  970. public:
  971. static const ClassData _class_data_;
  972. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  973. ::google::protobuf::Metadata GetMetadata() const final;
  974. // nested types ----------------------------------------------------
  975. // accessors -------------------------------------------------------
  976. enum : int {
  977. kArgsFieldNumber = 2,
  978. kOptionsFieldNumber = 3,
  979. kNameFieldNumber = 1,
  980. };
  981. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  982. int args_size() const;
  983. private:
  984. int _internal_args_size() const;
  985. public:
  986. void clear_args() ;
  987. ::google::firestore::v1::Value* mutable_args(int index);
  988. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  989. mutable_args();
  990. private:
  991. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& _internal_args() const;
  992. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* _internal_mutable_args();
  993. public:
  994. const ::google::firestore::v1::Value& args(int index) const;
  995. ::google::firestore::v1::Value* add_args();
  996. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  997. args() const;
  998. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  999. int options_size() const;
  1000. private:
  1001. int _internal_options_size() const;
  1002. public:
  1003. void clear_options() ;
  1004. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& options() const;
  1005. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_options();
  1006. private:
  1007. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_options() const;
  1008. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_options();
  1009. public:
  1010. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  1011. void clear_name() ;
  1012. const std::string& name() const;
  1013. template <typename Arg_ = const std::string&, typename... Args_>
  1014. void set_name(Arg_&& arg, Args_... args);
  1015. std::string* mutable_name();
  1016. PROTOBUF_NODISCARD std::string* release_name();
  1017. void set_allocated_name(std::string* value);
  1018. private:
  1019. const std::string& _internal_name() const;
  1020. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  1021. const std::string& value);
  1022. std::string* _internal_mutable_name();
  1023. public:
  1024. // @@protoc_insertion_point(class_scope:google.firestore.v1.Pipeline.Stage)
  1025. private:
  1026. class _Internal;
  1027. friend class ::google::protobuf::internal::TcParser;
  1028. static const ::google::protobuf::internal::TcParseTable<
  1029. 1, 3, 3,
  1030. 54, 2>
  1031. _table_;
  1032. friend class ::google::protobuf::MessageLite;
  1033. friend class ::google::protobuf::Arena;
  1034. template <typename T>
  1035. friend class ::google::protobuf::Arena::InternalHelper;
  1036. using InternalArenaConstructable_ = void;
  1037. using DestructorSkippable_ = void;
  1038. struct Impl_ {
  1039. inline explicit constexpr Impl_(
  1040. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1041. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1042. ::google::protobuf::Arena* arena);
  1043. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1044. ::google::protobuf::Arena* arena, const Impl_& from);
  1045. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > args_;
  1046. ::google::protobuf::internal::MapField<Pipeline_Stage_OptionsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1047. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1048. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  1049. options_;
  1050. ::google::protobuf::internal::ArenaStringPtr name_;
  1051. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1052. PROTOBUF_TSAN_DECLARE_MEMBER
  1053. };
  1054. union { Impl_ _impl_; };
  1055. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  1056. };// -------------------------------------------------------------------
  1057. class Pipeline_Stage_OptionsEntry_DoNotUse final
  1058. : public ::google::protobuf::internal::MapEntry<
  1059. Pipeline_Stage_OptionsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1060. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1061. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  1062. public:
  1063. using SuperType = ::google::protobuf::internal::MapEntry<
  1064. Pipeline_Stage_OptionsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1065. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1066. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  1067. Pipeline_Stage_OptionsEntry_DoNotUse();
  1068. template <typename = void>
  1069. explicit PROTOBUF_CONSTEXPR Pipeline_Stage_OptionsEntry_DoNotUse(
  1070. ::google::protobuf::internal::ConstantInitialized);
  1071. explicit Pipeline_Stage_OptionsEntry_DoNotUse(::google::protobuf::Arena* arena);
  1072. static const Pipeline_Stage_OptionsEntry_DoNotUse* internal_default_instance() {
  1073. return reinterpret_cast<const Pipeline_Stage_OptionsEntry_DoNotUse*>(
  1074. &_Pipeline_Stage_OptionsEntry_DoNotUse_default_instance_);
  1075. }
  1076. static bool ValidateKey(std::string* s) {
  1077. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.Pipeline.Stage.OptionsEntry.key");
  1078. }
  1079. static bool ValidateValue(void*) { return true; }
  1080. ::google::protobuf::Metadata GetMetadata() const final;
  1081. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  1082. };
  1083. // -------------------------------------------------------------------
  1084. class Value final :
  1085. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Value) */ {
  1086. public:
  1087. inline Value() : Value(nullptr) {}
  1088. ~Value() override;
  1089. template<typename = void>
  1090. explicit PROTOBUF_CONSTEXPR Value(::google::protobuf::internal::ConstantInitialized);
  1091. inline Value(const Value& from)
  1092. : Value(nullptr, from) {}
  1093. Value(Value&& from) noexcept
  1094. : Value() {
  1095. *this = ::std::move(from);
  1096. }
  1097. inline Value& operator=(const Value& from) {
  1098. CopyFrom(from);
  1099. return *this;
  1100. }
  1101. inline Value& operator=(Value&& from) noexcept {
  1102. if (this == &from) return *this;
  1103. if (GetArena() == from.GetArena()
  1104. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1105. && GetArena() != nullptr
  1106. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1107. ) {
  1108. InternalSwap(&from);
  1109. } else {
  1110. CopyFrom(from);
  1111. }
  1112. return *this;
  1113. }
  1114. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1115. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1116. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1117. }
  1118. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1119. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1120. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1121. }
  1122. static const ::google::protobuf::Descriptor* descriptor() {
  1123. return GetDescriptor();
  1124. }
  1125. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1126. return default_instance().GetMetadata().descriptor;
  1127. }
  1128. static const ::google::protobuf::Reflection* GetReflection() {
  1129. return default_instance().GetMetadata().reflection;
  1130. }
  1131. static const Value& default_instance() {
  1132. return *internal_default_instance();
  1133. }
  1134. enum ValueTypeCase {
  1135. kNullValue = 11,
  1136. kBooleanValue = 1,
  1137. kIntegerValue = 2,
  1138. kDoubleValue = 3,
  1139. kTimestampValue = 10,
  1140. kStringValue = 17,
  1141. kBytesValue = 18,
  1142. kReferenceValue = 5,
  1143. kGeoPointValue = 8,
  1144. kArrayValue = 9,
  1145. kMapValue = 6,
  1146. kFieldReferenceValue = 19,
  1147. kFunctionValue = 20,
  1148. kPipelineValue = 21,
  1149. VALUE_TYPE_NOT_SET = 0,
  1150. };
  1151. static inline const Value* internal_default_instance() {
  1152. return reinterpret_cast<const Value*>(
  1153. &_Value_default_instance_);
  1154. }
  1155. static constexpr int kIndexInFileMessages =
  1156. 2;
  1157. friend void swap(Value& a, Value& b) {
  1158. a.Swap(&b);
  1159. }
  1160. inline void Swap(Value* other) {
  1161. if (other == this) return;
  1162. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1163. if (GetArena() != nullptr &&
  1164. GetArena() == other->GetArena()) {
  1165. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1166. if (GetArena() == other->GetArena()) {
  1167. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1168. InternalSwap(other);
  1169. } else {
  1170. ::google::protobuf::internal::GenericSwap(this, other);
  1171. }
  1172. }
  1173. void UnsafeArenaSwap(Value* other) {
  1174. if (other == this) return;
  1175. ABSL_DCHECK(GetArena() == other->GetArena());
  1176. InternalSwap(other);
  1177. }
  1178. // implements Message ----------------------------------------------
  1179. Value* New(::google::protobuf::Arena* arena = nullptr) const final {
  1180. return CreateMaybeMessage<Value>(arena);
  1181. }
  1182. using ::google::protobuf::Message::CopyFrom;
  1183. void CopyFrom(const Value& from);
  1184. using ::google::protobuf::Message::MergeFrom;
  1185. void MergeFrom( const Value& from) {
  1186. Value::MergeImpl(*this, from);
  1187. }
  1188. private:
  1189. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1190. public:
  1191. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1192. bool IsInitialized() const final;
  1193. ::size_t ByteSizeLong() const final;
  1194. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1195. ::uint8_t* _InternalSerialize(
  1196. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1197. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1198. private:
  1199. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1200. void SharedCtor(::google::protobuf::Arena* arena);
  1201. void SharedDtor();
  1202. void InternalSwap(Value* other);
  1203. private:
  1204. friend class ::google::protobuf::internal::AnyMetadata;
  1205. static ::absl::string_view FullMessageName() {
  1206. return "google.firestore.v1.Value";
  1207. }
  1208. protected:
  1209. explicit Value(::google::protobuf::Arena* arena);
  1210. Value(::google::protobuf::Arena* arena, const Value& from);
  1211. public:
  1212. static const ClassData _class_data_;
  1213. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1214. ::google::protobuf::Metadata GetMetadata() const final;
  1215. // nested types ----------------------------------------------------
  1216. // accessors -------------------------------------------------------
  1217. enum : int {
  1218. kNullValueFieldNumber = 11,
  1219. kBooleanValueFieldNumber = 1,
  1220. kIntegerValueFieldNumber = 2,
  1221. kDoubleValueFieldNumber = 3,
  1222. kTimestampValueFieldNumber = 10,
  1223. kStringValueFieldNumber = 17,
  1224. kBytesValueFieldNumber = 18,
  1225. kReferenceValueFieldNumber = 5,
  1226. kGeoPointValueFieldNumber = 8,
  1227. kArrayValueFieldNumber = 9,
  1228. kMapValueFieldNumber = 6,
  1229. kFieldReferenceValueFieldNumber = 19,
  1230. kFunctionValueFieldNumber = 20,
  1231. kPipelineValueFieldNumber = 21,
  1232. };
  1233. // .google.protobuf.NullValue null_value = 11;
  1234. bool has_null_value() const;
  1235. void clear_null_value() ;
  1236. ::google::protobuf::NullValue null_value() const;
  1237. void set_null_value(::google::protobuf::NullValue value);
  1238. private:
  1239. ::google::protobuf::NullValue _internal_null_value() const;
  1240. void _internal_set_null_value(::google::protobuf::NullValue value);
  1241. public:
  1242. // bool boolean_value = 1;
  1243. bool has_boolean_value() const;
  1244. void clear_boolean_value() ;
  1245. bool boolean_value() const;
  1246. void set_boolean_value(bool value);
  1247. private:
  1248. bool _internal_boolean_value() const;
  1249. void _internal_set_boolean_value(bool value);
  1250. public:
  1251. // int64 integer_value = 2;
  1252. bool has_integer_value() const;
  1253. void clear_integer_value() ;
  1254. ::int64_t integer_value() const;
  1255. void set_integer_value(::int64_t value);
  1256. private:
  1257. ::int64_t _internal_integer_value() const;
  1258. void _internal_set_integer_value(::int64_t value);
  1259. public:
  1260. // double double_value = 3;
  1261. bool has_double_value() const;
  1262. void clear_double_value() ;
  1263. double double_value() const;
  1264. void set_double_value(double value);
  1265. private:
  1266. double _internal_double_value() const;
  1267. void _internal_set_double_value(double value);
  1268. public:
  1269. // .google.protobuf.Timestamp timestamp_value = 10;
  1270. bool has_timestamp_value() const;
  1271. private:
  1272. bool _internal_has_timestamp_value() const;
  1273. public:
  1274. void clear_timestamp_value() ;
  1275. const ::google::protobuf::Timestamp& timestamp_value() const;
  1276. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_timestamp_value();
  1277. ::google::protobuf::Timestamp* mutable_timestamp_value();
  1278. void set_allocated_timestamp_value(::google::protobuf::Timestamp* value);
  1279. void unsafe_arena_set_allocated_timestamp_value(::google::protobuf::Timestamp* value);
  1280. ::google::protobuf::Timestamp* unsafe_arena_release_timestamp_value();
  1281. private:
  1282. const ::google::protobuf::Timestamp& _internal_timestamp_value() const;
  1283. ::google::protobuf::Timestamp* _internal_mutable_timestamp_value();
  1284. public:
  1285. // string string_value = 17;
  1286. bool has_string_value() const;
  1287. void clear_string_value() ;
  1288. const std::string& string_value() const;
  1289. template <typename Arg_ = const std::string&, typename... Args_>
  1290. void set_string_value(Arg_&& arg, Args_... args);
  1291. std::string* mutable_string_value();
  1292. PROTOBUF_NODISCARD std::string* release_string_value();
  1293. void set_allocated_string_value(std::string* value);
  1294. private:
  1295. const std::string& _internal_string_value() const;
  1296. inline PROTOBUF_ALWAYS_INLINE void _internal_set_string_value(
  1297. const std::string& value);
  1298. std::string* _internal_mutable_string_value();
  1299. public:
  1300. // bytes bytes_value = 18;
  1301. bool has_bytes_value() const;
  1302. void clear_bytes_value() ;
  1303. const std::string& bytes_value() const;
  1304. template <typename Arg_ = const std::string&, typename... Args_>
  1305. void set_bytes_value(Arg_&& arg, Args_... args);
  1306. std::string* mutable_bytes_value();
  1307. PROTOBUF_NODISCARD std::string* release_bytes_value();
  1308. void set_allocated_bytes_value(std::string* value);
  1309. private:
  1310. const std::string& _internal_bytes_value() const;
  1311. inline PROTOBUF_ALWAYS_INLINE void _internal_set_bytes_value(
  1312. const std::string& value);
  1313. std::string* _internal_mutable_bytes_value();
  1314. public:
  1315. // string reference_value = 5;
  1316. bool has_reference_value() const;
  1317. void clear_reference_value() ;
  1318. const std::string& reference_value() const;
  1319. template <typename Arg_ = const std::string&, typename... Args_>
  1320. void set_reference_value(Arg_&& arg, Args_... args);
  1321. std::string* mutable_reference_value();
  1322. PROTOBUF_NODISCARD std::string* release_reference_value();
  1323. void set_allocated_reference_value(std::string* value);
  1324. private:
  1325. const std::string& _internal_reference_value() const;
  1326. inline PROTOBUF_ALWAYS_INLINE void _internal_set_reference_value(
  1327. const std::string& value);
  1328. std::string* _internal_mutable_reference_value();
  1329. public:
  1330. // .google.type.LatLng geo_point_value = 8;
  1331. bool has_geo_point_value() const;
  1332. private:
  1333. bool _internal_has_geo_point_value() const;
  1334. public:
  1335. void clear_geo_point_value() ;
  1336. const ::google::type::LatLng& geo_point_value() const;
  1337. PROTOBUF_NODISCARD ::google::type::LatLng* release_geo_point_value();
  1338. ::google::type::LatLng* mutable_geo_point_value();
  1339. void set_allocated_geo_point_value(::google::type::LatLng* value);
  1340. void unsafe_arena_set_allocated_geo_point_value(::google::type::LatLng* value);
  1341. ::google::type::LatLng* unsafe_arena_release_geo_point_value();
  1342. private:
  1343. const ::google::type::LatLng& _internal_geo_point_value() const;
  1344. ::google::type::LatLng* _internal_mutable_geo_point_value();
  1345. public:
  1346. // .google.firestore.v1.ArrayValue array_value = 9;
  1347. bool has_array_value() const;
  1348. private:
  1349. bool _internal_has_array_value() const;
  1350. public:
  1351. void clear_array_value() ;
  1352. const ::google::firestore::v1::ArrayValue& array_value() const;
  1353. PROTOBUF_NODISCARD ::google::firestore::v1::ArrayValue* release_array_value();
  1354. ::google::firestore::v1::ArrayValue* mutable_array_value();
  1355. void set_allocated_array_value(::google::firestore::v1::ArrayValue* value);
  1356. void unsafe_arena_set_allocated_array_value(::google::firestore::v1::ArrayValue* value);
  1357. ::google::firestore::v1::ArrayValue* unsafe_arena_release_array_value();
  1358. private:
  1359. const ::google::firestore::v1::ArrayValue& _internal_array_value() const;
  1360. ::google::firestore::v1::ArrayValue* _internal_mutable_array_value();
  1361. public:
  1362. // .google.firestore.v1.MapValue map_value = 6;
  1363. bool has_map_value() const;
  1364. private:
  1365. bool _internal_has_map_value() const;
  1366. public:
  1367. void clear_map_value() ;
  1368. const ::google::firestore::v1::MapValue& map_value() const;
  1369. PROTOBUF_NODISCARD ::google::firestore::v1::MapValue* release_map_value();
  1370. ::google::firestore::v1::MapValue* mutable_map_value();
  1371. void set_allocated_map_value(::google::firestore::v1::MapValue* value);
  1372. void unsafe_arena_set_allocated_map_value(::google::firestore::v1::MapValue* value);
  1373. ::google::firestore::v1::MapValue* unsafe_arena_release_map_value();
  1374. private:
  1375. const ::google::firestore::v1::MapValue& _internal_map_value() const;
  1376. ::google::firestore::v1::MapValue* _internal_mutable_map_value();
  1377. public:
  1378. // string field_reference_value = 19;
  1379. bool has_field_reference_value() const;
  1380. void clear_field_reference_value() ;
  1381. const std::string& field_reference_value() const;
  1382. template <typename Arg_ = const std::string&, typename... Args_>
  1383. void set_field_reference_value(Arg_&& arg, Args_... args);
  1384. std::string* mutable_field_reference_value();
  1385. PROTOBUF_NODISCARD std::string* release_field_reference_value();
  1386. void set_allocated_field_reference_value(std::string* value);
  1387. private:
  1388. const std::string& _internal_field_reference_value() const;
  1389. inline PROTOBUF_ALWAYS_INLINE void _internal_set_field_reference_value(
  1390. const std::string& value);
  1391. std::string* _internal_mutable_field_reference_value();
  1392. public:
  1393. // .google.firestore.v1.Function function_value = 20;
  1394. bool has_function_value() const;
  1395. private:
  1396. bool _internal_has_function_value() const;
  1397. public:
  1398. void clear_function_value() ;
  1399. const ::google::firestore::v1::Function& function_value() const;
  1400. PROTOBUF_NODISCARD ::google::firestore::v1::Function* release_function_value();
  1401. ::google::firestore::v1::Function* mutable_function_value();
  1402. void set_allocated_function_value(::google::firestore::v1::Function* value);
  1403. void unsafe_arena_set_allocated_function_value(::google::firestore::v1::Function* value);
  1404. ::google::firestore::v1::Function* unsafe_arena_release_function_value();
  1405. private:
  1406. const ::google::firestore::v1::Function& _internal_function_value() const;
  1407. ::google::firestore::v1::Function* _internal_mutable_function_value();
  1408. public:
  1409. // .google.firestore.v1.Pipeline pipeline_value = 21;
  1410. bool has_pipeline_value() const;
  1411. private:
  1412. bool _internal_has_pipeline_value() const;
  1413. public:
  1414. void clear_pipeline_value() ;
  1415. const ::google::firestore::v1::Pipeline& pipeline_value() const;
  1416. PROTOBUF_NODISCARD ::google::firestore::v1::Pipeline* release_pipeline_value();
  1417. ::google::firestore::v1::Pipeline* mutable_pipeline_value();
  1418. void set_allocated_pipeline_value(::google::firestore::v1::Pipeline* value);
  1419. void unsafe_arena_set_allocated_pipeline_value(::google::firestore::v1::Pipeline* value);
  1420. ::google::firestore::v1::Pipeline* unsafe_arena_release_pipeline_value();
  1421. private:
  1422. const ::google::firestore::v1::Pipeline& _internal_pipeline_value() const;
  1423. ::google::firestore::v1::Pipeline* _internal_mutable_pipeline_value();
  1424. public:
  1425. void clear_value_type();
  1426. ValueTypeCase value_type_case() const;
  1427. // @@protoc_insertion_point(class_scope:google.firestore.v1.Value)
  1428. private:
  1429. class _Internal;
  1430. void set_has_null_value();
  1431. void set_has_boolean_value();
  1432. void set_has_integer_value();
  1433. void set_has_double_value();
  1434. void set_has_timestamp_value();
  1435. void set_has_string_value();
  1436. void set_has_bytes_value();
  1437. void set_has_reference_value();
  1438. void set_has_geo_point_value();
  1439. void set_has_array_value();
  1440. void set_has_map_value();
  1441. void set_has_field_reference_value();
  1442. void set_has_function_value();
  1443. void set_has_pipeline_value();
  1444. inline bool has_value_type() const;
  1445. inline void clear_has_value_type();
  1446. friend class ::google::protobuf::internal::TcParser;
  1447. static const ::google::protobuf::internal::TcParseTable<
  1448. 0, 14, 6,
  1449. 90, 2>
  1450. _table_;
  1451. friend class ::google::protobuf::MessageLite;
  1452. friend class ::google::protobuf::Arena;
  1453. template <typename T>
  1454. friend class ::google::protobuf::Arena::InternalHelper;
  1455. using InternalArenaConstructable_ = void;
  1456. using DestructorSkippable_ = void;
  1457. struct Impl_ {
  1458. inline explicit constexpr Impl_(
  1459. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1460. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1461. ::google::protobuf::Arena* arena);
  1462. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1463. ::google::protobuf::Arena* arena, const Impl_& from);
  1464. union ValueTypeUnion {
  1465. constexpr ValueTypeUnion() : _constinit_{} {}
  1466. ::google::protobuf::internal::ConstantInitialized _constinit_;
  1467. int null_value_;
  1468. bool boolean_value_;
  1469. ::int64_t integer_value_;
  1470. double double_value_;
  1471. ::google::protobuf::Timestamp* timestamp_value_;
  1472. ::google::protobuf::internal::ArenaStringPtr string_value_;
  1473. ::google::protobuf::internal::ArenaStringPtr bytes_value_;
  1474. ::google::protobuf::internal::ArenaStringPtr reference_value_;
  1475. ::google::type::LatLng* geo_point_value_;
  1476. ::google::firestore::v1::ArrayValue* array_value_;
  1477. ::google::firestore::v1::MapValue* map_value_;
  1478. ::google::protobuf::internal::ArenaStringPtr field_reference_value_;
  1479. ::google::firestore::v1::Function* function_value_;
  1480. ::google::firestore::v1::Pipeline* pipeline_value_;
  1481. } value_type_;
  1482. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1483. ::uint32_t _oneof_case_[1];
  1484. PROTOBUF_TSAN_DECLARE_MEMBER
  1485. };
  1486. union { Impl_ _impl_; };
  1487. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  1488. };// -------------------------------------------------------------------
  1489. class Document_FieldsEntry_DoNotUse final
  1490. : public ::google::protobuf::internal::MapEntry<
  1491. Document_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1492. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1493. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE> {
  1494. public:
  1495. using SuperType = ::google::protobuf::internal::MapEntry<
  1496. Document_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1497. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1498. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>;
  1499. Document_FieldsEntry_DoNotUse();
  1500. template <typename = void>
  1501. explicit PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUse(
  1502. ::google::protobuf::internal::ConstantInitialized);
  1503. explicit Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  1504. static const Document_FieldsEntry_DoNotUse* internal_default_instance() {
  1505. return reinterpret_cast<const Document_FieldsEntry_DoNotUse*>(
  1506. &_Document_FieldsEntry_DoNotUse_default_instance_);
  1507. }
  1508. static bool ValidateKey(std::string* s) {
  1509. return ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::google::protobuf::internal::WireFormatLite::PARSE, "google.firestore.v1.Document.FieldsEntry.key");
  1510. }
  1511. static bool ValidateValue(void*) { return true; }
  1512. ::google::protobuf::Metadata GetMetadata() const final;
  1513. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  1514. };
  1515. // -------------------------------------------------------------------
  1516. class Document final :
  1517. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Document) */ {
  1518. public:
  1519. inline Document() : Document(nullptr) {}
  1520. ~Document() override;
  1521. template<typename = void>
  1522. explicit PROTOBUF_CONSTEXPR Document(::google::protobuf::internal::ConstantInitialized);
  1523. inline Document(const Document& from)
  1524. : Document(nullptr, from) {}
  1525. Document(Document&& from) noexcept
  1526. : Document() {
  1527. *this = ::std::move(from);
  1528. }
  1529. inline Document& operator=(const Document& from) {
  1530. CopyFrom(from);
  1531. return *this;
  1532. }
  1533. inline Document& operator=(Document&& from) noexcept {
  1534. if (this == &from) return *this;
  1535. if (GetArena() == from.GetArena()
  1536. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  1537. && GetArena() != nullptr
  1538. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  1539. ) {
  1540. InternalSwap(&from);
  1541. } else {
  1542. CopyFrom(from);
  1543. }
  1544. return *this;
  1545. }
  1546. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  1547. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1548. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  1549. }
  1550. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  1551. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1552. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  1553. }
  1554. static const ::google::protobuf::Descriptor* descriptor() {
  1555. return GetDescriptor();
  1556. }
  1557. static const ::google::protobuf::Descriptor* GetDescriptor() {
  1558. return default_instance().GetMetadata().descriptor;
  1559. }
  1560. static const ::google::protobuf::Reflection* GetReflection() {
  1561. return default_instance().GetMetadata().reflection;
  1562. }
  1563. static const Document& default_instance() {
  1564. return *internal_default_instance();
  1565. }
  1566. static inline const Document* internal_default_instance() {
  1567. return reinterpret_cast<const Document*>(
  1568. &_Document_default_instance_);
  1569. }
  1570. static constexpr int kIndexInFileMessages =
  1571. 1;
  1572. friend void swap(Document& a, Document& b) {
  1573. a.Swap(&b);
  1574. }
  1575. inline void Swap(Document* other) {
  1576. if (other == this) return;
  1577. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  1578. if (GetArena() != nullptr &&
  1579. GetArena() == other->GetArena()) {
  1580. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  1581. if (GetArena() == other->GetArena()) {
  1582. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  1583. InternalSwap(other);
  1584. } else {
  1585. ::google::protobuf::internal::GenericSwap(this, other);
  1586. }
  1587. }
  1588. void UnsafeArenaSwap(Document* other) {
  1589. if (other == this) return;
  1590. ABSL_DCHECK(GetArena() == other->GetArena());
  1591. InternalSwap(other);
  1592. }
  1593. // implements Message ----------------------------------------------
  1594. Document* New(::google::protobuf::Arena* arena = nullptr) const final {
  1595. return CreateMaybeMessage<Document>(arena);
  1596. }
  1597. using ::google::protobuf::Message::CopyFrom;
  1598. void CopyFrom(const Document& from);
  1599. using ::google::protobuf::Message::MergeFrom;
  1600. void MergeFrom( const Document& from) {
  1601. Document::MergeImpl(*this, from);
  1602. }
  1603. private:
  1604. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  1605. public:
  1606. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  1607. bool IsInitialized() const final;
  1608. ::size_t ByteSizeLong() const final;
  1609. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  1610. ::uint8_t* _InternalSerialize(
  1611. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  1612. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  1613. private:
  1614. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  1615. void SharedCtor(::google::protobuf::Arena* arena);
  1616. void SharedDtor();
  1617. void InternalSwap(Document* other);
  1618. private:
  1619. friend class ::google::protobuf::internal::AnyMetadata;
  1620. static ::absl::string_view FullMessageName() {
  1621. return "google.firestore.v1.Document";
  1622. }
  1623. protected:
  1624. explicit Document(::google::protobuf::Arena* arena);
  1625. Document(::google::protobuf::Arena* arena, const Document& from);
  1626. public:
  1627. static const ClassData _class_data_;
  1628. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  1629. ::google::protobuf::Metadata GetMetadata() const final;
  1630. // nested types ----------------------------------------------------
  1631. // accessors -------------------------------------------------------
  1632. enum : int {
  1633. kFieldsFieldNumber = 2,
  1634. kNameFieldNumber = 1,
  1635. kCreateTimeFieldNumber = 3,
  1636. kUpdateTimeFieldNumber = 4,
  1637. };
  1638. // map<string, .google.firestore.v1.Value> fields = 2;
  1639. int fields_size() const;
  1640. private:
  1641. int _internal_fields_size() const;
  1642. public:
  1643. void clear_fields() ;
  1644. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& fields() const;
  1645. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* mutable_fields();
  1646. private:
  1647. const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& _internal_fields() const;
  1648. ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* _internal_mutable_fields();
  1649. public:
  1650. // string name = 1;
  1651. void clear_name() ;
  1652. const std::string& name() const;
  1653. template <typename Arg_ = const std::string&, typename... Args_>
  1654. void set_name(Arg_&& arg, Args_... args);
  1655. std::string* mutable_name();
  1656. PROTOBUF_NODISCARD std::string* release_name();
  1657. void set_allocated_name(std::string* value);
  1658. private:
  1659. const std::string& _internal_name() const;
  1660. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
  1661. const std::string& value);
  1662. std::string* _internal_mutable_name();
  1663. public:
  1664. // .google.protobuf.Timestamp create_time = 3;
  1665. bool has_create_time() const;
  1666. void clear_create_time() ;
  1667. const ::google::protobuf::Timestamp& create_time() const;
  1668. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_create_time();
  1669. ::google::protobuf::Timestamp* mutable_create_time();
  1670. void set_allocated_create_time(::google::protobuf::Timestamp* value);
  1671. void unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value);
  1672. ::google::protobuf::Timestamp* unsafe_arena_release_create_time();
  1673. private:
  1674. const ::google::protobuf::Timestamp& _internal_create_time() const;
  1675. ::google::protobuf::Timestamp* _internal_mutable_create_time();
  1676. public:
  1677. // .google.protobuf.Timestamp update_time = 4;
  1678. bool has_update_time() const;
  1679. void clear_update_time() ;
  1680. const ::google::protobuf::Timestamp& update_time() const;
  1681. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_update_time();
  1682. ::google::protobuf::Timestamp* mutable_update_time();
  1683. void set_allocated_update_time(::google::protobuf::Timestamp* value);
  1684. void unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value);
  1685. ::google::protobuf::Timestamp* unsafe_arena_release_update_time();
  1686. private:
  1687. const ::google::protobuf::Timestamp& _internal_update_time() const;
  1688. ::google::protobuf::Timestamp* _internal_mutable_update_time();
  1689. public:
  1690. // @@protoc_insertion_point(class_scope:google.firestore.v1.Document)
  1691. private:
  1692. class _Internal;
  1693. friend class ::google::protobuf::internal::TcParser;
  1694. static const ::google::protobuf::internal::TcParseTable<
  1695. 2, 4, 4,
  1696. 47, 2>
  1697. _table_;
  1698. friend class ::google::protobuf::MessageLite;
  1699. friend class ::google::protobuf::Arena;
  1700. template <typename T>
  1701. friend class ::google::protobuf::Arena::InternalHelper;
  1702. using InternalArenaConstructable_ = void;
  1703. using DestructorSkippable_ = void;
  1704. struct Impl_ {
  1705. inline explicit constexpr Impl_(
  1706. ::google::protobuf::internal::ConstantInitialized) noexcept;
  1707. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1708. ::google::protobuf::Arena* arena);
  1709. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  1710. ::google::protobuf::Arena* arena, const Impl_& from);
  1711. ::google::protobuf::internal::HasBits<1> _has_bits_;
  1712. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  1713. ::google::protobuf::internal::MapField<Document_FieldsEntry_DoNotUse, std::string, ::google::firestore::v1::Value,
  1714. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  1715. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE>
  1716. fields_;
  1717. ::google::protobuf::internal::ArenaStringPtr name_;
  1718. ::google::protobuf::Timestamp* create_time_;
  1719. ::google::protobuf::Timestamp* update_time_;
  1720. PROTOBUF_TSAN_DECLARE_MEMBER
  1721. };
  1722. union { Impl_ _impl_; };
  1723. friend struct ::TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto;
  1724. };
  1725. // ===================================================================
  1726. // ===================================================================
  1727. #ifdef __GNUC__
  1728. #pragma GCC diagnostic push
  1729. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  1730. #endif // __GNUC__
  1731. // -------------------------------------------------------------------
  1732. // -------------------------------------------------------------------
  1733. // Document
  1734. // string name = 1;
  1735. inline void Document::clear_name() {
  1736. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1737. _impl_.name_.ClearToEmpty();
  1738. }
  1739. inline const std::string& Document::name() const
  1740. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1741. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.name)
  1742. return _internal_name();
  1743. }
  1744. template <typename Arg_, typename... Args_>
  1745. inline PROTOBUF_ALWAYS_INLINE void Document::set_name(Arg_&& arg,
  1746. Args_... args) {
  1747. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1748. ;
  1749. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  1750. // @@protoc_insertion_point(field_set:google.firestore.v1.Document.name)
  1751. }
  1752. inline std::string* Document::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1753. std::string* _s = _internal_mutable_name();
  1754. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.name)
  1755. return _s;
  1756. }
  1757. inline const std::string& Document::_internal_name() const {
  1758. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1759. return _impl_.name_.Get();
  1760. }
  1761. inline void Document::_internal_set_name(const std::string& value) {
  1762. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1763. ;
  1764. _impl_.name_.Set(value, GetArena());
  1765. }
  1766. inline std::string* Document::_internal_mutable_name() {
  1767. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1768. ;
  1769. return _impl_.name_.Mutable( GetArena());
  1770. }
  1771. inline std::string* Document::release_name() {
  1772. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1773. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.name)
  1774. return _impl_.name_.Release();
  1775. }
  1776. inline void Document::set_allocated_name(std::string* value) {
  1777. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1778. _impl_.name_.SetAllocated(value, GetArena());
  1779. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1780. if (_impl_.name_.IsDefault()) {
  1781. _impl_.name_.Set("", GetArena());
  1782. }
  1783. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1784. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.name)
  1785. }
  1786. // map<string, .google.firestore.v1.Value> fields = 2;
  1787. inline int Document::_internal_fields_size() const {
  1788. return _internal_fields().size();
  1789. }
  1790. inline int Document::fields_size() const {
  1791. return _internal_fields_size();
  1792. }
  1793. inline void Document::clear_fields() {
  1794. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1795. _impl_.fields_.Clear();
  1796. }
  1797. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Document::_internal_fields() const {
  1798. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1799. return _impl_.fields_.GetMap();
  1800. }
  1801. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Document::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1802. // @@protoc_insertion_point(field_map:google.firestore.v1.Document.fields)
  1803. return _internal_fields();
  1804. }
  1805. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Document::_internal_mutable_fields() {
  1806. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1807. return _impl_.fields_.MutableMap();
  1808. }
  1809. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Document::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1810. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.Document.fields)
  1811. return _internal_mutable_fields();
  1812. }
  1813. // .google.protobuf.Timestamp create_time = 3;
  1814. inline bool Document::has_create_time() const {
  1815. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1816. PROTOBUF_ASSUME(!value || _impl_.create_time_ != nullptr);
  1817. return value;
  1818. }
  1819. inline const ::google::protobuf::Timestamp& Document::_internal_create_time() const {
  1820. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1821. const ::google::protobuf::Timestamp* p = _impl_.create_time_;
  1822. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1823. }
  1824. inline const ::google::protobuf::Timestamp& Document::create_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1825. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.create_time)
  1826. return _internal_create_time();
  1827. }
  1828. inline void Document::unsafe_arena_set_allocated_create_time(::google::protobuf::Timestamp* value) {
  1829. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1830. if (GetArena() == nullptr) {
  1831. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_);
  1832. }
  1833. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1834. if (value != nullptr) {
  1835. _impl_._has_bits_[0] |= 0x00000001u;
  1836. } else {
  1837. _impl_._has_bits_[0] &= ~0x00000001u;
  1838. }
  1839. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Document.create_time)
  1840. }
  1841. inline ::google::protobuf::Timestamp* Document::release_create_time() {
  1842. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1843. _impl_._has_bits_[0] &= ~0x00000001u;
  1844. ::google::protobuf::Timestamp* released = _impl_.create_time_;
  1845. _impl_.create_time_ = nullptr;
  1846. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1847. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1848. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1849. if (GetArena() == nullptr) {
  1850. delete old;
  1851. }
  1852. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1853. if (GetArena() != nullptr) {
  1854. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1855. }
  1856. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1857. return released;
  1858. }
  1859. inline ::google::protobuf::Timestamp* Document::unsafe_arena_release_create_time() {
  1860. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1861. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.create_time)
  1862. _impl_._has_bits_[0] &= ~0x00000001u;
  1863. ::google::protobuf::Timestamp* temp = _impl_.create_time_;
  1864. _impl_.create_time_ = nullptr;
  1865. return temp;
  1866. }
  1867. inline ::google::protobuf::Timestamp* Document::_internal_mutable_create_time() {
  1868. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1869. _impl_._has_bits_[0] |= 0x00000001u;
  1870. if (_impl_.create_time_ == nullptr) {
  1871. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1872. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1873. }
  1874. return _impl_.create_time_;
  1875. }
  1876. inline ::google::protobuf::Timestamp* Document::mutable_create_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1877. ::google::protobuf::Timestamp* _msg = _internal_mutable_create_time();
  1878. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.create_time)
  1879. return _msg;
  1880. }
  1881. inline void Document::set_allocated_create_time(::google::protobuf::Timestamp* value) {
  1882. ::google::protobuf::Arena* message_arena = GetArena();
  1883. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1884. if (message_arena == nullptr) {
  1885. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.create_time_);
  1886. }
  1887. if (value != nullptr) {
  1888. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1889. if (message_arena != submessage_arena) {
  1890. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1891. }
  1892. _impl_._has_bits_[0] |= 0x00000001u;
  1893. } else {
  1894. _impl_._has_bits_[0] &= ~0x00000001u;
  1895. }
  1896. _impl_.create_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1897. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.create_time)
  1898. }
  1899. // .google.protobuf.Timestamp update_time = 4;
  1900. inline bool Document::has_update_time() const {
  1901. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  1902. PROTOBUF_ASSUME(!value || _impl_.update_time_ != nullptr);
  1903. return value;
  1904. }
  1905. inline const ::google::protobuf::Timestamp& Document::_internal_update_time() const {
  1906. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1907. const ::google::protobuf::Timestamp* p = _impl_.update_time_;
  1908. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1909. }
  1910. inline const ::google::protobuf::Timestamp& Document::update_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1911. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.update_time)
  1912. return _internal_update_time();
  1913. }
  1914. inline void Document::unsafe_arena_set_allocated_update_time(::google::protobuf::Timestamp* value) {
  1915. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1916. if (GetArena() == nullptr) {
  1917. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_time_);
  1918. }
  1919. _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1920. if (value != nullptr) {
  1921. _impl_._has_bits_[0] |= 0x00000002u;
  1922. } else {
  1923. _impl_._has_bits_[0] &= ~0x00000002u;
  1924. }
  1925. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Document.update_time)
  1926. }
  1927. inline ::google::protobuf::Timestamp* Document::release_update_time() {
  1928. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1929. _impl_._has_bits_[0] &= ~0x00000002u;
  1930. ::google::protobuf::Timestamp* released = _impl_.update_time_;
  1931. _impl_.update_time_ = nullptr;
  1932. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1933. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1934. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1935. if (GetArena() == nullptr) {
  1936. delete old;
  1937. }
  1938. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1939. if (GetArena() != nullptr) {
  1940. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1941. }
  1942. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1943. return released;
  1944. }
  1945. inline ::google::protobuf::Timestamp* Document::unsafe_arena_release_update_time() {
  1946. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1947. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.update_time)
  1948. _impl_._has_bits_[0] &= ~0x00000002u;
  1949. ::google::protobuf::Timestamp* temp = _impl_.update_time_;
  1950. _impl_.update_time_ = nullptr;
  1951. return temp;
  1952. }
  1953. inline ::google::protobuf::Timestamp* Document::_internal_mutable_update_time() {
  1954. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1955. _impl_._has_bits_[0] |= 0x00000002u;
  1956. if (_impl_.update_time_ == nullptr) {
  1957. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1958. _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1959. }
  1960. return _impl_.update_time_;
  1961. }
  1962. inline ::google::protobuf::Timestamp* Document::mutable_update_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1963. ::google::protobuf::Timestamp* _msg = _internal_mutable_update_time();
  1964. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.update_time)
  1965. return _msg;
  1966. }
  1967. inline void Document::set_allocated_update_time(::google::protobuf::Timestamp* value) {
  1968. ::google::protobuf::Arena* message_arena = GetArena();
  1969. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1970. if (message_arena == nullptr) {
  1971. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.update_time_);
  1972. }
  1973. if (value != nullptr) {
  1974. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1975. if (message_arena != submessage_arena) {
  1976. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1977. }
  1978. _impl_._has_bits_[0] |= 0x00000002u;
  1979. } else {
  1980. _impl_._has_bits_[0] &= ~0x00000002u;
  1981. }
  1982. _impl_.update_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1983. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.update_time)
  1984. }
  1985. // -------------------------------------------------------------------
  1986. // Value
  1987. // .google.protobuf.NullValue null_value = 11;
  1988. inline bool Value::has_null_value() const {
  1989. return value_type_case() == kNullValue;
  1990. }
  1991. inline void Value::set_has_null_value() {
  1992. _impl_._oneof_case_[0] = kNullValue;
  1993. }
  1994. inline void Value::clear_null_value() {
  1995. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1996. if (value_type_case() == kNullValue) {
  1997. _impl_.value_type_.null_value_ = 0;
  1998. clear_has_value_type();
  1999. }
  2000. }
  2001. inline ::google::protobuf::NullValue Value::null_value() const {
  2002. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.null_value)
  2003. return _internal_null_value();
  2004. }
  2005. inline void Value::set_null_value(::google::protobuf::NullValue value) {
  2006. _internal_set_null_value(value);
  2007. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.null_value)
  2008. }
  2009. inline ::google::protobuf::NullValue Value::_internal_null_value() const {
  2010. if (value_type_case() == kNullValue) {
  2011. return static_cast<::google::protobuf::NullValue>(_impl_.value_type_.null_value_);
  2012. }
  2013. return static_cast<::google::protobuf::NullValue>(0);
  2014. }
  2015. inline void Value::_internal_set_null_value(::google::protobuf::NullValue value) {
  2016. if (value_type_case() != kNullValue) {
  2017. clear_value_type();
  2018. set_has_null_value();
  2019. }
  2020. _impl_.value_type_.null_value_ = value;
  2021. }
  2022. // bool boolean_value = 1;
  2023. inline bool Value::has_boolean_value() const {
  2024. return value_type_case() == kBooleanValue;
  2025. }
  2026. inline void Value::set_has_boolean_value() {
  2027. _impl_._oneof_case_[0] = kBooleanValue;
  2028. }
  2029. inline void Value::clear_boolean_value() {
  2030. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2031. if (value_type_case() == kBooleanValue) {
  2032. _impl_.value_type_.boolean_value_ = false;
  2033. clear_has_value_type();
  2034. }
  2035. }
  2036. inline bool Value::boolean_value() const {
  2037. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.boolean_value)
  2038. return _internal_boolean_value();
  2039. }
  2040. inline void Value::set_boolean_value(bool value) {
  2041. _internal_set_boolean_value(value);
  2042. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.boolean_value)
  2043. }
  2044. inline bool Value::_internal_boolean_value() const {
  2045. if (value_type_case() == kBooleanValue) {
  2046. return _impl_.value_type_.boolean_value_;
  2047. }
  2048. return false;
  2049. }
  2050. inline void Value::_internal_set_boolean_value(bool value) {
  2051. if (value_type_case() != kBooleanValue) {
  2052. clear_value_type();
  2053. set_has_boolean_value();
  2054. }
  2055. _impl_.value_type_.boolean_value_ = value;
  2056. }
  2057. // int64 integer_value = 2;
  2058. inline bool Value::has_integer_value() const {
  2059. return value_type_case() == kIntegerValue;
  2060. }
  2061. inline void Value::set_has_integer_value() {
  2062. _impl_._oneof_case_[0] = kIntegerValue;
  2063. }
  2064. inline void Value::clear_integer_value() {
  2065. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2066. if (value_type_case() == kIntegerValue) {
  2067. _impl_.value_type_.integer_value_ = ::int64_t{0};
  2068. clear_has_value_type();
  2069. }
  2070. }
  2071. inline ::int64_t Value::integer_value() const {
  2072. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.integer_value)
  2073. return _internal_integer_value();
  2074. }
  2075. inline void Value::set_integer_value(::int64_t value) {
  2076. _internal_set_integer_value(value);
  2077. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.integer_value)
  2078. }
  2079. inline ::int64_t Value::_internal_integer_value() const {
  2080. if (value_type_case() == kIntegerValue) {
  2081. return _impl_.value_type_.integer_value_;
  2082. }
  2083. return ::int64_t{0};
  2084. }
  2085. inline void Value::_internal_set_integer_value(::int64_t value) {
  2086. if (value_type_case() != kIntegerValue) {
  2087. clear_value_type();
  2088. set_has_integer_value();
  2089. }
  2090. _impl_.value_type_.integer_value_ = value;
  2091. }
  2092. // double double_value = 3;
  2093. inline bool Value::has_double_value() const {
  2094. return value_type_case() == kDoubleValue;
  2095. }
  2096. inline void Value::set_has_double_value() {
  2097. _impl_._oneof_case_[0] = kDoubleValue;
  2098. }
  2099. inline void Value::clear_double_value() {
  2100. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2101. if (value_type_case() == kDoubleValue) {
  2102. _impl_.value_type_.double_value_ = 0;
  2103. clear_has_value_type();
  2104. }
  2105. }
  2106. inline double Value::double_value() const {
  2107. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.double_value)
  2108. return _internal_double_value();
  2109. }
  2110. inline void Value::set_double_value(double value) {
  2111. _internal_set_double_value(value);
  2112. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.double_value)
  2113. }
  2114. inline double Value::_internal_double_value() const {
  2115. if (value_type_case() == kDoubleValue) {
  2116. return _impl_.value_type_.double_value_;
  2117. }
  2118. return 0;
  2119. }
  2120. inline void Value::_internal_set_double_value(double value) {
  2121. if (value_type_case() != kDoubleValue) {
  2122. clear_value_type();
  2123. set_has_double_value();
  2124. }
  2125. _impl_.value_type_.double_value_ = value;
  2126. }
  2127. // .google.protobuf.Timestamp timestamp_value = 10;
  2128. inline bool Value::has_timestamp_value() const {
  2129. return value_type_case() == kTimestampValue;
  2130. }
  2131. inline bool Value::_internal_has_timestamp_value() const {
  2132. return value_type_case() == kTimestampValue;
  2133. }
  2134. inline void Value::set_has_timestamp_value() {
  2135. _impl_._oneof_case_[0] = kTimestampValue;
  2136. }
  2137. inline ::google::protobuf::Timestamp* Value::release_timestamp_value() {
  2138. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.timestamp_value)
  2139. if (value_type_case() == kTimestampValue) {
  2140. clear_has_value_type();
  2141. auto* temp = _impl_.value_type_.timestamp_value_;
  2142. if (GetArena() != nullptr) {
  2143. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2144. }
  2145. _impl_.value_type_.timestamp_value_ = nullptr;
  2146. return temp;
  2147. } else {
  2148. return nullptr;
  2149. }
  2150. }
  2151. inline const ::google::protobuf::Timestamp& Value::_internal_timestamp_value() const {
  2152. return value_type_case() == kTimestampValue ? *_impl_.value_type_.timestamp_value_ : reinterpret_cast<::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  2153. }
  2154. inline const ::google::protobuf::Timestamp& Value::timestamp_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2155. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.timestamp_value)
  2156. return _internal_timestamp_value();
  2157. }
  2158. inline ::google::protobuf::Timestamp* Value::unsafe_arena_release_timestamp_value() {
  2159. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.timestamp_value)
  2160. if (value_type_case() == kTimestampValue) {
  2161. clear_has_value_type();
  2162. auto* temp = _impl_.value_type_.timestamp_value_;
  2163. _impl_.value_type_.timestamp_value_ = nullptr;
  2164. return temp;
  2165. } else {
  2166. return nullptr;
  2167. }
  2168. }
  2169. inline void Value::unsafe_arena_set_allocated_timestamp_value(::google::protobuf::Timestamp* value) {
  2170. // We rely on the oneof clear method to free the earlier contents
  2171. // of this oneof. We can directly use the pointer we're given to
  2172. // set the new value.
  2173. clear_value_type();
  2174. if (value) {
  2175. set_has_timestamp_value();
  2176. _impl_.value_type_.timestamp_value_ = value;
  2177. }
  2178. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.timestamp_value)
  2179. }
  2180. inline ::google::protobuf::Timestamp* Value::_internal_mutable_timestamp_value() {
  2181. if (value_type_case() != kTimestampValue) {
  2182. clear_value_type();
  2183. set_has_timestamp_value();
  2184. _impl_.value_type_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  2185. }
  2186. return _impl_.value_type_.timestamp_value_;
  2187. }
  2188. inline ::google::protobuf::Timestamp* Value::mutable_timestamp_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2189. ::google::protobuf::Timestamp* _msg = _internal_mutable_timestamp_value();
  2190. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.timestamp_value)
  2191. return _msg;
  2192. }
  2193. // string string_value = 17;
  2194. inline bool Value::has_string_value() const {
  2195. return value_type_case() == kStringValue;
  2196. }
  2197. inline void Value::set_has_string_value() {
  2198. _impl_._oneof_case_[0] = kStringValue;
  2199. }
  2200. inline void Value::clear_string_value() {
  2201. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2202. if (value_type_case() == kStringValue) {
  2203. _impl_.value_type_.string_value_.Destroy();
  2204. clear_has_value_type();
  2205. }
  2206. }
  2207. inline const std::string& Value::string_value() const
  2208. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2209. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.string_value)
  2210. return _internal_string_value();
  2211. }
  2212. template <typename Arg_, typename... Args_>
  2213. inline PROTOBUF_ALWAYS_INLINE void Value::set_string_value(Arg_&& arg,
  2214. Args_... args) {
  2215. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2216. if (value_type_case() != kStringValue) {
  2217. clear_value_type();
  2218. set_has_string_value();
  2219. _impl_.value_type_.string_value_.InitDefault();
  2220. }
  2221. _impl_.value_type_.string_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  2222. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
  2223. }
  2224. inline std::string* Value::mutable_string_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2225. std::string* _s = _internal_mutable_string_value();
  2226. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.string_value)
  2227. return _s;
  2228. }
  2229. inline const std::string& Value::_internal_string_value() const {
  2230. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2231. if (value_type_case() != kStringValue) {
  2232. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  2233. }
  2234. return _impl_.value_type_.string_value_.Get();
  2235. }
  2236. inline void Value::_internal_set_string_value(const std::string& value) {
  2237. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2238. if (value_type_case() != kStringValue) {
  2239. clear_value_type();
  2240. set_has_string_value();
  2241. _impl_.value_type_.string_value_.InitDefault();
  2242. }
  2243. _impl_.value_type_.string_value_.Set(value, GetArena());
  2244. }
  2245. inline std::string* Value::_internal_mutable_string_value() {
  2246. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2247. if (value_type_case() != kStringValue) {
  2248. clear_value_type();
  2249. set_has_string_value();
  2250. _impl_.value_type_.string_value_.InitDefault();
  2251. }
  2252. return _impl_.value_type_.string_value_.Mutable( GetArena());
  2253. }
  2254. inline std::string* Value::release_string_value() {
  2255. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2256. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.string_value)
  2257. if (value_type_case() != kStringValue) {
  2258. return nullptr;
  2259. }
  2260. clear_has_value_type();
  2261. return _impl_.value_type_.string_value_.Release();
  2262. }
  2263. inline void Value::set_allocated_string_value(std::string* value) {
  2264. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2265. if (has_value_type()) {
  2266. clear_value_type();
  2267. }
  2268. if (value != nullptr) {
  2269. set_has_string_value();
  2270. _impl_.value_type_.string_value_.InitAllocated(value, GetArena());
  2271. }
  2272. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.string_value)
  2273. }
  2274. // bytes bytes_value = 18;
  2275. inline bool Value::has_bytes_value() const {
  2276. return value_type_case() == kBytesValue;
  2277. }
  2278. inline void Value::set_has_bytes_value() {
  2279. _impl_._oneof_case_[0] = kBytesValue;
  2280. }
  2281. inline void Value::clear_bytes_value() {
  2282. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2283. if (value_type_case() == kBytesValue) {
  2284. _impl_.value_type_.bytes_value_.Destroy();
  2285. clear_has_value_type();
  2286. }
  2287. }
  2288. inline const std::string& Value::bytes_value() const
  2289. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2290. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.bytes_value)
  2291. return _internal_bytes_value();
  2292. }
  2293. template <typename Arg_, typename... Args_>
  2294. inline PROTOBUF_ALWAYS_INLINE void Value::set_bytes_value(Arg_&& arg,
  2295. Args_... args) {
  2296. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2297. if (value_type_case() != kBytesValue) {
  2298. clear_value_type();
  2299. set_has_bytes_value();
  2300. _impl_.value_type_.bytes_value_.InitDefault();
  2301. }
  2302. _impl_.value_type_.bytes_value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  2303. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
  2304. }
  2305. inline std::string* Value::mutable_bytes_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2306. std::string* _s = _internal_mutable_bytes_value();
  2307. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.bytes_value)
  2308. return _s;
  2309. }
  2310. inline const std::string& Value::_internal_bytes_value() const {
  2311. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2312. if (value_type_case() != kBytesValue) {
  2313. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  2314. }
  2315. return _impl_.value_type_.bytes_value_.Get();
  2316. }
  2317. inline void Value::_internal_set_bytes_value(const std::string& value) {
  2318. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2319. if (value_type_case() != kBytesValue) {
  2320. clear_value_type();
  2321. set_has_bytes_value();
  2322. _impl_.value_type_.bytes_value_.InitDefault();
  2323. }
  2324. _impl_.value_type_.bytes_value_.Set(value, GetArena());
  2325. }
  2326. inline std::string* Value::_internal_mutable_bytes_value() {
  2327. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2328. if (value_type_case() != kBytesValue) {
  2329. clear_value_type();
  2330. set_has_bytes_value();
  2331. _impl_.value_type_.bytes_value_.InitDefault();
  2332. }
  2333. return _impl_.value_type_.bytes_value_.Mutable( GetArena());
  2334. }
  2335. inline std::string* Value::release_bytes_value() {
  2336. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2337. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.bytes_value)
  2338. if (value_type_case() != kBytesValue) {
  2339. return nullptr;
  2340. }
  2341. clear_has_value_type();
  2342. return _impl_.value_type_.bytes_value_.Release();
  2343. }
  2344. inline void Value::set_allocated_bytes_value(std::string* value) {
  2345. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2346. if (has_value_type()) {
  2347. clear_value_type();
  2348. }
  2349. if (value != nullptr) {
  2350. set_has_bytes_value();
  2351. _impl_.value_type_.bytes_value_.InitAllocated(value, GetArena());
  2352. }
  2353. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.bytes_value)
  2354. }
  2355. // string reference_value = 5;
  2356. inline bool Value::has_reference_value() const {
  2357. return value_type_case() == kReferenceValue;
  2358. }
  2359. inline void Value::set_has_reference_value() {
  2360. _impl_._oneof_case_[0] = kReferenceValue;
  2361. }
  2362. inline void Value::clear_reference_value() {
  2363. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2364. if (value_type_case() == kReferenceValue) {
  2365. _impl_.value_type_.reference_value_.Destroy();
  2366. clear_has_value_type();
  2367. }
  2368. }
  2369. inline const std::string& Value::reference_value() const
  2370. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2371. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.reference_value)
  2372. return _internal_reference_value();
  2373. }
  2374. template <typename Arg_, typename... Args_>
  2375. inline PROTOBUF_ALWAYS_INLINE void Value::set_reference_value(Arg_&& arg,
  2376. Args_... args) {
  2377. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2378. if (value_type_case() != kReferenceValue) {
  2379. clear_value_type();
  2380. set_has_reference_value();
  2381. _impl_.value_type_.reference_value_.InitDefault();
  2382. }
  2383. _impl_.value_type_.reference_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  2384. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
  2385. }
  2386. inline std::string* Value::mutable_reference_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2387. std::string* _s = _internal_mutable_reference_value();
  2388. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.reference_value)
  2389. return _s;
  2390. }
  2391. inline const std::string& Value::_internal_reference_value() const {
  2392. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2393. if (value_type_case() != kReferenceValue) {
  2394. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  2395. }
  2396. return _impl_.value_type_.reference_value_.Get();
  2397. }
  2398. inline void Value::_internal_set_reference_value(const std::string& value) {
  2399. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2400. if (value_type_case() != kReferenceValue) {
  2401. clear_value_type();
  2402. set_has_reference_value();
  2403. _impl_.value_type_.reference_value_.InitDefault();
  2404. }
  2405. _impl_.value_type_.reference_value_.Set(value, GetArena());
  2406. }
  2407. inline std::string* Value::_internal_mutable_reference_value() {
  2408. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2409. if (value_type_case() != kReferenceValue) {
  2410. clear_value_type();
  2411. set_has_reference_value();
  2412. _impl_.value_type_.reference_value_.InitDefault();
  2413. }
  2414. return _impl_.value_type_.reference_value_.Mutable( GetArena());
  2415. }
  2416. inline std::string* Value::release_reference_value() {
  2417. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2418. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.reference_value)
  2419. if (value_type_case() != kReferenceValue) {
  2420. return nullptr;
  2421. }
  2422. clear_has_value_type();
  2423. return _impl_.value_type_.reference_value_.Release();
  2424. }
  2425. inline void Value::set_allocated_reference_value(std::string* value) {
  2426. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2427. if (has_value_type()) {
  2428. clear_value_type();
  2429. }
  2430. if (value != nullptr) {
  2431. set_has_reference_value();
  2432. _impl_.value_type_.reference_value_.InitAllocated(value, GetArena());
  2433. }
  2434. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.reference_value)
  2435. }
  2436. // .google.type.LatLng geo_point_value = 8;
  2437. inline bool Value::has_geo_point_value() const {
  2438. return value_type_case() == kGeoPointValue;
  2439. }
  2440. inline bool Value::_internal_has_geo_point_value() const {
  2441. return value_type_case() == kGeoPointValue;
  2442. }
  2443. inline void Value::set_has_geo_point_value() {
  2444. _impl_._oneof_case_[0] = kGeoPointValue;
  2445. }
  2446. inline ::google::type::LatLng* Value::release_geo_point_value() {
  2447. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.geo_point_value)
  2448. if (value_type_case() == kGeoPointValue) {
  2449. clear_has_value_type();
  2450. auto* temp = _impl_.value_type_.geo_point_value_;
  2451. if (GetArena() != nullptr) {
  2452. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2453. }
  2454. _impl_.value_type_.geo_point_value_ = nullptr;
  2455. return temp;
  2456. } else {
  2457. return nullptr;
  2458. }
  2459. }
  2460. inline const ::google::type::LatLng& Value::_internal_geo_point_value() const {
  2461. return value_type_case() == kGeoPointValue ? *_impl_.value_type_.geo_point_value_ : reinterpret_cast<::google::type::LatLng&>(::google::type::_LatLng_default_instance_);
  2462. }
  2463. inline const ::google::type::LatLng& Value::geo_point_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2464. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.geo_point_value)
  2465. return _internal_geo_point_value();
  2466. }
  2467. inline ::google::type::LatLng* Value::unsafe_arena_release_geo_point_value() {
  2468. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.geo_point_value)
  2469. if (value_type_case() == kGeoPointValue) {
  2470. clear_has_value_type();
  2471. auto* temp = _impl_.value_type_.geo_point_value_;
  2472. _impl_.value_type_.geo_point_value_ = nullptr;
  2473. return temp;
  2474. } else {
  2475. return nullptr;
  2476. }
  2477. }
  2478. inline void Value::unsafe_arena_set_allocated_geo_point_value(::google::type::LatLng* value) {
  2479. // We rely on the oneof clear method to free the earlier contents
  2480. // of this oneof. We can directly use the pointer we're given to
  2481. // set the new value.
  2482. clear_value_type();
  2483. if (value) {
  2484. set_has_geo_point_value();
  2485. _impl_.value_type_.geo_point_value_ = value;
  2486. }
  2487. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.geo_point_value)
  2488. }
  2489. inline ::google::type::LatLng* Value::_internal_mutable_geo_point_value() {
  2490. if (value_type_case() != kGeoPointValue) {
  2491. clear_value_type();
  2492. set_has_geo_point_value();
  2493. _impl_.value_type_.geo_point_value_ = CreateMaybeMessage<::google::type::LatLng>(GetArena());
  2494. }
  2495. return _impl_.value_type_.geo_point_value_;
  2496. }
  2497. inline ::google::type::LatLng* Value::mutable_geo_point_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2498. ::google::type::LatLng* _msg = _internal_mutable_geo_point_value();
  2499. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.geo_point_value)
  2500. return _msg;
  2501. }
  2502. // .google.firestore.v1.ArrayValue array_value = 9;
  2503. inline bool Value::has_array_value() const {
  2504. return value_type_case() == kArrayValue;
  2505. }
  2506. inline bool Value::_internal_has_array_value() const {
  2507. return value_type_case() == kArrayValue;
  2508. }
  2509. inline void Value::set_has_array_value() {
  2510. _impl_._oneof_case_[0] = kArrayValue;
  2511. }
  2512. inline void Value::clear_array_value() {
  2513. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2514. if (value_type_case() == kArrayValue) {
  2515. if (GetArena() == nullptr) {
  2516. delete _impl_.value_type_.array_value_;
  2517. }
  2518. clear_has_value_type();
  2519. }
  2520. }
  2521. inline ::google::firestore::v1::ArrayValue* Value::release_array_value() {
  2522. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.array_value)
  2523. if (value_type_case() == kArrayValue) {
  2524. clear_has_value_type();
  2525. auto* temp = _impl_.value_type_.array_value_;
  2526. if (GetArena() != nullptr) {
  2527. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2528. }
  2529. _impl_.value_type_.array_value_ = nullptr;
  2530. return temp;
  2531. } else {
  2532. return nullptr;
  2533. }
  2534. }
  2535. inline const ::google::firestore::v1::ArrayValue& Value::_internal_array_value() const {
  2536. return value_type_case() == kArrayValue ? *_impl_.value_type_.array_value_ : reinterpret_cast<::google::firestore::v1::ArrayValue&>(::google::firestore::v1::_ArrayValue_default_instance_);
  2537. }
  2538. inline const ::google::firestore::v1::ArrayValue& Value::array_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2539. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.array_value)
  2540. return _internal_array_value();
  2541. }
  2542. inline ::google::firestore::v1::ArrayValue* Value::unsafe_arena_release_array_value() {
  2543. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.array_value)
  2544. if (value_type_case() == kArrayValue) {
  2545. clear_has_value_type();
  2546. auto* temp = _impl_.value_type_.array_value_;
  2547. _impl_.value_type_.array_value_ = nullptr;
  2548. return temp;
  2549. } else {
  2550. return nullptr;
  2551. }
  2552. }
  2553. inline void Value::unsafe_arena_set_allocated_array_value(::google::firestore::v1::ArrayValue* value) {
  2554. // We rely on the oneof clear method to free the earlier contents
  2555. // of this oneof. We can directly use the pointer we're given to
  2556. // set the new value.
  2557. clear_value_type();
  2558. if (value) {
  2559. set_has_array_value();
  2560. _impl_.value_type_.array_value_ = value;
  2561. }
  2562. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.array_value)
  2563. }
  2564. inline ::google::firestore::v1::ArrayValue* Value::_internal_mutable_array_value() {
  2565. if (value_type_case() != kArrayValue) {
  2566. clear_value_type();
  2567. set_has_array_value();
  2568. _impl_.value_type_.array_value_ = CreateMaybeMessage<::google::firestore::v1::ArrayValue>(GetArena());
  2569. }
  2570. return _impl_.value_type_.array_value_;
  2571. }
  2572. inline ::google::firestore::v1::ArrayValue* Value::mutable_array_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2573. ::google::firestore::v1::ArrayValue* _msg = _internal_mutable_array_value();
  2574. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.array_value)
  2575. return _msg;
  2576. }
  2577. // .google.firestore.v1.MapValue map_value = 6;
  2578. inline bool Value::has_map_value() const {
  2579. return value_type_case() == kMapValue;
  2580. }
  2581. inline bool Value::_internal_has_map_value() const {
  2582. return value_type_case() == kMapValue;
  2583. }
  2584. inline void Value::set_has_map_value() {
  2585. _impl_._oneof_case_[0] = kMapValue;
  2586. }
  2587. inline void Value::clear_map_value() {
  2588. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2589. if (value_type_case() == kMapValue) {
  2590. if (GetArena() == nullptr) {
  2591. delete _impl_.value_type_.map_value_;
  2592. }
  2593. clear_has_value_type();
  2594. }
  2595. }
  2596. inline ::google::firestore::v1::MapValue* Value::release_map_value() {
  2597. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.map_value)
  2598. if (value_type_case() == kMapValue) {
  2599. clear_has_value_type();
  2600. auto* temp = _impl_.value_type_.map_value_;
  2601. if (GetArena() != nullptr) {
  2602. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2603. }
  2604. _impl_.value_type_.map_value_ = nullptr;
  2605. return temp;
  2606. } else {
  2607. return nullptr;
  2608. }
  2609. }
  2610. inline const ::google::firestore::v1::MapValue& Value::_internal_map_value() const {
  2611. return value_type_case() == kMapValue ? *_impl_.value_type_.map_value_ : reinterpret_cast<::google::firestore::v1::MapValue&>(::google::firestore::v1::_MapValue_default_instance_);
  2612. }
  2613. inline const ::google::firestore::v1::MapValue& Value::map_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2614. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.map_value)
  2615. return _internal_map_value();
  2616. }
  2617. inline ::google::firestore::v1::MapValue* Value::unsafe_arena_release_map_value() {
  2618. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.map_value)
  2619. if (value_type_case() == kMapValue) {
  2620. clear_has_value_type();
  2621. auto* temp = _impl_.value_type_.map_value_;
  2622. _impl_.value_type_.map_value_ = nullptr;
  2623. return temp;
  2624. } else {
  2625. return nullptr;
  2626. }
  2627. }
  2628. inline void Value::unsafe_arena_set_allocated_map_value(::google::firestore::v1::MapValue* value) {
  2629. // We rely on the oneof clear method to free the earlier contents
  2630. // of this oneof. We can directly use the pointer we're given to
  2631. // set the new value.
  2632. clear_value_type();
  2633. if (value) {
  2634. set_has_map_value();
  2635. _impl_.value_type_.map_value_ = value;
  2636. }
  2637. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.map_value)
  2638. }
  2639. inline ::google::firestore::v1::MapValue* Value::_internal_mutable_map_value() {
  2640. if (value_type_case() != kMapValue) {
  2641. clear_value_type();
  2642. set_has_map_value();
  2643. _impl_.value_type_.map_value_ = CreateMaybeMessage<::google::firestore::v1::MapValue>(GetArena());
  2644. }
  2645. return _impl_.value_type_.map_value_;
  2646. }
  2647. inline ::google::firestore::v1::MapValue* Value::mutable_map_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2648. ::google::firestore::v1::MapValue* _msg = _internal_mutable_map_value();
  2649. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.map_value)
  2650. return _msg;
  2651. }
  2652. // string field_reference_value = 19;
  2653. inline bool Value::has_field_reference_value() const {
  2654. return value_type_case() == kFieldReferenceValue;
  2655. }
  2656. inline void Value::set_has_field_reference_value() {
  2657. _impl_._oneof_case_[0] = kFieldReferenceValue;
  2658. }
  2659. inline void Value::clear_field_reference_value() {
  2660. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2661. if (value_type_case() == kFieldReferenceValue) {
  2662. _impl_.value_type_.field_reference_value_.Destroy();
  2663. clear_has_value_type();
  2664. }
  2665. }
  2666. inline const std::string& Value::field_reference_value() const
  2667. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2668. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.field_reference_value)
  2669. return _internal_field_reference_value();
  2670. }
  2671. template <typename Arg_, typename... Args_>
  2672. inline PROTOBUF_ALWAYS_INLINE void Value::set_field_reference_value(Arg_&& arg,
  2673. Args_... args) {
  2674. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2675. if (value_type_case() != kFieldReferenceValue) {
  2676. clear_value_type();
  2677. set_has_field_reference_value();
  2678. _impl_.value_type_.field_reference_value_.InitDefault();
  2679. }
  2680. _impl_.value_type_.field_reference_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  2681. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.field_reference_value)
  2682. }
  2683. inline std::string* Value::mutable_field_reference_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2684. std::string* _s = _internal_mutable_field_reference_value();
  2685. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.field_reference_value)
  2686. return _s;
  2687. }
  2688. inline const std::string& Value::_internal_field_reference_value() const {
  2689. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2690. if (value_type_case() != kFieldReferenceValue) {
  2691. return ::google::protobuf::internal::GetEmptyStringAlreadyInited();
  2692. }
  2693. return _impl_.value_type_.field_reference_value_.Get();
  2694. }
  2695. inline void Value::_internal_set_field_reference_value(const std::string& value) {
  2696. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2697. if (value_type_case() != kFieldReferenceValue) {
  2698. clear_value_type();
  2699. set_has_field_reference_value();
  2700. _impl_.value_type_.field_reference_value_.InitDefault();
  2701. }
  2702. _impl_.value_type_.field_reference_value_.Set(value, GetArena());
  2703. }
  2704. inline std::string* Value::_internal_mutable_field_reference_value() {
  2705. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2706. if (value_type_case() != kFieldReferenceValue) {
  2707. clear_value_type();
  2708. set_has_field_reference_value();
  2709. _impl_.value_type_.field_reference_value_.InitDefault();
  2710. }
  2711. return _impl_.value_type_.field_reference_value_.Mutable( GetArena());
  2712. }
  2713. inline std::string* Value::release_field_reference_value() {
  2714. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2715. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.field_reference_value)
  2716. if (value_type_case() != kFieldReferenceValue) {
  2717. return nullptr;
  2718. }
  2719. clear_has_value_type();
  2720. return _impl_.value_type_.field_reference_value_.Release();
  2721. }
  2722. inline void Value::set_allocated_field_reference_value(std::string* value) {
  2723. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2724. if (has_value_type()) {
  2725. clear_value_type();
  2726. }
  2727. if (value != nullptr) {
  2728. set_has_field_reference_value();
  2729. _impl_.value_type_.field_reference_value_.InitAllocated(value, GetArena());
  2730. }
  2731. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.field_reference_value)
  2732. }
  2733. // .google.firestore.v1.Function function_value = 20;
  2734. inline bool Value::has_function_value() const {
  2735. return value_type_case() == kFunctionValue;
  2736. }
  2737. inline bool Value::_internal_has_function_value() const {
  2738. return value_type_case() == kFunctionValue;
  2739. }
  2740. inline void Value::set_has_function_value() {
  2741. _impl_._oneof_case_[0] = kFunctionValue;
  2742. }
  2743. inline void Value::clear_function_value() {
  2744. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2745. if (value_type_case() == kFunctionValue) {
  2746. if (GetArena() == nullptr) {
  2747. delete _impl_.value_type_.function_value_;
  2748. }
  2749. clear_has_value_type();
  2750. }
  2751. }
  2752. inline ::google::firestore::v1::Function* Value::release_function_value() {
  2753. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.function_value)
  2754. if (value_type_case() == kFunctionValue) {
  2755. clear_has_value_type();
  2756. auto* temp = _impl_.value_type_.function_value_;
  2757. if (GetArena() != nullptr) {
  2758. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2759. }
  2760. _impl_.value_type_.function_value_ = nullptr;
  2761. return temp;
  2762. } else {
  2763. return nullptr;
  2764. }
  2765. }
  2766. inline const ::google::firestore::v1::Function& Value::_internal_function_value() const {
  2767. return value_type_case() == kFunctionValue ? *_impl_.value_type_.function_value_ : reinterpret_cast<::google::firestore::v1::Function&>(::google::firestore::v1::_Function_default_instance_);
  2768. }
  2769. inline const ::google::firestore::v1::Function& Value::function_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2770. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.function_value)
  2771. return _internal_function_value();
  2772. }
  2773. inline ::google::firestore::v1::Function* Value::unsafe_arena_release_function_value() {
  2774. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.function_value)
  2775. if (value_type_case() == kFunctionValue) {
  2776. clear_has_value_type();
  2777. auto* temp = _impl_.value_type_.function_value_;
  2778. _impl_.value_type_.function_value_ = nullptr;
  2779. return temp;
  2780. } else {
  2781. return nullptr;
  2782. }
  2783. }
  2784. inline void Value::unsafe_arena_set_allocated_function_value(::google::firestore::v1::Function* value) {
  2785. // We rely on the oneof clear method to free the earlier contents
  2786. // of this oneof. We can directly use the pointer we're given to
  2787. // set the new value.
  2788. clear_value_type();
  2789. if (value) {
  2790. set_has_function_value();
  2791. _impl_.value_type_.function_value_ = value;
  2792. }
  2793. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.function_value)
  2794. }
  2795. inline ::google::firestore::v1::Function* Value::_internal_mutable_function_value() {
  2796. if (value_type_case() != kFunctionValue) {
  2797. clear_value_type();
  2798. set_has_function_value();
  2799. _impl_.value_type_.function_value_ = CreateMaybeMessage<::google::firestore::v1::Function>(GetArena());
  2800. }
  2801. return _impl_.value_type_.function_value_;
  2802. }
  2803. inline ::google::firestore::v1::Function* Value::mutable_function_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2804. ::google::firestore::v1::Function* _msg = _internal_mutable_function_value();
  2805. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.function_value)
  2806. return _msg;
  2807. }
  2808. // .google.firestore.v1.Pipeline pipeline_value = 21;
  2809. inline bool Value::has_pipeline_value() const {
  2810. return value_type_case() == kPipelineValue;
  2811. }
  2812. inline bool Value::_internal_has_pipeline_value() const {
  2813. return value_type_case() == kPipelineValue;
  2814. }
  2815. inline void Value::set_has_pipeline_value() {
  2816. _impl_._oneof_case_[0] = kPipelineValue;
  2817. }
  2818. inline void Value::clear_pipeline_value() {
  2819. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2820. if (value_type_case() == kPipelineValue) {
  2821. if (GetArena() == nullptr) {
  2822. delete _impl_.value_type_.pipeline_value_;
  2823. }
  2824. clear_has_value_type();
  2825. }
  2826. }
  2827. inline ::google::firestore::v1::Pipeline* Value::release_pipeline_value() {
  2828. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.pipeline_value)
  2829. if (value_type_case() == kPipelineValue) {
  2830. clear_has_value_type();
  2831. auto* temp = _impl_.value_type_.pipeline_value_;
  2832. if (GetArena() != nullptr) {
  2833. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  2834. }
  2835. _impl_.value_type_.pipeline_value_ = nullptr;
  2836. return temp;
  2837. } else {
  2838. return nullptr;
  2839. }
  2840. }
  2841. inline const ::google::firestore::v1::Pipeline& Value::_internal_pipeline_value() const {
  2842. return value_type_case() == kPipelineValue ? *_impl_.value_type_.pipeline_value_ : reinterpret_cast<::google::firestore::v1::Pipeline&>(::google::firestore::v1::_Pipeline_default_instance_);
  2843. }
  2844. inline const ::google::firestore::v1::Pipeline& Value::pipeline_value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2845. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.pipeline_value)
  2846. return _internal_pipeline_value();
  2847. }
  2848. inline ::google::firestore::v1::Pipeline* Value::unsafe_arena_release_pipeline_value() {
  2849. // @@protoc_insertion_point(field_unsafe_arena_release:google.firestore.v1.Value.pipeline_value)
  2850. if (value_type_case() == kPipelineValue) {
  2851. clear_has_value_type();
  2852. auto* temp = _impl_.value_type_.pipeline_value_;
  2853. _impl_.value_type_.pipeline_value_ = nullptr;
  2854. return temp;
  2855. } else {
  2856. return nullptr;
  2857. }
  2858. }
  2859. inline void Value::unsafe_arena_set_allocated_pipeline_value(::google::firestore::v1::Pipeline* value) {
  2860. // We rely on the oneof clear method to free the earlier contents
  2861. // of this oneof. We can directly use the pointer we're given to
  2862. // set the new value.
  2863. clear_value_type();
  2864. if (value) {
  2865. set_has_pipeline_value();
  2866. _impl_.value_type_.pipeline_value_ = value;
  2867. }
  2868. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.firestore.v1.Value.pipeline_value)
  2869. }
  2870. inline ::google::firestore::v1::Pipeline* Value::_internal_mutable_pipeline_value() {
  2871. if (value_type_case() != kPipelineValue) {
  2872. clear_value_type();
  2873. set_has_pipeline_value();
  2874. _impl_.value_type_.pipeline_value_ = CreateMaybeMessage<::google::firestore::v1::Pipeline>(GetArena());
  2875. }
  2876. return _impl_.value_type_.pipeline_value_;
  2877. }
  2878. inline ::google::firestore::v1::Pipeline* Value::mutable_pipeline_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2879. ::google::firestore::v1::Pipeline* _msg = _internal_mutable_pipeline_value();
  2880. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.pipeline_value)
  2881. return _msg;
  2882. }
  2883. inline bool Value::has_value_type() const {
  2884. return value_type_case() != VALUE_TYPE_NOT_SET;
  2885. }
  2886. inline void Value::clear_has_value_type() {
  2887. _impl_._oneof_case_[0] = VALUE_TYPE_NOT_SET;
  2888. }
  2889. inline Value::ValueTypeCase Value::value_type_case() const {
  2890. return Value::ValueTypeCase(_impl_._oneof_case_[0]);
  2891. }
  2892. // -------------------------------------------------------------------
  2893. // ArrayValue
  2894. // repeated .google.firestore.v1.Value values = 1;
  2895. inline int ArrayValue::_internal_values_size() const {
  2896. return _internal_values().size();
  2897. }
  2898. inline int ArrayValue::values_size() const {
  2899. return _internal_values_size();
  2900. }
  2901. inline void ArrayValue::clear_values() {
  2902. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2903. _impl_.values_.Clear();
  2904. }
  2905. inline ::google::firestore::v1::Value* ArrayValue::mutable_values(int index)
  2906. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2907. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ArrayValue.values)
  2908. return _internal_mutable_values()->Mutable(index);
  2909. }
  2910. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* ArrayValue::mutable_values()
  2911. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2912. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ArrayValue.values)
  2913. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2914. return _internal_mutable_values();
  2915. }
  2916. inline const ::google::firestore::v1::Value& ArrayValue::values(int index) const
  2917. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2918. // @@protoc_insertion_point(field_get:google.firestore.v1.ArrayValue.values)
  2919. return _internal_values().Get(index);
  2920. }
  2921. inline ::google::firestore::v1::Value* ArrayValue::add_values() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2922. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2923. ::google::firestore::v1::Value* _add = _internal_mutable_values()->Add();
  2924. // @@protoc_insertion_point(field_add:google.firestore.v1.ArrayValue.values)
  2925. return _add;
  2926. }
  2927. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& ArrayValue::values() const
  2928. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2929. // @@protoc_insertion_point(field_list:google.firestore.v1.ArrayValue.values)
  2930. return _internal_values();
  2931. }
  2932. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>&
  2933. ArrayValue::_internal_values() const {
  2934. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2935. return _impl_.values_;
  2936. }
  2937. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>*
  2938. ArrayValue::_internal_mutable_values() {
  2939. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2940. return &_impl_.values_;
  2941. }
  2942. // -------------------------------------------------------------------
  2943. // -------------------------------------------------------------------
  2944. // MapValue
  2945. // map<string, .google.firestore.v1.Value> fields = 1;
  2946. inline int MapValue::_internal_fields_size() const {
  2947. return _internal_fields().size();
  2948. }
  2949. inline int MapValue::fields_size() const {
  2950. return _internal_fields_size();
  2951. }
  2952. inline void MapValue::clear_fields() {
  2953. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2954. _impl_.fields_.Clear();
  2955. }
  2956. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& MapValue::_internal_fields() const {
  2957. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  2958. return _impl_.fields_.GetMap();
  2959. }
  2960. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& MapValue::fields() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2961. // @@protoc_insertion_point(field_map:google.firestore.v1.MapValue.fields)
  2962. return _internal_fields();
  2963. }
  2964. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* MapValue::_internal_mutable_fields() {
  2965. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2966. return _impl_.fields_.MutableMap();
  2967. }
  2968. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* MapValue::mutable_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2969. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.MapValue.fields)
  2970. return _internal_mutable_fields();
  2971. }
  2972. // -------------------------------------------------------------------
  2973. // -------------------------------------------------------------------
  2974. // Function
  2975. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  2976. inline void Function::clear_name() {
  2977. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2978. _impl_.name_.ClearToEmpty();
  2979. }
  2980. inline const std::string& Function::name() const
  2981. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2982. // @@protoc_insertion_point(field_get:google.firestore.v1.Function.name)
  2983. return _internal_name();
  2984. }
  2985. template <typename Arg_, typename... Args_>
  2986. inline PROTOBUF_ALWAYS_INLINE void Function::set_name(Arg_&& arg,
  2987. Args_... args) {
  2988. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2989. ;
  2990. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  2991. // @@protoc_insertion_point(field_set:google.firestore.v1.Function.name)
  2992. }
  2993. inline std::string* Function::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  2994. std::string* _s = _internal_mutable_name();
  2995. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Function.name)
  2996. return _s;
  2997. }
  2998. inline const std::string& Function::_internal_name() const {
  2999. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3000. return _impl_.name_.Get();
  3001. }
  3002. inline void Function::_internal_set_name(const std::string& value) {
  3003. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3004. ;
  3005. _impl_.name_.Set(value, GetArena());
  3006. }
  3007. inline std::string* Function::_internal_mutable_name() {
  3008. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3009. ;
  3010. return _impl_.name_.Mutable( GetArena());
  3011. }
  3012. inline std::string* Function::release_name() {
  3013. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3014. // @@protoc_insertion_point(field_release:google.firestore.v1.Function.name)
  3015. return _impl_.name_.Release();
  3016. }
  3017. inline void Function::set_allocated_name(std::string* value) {
  3018. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3019. _impl_.name_.SetAllocated(value, GetArena());
  3020. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3021. if (_impl_.name_.IsDefault()) {
  3022. _impl_.name_.Set("", GetArena());
  3023. }
  3024. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3025. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Function.name)
  3026. }
  3027. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  3028. inline int Function::_internal_args_size() const {
  3029. return _internal_args().size();
  3030. }
  3031. inline int Function::args_size() const {
  3032. return _internal_args_size();
  3033. }
  3034. inline void Function::clear_args() {
  3035. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3036. _impl_.args_.Clear();
  3037. }
  3038. inline ::google::firestore::v1::Value* Function::mutable_args(int index)
  3039. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3040. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Function.args)
  3041. return _internal_mutable_args()->Mutable(index);
  3042. }
  3043. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* Function::mutable_args()
  3044. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3045. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Function.args)
  3046. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3047. return _internal_mutable_args();
  3048. }
  3049. inline const ::google::firestore::v1::Value& Function::args(int index) const
  3050. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3051. // @@protoc_insertion_point(field_get:google.firestore.v1.Function.args)
  3052. return _internal_args().Get(index);
  3053. }
  3054. inline ::google::firestore::v1::Value* Function::add_args() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3055. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3056. ::google::firestore::v1::Value* _add = _internal_mutable_args()->Add();
  3057. // @@protoc_insertion_point(field_add:google.firestore.v1.Function.args)
  3058. return _add;
  3059. }
  3060. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& Function::args() const
  3061. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3062. // @@protoc_insertion_point(field_list:google.firestore.v1.Function.args)
  3063. return _internal_args();
  3064. }
  3065. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>&
  3066. Function::_internal_args() const {
  3067. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3068. return _impl_.args_;
  3069. }
  3070. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>*
  3071. Function::_internal_mutable_args() {
  3072. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3073. return &_impl_.args_;
  3074. }
  3075. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  3076. inline int Function::_internal_options_size() const {
  3077. return _internal_options().size();
  3078. }
  3079. inline int Function::options_size() const {
  3080. return _internal_options_size();
  3081. }
  3082. inline void Function::clear_options() {
  3083. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3084. _impl_.options_.Clear();
  3085. }
  3086. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Function::_internal_options() const {
  3087. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3088. return _impl_.options_.GetMap();
  3089. }
  3090. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Function::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3091. // @@protoc_insertion_point(field_map:google.firestore.v1.Function.options)
  3092. return _internal_options();
  3093. }
  3094. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Function::_internal_mutable_options() {
  3095. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3096. return _impl_.options_.MutableMap();
  3097. }
  3098. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Function::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3099. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.Function.options)
  3100. return _internal_mutable_options();
  3101. }
  3102. // -------------------------------------------------------------------
  3103. // -------------------------------------------------------------------
  3104. // Pipeline_Stage
  3105. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  3106. inline void Pipeline_Stage::clear_name() {
  3107. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3108. _impl_.name_.ClearToEmpty();
  3109. }
  3110. inline const std::string& Pipeline_Stage::name() const
  3111. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3112. // @@protoc_insertion_point(field_get:google.firestore.v1.Pipeline.Stage.name)
  3113. return _internal_name();
  3114. }
  3115. template <typename Arg_, typename... Args_>
  3116. inline PROTOBUF_ALWAYS_INLINE void Pipeline_Stage::set_name(Arg_&& arg,
  3117. Args_... args) {
  3118. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3119. ;
  3120. _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  3121. // @@protoc_insertion_point(field_set:google.firestore.v1.Pipeline.Stage.name)
  3122. }
  3123. inline std::string* Pipeline_Stage::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3124. std::string* _s = _internal_mutable_name();
  3125. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Pipeline.Stage.name)
  3126. return _s;
  3127. }
  3128. inline const std::string& Pipeline_Stage::_internal_name() const {
  3129. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3130. return _impl_.name_.Get();
  3131. }
  3132. inline void Pipeline_Stage::_internal_set_name(const std::string& value) {
  3133. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3134. ;
  3135. _impl_.name_.Set(value, GetArena());
  3136. }
  3137. inline std::string* Pipeline_Stage::_internal_mutable_name() {
  3138. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3139. ;
  3140. return _impl_.name_.Mutable( GetArena());
  3141. }
  3142. inline std::string* Pipeline_Stage::release_name() {
  3143. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3144. // @@protoc_insertion_point(field_release:google.firestore.v1.Pipeline.Stage.name)
  3145. return _impl_.name_.Release();
  3146. }
  3147. inline void Pipeline_Stage::set_allocated_name(std::string* value) {
  3148. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3149. _impl_.name_.SetAllocated(value, GetArena());
  3150. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3151. if (_impl_.name_.IsDefault()) {
  3152. _impl_.name_.Set("", GetArena());
  3153. }
  3154. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3155. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Pipeline.Stage.name)
  3156. }
  3157. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  3158. inline int Pipeline_Stage::_internal_args_size() const {
  3159. return _internal_args().size();
  3160. }
  3161. inline int Pipeline_Stage::args_size() const {
  3162. return _internal_args_size();
  3163. }
  3164. inline void Pipeline_Stage::clear_args() {
  3165. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3166. _impl_.args_.Clear();
  3167. }
  3168. inline ::google::firestore::v1::Value* Pipeline_Stage::mutable_args(int index)
  3169. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3170. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Pipeline.Stage.args)
  3171. return _internal_mutable_args()->Mutable(index);
  3172. }
  3173. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>* Pipeline_Stage::mutable_args()
  3174. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3175. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Pipeline.Stage.args)
  3176. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3177. return _internal_mutable_args();
  3178. }
  3179. inline const ::google::firestore::v1::Value& Pipeline_Stage::args(int index) const
  3180. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3181. // @@protoc_insertion_point(field_get:google.firestore.v1.Pipeline.Stage.args)
  3182. return _internal_args().Get(index);
  3183. }
  3184. inline ::google::firestore::v1::Value* Pipeline_Stage::add_args() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3185. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3186. ::google::firestore::v1::Value* _add = _internal_mutable_args()->Add();
  3187. // @@protoc_insertion_point(field_add:google.firestore.v1.Pipeline.Stage.args)
  3188. return _add;
  3189. }
  3190. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>& Pipeline_Stage::args() const
  3191. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3192. // @@protoc_insertion_point(field_list:google.firestore.v1.Pipeline.Stage.args)
  3193. return _internal_args();
  3194. }
  3195. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>&
  3196. Pipeline_Stage::_internal_args() const {
  3197. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3198. return _impl_.args_;
  3199. }
  3200. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Value>*
  3201. Pipeline_Stage::_internal_mutable_args() {
  3202. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3203. return &_impl_.args_;
  3204. }
  3205. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  3206. inline int Pipeline_Stage::_internal_options_size() const {
  3207. return _internal_options().size();
  3208. }
  3209. inline int Pipeline_Stage::options_size() const {
  3210. return _internal_options_size();
  3211. }
  3212. inline void Pipeline_Stage::clear_options() {
  3213. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3214. _impl_.options_.Clear();
  3215. }
  3216. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Pipeline_Stage::_internal_options() const {
  3217. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3218. return _impl_.options_.GetMap();
  3219. }
  3220. inline const ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>& Pipeline_Stage::options() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3221. // @@protoc_insertion_point(field_map:google.firestore.v1.Pipeline.Stage.options)
  3222. return _internal_options();
  3223. }
  3224. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Pipeline_Stage::_internal_mutable_options() {
  3225. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3226. return _impl_.options_.MutableMap();
  3227. }
  3228. inline ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>* Pipeline_Stage::mutable_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3229. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.Pipeline.Stage.options)
  3230. return _internal_mutable_options();
  3231. }
  3232. // -------------------------------------------------------------------
  3233. // Pipeline
  3234. // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
  3235. inline int Pipeline::_internal_stages_size() const {
  3236. return _internal_stages().size();
  3237. }
  3238. inline int Pipeline::stages_size() const {
  3239. return _internal_stages_size();
  3240. }
  3241. inline void Pipeline::clear_stages() {
  3242. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3243. _impl_.stages_.Clear();
  3244. }
  3245. inline ::google::firestore::v1::Pipeline_Stage* Pipeline::mutable_stages(int index)
  3246. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3247. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Pipeline.stages)
  3248. return _internal_mutable_stages()->Mutable(index);
  3249. }
  3250. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Pipeline_Stage>* Pipeline::mutable_stages()
  3251. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3252. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.Pipeline.stages)
  3253. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3254. return _internal_mutable_stages();
  3255. }
  3256. inline const ::google::firestore::v1::Pipeline_Stage& Pipeline::stages(int index) const
  3257. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3258. // @@protoc_insertion_point(field_get:google.firestore.v1.Pipeline.stages)
  3259. return _internal_stages().Get(index);
  3260. }
  3261. inline ::google::firestore::v1::Pipeline_Stage* Pipeline::add_stages() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3262. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  3263. ::google::firestore::v1::Pipeline_Stage* _add = _internal_mutable_stages()->Add();
  3264. // @@protoc_insertion_point(field_add:google.firestore.v1.Pipeline.stages)
  3265. return _add;
  3266. }
  3267. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Pipeline_Stage>& Pipeline::stages() const
  3268. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  3269. // @@protoc_insertion_point(field_list:google.firestore.v1.Pipeline.stages)
  3270. return _internal_stages();
  3271. }
  3272. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Pipeline_Stage>&
  3273. Pipeline::_internal_stages() const {
  3274. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3275. return _impl_.stages_;
  3276. }
  3277. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Pipeline_Stage>*
  3278. Pipeline::_internal_mutable_stages() {
  3279. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  3280. return &_impl_.stages_;
  3281. }
  3282. #ifdef __GNUC__
  3283. #pragma GCC diagnostic pop
  3284. #endif // __GNUC__
  3285. // @@protoc_insertion_point(namespace_scope)
  3286. } // namespace v1
  3287. } // namespace firestore
  3288. } // namespace google
  3289. // @@protoc_insertion_point(global_scope)
  3290. #include "google/protobuf/port_undef.inc"
  3291. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2ffirestore_2fv1_2fdocument_2eproto_2epb_2eh