document.pb.cc 109 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727
  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. #include "google/firestore/v1/document.pb.h"
  19. #include <algorithm>
  20. #include "google/protobuf/io/coded_stream.h"
  21. #include "google/protobuf/extension_set.h"
  22. #include "google/protobuf/wire_format_lite.h"
  23. #include "google/protobuf/descriptor.h"
  24. #include "google/protobuf/generated_message_reflection.h"
  25. #include "google/protobuf/reflection_ops.h"
  26. #include "google/protobuf/wire_format.h"
  27. #include "google/protobuf/generated_message_tctable_impl.h"
  28. // @@protoc_insertion_point(includes)
  29. // Must be included last.
  30. #include "google/protobuf/port_def.inc"
  31. PROTOBUF_PRAGMA_INIT_SEG
  32. namespace _pb = ::google::protobuf;
  33. namespace _pbi = ::google::protobuf::internal;
  34. namespace _fl = ::google::protobuf::internal::field_layout;
  35. namespace google {
  36. namespace firestore {
  37. namespace v1 {
  38. inline constexpr ArrayValue::Impl_::Impl_(
  39. ::_pbi::ConstantInitialized) noexcept
  40. : values_{},
  41. _cached_size_{0} {}
  42. template <typename>
  43. PROTOBUF_CONSTEXPR ArrayValue::ArrayValue(::_pbi::ConstantInitialized)
  44. : _impl_(::_pbi::ConstantInitialized()) {}
  45. struct ArrayValueDefaultTypeInternal {
  46. PROTOBUF_CONSTEXPR ArrayValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  47. ~ArrayValueDefaultTypeInternal() {}
  48. union {
  49. ArrayValue _instance;
  50. };
  51. };
  52. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  53. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
  54. inline constexpr Function::Impl_::Impl_(
  55. ::_pbi::ConstantInitialized) noexcept
  56. : args_{},
  57. options_{},
  58. name_(
  59. &::google::protobuf::internal::fixed_address_empty_string,
  60. ::_pbi::ConstantInitialized()),
  61. _cached_size_{0} {}
  62. template <typename>
  63. PROTOBUF_CONSTEXPR Function::Function(::_pbi::ConstantInitialized)
  64. : _impl_(::_pbi::ConstantInitialized()) {}
  65. struct FunctionDefaultTypeInternal {
  66. PROTOBUF_CONSTEXPR FunctionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  67. ~FunctionDefaultTypeInternal() {}
  68. union {
  69. Function _instance;
  70. };
  71. };
  72. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  73. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionDefaultTypeInternal _Function_default_instance_;
  74. template <typename>
  75. PROTOBUF_CONSTEXPR Function_OptionsEntry_DoNotUse::Function_OptionsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
  76. struct Function_OptionsEntry_DoNotUseDefaultTypeInternal {
  77. PROTOBUF_CONSTEXPR Function_OptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  78. ~Function_OptionsEntry_DoNotUseDefaultTypeInternal() {}
  79. union {
  80. Function_OptionsEntry_DoNotUse _instance;
  81. };
  82. };
  83. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  84. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Function_OptionsEntry_DoNotUseDefaultTypeInternal _Function_OptionsEntry_DoNotUse_default_instance_;
  85. inline constexpr MapValue::Impl_::Impl_(
  86. ::_pbi::ConstantInitialized) noexcept
  87. : fields_{},
  88. _cached_size_{0} {}
  89. template <typename>
  90. PROTOBUF_CONSTEXPR MapValue::MapValue(::_pbi::ConstantInitialized)
  91. : _impl_(::_pbi::ConstantInitialized()) {}
  92. struct MapValueDefaultTypeInternal {
  93. PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  94. ~MapValueDefaultTypeInternal() {}
  95. union {
  96. MapValue _instance;
  97. };
  98. };
  99. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  100. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_;
  101. template <typename>
  102. PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
  103. struct MapValue_FieldsEntry_DoNotUseDefaultTypeInternal {
  104. PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  105. ~MapValue_FieldsEntry_DoNotUseDefaultTypeInternal() {}
  106. union {
  107. MapValue_FieldsEntry_DoNotUse _instance;
  108. };
  109. };
  110. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  111. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
  112. inline constexpr Pipeline::Impl_::Impl_(
  113. ::_pbi::ConstantInitialized) noexcept
  114. : stages_{},
  115. _cached_size_{0} {}
  116. template <typename>
  117. PROTOBUF_CONSTEXPR Pipeline::Pipeline(::_pbi::ConstantInitialized)
  118. : _impl_(::_pbi::ConstantInitialized()) {}
  119. struct PipelineDefaultTypeInternal {
  120. PROTOBUF_CONSTEXPR PipelineDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  121. ~PipelineDefaultTypeInternal() {}
  122. union {
  123. Pipeline _instance;
  124. };
  125. };
  126. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  127. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PipelineDefaultTypeInternal _Pipeline_default_instance_;
  128. inline constexpr Pipeline_Stage::Impl_::Impl_(
  129. ::_pbi::ConstantInitialized) noexcept
  130. : args_{},
  131. options_{},
  132. name_(
  133. &::google::protobuf::internal::fixed_address_empty_string,
  134. ::_pbi::ConstantInitialized()),
  135. _cached_size_{0} {}
  136. template <typename>
  137. PROTOBUF_CONSTEXPR Pipeline_Stage::Pipeline_Stage(::_pbi::ConstantInitialized)
  138. : _impl_(::_pbi::ConstantInitialized()) {}
  139. struct Pipeline_StageDefaultTypeInternal {
  140. PROTOBUF_CONSTEXPR Pipeline_StageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  141. ~Pipeline_StageDefaultTypeInternal() {}
  142. union {
  143. Pipeline_Stage _instance;
  144. };
  145. };
  146. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  147. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pipeline_StageDefaultTypeInternal _Pipeline_Stage_default_instance_;
  148. template <typename>
  149. PROTOBUF_CONSTEXPR Pipeline_Stage_OptionsEntry_DoNotUse::Pipeline_Stage_OptionsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
  150. struct Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal {
  151. PROTOBUF_CONSTEXPR Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  152. ~Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal() {}
  153. union {
  154. Pipeline_Stage_OptionsEntry_DoNotUse _instance;
  155. };
  156. };
  157. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  158. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal _Pipeline_Stage_OptionsEntry_DoNotUse_default_instance_;
  159. inline constexpr Value::Impl_::Impl_(
  160. ::_pbi::ConstantInitialized) noexcept
  161. : value_type_{},
  162. _cached_size_{0},
  163. _oneof_case_{} {}
  164. template <typename>
  165. PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized)
  166. : _impl_(::_pbi::ConstantInitialized()) {}
  167. struct ValueDefaultTypeInternal {
  168. PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  169. ~ValueDefaultTypeInternal() {}
  170. union {
  171. Value _instance;
  172. };
  173. };
  174. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  175. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_;
  176. template <typename>
  177. PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
  178. struct Document_FieldsEntry_DoNotUseDefaultTypeInternal {
  179. PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  180. ~Document_FieldsEntry_DoNotUseDefaultTypeInternal() {}
  181. union {
  182. Document_FieldsEntry_DoNotUse _instance;
  183. };
  184. };
  185. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  186. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
  187. inline constexpr Document::Impl_::Impl_(
  188. ::_pbi::ConstantInitialized) noexcept
  189. : _cached_size_{0},
  190. fields_{},
  191. name_(
  192. &::google::protobuf::internal::fixed_address_empty_string,
  193. ::_pbi::ConstantInitialized()),
  194. create_time_{nullptr},
  195. update_time_{nullptr} {}
  196. template <typename>
  197. PROTOBUF_CONSTEXPR Document::Document(::_pbi::ConstantInitialized)
  198. : _impl_(::_pbi::ConstantInitialized()) {}
  199. struct DocumentDefaultTypeInternal {
  200. PROTOBUF_CONSTEXPR DocumentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  201. ~DocumentDefaultTypeInternal() {}
  202. union {
  203. Document _instance;
  204. };
  205. };
  206. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  207. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DocumentDefaultTypeInternal _Document_default_instance_;
  208. } // namespace v1
  209. } // namespace firestore
  210. } // namespace google
  211. static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[11];
  212. static constexpr const ::_pb::EnumDescriptor**
  213. file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
  214. static constexpr const ::_pb::ServiceDescriptor**
  215. file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
  216. const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  217. protodesc_cold) = {
  218. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, _has_bits_),
  219. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, _internal_metadata_),
  220. ~0u, // no _extensions_
  221. ~0u, // no _oneof_case_
  222. ~0u, // no _weak_field_map_
  223. ~0u, // no _inlined_string_donated_
  224. ~0u, // no _split_
  225. ~0u, // no sizeof(Split)
  226. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, key_),
  227. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, value_),
  228. 0,
  229. 1,
  230. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_._has_bits_),
  231. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _internal_metadata_),
  232. ~0u, // no _extensions_
  233. ~0u, // no _oneof_case_
  234. ~0u, // no _weak_field_map_
  235. ~0u, // no _inlined_string_donated_
  236. ~0u, // no _split_
  237. ~0u, // no sizeof(Split)
  238. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.name_),
  239. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.fields_),
  240. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.create_time_),
  241. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.update_time_),
  242. ~0u,
  243. ~0u,
  244. 0,
  245. 1,
  246. ~0u, // no _has_bits_
  247. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _internal_metadata_),
  248. ~0u, // no _extensions_
  249. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_._oneof_case_[0]),
  250. ~0u, // no _weak_field_map_
  251. ~0u, // no _inlined_string_donated_
  252. ~0u, // no _split_
  253. ~0u, // no sizeof(Split)
  254. ::_pbi::kInvalidFieldOffsetTag,
  255. ::_pbi::kInvalidFieldOffsetTag,
  256. ::_pbi::kInvalidFieldOffsetTag,
  257. ::_pbi::kInvalidFieldOffsetTag,
  258. ::_pbi::kInvalidFieldOffsetTag,
  259. ::_pbi::kInvalidFieldOffsetTag,
  260. ::_pbi::kInvalidFieldOffsetTag,
  261. ::_pbi::kInvalidFieldOffsetTag,
  262. ::_pbi::kInvalidFieldOffsetTag,
  263. ::_pbi::kInvalidFieldOffsetTag,
  264. ::_pbi::kInvalidFieldOffsetTag,
  265. ::_pbi::kInvalidFieldOffsetTag,
  266. ::_pbi::kInvalidFieldOffsetTag,
  267. ::_pbi::kInvalidFieldOffsetTag,
  268. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_.value_type_),
  269. ~0u, // no _has_bits_
  270. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, _internal_metadata_),
  271. ~0u, // no _extensions_
  272. ~0u, // no _oneof_case_
  273. ~0u, // no _weak_field_map_
  274. ~0u, // no _inlined_string_donated_
  275. ~0u, // no _split_
  276. ~0u, // no sizeof(Split)
  277. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, _impl_.values_),
  278. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, _has_bits_),
  279. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, _internal_metadata_),
  280. ~0u, // no _extensions_
  281. ~0u, // no _oneof_case_
  282. ~0u, // no _weak_field_map_
  283. ~0u, // no _inlined_string_donated_
  284. ~0u, // no _split_
  285. ~0u, // no sizeof(Split)
  286. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, key_),
  287. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, value_),
  288. 0,
  289. 1,
  290. ~0u, // no _has_bits_
  291. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, _internal_metadata_),
  292. ~0u, // no _extensions_
  293. ~0u, // no _oneof_case_
  294. ~0u, // no _weak_field_map_
  295. ~0u, // no _inlined_string_donated_
  296. ~0u, // no _split_
  297. ~0u, // no sizeof(Split)
  298. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, _impl_.fields_),
  299. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, _has_bits_),
  300. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, _internal_metadata_),
  301. ~0u, // no _extensions_
  302. ~0u, // no _oneof_case_
  303. ~0u, // no _weak_field_map_
  304. ~0u, // no _inlined_string_donated_
  305. ~0u, // no _split_
  306. ~0u, // no sizeof(Split)
  307. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, key_),
  308. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, value_),
  309. 0,
  310. 1,
  311. ~0u, // no _has_bits_
  312. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _internal_metadata_),
  313. ~0u, // no _extensions_
  314. ~0u, // no _oneof_case_
  315. ~0u, // no _weak_field_map_
  316. ~0u, // no _inlined_string_donated_
  317. ~0u, // no _split_
  318. ~0u, // no sizeof(Split)
  319. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _impl_.name_),
  320. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _impl_.args_),
  321. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _impl_.options_),
  322. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, _has_bits_),
  323. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, _internal_metadata_),
  324. ~0u, // no _extensions_
  325. ~0u, // no _oneof_case_
  326. ~0u, // no _weak_field_map_
  327. ~0u, // no _inlined_string_donated_
  328. ~0u, // no _split_
  329. ~0u, // no sizeof(Split)
  330. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, key_),
  331. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, value_),
  332. 0,
  333. 1,
  334. ~0u, // no _has_bits_
  335. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _internal_metadata_),
  336. ~0u, // no _extensions_
  337. ~0u, // no _oneof_case_
  338. ~0u, // no _weak_field_map_
  339. ~0u, // no _inlined_string_donated_
  340. ~0u, // no _split_
  341. ~0u, // no sizeof(Split)
  342. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _impl_.name_),
  343. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _impl_.args_),
  344. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _impl_.options_),
  345. ~0u, // no _has_bits_
  346. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline, _internal_metadata_),
  347. ~0u, // no _extensions_
  348. ~0u, // no _oneof_case_
  349. ~0u, // no _weak_field_map_
  350. ~0u, // no _inlined_string_donated_
  351. ~0u, // no _split_
  352. ~0u, // no sizeof(Split)
  353. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline, _impl_.stages_),
  354. };
  355. static const ::_pbi::MigrationSchema
  356. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  357. {0, 10, -1, sizeof(::google::firestore::v1::Document_FieldsEntry_DoNotUse)},
  358. {12, 24, -1, sizeof(::google::firestore::v1::Document)},
  359. {28, -1, -1, sizeof(::google::firestore::v1::Value)},
  360. {51, -1, -1, sizeof(::google::firestore::v1::ArrayValue)},
  361. {60, 70, -1, sizeof(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse)},
  362. {72, -1, -1, sizeof(::google::firestore::v1::MapValue)},
  363. {81, 91, -1, sizeof(::google::firestore::v1::Function_OptionsEntry_DoNotUse)},
  364. {93, -1, -1, sizeof(::google::firestore::v1::Function)},
  365. {104, 114, -1, sizeof(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse)},
  366. {116, -1, -1, sizeof(::google::firestore::v1::Pipeline_Stage)},
  367. {127, -1, -1, sizeof(::google::firestore::v1::Pipeline)},
  368. };
  369. static const ::_pb::Message* const file_default_instances[] = {
  370. &::google::firestore::v1::_Document_FieldsEntry_DoNotUse_default_instance_._instance,
  371. &::google::firestore::v1::_Document_default_instance_._instance,
  372. &::google::firestore::v1::_Value_default_instance_._instance,
  373. &::google::firestore::v1::_ArrayValue_default_instance_._instance,
  374. &::google::firestore::v1::_MapValue_FieldsEntry_DoNotUse_default_instance_._instance,
  375. &::google::firestore::v1::_MapValue_default_instance_._instance,
  376. &::google::firestore::v1::_Function_OptionsEntry_DoNotUse_default_instance_._instance,
  377. &::google::firestore::v1::_Function_default_instance_._instance,
  378. &::google::firestore::v1::_Pipeline_Stage_OptionsEntry_DoNotUse_default_instance_._instance,
  379. &::google::firestore::v1::_Pipeline_Stage_default_instance_._instance,
  380. &::google::firestore::v1::_Pipeline_default_instance_._instance,
  381. };
  382. const char descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  383. "\n\"google/firestore/v1/document.proto\022\023go"
  384. "ogle.firestore.v1\032\037google/api/field_beha"
  385. "vior.proto\032\034google/protobuf/struct.proto"
  386. "\032\037google/protobuf/timestamp.proto\032\030googl"
  387. "e/type/latlng.proto\"\200\002\n\010Document\022\014\n\004name"
  388. "\030\001 \001(\t\0229\n\006fields\030\002 \003(\0132).google.firestor"
  389. "e.v1.Document.FieldsEntry\022/\n\013create_time"
  390. "\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up"
  391. "date_time\030\004 \001(\0132\032.google.protobuf.Timest"
  392. "amp\032I\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value"
  393. "\030\002 \001(\0132\032.google.firestore.v1.Value:\0028\001\"\301"
  394. "\004\n\005Value\0220\n\nnull_value\030\013 \001(\0162\032.google.pr"
  395. "otobuf.NullValueH\000\022\027\n\rboolean_value\030\001 \001("
  396. "\010H\000\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014double_v"
  397. "alue\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n \001(\0132\032."
  398. "google.protobuf.TimestampH\000\022\026\n\014string_va"
  399. "lue\030\021 \001(\tH\000\022\025\n\013bytes_value\030\022 \001(\014H\000\022\031\n\017re"
  400. "ference_value\030\005 \001(\tH\000\022.\n\017geo_point_value"
  401. "\030\010 \001(\0132\023.google.type.LatLngH\000\0226\n\013array_v"
  402. "alue\030\t \001(\0132\037.google.firestore.v1.ArrayVa"
  403. "lueH\000\0222\n\tmap_value\030\006 \001(\0132\035.google.firest"
  404. "ore.v1.MapValueH\000\022\037\n\025field_reference_val"
  405. "ue\030\023 \001(\tH\000\0227\n\016function_value\030\024 \001(\0132\035.goo"
  406. "gle.firestore.v1.FunctionH\000\0227\n\016pipeline_"
  407. "value\030\025 \001(\0132\035.google.firestore.v1.Pipeli"
  408. "neH\000B\014\n\nvalue_type\"8\n\nArrayValue\022*\n\006valu"
  409. "es\030\001 \003(\0132\032.google.firestore.v1.Value\"\220\001\n"
  410. "\010MapValue\0229\n\006fields\030\001 \003(\0132).google.fires"
  411. "tore.v1.MapValue.FieldsEntry\032I\n\013FieldsEn"
  412. "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google"
  413. ".firestore.v1.Value:\0028\001\"\332\001\n\010Function\022\021\n\004"
  414. "name\030\001 \001(\tB\003\340A\002\022-\n\004args\030\002 \003(\0132\032.google.f"
  415. "irestore.v1.ValueB\003\340A\001\022@\n\007options\030\003 \003(\0132"
  416. "*.google.firestore.v1.Function.OptionsEn"
  417. "tryB\003\340A\001\032J\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022)\n"
  418. "\005value\030\002 \001(\0132\032.google.firestore.v1.Value"
  419. ":\0028\001\"\244\002\n\010Pipeline\0228\n\006stages\030\001 \003(\0132#.goog"
  420. "le.firestore.v1.Pipeline.StageB\003\340A\002\032\335\001\n\005"
  421. "Stage\022\021\n\004name\030\001 \001(\tB\003\340A\002\022-\n\004args\030\002 \003(\0132\032"
  422. ".google.firestore.v1.ValueB\003\340A\001\022F\n\007optio"
  423. "ns\030\003 \003(\01320.google.firestore.v1.Pipeline."
  424. "Stage.OptionsEntryB\003\340A\001\032J\n\014OptionsEntry\022"
  425. "\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.fir"
  426. "estore.v1.Value:\0028\001B\305\001\n\027com.google.fires"
  427. "tore.v1B\rDocumentProtoP\001Z;cloud.google.c"
  428. "om/go/firestore/apiv1/firestorepb;firest"
  429. "orepb\242\002\004GCFS\252\002\031Google.Cloud.Firestore.V1"
  430. "\312\002\031Google\\Cloud\\Firestore\\V1\352\002\034Google::C"
  431. "loud::Firestore::V1b\006proto3"
  432. };
  433. static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps[4] =
  434. {
  435. &::descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto,
  436. &::descriptor_table_google_2fprotobuf_2fstruct_2eproto,
  437. &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
  438. &::descriptor_table_google_2ftype_2flatlng_2eproto,
  439. };
  440. static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once;
  441. const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto = {
  442. false,
  443. false,
  444. 1947,
  445. descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto,
  446. "google/firestore/v1/document.proto",
  447. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  448. descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps,
  449. 4,
  450. 11,
  451. schemas,
  452. file_default_instances,
  453. TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets,
  454. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto,
  455. file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
  456. file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
  457. };
  458. // This function exists to be marked as weak.
  459. // It can significantly speed up compilation by breaking up LLVM's SCC
  460. // in the .pb.cc translation units. Large translation units see a
  461. // reduction of more than 35% of walltime for optimized builds. Without
  462. // the weak attribute all the messages in the file, including all the
  463. // vtables and everything they use become part of the same SCC through
  464. // a cycle like:
  465. // GetMetadata -> descriptor table -> default instances ->
  466. // vtables -> GetMetadata
  467. // By adding a weak function here we break the connection from the
  468. // individual vtables back into the descriptor table.
  469. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter() {
  470. return &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto;
  471. }
  472. // Force running AddDescriptors() at dynamic initialization time.
  473. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  474. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2fdocument_2eproto(&descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto);
  475. namespace google {
  476. namespace firestore {
  477. namespace v1 {
  478. // ===================================================================
  479. Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse() {}
  480. Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
  481. : SuperType(arena) {}
  482. ::google::protobuf::Metadata Document_FieldsEntry_DoNotUse::GetMetadata() const {
  483. return ::_pbi::AssignDescriptors(
  484. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  485. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[0]);
  486. }
  487. // ===================================================================
  488. class Document::_Internal {
  489. public:
  490. using HasBits = decltype(std::declval<Document>()._impl_._has_bits_);
  491. static constexpr ::int32_t kHasBitsOffset =
  492. 8 * PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_);
  493. static const ::google::protobuf::Timestamp& create_time(const Document* msg);
  494. static void set_has_create_time(HasBits* has_bits) {
  495. (*has_bits)[0] |= 1u;
  496. }
  497. static const ::google::protobuf::Timestamp& update_time(const Document* msg);
  498. static void set_has_update_time(HasBits* has_bits) {
  499. (*has_bits)[0] |= 2u;
  500. }
  501. };
  502. const ::google::protobuf::Timestamp& Document::_Internal::create_time(const Document* msg) {
  503. return *msg->_impl_.create_time_;
  504. }
  505. const ::google::protobuf::Timestamp& Document::_Internal::update_time(const Document* msg) {
  506. return *msg->_impl_.update_time_;
  507. }
  508. void Document::clear_create_time() {
  509. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  510. if (_impl_.create_time_ != nullptr) _impl_.create_time_->Clear();
  511. _impl_._has_bits_[0] &= ~0x00000001u;
  512. }
  513. void Document::clear_update_time() {
  514. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  515. if (_impl_.update_time_ != nullptr) _impl_.update_time_->Clear();
  516. _impl_._has_bits_[0] &= ~0x00000002u;
  517. }
  518. Document::Document(::google::protobuf::Arena* arena)
  519. : ::google::protobuf::Message(arena) {
  520. SharedCtor(arena);
  521. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Document)
  522. }
  523. inline PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
  524. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  525. const Impl_& from)
  526. : _has_bits_{from._has_bits_},
  527. _cached_size_{0},
  528. fields_{visibility, arena, from.fields_},
  529. name_(arena, from.name_) {}
  530. Document::Document(
  531. ::google::protobuf::Arena* arena,
  532. const Document& from)
  533. : ::google::protobuf::Message(arena) {
  534. Document* const _this = this;
  535. (void)_this;
  536. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  537. from._internal_metadata_);
  538. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  539. ::uint32_t cached_has_bits = _impl_._has_bits_[0];
  540. _impl_.create_time_ = (cached_has_bits & 0x00000001u)
  541. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.create_time_)
  542. : nullptr;
  543. _impl_.update_time_ = (cached_has_bits & 0x00000002u)
  544. ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.update_time_)
  545. : nullptr;
  546. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Document)
  547. }
  548. inline PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
  549. ::google::protobuf::internal::InternalVisibility visibility,
  550. ::google::protobuf::Arena* arena)
  551. : _cached_size_{0},
  552. fields_{visibility, arena},
  553. name_(arena) {}
  554. inline void Document::SharedCtor(::_pb::Arena* arena) {
  555. new (&_impl_) Impl_(internal_visibility(), arena);
  556. ::memset(reinterpret_cast<char *>(&_impl_) +
  557. offsetof(Impl_, create_time_),
  558. 0,
  559. offsetof(Impl_, update_time_) -
  560. offsetof(Impl_, create_time_) +
  561. sizeof(Impl_::update_time_));
  562. }
  563. Document::~Document() {
  564. // @@protoc_insertion_point(destructor:google.firestore.v1.Document)
  565. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  566. SharedDtor();
  567. }
  568. inline void Document::SharedDtor() {
  569. ABSL_DCHECK(GetArena() == nullptr);
  570. _impl_.name_.Destroy();
  571. delete _impl_.create_time_;
  572. delete _impl_.update_time_;
  573. _impl_.~Impl_();
  574. }
  575. PROTOBUF_NOINLINE void Document::Clear() {
  576. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Document)
  577. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  578. ::uint32_t cached_has_bits = 0;
  579. // Prevent compiler warnings about cached_has_bits being unused
  580. (void) cached_has_bits;
  581. _impl_.fields_.Clear();
  582. _impl_.name_.ClearToEmpty();
  583. cached_has_bits = _impl_._has_bits_[0];
  584. if (cached_has_bits & 0x00000003u) {
  585. if (cached_has_bits & 0x00000001u) {
  586. ABSL_DCHECK(_impl_.create_time_ != nullptr);
  587. _impl_.create_time_->Clear();
  588. }
  589. if (cached_has_bits & 0x00000002u) {
  590. ABSL_DCHECK(_impl_.update_time_ != nullptr);
  591. _impl_.update_time_->Clear();
  592. }
  593. }
  594. _impl_._has_bits_.Clear();
  595. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  596. }
  597. const char* Document::_InternalParse(
  598. const char* ptr, ::_pbi::ParseContext* ctx) {
  599. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  600. return ptr;
  601. }
  602. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  603. const ::_pbi::TcParseTable<2, 4, 4, 47, 2> Document::_table_ = {
  604. {
  605. PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_),
  606. 0, // no _extensions_
  607. 4, 24, // max_field_number, fast_idx_mask
  608. offsetof(decltype(_table_), field_lookup_table),
  609. 4294967280, // skipmap
  610. offsetof(decltype(_table_), field_entries),
  611. 4, // num_field_entries
  612. 4, // num_aux_entries
  613. offsetof(decltype(_table_), aux_entries),
  614. &_Document_default_instance_._instance,
  615. ::_pbi::TcParser::GenericFallback, // fallback
  616. }, {{
  617. // .google.protobuf.Timestamp update_time = 4;
  618. {::_pbi::TcParser::FastMtS1,
  619. {34, 1, 3, PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_)}},
  620. // string name = 1;
  621. {::_pbi::TcParser::FastUS1,
  622. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Document, _impl_.name_)}},
  623. {::_pbi::TcParser::MiniParse, {}},
  624. // .google.protobuf.Timestamp create_time = 3;
  625. {::_pbi::TcParser::FastMtS1,
  626. {26, 0, 2, PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_)}},
  627. }}, {{
  628. 65535, 65535
  629. }}, {{
  630. // string name = 1;
  631. {PROTOBUF_FIELD_OFFSET(Document, _impl_.name_), -1, 0,
  632. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  633. // map<string, .google.firestore.v1.Value> fields = 2;
  634. {PROTOBUF_FIELD_OFFSET(Document, _impl_.fields_), -1, 0,
  635. (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
  636. // .google.protobuf.Timestamp create_time = 3;
  637. {PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_), _Internal::kHasBitsOffset + 0, 2,
  638. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  639. // .google.protobuf.Timestamp update_time = 4;
  640. {PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_), _Internal::kHasBitsOffset + 1, 3,
  641. (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
  642. }}, {{
  643. {::_pbi::TcParser::GetMapAuxInfo<
  644. decltype(Document()._impl_.fields_)>(
  645. 1, 0, 0, 9,
  646. 11)},
  647. {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
  648. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  649. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  650. }}, {{
  651. "\34\4\6\0\0\0\0\0"
  652. "google.firestore.v1.Document"
  653. "name"
  654. "fields"
  655. }},
  656. };
  657. ::uint8_t* Document::_InternalSerialize(
  658. ::uint8_t* target,
  659. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  660. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Document)
  661. ::uint32_t cached_has_bits = 0;
  662. (void)cached_has_bits;
  663. // string name = 1;
  664. if (!this->_internal_name().empty()) {
  665. const std::string& _s = this->_internal_name();
  666. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  667. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.name");
  668. target = stream->WriteStringMaybeAliased(1, _s, target);
  669. }
  670. // map<string, .google.firestore.v1.Value> fields = 2;
  671. if (!_internal_fields().empty()) {
  672. using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
  673. using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  674. _pbi::WireFormatLite::TYPE_STRING,
  675. _pbi::WireFormatLite::TYPE_MESSAGE>;
  676. const auto& field = _internal_fields();
  677. if (stream->IsSerializationDeterministic() && field.size() > 1) {
  678. for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
  679. target = WireHelper::InternalSerialize(
  680. 2, entry.first, entry.second, target, stream);
  681. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  682. entry.first.data(), static_cast<int>(entry.first.length()),
  683. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.fields");
  684. }
  685. } else {
  686. for (const auto& entry : field) {
  687. target = WireHelper::InternalSerialize(
  688. 2, entry.first, entry.second, target, stream);
  689. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  690. entry.first.data(), static_cast<int>(entry.first.length()),
  691. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.fields");
  692. }
  693. }
  694. }
  695. cached_has_bits = _impl_._has_bits_[0];
  696. // .google.protobuf.Timestamp create_time = 3;
  697. if (cached_has_bits & 0x00000001u) {
  698. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  699. 3, _Internal::create_time(this),
  700. _Internal::create_time(this).GetCachedSize(), target, stream);
  701. }
  702. // .google.protobuf.Timestamp update_time = 4;
  703. if (cached_has_bits & 0x00000002u) {
  704. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  705. 4, _Internal::update_time(this),
  706. _Internal::update_time(this).GetCachedSize(), target, stream);
  707. }
  708. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  709. target =
  710. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  711. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  712. }
  713. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Document)
  714. return target;
  715. }
  716. ::size_t Document::ByteSizeLong() const {
  717. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Document)
  718. ::size_t total_size = 0;
  719. ::uint32_t cached_has_bits = 0;
  720. // Prevent compiler warnings about cached_has_bits being unused
  721. (void) cached_has_bits;
  722. // map<string, .google.firestore.v1.Value> fields = 2;
  723. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
  724. for (const auto& entry : _internal_fields()) {
  725. total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  726. _pbi::WireFormatLite::TYPE_STRING,
  727. _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
  728. }
  729. // string name = 1;
  730. if (!this->_internal_name().empty()) {
  731. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  732. this->_internal_name());
  733. }
  734. cached_has_bits = _impl_._has_bits_[0];
  735. if (cached_has_bits & 0x00000003u) {
  736. // .google.protobuf.Timestamp create_time = 3;
  737. if (cached_has_bits & 0x00000001u) {
  738. total_size +=
  739. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.create_time_);
  740. }
  741. // .google.protobuf.Timestamp update_time = 4;
  742. if (cached_has_bits & 0x00000002u) {
  743. total_size +=
  744. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_time_);
  745. }
  746. }
  747. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  748. }
  749. const ::google::protobuf::Message::ClassData Document::_class_data_ = {
  750. Document::MergeImpl,
  751. nullptr, // OnDemandRegisterArenaDtor
  752. };
  753. const ::google::protobuf::Message::ClassData* Document::GetClassData() const {
  754. return &_class_data_;
  755. }
  756. void Document::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  757. auto* const _this = static_cast<Document*>(&to_msg);
  758. auto& from = static_cast<const Document&>(from_msg);
  759. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Document)
  760. ABSL_DCHECK_NE(&from, _this);
  761. ::uint32_t cached_has_bits = 0;
  762. (void) cached_has_bits;
  763. _this->_impl_.fields_.MergeFrom(from._impl_.fields_);
  764. if (!from._internal_name().empty()) {
  765. _this->_internal_set_name(from._internal_name());
  766. }
  767. cached_has_bits = from._impl_._has_bits_[0];
  768. if (cached_has_bits & 0x00000003u) {
  769. if (cached_has_bits & 0x00000001u) {
  770. _this->_internal_mutable_create_time()->::google::protobuf::Timestamp::MergeFrom(
  771. from._internal_create_time());
  772. }
  773. if (cached_has_bits & 0x00000002u) {
  774. _this->_internal_mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(
  775. from._internal_update_time());
  776. }
  777. }
  778. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  779. }
  780. void Document::CopyFrom(const Document& from) {
  781. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Document)
  782. if (&from == this) return;
  783. Clear();
  784. MergeFrom(from);
  785. }
  786. PROTOBUF_NOINLINE bool Document::IsInitialized() const {
  787. return true;
  788. }
  789. ::_pbi::CachedSize* Document::AccessCachedSize() const {
  790. return &_impl_._cached_size_;
  791. }
  792. void Document::InternalSwap(Document* PROTOBUF_RESTRICT other) {
  793. using std::swap;
  794. auto* arena = GetArena();
  795. ABSL_DCHECK_EQ(arena, other->GetArena());
  796. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  797. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  798. _impl_.fields_.InternalSwap(&other->_impl_.fields_);
  799. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  800. ::google::protobuf::internal::memswap<
  801. PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_)
  802. + sizeof(Document::_impl_.update_time_)
  803. - PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_)>(
  804. reinterpret_cast<char*>(&_impl_.create_time_),
  805. reinterpret_cast<char*>(&other->_impl_.create_time_));
  806. }
  807. ::google::protobuf::Metadata Document::GetMetadata() const {
  808. return ::_pbi::AssignDescriptors(
  809. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  810. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[1]);
  811. }
  812. // ===================================================================
  813. class Value::_Internal {
  814. public:
  815. static constexpr ::int32_t kOneofCaseOffset =
  816. PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_._oneof_case_);
  817. static const ::google::protobuf::Timestamp& timestamp_value(const Value* msg);
  818. static const ::google::type::LatLng& geo_point_value(const Value* msg);
  819. static const ::google::firestore::v1::ArrayValue& array_value(const Value* msg);
  820. static const ::google::firestore::v1::MapValue& map_value(const Value* msg);
  821. static const ::google::firestore::v1::Function& function_value(const Value* msg);
  822. static const ::google::firestore::v1::Pipeline& pipeline_value(const Value* msg);
  823. };
  824. const ::google::protobuf::Timestamp& Value::_Internal::timestamp_value(const Value* msg) {
  825. return *msg->_impl_.value_type_.timestamp_value_;
  826. }
  827. const ::google::type::LatLng& Value::_Internal::geo_point_value(const Value* msg) {
  828. return *msg->_impl_.value_type_.geo_point_value_;
  829. }
  830. const ::google::firestore::v1::ArrayValue& Value::_Internal::array_value(const Value* msg) {
  831. return *msg->_impl_.value_type_.array_value_;
  832. }
  833. const ::google::firestore::v1::MapValue& Value::_Internal::map_value(const Value* msg) {
  834. return *msg->_impl_.value_type_.map_value_;
  835. }
  836. const ::google::firestore::v1::Function& Value::_Internal::function_value(const Value* msg) {
  837. return *msg->_impl_.value_type_.function_value_;
  838. }
  839. const ::google::firestore::v1::Pipeline& Value::_Internal::pipeline_value(const Value* msg) {
  840. return *msg->_impl_.value_type_.pipeline_value_;
  841. }
  842. void Value::set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value) {
  843. ::google::protobuf::Arena* message_arena = GetArena();
  844. clear_value_type();
  845. if (timestamp_value) {
  846. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(timestamp_value)->GetArena();
  847. if (message_arena != submessage_arena) {
  848. timestamp_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, timestamp_value, submessage_arena);
  849. }
  850. set_has_timestamp_value();
  851. _impl_.value_type_.timestamp_value_ = timestamp_value;
  852. }
  853. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.timestamp_value)
  854. }
  855. void Value::clear_timestamp_value() {
  856. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  857. if (value_type_case() == kTimestampValue) {
  858. if (GetArena() == nullptr) {
  859. delete _impl_.value_type_.timestamp_value_;
  860. }
  861. clear_has_value_type();
  862. }
  863. }
  864. void Value::set_allocated_geo_point_value(::google::type::LatLng* geo_point_value) {
  865. ::google::protobuf::Arena* message_arena = GetArena();
  866. clear_value_type();
  867. if (geo_point_value) {
  868. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(geo_point_value)->GetArena();
  869. if (message_arena != submessage_arena) {
  870. geo_point_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, geo_point_value, submessage_arena);
  871. }
  872. set_has_geo_point_value();
  873. _impl_.value_type_.geo_point_value_ = geo_point_value;
  874. }
  875. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.geo_point_value)
  876. }
  877. void Value::clear_geo_point_value() {
  878. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  879. if (value_type_case() == kGeoPointValue) {
  880. if (GetArena() == nullptr) {
  881. delete _impl_.value_type_.geo_point_value_;
  882. }
  883. clear_has_value_type();
  884. }
  885. }
  886. void Value::set_allocated_array_value(::google::firestore::v1::ArrayValue* array_value) {
  887. ::google::protobuf::Arena* message_arena = GetArena();
  888. clear_value_type();
  889. if (array_value) {
  890. ::google::protobuf::Arena* submessage_arena = array_value->GetArena();
  891. if (message_arena != submessage_arena) {
  892. array_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, array_value, submessage_arena);
  893. }
  894. set_has_array_value();
  895. _impl_.value_type_.array_value_ = array_value;
  896. }
  897. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.array_value)
  898. }
  899. void Value::set_allocated_map_value(::google::firestore::v1::MapValue* map_value) {
  900. ::google::protobuf::Arena* message_arena = GetArena();
  901. clear_value_type();
  902. if (map_value) {
  903. ::google::protobuf::Arena* submessage_arena = map_value->GetArena();
  904. if (message_arena != submessage_arena) {
  905. map_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_value, submessage_arena);
  906. }
  907. set_has_map_value();
  908. _impl_.value_type_.map_value_ = map_value;
  909. }
  910. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.map_value)
  911. }
  912. void Value::set_allocated_function_value(::google::firestore::v1::Function* function_value) {
  913. ::google::protobuf::Arena* message_arena = GetArena();
  914. clear_value_type();
  915. if (function_value) {
  916. ::google::protobuf::Arena* submessage_arena = function_value->GetArena();
  917. if (message_arena != submessage_arena) {
  918. function_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, function_value, submessage_arena);
  919. }
  920. set_has_function_value();
  921. _impl_.value_type_.function_value_ = function_value;
  922. }
  923. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.function_value)
  924. }
  925. void Value::set_allocated_pipeline_value(::google::firestore::v1::Pipeline* pipeline_value) {
  926. ::google::protobuf::Arena* message_arena = GetArena();
  927. clear_value_type();
  928. if (pipeline_value) {
  929. ::google::protobuf::Arena* submessage_arena = pipeline_value->GetArena();
  930. if (message_arena != submessage_arena) {
  931. pipeline_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, pipeline_value, submessage_arena);
  932. }
  933. set_has_pipeline_value();
  934. _impl_.value_type_.pipeline_value_ = pipeline_value;
  935. }
  936. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.pipeline_value)
  937. }
  938. Value::Value(::google::protobuf::Arena* arena)
  939. : ::google::protobuf::Message(arena) {
  940. SharedCtor(arena);
  941. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Value)
  942. }
  943. inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_(
  944. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  945. const Impl_& from)
  946. : value_type_{},
  947. _cached_size_{0},
  948. _oneof_case_{from._oneof_case_[0]} {}
  949. Value::Value(
  950. ::google::protobuf::Arena* arena,
  951. const Value& from)
  952. : ::google::protobuf::Message(arena) {
  953. Value* const _this = this;
  954. (void)_this;
  955. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  956. from._internal_metadata_);
  957. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  958. switch (value_type_case()) {
  959. case VALUE_TYPE_NOT_SET:
  960. break;
  961. case kNullValue:
  962. _impl_.value_type_.null_value_ = from._impl_.value_type_.null_value_;
  963. break;
  964. case kBooleanValue:
  965. _impl_.value_type_.boolean_value_ = from._impl_.value_type_.boolean_value_;
  966. break;
  967. case kIntegerValue:
  968. _impl_.value_type_.integer_value_ = from._impl_.value_type_.integer_value_;
  969. break;
  970. case kDoubleValue:
  971. _impl_.value_type_.double_value_ = from._impl_.value_type_.double_value_;
  972. break;
  973. case kTimestampValue:
  974. _impl_.value_type_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.value_type_.timestamp_value_);
  975. break;
  976. case kStringValue:
  977. new (&_impl_.value_type_.string_value_) decltype(_impl_.value_type_.string_value_){arena, from._impl_.value_type_.string_value_};
  978. break;
  979. case kBytesValue:
  980. new (&_impl_.value_type_.bytes_value_) decltype(_impl_.value_type_.bytes_value_){arena, from._impl_.value_type_.bytes_value_};
  981. break;
  982. case kReferenceValue:
  983. new (&_impl_.value_type_.reference_value_) decltype(_impl_.value_type_.reference_value_){arena, from._impl_.value_type_.reference_value_};
  984. break;
  985. case kGeoPointValue:
  986. _impl_.value_type_.geo_point_value_ = CreateMaybeMessage<::google::type::LatLng>(arena, *from._impl_.value_type_.geo_point_value_);
  987. break;
  988. case kArrayValue:
  989. _impl_.value_type_.array_value_ = CreateMaybeMessage<::google::firestore::v1::ArrayValue>(arena, *from._impl_.value_type_.array_value_);
  990. break;
  991. case kMapValue:
  992. _impl_.value_type_.map_value_ = CreateMaybeMessage<::google::firestore::v1::MapValue>(arena, *from._impl_.value_type_.map_value_);
  993. break;
  994. case kFieldReferenceValue:
  995. new (&_impl_.value_type_.field_reference_value_) decltype(_impl_.value_type_.field_reference_value_){arena, from._impl_.value_type_.field_reference_value_};
  996. break;
  997. case kFunctionValue:
  998. _impl_.value_type_.function_value_ = CreateMaybeMessage<::google::firestore::v1::Function>(arena, *from._impl_.value_type_.function_value_);
  999. break;
  1000. case kPipelineValue:
  1001. _impl_.value_type_.pipeline_value_ = CreateMaybeMessage<::google::firestore::v1::Pipeline>(arena, *from._impl_.value_type_.pipeline_value_);
  1002. break;
  1003. }
  1004. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Value)
  1005. }
  1006. inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_(
  1007. ::google::protobuf::internal::InternalVisibility visibility,
  1008. ::google::protobuf::Arena* arena)
  1009. : value_type_{},
  1010. _cached_size_{0},
  1011. _oneof_case_{} {}
  1012. inline void Value::SharedCtor(::_pb::Arena* arena) {
  1013. new (&_impl_) Impl_(internal_visibility(), arena);
  1014. }
  1015. Value::~Value() {
  1016. // @@protoc_insertion_point(destructor:google.firestore.v1.Value)
  1017. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1018. SharedDtor();
  1019. }
  1020. inline void Value::SharedDtor() {
  1021. ABSL_DCHECK(GetArena() == nullptr);
  1022. if (has_value_type()) {
  1023. clear_value_type();
  1024. }
  1025. _impl_.~Impl_();
  1026. }
  1027. void Value::clear_value_type() {
  1028. // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Value)
  1029. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1030. switch (value_type_case()) {
  1031. case kNullValue: {
  1032. // No need to clear
  1033. break;
  1034. }
  1035. case kBooleanValue: {
  1036. // No need to clear
  1037. break;
  1038. }
  1039. case kIntegerValue: {
  1040. // No need to clear
  1041. break;
  1042. }
  1043. case kDoubleValue: {
  1044. // No need to clear
  1045. break;
  1046. }
  1047. case kTimestampValue: {
  1048. if (GetArena() == nullptr) {
  1049. delete _impl_.value_type_.timestamp_value_;
  1050. }
  1051. break;
  1052. }
  1053. case kStringValue: {
  1054. _impl_.value_type_.string_value_.Destroy();
  1055. break;
  1056. }
  1057. case kBytesValue: {
  1058. _impl_.value_type_.bytes_value_.Destroy();
  1059. break;
  1060. }
  1061. case kReferenceValue: {
  1062. _impl_.value_type_.reference_value_.Destroy();
  1063. break;
  1064. }
  1065. case kGeoPointValue: {
  1066. if (GetArena() == nullptr) {
  1067. delete _impl_.value_type_.geo_point_value_;
  1068. }
  1069. break;
  1070. }
  1071. case kArrayValue: {
  1072. if (GetArena() == nullptr) {
  1073. delete _impl_.value_type_.array_value_;
  1074. }
  1075. break;
  1076. }
  1077. case kMapValue: {
  1078. if (GetArena() == nullptr) {
  1079. delete _impl_.value_type_.map_value_;
  1080. }
  1081. break;
  1082. }
  1083. case kFieldReferenceValue: {
  1084. _impl_.value_type_.field_reference_value_.Destroy();
  1085. break;
  1086. }
  1087. case kFunctionValue: {
  1088. if (GetArena() == nullptr) {
  1089. delete _impl_.value_type_.function_value_;
  1090. }
  1091. break;
  1092. }
  1093. case kPipelineValue: {
  1094. if (GetArena() == nullptr) {
  1095. delete _impl_.value_type_.pipeline_value_;
  1096. }
  1097. break;
  1098. }
  1099. case VALUE_TYPE_NOT_SET: {
  1100. break;
  1101. }
  1102. }
  1103. _impl_._oneof_case_[0] = VALUE_TYPE_NOT_SET;
  1104. }
  1105. PROTOBUF_NOINLINE void Value::Clear() {
  1106. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Value)
  1107. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1108. ::uint32_t cached_has_bits = 0;
  1109. // Prevent compiler warnings about cached_has_bits being unused
  1110. (void) cached_has_bits;
  1111. clear_value_type();
  1112. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1113. }
  1114. const char* Value::_InternalParse(
  1115. const char* ptr, ::_pbi::ParseContext* ctx) {
  1116. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1117. return ptr;
  1118. }
  1119. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1120. const ::_pbi::TcParseTable<0, 14, 6, 90, 2> Value::_table_ = {
  1121. {
  1122. 0, // no _has_bits_
  1123. 0, // no _extensions_
  1124. 21, 0, // max_field_number, fast_idx_mask
  1125. offsetof(decltype(_table_), field_lookup_table),
  1126. 4292933704, // skipmap
  1127. offsetof(decltype(_table_), field_entries),
  1128. 14, // num_field_entries
  1129. 6, // num_aux_entries
  1130. offsetof(decltype(_table_), aux_entries),
  1131. &_Value_default_instance_._instance,
  1132. ::_pbi::TcParser::GenericFallback, // fallback
  1133. }, {{
  1134. {::_pbi::TcParser::MiniParse, {}},
  1135. }}, {{
  1136. 65535, 65535
  1137. }}, {{
  1138. // bool boolean_value = 1;
  1139. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.boolean_value_), _Internal::kOneofCaseOffset + 0, 0,
  1140. (0 | ::_fl::kFcOneof | ::_fl::kBool)},
  1141. // int64 integer_value = 2;
  1142. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.integer_value_), _Internal::kOneofCaseOffset + 0, 0,
  1143. (0 | ::_fl::kFcOneof | ::_fl::kInt64)},
  1144. // double double_value = 3;
  1145. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.double_value_), _Internal::kOneofCaseOffset + 0, 0,
  1146. (0 | ::_fl::kFcOneof | ::_fl::kDouble)},
  1147. // string reference_value = 5;
  1148. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.reference_value_), _Internal::kOneofCaseOffset + 0, 0,
  1149. (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1150. // .google.firestore.v1.MapValue map_value = 6;
  1151. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.map_value_), _Internal::kOneofCaseOffset + 0, 0,
  1152. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1153. // .google.type.LatLng geo_point_value = 8;
  1154. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.geo_point_value_), _Internal::kOneofCaseOffset + 0, 1,
  1155. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1156. // .google.firestore.v1.ArrayValue array_value = 9;
  1157. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.array_value_), _Internal::kOneofCaseOffset + 0, 2,
  1158. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1159. // .google.protobuf.Timestamp timestamp_value = 10;
  1160. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.timestamp_value_), _Internal::kOneofCaseOffset + 0, 3,
  1161. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1162. // .google.protobuf.NullValue null_value = 11;
  1163. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.null_value_), _Internal::kOneofCaseOffset + 0, 0,
  1164. (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
  1165. // string string_value = 17;
  1166. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.string_value_), _Internal::kOneofCaseOffset + 0, 0,
  1167. (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1168. // bytes bytes_value = 18;
  1169. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0,
  1170. (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
  1171. // string field_reference_value = 19;
  1172. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.field_reference_value_), _Internal::kOneofCaseOffset + 0, 0,
  1173. (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1174. // .google.firestore.v1.Function function_value = 20;
  1175. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.function_value_), _Internal::kOneofCaseOffset + 0, 4,
  1176. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1177. // .google.firestore.v1.Pipeline pipeline_value = 21;
  1178. {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.pipeline_value_), _Internal::kOneofCaseOffset + 0, 5,
  1179. (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
  1180. }}, {{
  1181. {::_pbi::TcParser::GetTable<::google::firestore::v1::MapValue>()},
  1182. {::_pbi::TcParser::GetTable<::google::type::LatLng>()},
  1183. {::_pbi::TcParser::GetTable<::google::firestore::v1::ArrayValue>()},
  1184. {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
  1185. {::_pbi::TcParser::GetTable<::google::firestore::v1::Function>()},
  1186. {::_pbi::TcParser::GetTable<::google::firestore::v1::Pipeline>()},
  1187. }}, {{
  1188. "\31\0\0\0\17\0\0\0\0\0\14\0\25\0\0\0"
  1189. "google.firestore.v1.Value"
  1190. "reference_value"
  1191. "string_value"
  1192. "field_reference_value"
  1193. }},
  1194. };
  1195. ::uint8_t* Value::_InternalSerialize(
  1196. ::uint8_t* target,
  1197. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1198. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Value)
  1199. ::uint32_t cached_has_bits = 0;
  1200. (void)cached_has_bits;
  1201. switch (value_type_case()) {
  1202. case kBooleanValue: {
  1203. target = stream->EnsureSpace(target);
  1204. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  1205. 1, this->_internal_boolean_value(), target);
  1206. break;
  1207. }
  1208. case kIntegerValue: {
  1209. target = ::google::protobuf::internal::WireFormatLite::
  1210. WriteInt64ToArrayWithField<2>(
  1211. stream, this->_internal_integer_value(), target);
  1212. break;
  1213. }
  1214. case kDoubleValue: {
  1215. target = stream->EnsureSpace(target);
  1216. target = ::_pbi::WireFormatLite::WriteDoubleToArray(
  1217. 3, this->_internal_double_value(), target);
  1218. break;
  1219. }
  1220. case kReferenceValue: {
  1221. const std::string& _s = this->_internal_reference_value();
  1222. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1223. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.reference_value");
  1224. target = stream->WriteStringMaybeAliased(5, _s, target);
  1225. break;
  1226. }
  1227. case kMapValue: {
  1228. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1229. 6, _Internal::map_value(this),
  1230. _Internal::map_value(this).GetCachedSize(), target, stream);
  1231. break;
  1232. }
  1233. case kGeoPointValue: {
  1234. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1235. 8, _Internal::geo_point_value(this),
  1236. _Internal::geo_point_value(this).GetCachedSize(), target, stream);
  1237. break;
  1238. }
  1239. case kArrayValue: {
  1240. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1241. 9, _Internal::array_value(this),
  1242. _Internal::array_value(this).GetCachedSize(), target, stream);
  1243. break;
  1244. }
  1245. case kTimestampValue: {
  1246. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1247. 10, _Internal::timestamp_value(this),
  1248. _Internal::timestamp_value(this).GetCachedSize(), target, stream);
  1249. break;
  1250. }
  1251. case kNullValue: {
  1252. target = stream->EnsureSpace(target);
  1253. target = ::_pbi::WireFormatLite::WriteEnumToArray(
  1254. 11, this->_internal_null_value(), target);
  1255. break;
  1256. }
  1257. case kStringValue: {
  1258. const std::string& _s = this->_internal_string_value();
  1259. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1260. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.string_value");
  1261. target = stream->WriteStringMaybeAliased(17, _s, target);
  1262. break;
  1263. }
  1264. case kBytesValue: {
  1265. const std::string& _s = this->_internal_bytes_value();
  1266. target = stream->WriteBytesMaybeAliased(18, _s, target);
  1267. break;
  1268. }
  1269. case kFieldReferenceValue: {
  1270. const std::string& _s = this->_internal_field_reference_value();
  1271. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1272. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.field_reference_value");
  1273. target = stream->WriteStringMaybeAliased(19, _s, target);
  1274. break;
  1275. }
  1276. case kFunctionValue: {
  1277. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1278. 20, _Internal::function_value(this),
  1279. _Internal::function_value(this).GetCachedSize(), target, stream);
  1280. break;
  1281. }
  1282. case kPipelineValue: {
  1283. target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
  1284. 21, _Internal::pipeline_value(this),
  1285. _Internal::pipeline_value(this).GetCachedSize(), target, stream);
  1286. break;
  1287. }
  1288. default:
  1289. break;
  1290. }
  1291. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1292. target =
  1293. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1294. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1295. }
  1296. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Value)
  1297. return target;
  1298. }
  1299. ::size_t Value::ByteSizeLong() const {
  1300. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Value)
  1301. ::size_t total_size = 0;
  1302. ::uint32_t cached_has_bits = 0;
  1303. // Prevent compiler warnings about cached_has_bits being unused
  1304. (void) cached_has_bits;
  1305. switch (value_type_case()) {
  1306. // .google.protobuf.NullValue null_value = 11;
  1307. case kNullValue: {
  1308. total_size += 1 +
  1309. ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value());
  1310. break;
  1311. }
  1312. // bool boolean_value = 1;
  1313. case kBooleanValue: {
  1314. total_size += 2;
  1315. break;
  1316. }
  1317. // int64 integer_value = 2;
  1318. case kIntegerValue: {
  1319. total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
  1320. this->_internal_integer_value());
  1321. break;
  1322. }
  1323. // double double_value = 3;
  1324. case kDoubleValue: {
  1325. total_size += 9;
  1326. break;
  1327. }
  1328. // .google.protobuf.Timestamp timestamp_value = 10;
  1329. case kTimestampValue: {
  1330. total_size +=
  1331. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.timestamp_value_);
  1332. break;
  1333. }
  1334. // string string_value = 17;
  1335. case kStringValue: {
  1336. total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
  1337. this->_internal_string_value());
  1338. break;
  1339. }
  1340. // bytes bytes_value = 18;
  1341. case kBytesValue: {
  1342. total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
  1343. this->_internal_bytes_value());
  1344. break;
  1345. }
  1346. // string reference_value = 5;
  1347. case kReferenceValue: {
  1348. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  1349. this->_internal_reference_value());
  1350. break;
  1351. }
  1352. // .google.type.LatLng geo_point_value = 8;
  1353. case kGeoPointValue: {
  1354. total_size +=
  1355. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.geo_point_value_);
  1356. break;
  1357. }
  1358. // .google.firestore.v1.ArrayValue array_value = 9;
  1359. case kArrayValue: {
  1360. total_size +=
  1361. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.array_value_);
  1362. break;
  1363. }
  1364. // .google.firestore.v1.MapValue map_value = 6;
  1365. case kMapValue: {
  1366. total_size +=
  1367. 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.map_value_);
  1368. break;
  1369. }
  1370. // string field_reference_value = 19;
  1371. case kFieldReferenceValue: {
  1372. total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
  1373. this->_internal_field_reference_value());
  1374. break;
  1375. }
  1376. // .google.firestore.v1.Function function_value = 20;
  1377. case kFunctionValue: {
  1378. total_size +=
  1379. 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.function_value_);
  1380. break;
  1381. }
  1382. // .google.firestore.v1.Pipeline pipeline_value = 21;
  1383. case kPipelineValue: {
  1384. total_size +=
  1385. 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.pipeline_value_);
  1386. break;
  1387. }
  1388. case VALUE_TYPE_NOT_SET: {
  1389. break;
  1390. }
  1391. }
  1392. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1393. }
  1394. const ::google::protobuf::Message::ClassData Value::_class_data_ = {
  1395. Value::MergeImpl,
  1396. nullptr, // OnDemandRegisterArenaDtor
  1397. };
  1398. const ::google::protobuf::Message::ClassData* Value::GetClassData() const {
  1399. return &_class_data_;
  1400. }
  1401. void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1402. auto* const _this = static_cast<Value*>(&to_msg);
  1403. auto& from = static_cast<const Value&>(from_msg);
  1404. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Value)
  1405. ABSL_DCHECK_NE(&from, _this);
  1406. ::uint32_t cached_has_bits = 0;
  1407. (void) cached_has_bits;
  1408. switch (from.value_type_case()) {
  1409. case kNullValue: {
  1410. _this->_internal_set_null_value(from._internal_null_value());
  1411. break;
  1412. }
  1413. case kBooleanValue: {
  1414. _this->_internal_set_boolean_value(from._internal_boolean_value());
  1415. break;
  1416. }
  1417. case kIntegerValue: {
  1418. _this->_internal_set_integer_value(from._internal_integer_value());
  1419. break;
  1420. }
  1421. case kDoubleValue: {
  1422. _this->_internal_set_double_value(from._internal_double_value());
  1423. break;
  1424. }
  1425. case kTimestampValue: {
  1426. _this->_internal_mutable_timestamp_value()->::google::protobuf::Timestamp::MergeFrom(
  1427. from._internal_timestamp_value());
  1428. break;
  1429. }
  1430. case kStringValue: {
  1431. _this->_internal_set_string_value(from._internal_string_value());
  1432. break;
  1433. }
  1434. case kBytesValue: {
  1435. _this->_internal_set_bytes_value(from._internal_bytes_value());
  1436. break;
  1437. }
  1438. case kReferenceValue: {
  1439. _this->_internal_set_reference_value(from._internal_reference_value());
  1440. break;
  1441. }
  1442. case kGeoPointValue: {
  1443. _this->_internal_mutable_geo_point_value()->::google::type::LatLng::MergeFrom(
  1444. from._internal_geo_point_value());
  1445. break;
  1446. }
  1447. case kArrayValue: {
  1448. _this->_internal_mutable_array_value()->::google::firestore::v1::ArrayValue::MergeFrom(
  1449. from._internal_array_value());
  1450. break;
  1451. }
  1452. case kMapValue: {
  1453. _this->_internal_mutable_map_value()->::google::firestore::v1::MapValue::MergeFrom(
  1454. from._internal_map_value());
  1455. break;
  1456. }
  1457. case kFieldReferenceValue: {
  1458. _this->_internal_set_field_reference_value(from._internal_field_reference_value());
  1459. break;
  1460. }
  1461. case kFunctionValue: {
  1462. _this->_internal_mutable_function_value()->::google::firestore::v1::Function::MergeFrom(
  1463. from._internal_function_value());
  1464. break;
  1465. }
  1466. case kPipelineValue: {
  1467. _this->_internal_mutable_pipeline_value()->::google::firestore::v1::Pipeline::MergeFrom(
  1468. from._internal_pipeline_value());
  1469. break;
  1470. }
  1471. case VALUE_TYPE_NOT_SET: {
  1472. break;
  1473. }
  1474. }
  1475. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1476. }
  1477. void Value::CopyFrom(const Value& from) {
  1478. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Value)
  1479. if (&from == this) return;
  1480. Clear();
  1481. MergeFrom(from);
  1482. }
  1483. PROTOBUF_NOINLINE bool Value::IsInitialized() const {
  1484. return true;
  1485. }
  1486. ::_pbi::CachedSize* Value::AccessCachedSize() const {
  1487. return &_impl_._cached_size_;
  1488. }
  1489. void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) {
  1490. using std::swap;
  1491. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1492. swap(_impl_.value_type_, other->_impl_.value_type_);
  1493. swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
  1494. }
  1495. ::google::protobuf::Metadata Value::GetMetadata() const {
  1496. return ::_pbi::AssignDescriptors(
  1497. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  1498. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[2]);
  1499. }
  1500. // ===================================================================
  1501. class ArrayValue::_Internal {
  1502. public:
  1503. };
  1504. ArrayValue::ArrayValue(::google::protobuf::Arena* arena)
  1505. : ::google::protobuf::Message(arena) {
  1506. SharedCtor(arena);
  1507. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ArrayValue)
  1508. }
  1509. inline PROTOBUF_NDEBUG_INLINE ArrayValue::Impl_::Impl_(
  1510. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1511. const Impl_& from)
  1512. : values_{visibility, arena, from.values_},
  1513. _cached_size_{0} {}
  1514. ArrayValue::ArrayValue(
  1515. ::google::protobuf::Arena* arena,
  1516. const ArrayValue& from)
  1517. : ::google::protobuf::Message(arena) {
  1518. ArrayValue* const _this = this;
  1519. (void)_this;
  1520. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1521. from._internal_metadata_);
  1522. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1523. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ArrayValue)
  1524. }
  1525. inline PROTOBUF_NDEBUG_INLINE ArrayValue::Impl_::Impl_(
  1526. ::google::protobuf::internal::InternalVisibility visibility,
  1527. ::google::protobuf::Arena* arena)
  1528. : values_{visibility, arena},
  1529. _cached_size_{0} {}
  1530. inline void ArrayValue::SharedCtor(::_pb::Arena* arena) {
  1531. new (&_impl_) Impl_(internal_visibility(), arena);
  1532. }
  1533. ArrayValue::~ArrayValue() {
  1534. // @@protoc_insertion_point(destructor:google.firestore.v1.ArrayValue)
  1535. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1536. SharedDtor();
  1537. }
  1538. inline void ArrayValue::SharedDtor() {
  1539. ABSL_DCHECK(GetArena() == nullptr);
  1540. _impl_.~Impl_();
  1541. }
  1542. PROTOBUF_NOINLINE void ArrayValue::Clear() {
  1543. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ArrayValue)
  1544. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1545. ::uint32_t cached_has_bits = 0;
  1546. // Prevent compiler warnings about cached_has_bits being unused
  1547. (void) cached_has_bits;
  1548. _impl_.values_.Clear();
  1549. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1550. }
  1551. const char* ArrayValue::_InternalParse(
  1552. const char* ptr, ::_pbi::ParseContext* ctx) {
  1553. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1554. return ptr;
  1555. }
  1556. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1557. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArrayValue::_table_ = {
  1558. {
  1559. 0, // no _has_bits_
  1560. 0, // no _extensions_
  1561. 1, 0, // max_field_number, fast_idx_mask
  1562. offsetof(decltype(_table_), field_lookup_table),
  1563. 4294967294, // skipmap
  1564. offsetof(decltype(_table_), field_entries),
  1565. 1, // num_field_entries
  1566. 1, // num_aux_entries
  1567. offsetof(decltype(_table_), aux_entries),
  1568. &_ArrayValue_default_instance_._instance,
  1569. ::_pbi::TcParser::GenericFallback, // fallback
  1570. }, {{
  1571. // repeated .google.firestore.v1.Value values = 1;
  1572. {::_pbi::TcParser::FastMtR1,
  1573. {10, 63, 0, PROTOBUF_FIELD_OFFSET(ArrayValue, _impl_.values_)}},
  1574. }}, {{
  1575. 65535, 65535
  1576. }}, {{
  1577. // repeated .google.firestore.v1.Value values = 1;
  1578. {PROTOBUF_FIELD_OFFSET(ArrayValue, _impl_.values_), 0, 0,
  1579. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  1580. }}, {{
  1581. {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
  1582. }}, {{
  1583. }},
  1584. };
  1585. ::uint8_t* ArrayValue::_InternalSerialize(
  1586. ::uint8_t* target,
  1587. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1588. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ArrayValue)
  1589. ::uint32_t cached_has_bits = 0;
  1590. (void)cached_has_bits;
  1591. // repeated .google.firestore.v1.Value values = 1;
  1592. for (unsigned i = 0,
  1593. n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
  1594. const auto& repfield = this->_internal_values().Get(i);
  1595. target = ::google::protobuf::internal::WireFormatLite::
  1596. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  1597. }
  1598. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1599. target =
  1600. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1601. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1602. }
  1603. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ArrayValue)
  1604. return target;
  1605. }
  1606. ::size_t ArrayValue::ByteSizeLong() const {
  1607. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ArrayValue)
  1608. ::size_t total_size = 0;
  1609. ::uint32_t cached_has_bits = 0;
  1610. // Prevent compiler warnings about cached_has_bits being unused
  1611. (void) cached_has_bits;
  1612. // repeated .google.firestore.v1.Value values = 1;
  1613. total_size += 1UL * this->_internal_values_size();
  1614. for (const auto& msg : this->_internal_values()) {
  1615. total_size +=
  1616. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  1617. }
  1618. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1619. }
  1620. const ::google::protobuf::Message::ClassData ArrayValue::_class_data_ = {
  1621. ArrayValue::MergeImpl,
  1622. nullptr, // OnDemandRegisterArenaDtor
  1623. };
  1624. const ::google::protobuf::Message::ClassData* ArrayValue::GetClassData() const {
  1625. return &_class_data_;
  1626. }
  1627. void ArrayValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1628. auto* const _this = static_cast<ArrayValue*>(&to_msg);
  1629. auto& from = static_cast<const ArrayValue&>(from_msg);
  1630. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ArrayValue)
  1631. ABSL_DCHECK_NE(&from, _this);
  1632. ::uint32_t cached_has_bits = 0;
  1633. (void) cached_has_bits;
  1634. _this->_internal_mutable_values()->MergeFrom(
  1635. from._internal_values());
  1636. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1637. }
  1638. void ArrayValue::CopyFrom(const ArrayValue& from) {
  1639. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ArrayValue)
  1640. if (&from == this) return;
  1641. Clear();
  1642. MergeFrom(from);
  1643. }
  1644. PROTOBUF_NOINLINE bool ArrayValue::IsInitialized() const {
  1645. return true;
  1646. }
  1647. ::_pbi::CachedSize* ArrayValue::AccessCachedSize() const {
  1648. return &_impl_._cached_size_;
  1649. }
  1650. void ArrayValue::InternalSwap(ArrayValue* PROTOBUF_RESTRICT other) {
  1651. using std::swap;
  1652. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1653. _impl_.values_.InternalSwap(&other->_impl_.values_);
  1654. }
  1655. ::google::protobuf::Metadata ArrayValue::GetMetadata() const {
  1656. return ::_pbi::AssignDescriptors(
  1657. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  1658. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[3]);
  1659. }
  1660. // ===================================================================
  1661. MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse() {}
  1662. MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
  1663. : SuperType(arena) {}
  1664. ::google::protobuf::Metadata MapValue_FieldsEntry_DoNotUse::GetMetadata() const {
  1665. return ::_pbi::AssignDescriptors(
  1666. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  1667. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[4]);
  1668. }
  1669. // ===================================================================
  1670. class MapValue::_Internal {
  1671. public:
  1672. };
  1673. MapValue::MapValue(::google::protobuf::Arena* arena)
  1674. : ::google::protobuf::Message(arena) {
  1675. SharedCtor(arena);
  1676. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.MapValue)
  1677. }
  1678. inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_(
  1679. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1680. const Impl_& from)
  1681. : fields_{visibility, arena, from.fields_},
  1682. _cached_size_{0} {}
  1683. MapValue::MapValue(
  1684. ::google::protobuf::Arena* arena,
  1685. const MapValue& from)
  1686. : ::google::protobuf::Message(arena) {
  1687. MapValue* const _this = this;
  1688. (void)_this;
  1689. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1690. from._internal_metadata_);
  1691. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1692. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.MapValue)
  1693. }
  1694. inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_(
  1695. ::google::protobuf::internal::InternalVisibility visibility,
  1696. ::google::protobuf::Arena* arena)
  1697. : fields_{visibility, arena},
  1698. _cached_size_{0} {}
  1699. inline void MapValue::SharedCtor(::_pb::Arena* arena) {
  1700. new (&_impl_) Impl_(internal_visibility(), arena);
  1701. }
  1702. MapValue::~MapValue() {
  1703. // @@protoc_insertion_point(destructor:google.firestore.v1.MapValue)
  1704. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1705. SharedDtor();
  1706. }
  1707. inline void MapValue::SharedDtor() {
  1708. ABSL_DCHECK(GetArena() == nullptr);
  1709. _impl_.~Impl_();
  1710. }
  1711. PROTOBUF_NOINLINE void MapValue::Clear() {
  1712. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.MapValue)
  1713. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1714. ::uint32_t cached_has_bits = 0;
  1715. // Prevent compiler warnings about cached_has_bits being unused
  1716. (void) cached_has_bits;
  1717. _impl_.fields_.Clear();
  1718. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1719. }
  1720. const char* MapValue::_InternalParse(
  1721. const char* ptr, ::_pbi::ParseContext* ctx) {
  1722. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1723. return ptr;
  1724. }
  1725. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1726. const ::_pbi::TcParseTable<0, 1, 2, 43, 2> MapValue::_table_ = {
  1727. {
  1728. 0, // no _has_bits_
  1729. 0, // no _extensions_
  1730. 1, 0, // max_field_number, fast_idx_mask
  1731. offsetof(decltype(_table_), field_lookup_table),
  1732. 4294967294, // skipmap
  1733. offsetof(decltype(_table_), field_entries),
  1734. 1, // num_field_entries
  1735. 2, // num_aux_entries
  1736. offsetof(decltype(_table_), aux_entries),
  1737. &_MapValue_default_instance_._instance,
  1738. ::_pbi::TcParser::GenericFallback, // fallback
  1739. }, {{
  1740. {::_pbi::TcParser::MiniParse, {}},
  1741. }}, {{
  1742. 65535, 65535
  1743. }}, {{
  1744. // map<string, .google.firestore.v1.Value> fields = 1;
  1745. {PROTOBUF_FIELD_OFFSET(MapValue, _impl_.fields_), 0, 0,
  1746. (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
  1747. }}, {{
  1748. {::_pbi::TcParser::GetMapAuxInfo<
  1749. decltype(MapValue()._impl_.fields_)>(
  1750. 1, 0, 0, 9,
  1751. 11)},
  1752. {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
  1753. }}, {{
  1754. "\34\6\0\0\0\0\0\0"
  1755. "google.firestore.v1.MapValue"
  1756. "fields"
  1757. }},
  1758. };
  1759. ::uint8_t* MapValue::_InternalSerialize(
  1760. ::uint8_t* target,
  1761. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1762. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.MapValue)
  1763. ::uint32_t cached_has_bits = 0;
  1764. (void)cached_has_bits;
  1765. // map<string, .google.firestore.v1.Value> fields = 1;
  1766. if (!_internal_fields().empty()) {
  1767. using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
  1768. using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  1769. _pbi::WireFormatLite::TYPE_STRING,
  1770. _pbi::WireFormatLite::TYPE_MESSAGE>;
  1771. const auto& field = _internal_fields();
  1772. if (stream->IsSerializationDeterministic() && field.size() > 1) {
  1773. for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
  1774. target = WireHelper::InternalSerialize(
  1775. 1, entry.first, entry.second, target, stream);
  1776. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1777. entry.first.data(), static_cast<int>(entry.first.length()),
  1778. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.MapValue.fields");
  1779. }
  1780. } else {
  1781. for (const auto& entry : field) {
  1782. target = WireHelper::InternalSerialize(
  1783. 1, entry.first, entry.second, target, stream);
  1784. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1785. entry.first.data(), static_cast<int>(entry.first.length()),
  1786. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.MapValue.fields");
  1787. }
  1788. }
  1789. }
  1790. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1791. target =
  1792. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1793. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  1794. }
  1795. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.MapValue)
  1796. return target;
  1797. }
  1798. ::size_t MapValue::ByteSizeLong() const {
  1799. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.MapValue)
  1800. ::size_t total_size = 0;
  1801. ::uint32_t cached_has_bits = 0;
  1802. // Prevent compiler warnings about cached_has_bits being unused
  1803. (void) cached_has_bits;
  1804. // map<string, .google.firestore.v1.Value> fields = 1;
  1805. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
  1806. for (const auto& entry : _internal_fields()) {
  1807. total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  1808. _pbi::WireFormatLite::TYPE_STRING,
  1809. _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
  1810. }
  1811. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1812. }
  1813. const ::google::protobuf::Message::ClassData MapValue::_class_data_ = {
  1814. MapValue::MergeImpl,
  1815. nullptr, // OnDemandRegisterArenaDtor
  1816. };
  1817. const ::google::protobuf::Message::ClassData* MapValue::GetClassData() const {
  1818. return &_class_data_;
  1819. }
  1820. void MapValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  1821. auto* const _this = static_cast<MapValue*>(&to_msg);
  1822. auto& from = static_cast<const MapValue&>(from_msg);
  1823. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.MapValue)
  1824. ABSL_DCHECK_NE(&from, _this);
  1825. ::uint32_t cached_has_bits = 0;
  1826. (void) cached_has_bits;
  1827. _this->_impl_.fields_.MergeFrom(from._impl_.fields_);
  1828. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  1829. }
  1830. void MapValue::CopyFrom(const MapValue& from) {
  1831. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.MapValue)
  1832. if (&from == this) return;
  1833. Clear();
  1834. MergeFrom(from);
  1835. }
  1836. PROTOBUF_NOINLINE bool MapValue::IsInitialized() const {
  1837. return true;
  1838. }
  1839. ::_pbi::CachedSize* MapValue::AccessCachedSize() const {
  1840. return &_impl_._cached_size_;
  1841. }
  1842. void MapValue::InternalSwap(MapValue* PROTOBUF_RESTRICT other) {
  1843. using std::swap;
  1844. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1845. _impl_.fields_.InternalSwap(&other->_impl_.fields_);
  1846. }
  1847. ::google::protobuf::Metadata MapValue::GetMetadata() const {
  1848. return ::_pbi::AssignDescriptors(
  1849. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  1850. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[5]);
  1851. }
  1852. // ===================================================================
  1853. Function_OptionsEntry_DoNotUse::Function_OptionsEntry_DoNotUse() {}
  1854. Function_OptionsEntry_DoNotUse::Function_OptionsEntry_DoNotUse(::google::protobuf::Arena* arena)
  1855. : SuperType(arena) {}
  1856. ::google::protobuf::Metadata Function_OptionsEntry_DoNotUse::GetMetadata() const {
  1857. return ::_pbi::AssignDescriptors(
  1858. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  1859. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[6]);
  1860. }
  1861. // ===================================================================
  1862. class Function::_Internal {
  1863. public:
  1864. };
  1865. Function::Function(::google::protobuf::Arena* arena)
  1866. : ::google::protobuf::Message(arena) {
  1867. SharedCtor(arena);
  1868. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Function)
  1869. }
  1870. inline PROTOBUF_NDEBUG_INLINE Function::Impl_::Impl_(
  1871. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  1872. const Impl_& from)
  1873. : args_{visibility, arena, from.args_},
  1874. options_{visibility, arena, from.options_},
  1875. name_(arena, from.name_),
  1876. _cached_size_{0} {}
  1877. Function::Function(
  1878. ::google::protobuf::Arena* arena,
  1879. const Function& from)
  1880. : ::google::protobuf::Message(arena) {
  1881. Function* const _this = this;
  1882. (void)_this;
  1883. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  1884. from._internal_metadata_);
  1885. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  1886. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Function)
  1887. }
  1888. inline PROTOBUF_NDEBUG_INLINE Function::Impl_::Impl_(
  1889. ::google::protobuf::internal::InternalVisibility visibility,
  1890. ::google::protobuf::Arena* arena)
  1891. : args_{visibility, arena},
  1892. options_{visibility, arena},
  1893. name_(arena),
  1894. _cached_size_{0} {}
  1895. inline void Function::SharedCtor(::_pb::Arena* arena) {
  1896. new (&_impl_) Impl_(internal_visibility(), arena);
  1897. }
  1898. Function::~Function() {
  1899. // @@protoc_insertion_point(destructor:google.firestore.v1.Function)
  1900. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  1901. SharedDtor();
  1902. }
  1903. inline void Function::SharedDtor() {
  1904. ABSL_DCHECK(GetArena() == nullptr);
  1905. _impl_.name_.Destroy();
  1906. _impl_.~Impl_();
  1907. }
  1908. PROTOBUF_NOINLINE void Function::Clear() {
  1909. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Function)
  1910. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1911. ::uint32_t cached_has_bits = 0;
  1912. // Prevent compiler warnings about cached_has_bits being unused
  1913. (void) cached_has_bits;
  1914. _impl_.args_.Clear();
  1915. _impl_.options_.Clear();
  1916. _impl_.name_.ClearToEmpty();
  1917. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  1918. }
  1919. const char* Function::_InternalParse(
  1920. const char* ptr, ::_pbi::ParseContext* ctx) {
  1921. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  1922. return ptr;
  1923. }
  1924. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  1925. const ::_pbi::TcParseTable<1, 3, 3, 48, 2> Function::_table_ = {
  1926. {
  1927. 0, // no _has_bits_
  1928. 0, // no _extensions_
  1929. 3, 8, // max_field_number, fast_idx_mask
  1930. offsetof(decltype(_table_), field_lookup_table),
  1931. 4294967288, // skipmap
  1932. offsetof(decltype(_table_), field_entries),
  1933. 3, // num_field_entries
  1934. 3, // num_aux_entries
  1935. offsetof(decltype(_table_), aux_entries),
  1936. &_Function_default_instance_._instance,
  1937. ::_pbi::TcParser::GenericFallback, // fallback
  1938. }, {{
  1939. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  1940. {::_pbi::TcParser::FastMtR1,
  1941. {18, 63, 0, PROTOBUF_FIELD_OFFSET(Function, _impl_.args_)}},
  1942. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  1943. {::_pbi::TcParser::FastUS1,
  1944. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Function, _impl_.name_)}},
  1945. }}, {{
  1946. 65535, 65535
  1947. }}, {{
  1948. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  1949. {PROTOBUF_FIELD_OFFSET(Function, _impl_.name_), 0, 0,
  1950. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  1951. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  1952. {PROTOBUF_FIELD_OFFSET(Function, _impl_.args_), 0, 0,
  1953. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  1954. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  1955. {PROTOBUF_FIELD_OFFSET(Function, _impl_.options_), 0, 1,
  1956. (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
  1957. }}, {{
  1958. {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
  1959. {::_pbi::TcParser::GetMapAuxInfo<
  1960. decltype(Function()._impl_.options_)>(
  1961. 1, 0, 0, 9,
  1962. 11)},
  1963. {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
  1964. }}, {{
  1965. "\34\4\0\7\0\0\0\0"
  1966. "google.firestore.v1.Function"
  1967. "name"
  1968. "options"
  1969. }},
  1970. };
  1971. ::uint8_t* Function::_InternalSerialize(
  1972. ::uint8_t* target,
  1973. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  1974. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Function)
  1975. ::uint32_t cached_has_bits = 0;
  1976. (void)cached_has_bits;
  1977. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  1978. if (!this->_internal_name().empty()) {
  1979. const std::string& _s = this->_internal_name();
  1980. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  1981. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Function.name");
  1982. target = stream->WriteStringMaybeAliased(1, _s, target);
  1983. }
  1984. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  1985. for (unsigned i = 0,
  1986. n = static_cast<unsigned>(this->_internal_args_size()); i < n; i++) {
  1987. const auto& repfield = this->_internal_args().Get(i);
  1988. target = ::google::protobuf::internal::WireFormatLite::
  1989. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  1990. }
  1991. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  1992. if (!_internal_options().empty()) {
  1993. using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
  1994. using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  1995. _pbi::WireFormatLite::TYPE_STRING,
  1996. _pbi::WireFormatLite::TYPE_MESSAGE>;
  1997. const auto& field = _internal_options();
  1998. if (stream->IsSerializationDeterministic() && field.size() > 1) {
  1999. for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
  2000. target = WireHelper::InternalSerialize(
  2001. 3, entry.first, entry.second, target, stream);
  2002. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2003. entry.first.data(), static_cast<int>(entry.first.length()),
  2004. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Function.options");
  2005. }
  2006. } else {
  2007. for (const auto& entry : field) {
  2008. target = WireHelper::InternalSerialize(
  2009. 3, entry.first, entry.second, target, stream);
  2010. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2011. entry.first.data(), static_cast<int>(entry.first.length()),
  2012. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Function.options");
  2013. }
  2014. }
  2015. }
  2016. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2017. target =
  2018. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2019. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2020. }
  2021. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Function)
  2022. return target;
  2023. }
  2024. ::size_t Function::ByteSizeLong() const {
  2025. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Function)
  2026. ::size_t total_size = 0;
  2027. ::uint32_t cached_has_bits = 0;
  2028. // Prevent compiler warnings about cached_has_bits being unused
  2029. (void) cached_has_bits;
  2030. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  2031. total_size += 1UL * this->_internal_args_size();
  2032. for (const auto& msg : this->_internal_args()) {
  2033. total_size +=
  2034. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2035. }
  2036. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  2037. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_options_size());
  2038. for (const auto& entry : _internal_options()) {
  2039. total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  2040. _pbi::WireFormatLite::TYPE_STRING,
  2041. _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
  2042. }
  2043. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  2044. if (!this->_internal_name().empty()) {
  2045. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2046. this->_internal_name());
  2047. }
  2048. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2049. }
  2050. const ::google::protobuf::Message::ClassData Function::_class_data_ = {
  2051. Function::MergeImpl,
  2052. nullptr, // OnDemandRegisterArenaDtor
  2053. };
  2054. const ::google::protobuf::Message::ClassData* Function::GetClassData() const {
  2055. return &_class_data_;
  2056. }
  2057. void Function::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2058. auto* const _this = static_cast<Function*>(&to_msg);
  2059. auto& from = static_cast<const Function&>(from_msg);
  2060. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Function)
  2061. ABSL_DCHECK_NE(&from, _this);
  2062. ::uint32_t cached_has_bits = 0;
  2063. (void) cached_has_bits;
  2064. _this->_internal_mutable_args()->MergeFrom(
  2065. from._internal_args());
  2066. _this->_impl_.options_.MergeFrom(from._impl_.options_);
  2067. if (!from._internal_name().empty()) {
  2068. _this->_internal_set_name(from._internal_name());
  2069. }
  2070. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2071. }
  2072. void Function::CopyFrom(const Function& from) {
  2073. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Function)
  2074. if (&from == this) return;
  2075. Clear();
  2076. MergeFrom(from);
  2077. }
  2078. PROTOBUF_NOINLINE bool Function::IsInitialized() const {
  2079. return true;
  2080. }
  2081. ::_pbi::CachedSize* Function::AccessCachedSize() const {
  2082. return &_impl_._cached_size_;
  2083. }
  2084. void Function::InternalSwap(Function* PROTOBUF_RESTRICT other) {
  2085. using std::swap;
  2086. auto* arena = GetArena();
  2087. ABSL_DCHECK_EQ(arena, other->GetArena());
  2088. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2089. _impl_.args_.InternalSwap(&other->_impl_.args_);
  2090. _impl_.options_.InternalSwap(&other->_impl_.options_);
  2091. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  2092. }
  2093. ::google::protobuf::Metadata Function::GetMetadata() const {
  2094. return ::_pbi::AssignDescriptors(
  2095. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  2096. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[7]);
  2097. }
  2098. // ===================================================================
  2099. Pipeline_Stage_OptionsEntry_DoNotUse::Pipeline_Stage_OptionsEntry_DoNotUse() {}
  2100. Pipeline_Stage_OptionsEntry_DoNotUse::Pipeline_Stage_OptionsEntry_DoNotUse(::google::protobuf::Arena* arena)
  2101. : SuperType(arena) {}
  2102. ::google::protobuf::Metadata Pipeline_Stage_OptionsEntry_DoNotUse::GetMetadata() const {
  2103. return ::_pbi::AssignDescriptors(
  2104. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  2105. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[8]);
  2106. }
  2107. // ===================================================================
  2108. class Pipeline_Stage::_Internal {
  2109. public:
  2110. };
  2111. Pipeline_Stage::Pipeline_Stage(::google::protobuf::Arena* arena)
  2112. : ::google::protobuf::Message(arena) {
  2113. SharedCtor(arena);
  2114. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Pipeline.Stage)
  2115. }
  2116. inline PROTOBUF_NDEBUG_INLINE Pipeline_Stage::Impl_::Impl_(
  2117. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2118. const Impl_& from)
  2119. : args_{visibility, arena, from.args_},
  2120. options_{visibility, arena, from.options_},
  2121. name_(arena, from.name_),
  2122. _cached_size_{0} {}
  2123. Pipeline_Stage::Pipeline_Stage(
  2124. ::google::protobuf::Arena* arena,
  2125. const Pipeline_Stage& from)
  2126. : ::google::protobuf::Message(arena) {
  2127. Pipeline_Stage* const _this = this;
  2128. (void)_this;
  2129. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2130. from._internal_metadata_);
  2131. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2132. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Pipeline.Stage)
  2133. }
  2134. inline PROTOBUF_NDEBUG_INLINE Pipeline_Stage::Impl_::Impl_(
  2135. ::google::protobuf::internal::InternalVisibility visibility,
  2136. ::google::protobuf::Arena* arena)
  2137. : args_{visibility, arena},
  2138. options_{visibility, arena},
  2139. name_(arena),
  2140. _cached_size_{0} {}
  2141. inline void Pipeline_Stage::SharedCtor(::_pb::Arena* arena) {
  2142. new (&_impl_) Impl_(internal_visibility(), arena);
  2143. }
  2144. Pipeline_Stage::~Pipeline_Stage() {
  2145. // @@protoc_insertion_point(destructor:google.firestore.v1.Pipeline.Stage)
  2146. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2147. SharedDtor();
  2148. }
  2149. inline void Pipeline_Stage::SharedDtor() {
  2150. ABSL_DCHECK(GetArena() == nullptr);
  2151. _impl_.name_.Destroy();
  2152. _impl_.~Impl_();
  2153. }
  2154. PROTOBUF_NOINLINE void Pipeline_Stage::Clear() {
  2155. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Pipeline.Stage)
  2156. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2157. ::uint32_t cached_has_bits = 0;
  2158. // Prevent compiler warnings about cached_has_bits being unused
  2159. (void) cached_has_bits;
  2160. _impl_.args_.Clear();
  2161. _impl_.options_.Clear();
  2162. _impl_.name_.ClearToEmpty();
  2163. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2164. }
  2165. const char* Pipeline_Stage::_InternalParse(
  2166. const char* ptr, ::_pbi::ParseContext* ctx) {
  2167. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2168. return ptr;
  2169. }
  2170. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2171. const ::_pbi::TcParseTable<1, 3, 3, 54, 2> Pipeline_Stage::_table_ = {
  2172. {
  2173. 0, // no _has_bits_
  2174. 0, // no _extensions_
  2175. 3, 8, // max_field_number, fast_idx_mask
  2176. offsetof(decltype(_table_), field_lookup_table),
  2177. 4294967288, // skipmap
  2178. offsetof(decltype(_table_), field_entries),
  2179. 3, // num_field_entries
  2180. 3, // num_aux_entries
  2181. offsetof(decltype(_table_), aux_entries),
  2182. &_Pipeline_Stage_default_instance_._instance,
  2183. ::_pbi::TcParser::GenericFallback, // fallback
  2184. }, {{
  2185. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  2186. {::_pbi::TcParser::FastMtR1,
  2187. {18, 63, 0, PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.args_)}},
  2188. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  2189. {::_pbi::TcParser::FastUS1,
  2190. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.name_)}},
  2191. }}, {{
  2192. 65535, 65535
  2193. }}, {{
  2194. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  2195. {PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.name_), 0, 0,
  2196. (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
  2197. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  2198. {PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.args_), 0, 0,
  2199. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  2200. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  2201. {PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.options_), 0, 1,
  2202. (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
  2203. }}, {{
  2204. {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
  2205. {::_pbi::TcParser::GetMapAuxInfo<
  2206. decltype(Pipeline_Stage()._impl_.options_)>(
  2207. 1, 0, 0, 9,
  2208. 11)},
  2209. {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
  2210. }}, {{
  2211. "\42\4\0\7\0\0\0\0"
  2212. "google.firestore.v1.Pipeline.Stage"
  2213. "name"
  2214. "options"
  2215. }},
  2216. };
  2217. ::uint8_t* Pipeline_Stage::_InternalSerialize(
  2218. ::uint8_t* target,
  2219. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2220. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Pipeline.Stage)
  2221. ::uint32_t cached_has_bits = 0;
  2222. (void)cached_has_bits;
  2223. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  2224. if (!this->_internal_name().empty()) {
  2225. const std::string& _s = this->_internal_name();
  2226. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2227. _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Pipeline.Stage.name");
  2228. target = stream->WriteStringMaybeAliased(1, _s, target);
  2229. }
  2230. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  2231. for (unsigned i = 0,
  2232. n = static_cast<unsigned>(this->_internal_args_size()); i < n; i++) {
  2233. const auto& repfield = this->_internal_args().Get(i);
  2234. target = ::google::protobuf::internal::WireFormatLite::
  2235. InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
  2236. }
  2237. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  2238. if (!_internal_options().empty()) {
  2239. using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
  2240. using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  2241. _pbi::WireFormatLite::TYPE_STRING,
  2242. _pbi::WireFormatLite::TYPE_MESSAGE>;
  2243. const auto& field = _internal_options();
  2244. if (stream->IsSerializationDeterministic() && field.size() > 1) {
  2245. for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
  2246. target = WireHelper::InternalSerialize(
  2247. 3, entry.first, entry.second, target, stream);
  2248. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2249. entry.first.data(), static_cast<int>(entry.first.length()),
  2250. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Pipeline.Stage.options");
  2251. }
  2252. } else {
  2253. for (const auto& entry : field) {
  2254. target = WireHelper::InternalSerialize(
  2255. 3, entry.first, entry.second, target, stream);
  2256. ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
  2257. entry.first.data(), static_cast<int>(entry.first.length()),
  2258. ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Pipeline.Stage.options");
  2259. }
  2260. }
  2261. }
  2262. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2263. target =
  2264. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2265. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2266. }
  2267. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Pipeline.Stage)
  2268. return target;
  2269. }
  2270. ::size_t Pipeline_Stage::ByteSizeLong() const {
  2271. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Pipeline.Stage)
  2272. ::size_t total_size = 0;
  2273. ::uint32_t cached_has_bits = 0;
  2274. // Prevent compiler warnings about cached_has_bits being unused
  2275. (void) cached_has_bits;
  2276. // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
  2277. total_size += 1UL * this->_internal_args_size();
  2278. for (const auto& msg : this->_internal_args()) {
  2279. total_size +=
  2280. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2281. }
  2282. // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
  2283. total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_options_size());
  2284. for (const auto& entry : _internal_options()) {
  2285. total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
  2286. _pbi::WireFormatLite::TYPE_STRING,
  2287. _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
  2288. }
  2289. // string name = 1 [(.google.api.field_behavior) = REQUIRED];
  2290. if (!this->_internal_name().empty()) {
  2291. total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
  2292. this->_internal_name());
  2293. }
  2294. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2295. }
  2296. const ::google::protobuf::Message::ClassData Pipeline_Stage::_class_data_ = {
  2297. Pipeline_Stage::MergeImpl,
  2298. nullptr, // OnDemandRegisterArenaDtor
  2299. };
  2300. const ::google::protobuf::Message::ClassData* Pipeline_Stage::GetClassData() const {
  2301. return &_class_data_;
  2302. }
  2303. void Pipeline_Stage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2304. auto* const _this = static_cast<Pipeline_Stage*>(&to_msg);
  2305. auto& from = static_cast<const Pipeline_Stage&>(from_msg);
  2306. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Pipeline.Stage)
  2307. ABSL_DCHECK_NE(&from, _this);
  2308. ::uint32_t cached_has_bits = 0;
  2309. (void) cached_has_bits;
  2310. _this->_internal_mutable_args()->MergeFrom(
  2311. from._internal_args());
  2312. _this->_impl_.options_.MergeFrom(from._impl_.options_);
  2313. if (!from._internal_name().empty()) {
  2314. _this->_internal_set_name(from._internal_name());
  2315. }
  2316. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2317. }
  2318. void Pipeline_Stage::CopyFrom(const Pipeline_Stage& from) {
  2319. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Pipeline.Stage)
  2320. if (&from == this) return;
  2321. Clear();
  2322. MergeFrom(from);
  2323. }
  2324. PROTOBUF_NOINLINE bool Pipeline_Stage::IsInitialized() const {
  2325. return true;
  2326. }
  2327. ::_pbi::CachedSize* Pipeline_Stage::AccessCachedSize() const {
  2328. return &_impl_._cached_size_;
  2329. }
  2330. void Pipeline_Stage::InternalSwap(Pipeline_Stage* PROTOBUF_RESTRICT other) {
  2331. using std::swap;
  2332. auto* arena = GetArena();
  2333. ABSL_DCHECK_EQ(arena, other->GetArena());
  2334. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2335. _impl_.args_.InternalSwap(&other->_impl_.args_);
  2336. _impl_.options_.InternalSwap(&other->_impl_.options_);
  2337. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
  2338. }
  2339. ::google::protobuf::Metadata Pipeline_Stage::GetMetadata() const {
  2340. return ::_pbi::AssignDescriptors(
  2341. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  2342. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[9]);
  2343. }
  2344. // ===================================================================
  2345. class Pipeline::_Internal {
  2346. public:
  2347. };
  2348. Pipeline::Pipeline(::google::protobuf::Arena* arena)
  2349. : ::google::protobuf::Message(arena) {
  2350. SharedCtor(arena);
  2351. // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Pipeline)
  2352. }
  2353. inline PROTOBUF_NDEBUG_INLINE Pipeline::Impl_::Impl_(
  2354. ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
  2355. const Impl_& from)
  2356. : stages_{visibility, arena, from.stages_},
  2357. _cached_size_{0} {}
  2358. Pipeline::Pipeline(
  2359. ::google::protobuf::Arena* arena,
  2360. const Pipeline& from)
  2361. : ::google::protobuf::Message(arena) {
  2362. Pipeline* const _this = this;
  2363. (void)_this;
  2364. _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
  2365. from._internal_metadata_);
  2366. new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
  2367. // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Pipeline)
  2368. }
  2369. inline PROTOBUF_NDEBUG_INLINE Pipeline::Impl_::Impl_(
  2370. ::google::protobuf::internal::InternalVisibility visibility,
  2371. ::google::protobuf::Arena* arena)
  2372. : stages_{visibility, arena},
  2373. _cached_size_{0} {}
  2374. inline void Pipeline::SharedCtor(::_pb::Arena* arena) {
  2375. new (&_impl_) Impl_(internal_visibility(), arena);
  2376. }
  2377. Pipeline::~Pipeline() {
  2378. // @@protoc_insertion_point(destructor:google.firestore.v1.Pipeline)
  2379. _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
  2380. SharedDtor();
  2381. }
  2382. inline void Pipeline::SharedDtor() {
  2383. ABSL_DCHECK(GetArena() == nullptr);
  2384. _impl_.~Impl_();
  2385. }
  2386. PROTOBUF_NOINLINE void Pipeline::Clear() {
  2387. // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Pipeline)
  2388. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  2389. ::uint32_t cached_has_bits = 0;
  2390. // Prevent compiler warnings about cached_has_bits being unused
  2391. (void) cached_has_bits;
  2392. _impl_.stages_.Clear();
  2393. _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
  2394. }
  2395. const char* Pipeline::_InternalParse(
  2396. const char* ptr, ::_pbi::ParseContext* ctx) {
  2397. ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
  2398. return ptr;
  2399. }
  2400. PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
  2401. const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Pipeline::_table_ = {
  2402. {
  2403. 0, // no _has_bits_
  2404. 0, // no _extensions_
  2405. 1, 0, // max_field_number, fast_idx_mask
  2406. offsetof(decltype(_table_), field_lookup_table),
  2407. 4294967294, // skipmap
  2408. offsetof(decltype(_table_), field_entries),
  2409. 1, // num_field_entries
  2410. 1, // num_aux_entries
  2411. offsetof(decltype(_table_), aux_entries),
  2412. &_Pipeline_default_instance_._instance,
  2413. ::_pbi::TcParser::GenericFallback, // fallback
  2414. }, {{
  2415. // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
  2416. {::_pbi::TcParser::FastMtR1,
  2417. {10, 63, 0, PROTOBUF_FIELD_OFFSET(Pipeline, _impl_.stages_)}},
  2418. }}, {{
  2419. 65535, 65535
  2420. }}, {{
  2421. // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
  2422. {PROTOBUF_FIELD_OFFSET(Pipeline, _impl_.stages_), 0, 0,
  2423. (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
  2424. }}, {{
  2425. {::_pbi::TcParser::GetTable<::google::firestore::v1::Pipeline_Stage>()},
  2426. }}, {{
  2427. }},
  2428. };
  2429. ::uint8_t* Pipeline::_InternalSerialize(
  2430. ::uint8_t* target,
  2431. ::google::protobuf::io::EpsCopyOutputStream* stream) const {
  2432. // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Pipeline)
  2433. ::uint32_t cached_has_bits = 0;
  2434. (void)cached_has_bits;
  2435. // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
  2436. for (unsigned i = 0,
  2437. n = static_cast<unsigned>(this->_internal_stages_size()); i < n; i++) {
  2438. const auto& repfield = this->_internal_stages().Get(i);
  2439. target = ::google::protobuf::internal::WireFormatLite::
  2440. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  2441. }
  2442. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2443. target =
  2444. ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2445. _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
  2446. }
  2447. // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Pipeline)
  2448. return target;
  2449. }
  2450. ::size_t Pipeline::ByteSizeLong() const {
  2451. // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Pipeline)
  2452. ::size_t total_size = 0;
  2453. ::uint32_t cached_has_bits = 0;
  2454. // Prevent compiler warnings about cached_has_bits being unused
  2455. (void) cached_has_bits;
  2456. // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
  2457. total_size += 1UL * this->_internal_stages_size();
  2458. for (const auto& msg : this->_internal_stages()) {
  2459. total_size +=
  2460. ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
  2461. }
  2462. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2463. }
  2464. const ::google::protobuf::Message::ClassData Pipeline::_class_data_ = {
  2465. Pipeline::MergeImpl,
  2466. nullptr, // OnDemandRegisterArenaDtor
  2467. };
  2468. const ::google::protobuf::Message::ClassData* Pipeline::GetClassData() const {
  2469. return &_class_data_;
  2470. }
  2471. void Pipeline::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
  2472. auto* const _this = static_cast<Pipeline*>(&to_msg);
  2473. auto& from = static_cast<const Pipeline&>(from_msg);
  2474. // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Pipeline)
  2475. ABSL_DCHECK_NE(&from, _this);
  2476. ::uint32_t cached_has_bits = 0;
  2477. (void) cached_has_bits;
  2478. _this->_internal_mutable_stages()->MergeFrom(
  2479. from._internal_stages());
  2480. _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
  2481. }
  2482. void Pipeline::CopyFrom(const Pipeline& from) {
  2483. // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Pipeline)
  2484. if (&from == this) return;
  2485. Clear();
  2486. MergeFrom(from);
  2487. }
  2488. PROTOBUF_NOINLINE bool Pipeline::IsInitialized() const {
  2489. return true;
  2490. }
  2491. ::_pbi::CachedSize* Pipeline::AccessCachedSize() const {
  2492. return &_impl_._cached_size_;
  2493. }
  2494. void Pipeline::InternalSwap(Pipeline* PROTOBUF_RESTRICT other) {
  2495. using std::swap;
  2496. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2497. _impl_.stages_.InternalSwap(&other->_impl_.stages_);
  2498. }
  2499. ::google::protobuf::Metadata Pipeline::GetMetadata() const {
  2500. return ::_pbi::AssignDescriptors(
  2501. &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
  2502. file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[10]);
  2503. }
  2504. // @@protoc_insertion_point(namespace_scope)
  2505. } // namespace v1
  2506. } // namespace firestore
  2507. } // namespace google
  2508. namespace google {
  2509. namespace protobuf {
  2510. } // namespace protobuf
  2511. } // namespace google
  2512. // @@protoc_insertion_point(global_scope)
  2513. #include "google/protobuf/port_undef.inc"