| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727 |
- /*
- * Copyright 2025 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/firestore/v1/document.proto
- #include "google/firestore/v1/document.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- #include "google/protobuf/generated_message_tctable_impl.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::google::protobuf;
- namespace _pbi = ::google::protobuf::internal;
- namespace _fl = ::google::protobuf::internal::field_layout;
- namespace google {
- namespace firestore {
- namespace v1 {
- inline constexpr ArrayValue::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : values_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR ArrayValue::ArrayValue(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct ArrayValueDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ArrayValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ArrayValueDefaultTypeInternal() {}
- union {
- ArrayValue _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
- inline constexpr Function::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : args_{},
- options_{},
- name_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR Function::Function(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct FunctionDefaultTypeInternal {
- PROTOBUF_CONSTEXPR FunctionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~FunctionDefaultTypeInternal() {}
- union {
- Function _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FunctionDefaultTypeInternal _Function_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Function_OptionsEntry_DoNotUse::Function_OptionsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
- struct Function_OptionsEntry_DoNotUseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Function_OptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Function_OptionsEntry_DoNotUseDefaultTypeInternal() {}
- union {
- Function_OptionsEntry_DoNotUse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Function_OptionsEntry_DoNotUseDefaultTypeInternal _Function_OptionsEntry_DoNotUse_default_instance_;
- inline constexpr MapValue::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : fields_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR MapValue::MapValue(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct MapValueDefaultTypeInternal {
- PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~MapValueDefaultTypeInternal() {}
- union {
- MapValue _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
- struct MapValue_FieldsEntry_DoNotUseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~MapValue_FieldsEntry_DoNotUseDefaultTypeInternal() {}
- union {
- MapValue_FieldsEntry_DoNotUse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
- inline constexpr Pipeline::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : stages_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR Pipeline::Pipeline(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct PipelineDefaultTypeInternal {
- PROTOBUF_CONSTEXPR PipelineDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~PipelineDefaultTypeInternal() {}
- union {
- Pipeline _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PipelineDefaultTypeInternal _Pipeline_default_instance_;
- inline constexpr Pipeline_Stage::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : args_{},
- options_{},
- name_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR Pipeline_Stage::Pipeline_Stage(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct Pipeline_StageDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Pipeline_StageDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Pipeline_StageDefaultTypeInternal() {}
- union {
- Pipeline_Stage _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pipeline_StageDefaultTypeInternal _Pipeline_Stage_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Pipeline_Stage_OptionsEntry_DoNotUse::Pipeline_Stage_OptionsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
- struct Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal() {}
- union {
- Pipeline_Stage_OptionsEntry_DoNotUse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pipeline_Stage_OptionsEntry_DoNotUseDefaultTypeInternal _Pipeline_Stage_OptionsEntry_DoNotUse_default_instance_;
- inline constexpr Value::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : value_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct ValueDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ValueDefaultTypeInternal() {}
- union {
- Value _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
- struct Document_FieldsEntry_DoNotUseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Document_FieldsEntry_DoNotUseDefaultTypeInternal() {}
- union {
- Document_FieldsEntry_DoNotUse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
- inline constexpr Document::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- fields_{},
- name_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- create_time_{nullptr},
- update_time_{nullptr} {}
- template <typename>
- PROTOBUF_CONSTEXPR Document::Document(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct DocumentDefaultTypeInternal {
- PROTOBUF_CONSTEXPR DocumentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~DocumentDefaultTypeInternal() {}
- union {
- Document _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DocumentDefaultTypeInternal _Document_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[11];
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
- const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, value_),
- 0,
- 1,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.fields_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.create_time_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.update_time_),
- ~0u,
- ~0u,
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_.value_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, _impl_.values_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, _impl_.fields_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function_OptionsEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _impl_.args_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Function, _impl_.options_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _impl_.args_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline_Stage, _impl_.options_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Pipeline, _impl_.stages_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, 10, -1, sizeof(::google::firestore::v1::Document_FieldsEntry_DoNotUse)},
- {12, 24, -1, sizeof(::google::firestore::v1::Document)},
- {28, -1, -1, sizeof(::google::firestore::v1::Value)},
- {51, -1, -1, sizeof(::google::firestore::v1::ArrayValue)},
- {60, 70, -1, sizeof(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse)},
- {72, -1, -1, sizeof(::google::firestore::v1::MapValue)},
- {81, 91, -1, sizeof(::google::firestore::v1::Function_OptionsEntry_DoNotUse)},
- {93, -1, -1, sizeof(::google::firestore::v1::Function)},
- {104, 114, -1, sizeof(::google::firestore::v1::Pipeline_Stage_OptionsEntry_DoNotUse)},
- {116, -1, -1, sizeof(::google::firestore::v1::Pipeline_Stage)},
- {127, -1, -1, sizeof(::google::firestore::v1::Pipeline)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::google::firestore::v1::_Document_FieldsEntry_DoNotUse_default_instance_._instance,
- &::google::firestore::v1::_Document_default_instance_._instance,
- &::google::firestore::v1::_Value_default_instance_._instance,
- &::google::firestore::v1::_ArrayValue_default_instance_._instance,
- &::google::firestore::v1::_MapValue_FieldsEntry_DoNotUse_default_instance_._instance,
- &::google::firestore::v1::_MapValue_default_instance_._instance,
- &::google::firestore::v1::_Function_OptionsEntry_DoNotUse_default_instance_._instance,
- &::google::firestore::v1::_Function_default_instance_._instance,
- &::google::firestore::v1::_Pipeline_Stage_OptionsEntry_DoNotUse_default_instance_._instance,
- &::google::firestore::v1::_Pipeline_Stage_default_instance_._instance,
- &::google::firestore::v1::_Pipeline_default_instance_._instance,
- };
- const char descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n\"google/firestore/v1/document.proto\022\023go"
- "ogle.firestore.v1\032\037google/api/field_beha"
- "vior.proto\032\034google/protobuf/struct.proto"
- "\032\037google/protobuf/timestamp.proto\032\030googl"
- "e/type/latlng.proto\"\200\002\n\010Document\022\014\n\004name"
- "\030\001 \001(\t\0229\n\006fields\030\002 \003(\0132).google.firestor"
- "e.v1.Document.FieldsEntry\022/\n\013create_time"
- "\030\003 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up"
- "date_time\030\004 \001(\0132\032.google.protobuf.Timest"
- "amp\032I\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value"
- "\030\002 \001(\0132\032.google.firestore.v1.Value:\0028\001\"\301"
- "\004\n\005Value\0220\n\nnull_value\030\013 \001(\0162\032.google.pr"
- "otobuf.NullValueH\000\022\027\n\rboolean_value\030\001 \001("
- "\010H\000\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014double_v"
- "alue\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n \001(\0132\032."
- "google.protobuf.TimestampH\000\022\026\n\014string_va"
- "lue\030\021 \001(\tH\000\022\025\n\013bytes_value\030\022 \001(\014H\000\022\031\n\017re"
- "ference_value\030\005 \001(\tH\000\022.\n\017geo_point_value"
- "\030\010 \001(\0132\023.google.type.LatLngH\000\0226\n\013array_v"
- "alue\030\t \001(\0132\037.google.firestore.v1.ArrayVa"
- "lueH\000\0222\n\tmap_value\030\006 \001(\0132\035.google.firest"
- "ore.v1.MapValueH\000\022\037\n\025field_reference_val"
- "ue\030\023 \001(\tH\000\0227\n\016function_value\030\024 \001(\0132\035.goo"
- "gle.firestore.v1.FunctionH\000\0227\n\016pipeline_"
- "value\030\025 \001(\0132\035.google.firestore.v1.Pipeli"
- "neH\000B\014\n\nvalue_type\"8\n\nArrayValue\022*\n\006valu"
- "es\030\001 \003(\0132\032.google.firestore.v1.Value\"\220\001\n"
- "\010MapValue\0229\n\006fields\030\001 \003(\0132).google.fires"
- "tore.v1.MapValue.FieldsEntry\032I\n\013FieldsEn"
- "try\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google"
- ".firestore.v1.Value:\0028\001\"\332\001\n\010Function\022\021\n\004"
- "name\030\001 \001(\tB\003\340A\002\022-\n\004args\030\002 \003(\0132\032.google.f"
- "irestore.v1.ValueB\003\340A\001\022@\n\007options\030\003 \003(\0132"
- "*.google.firestore.v1.Function.OptionsEn"
- "tryB\003\340A\001\032J\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022)\n"
- "\005value\030\002 \001(\0132\032.google.firestore.v1.Value"
- ":\0028\001\"\244\002\n\010Pipeline\0228\n\006stages\030\001 \003(\0132#.goog"
- "le.firestore.v1.Pipeline.StageB\003\340A\002\032\335\001\n\005"
- "Stage\022\021\n\004name\030\001 \001(\tB\003\340A\002\022-\n\004args\030\002 \003(\0132\032"
- ".google.firestore.v1.ValueB\003\340A\001\022F\n\007optio"
- "ns\030\003 \003(\01320.google.firestore.v1.Pipeline."
- "Stage.OptionsEntryB\003\340A\001\032J\n\014OptionsEntry\022"
- "\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.google.fir"
- "estore.v1.Value:\0028\001B\305\001\n\027com.google.fires"
- "tore.v1B\rDocumentProtoP\001Z;cloud.google.c"
- "om/go/firestore/apiv1/firestorepb;firest"
- "orepb\242\002\004GCFS\252\002\031Google.Cloud.Firestore.V1"
- "\312\002\031Google\\Cloud\\Firestore\\V1\352\002\034Google::C"
- "loud::Firestore::V1b\006proto3"
- };
- static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps[4] =
- {
- &::descriptor_table_google_2fapi_2ffield_5fbehavior_2eproto,
- &::descriptor_table_google_2fprotobuf_2fstruct_2eproto,
- &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
- &::descriptor_table_google_2ftype_2flatlng_2eproto,
- };
- static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto = {
- false,
- false,
- 1947,
- descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto,
- "google/firestore/v1/document.proto",
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps,
- 4,
- 11,
- schemas,
- file_default_instances,
- TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto,
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
- file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter() {
- return &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2fdocument_2eproto(&descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto);
- namespace google {
- namespace firestore {
- namespace v1 {
- // ===================================================================
- Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse() {}
- Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
- : SuperType(arena) {}
- ::google::protobuf::Metadata Document_FieldsEntry_DoNotUse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[0]);
- }
- // ===================================================================
- class Document::_Internal {
- public:
- using HasBits = decltype(std::declval<Document>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_);
- static const ::google::protobuf::Timestamp& create_time(const Document* msg);
- static void set_has_create_time(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::google::protobuf::Timestamp& update_time(const Document* msg);
- static void set_has_update_time(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- };
- const ::google::protobuf::Timestamp& Document::_Internal::create_time(const Document* msg) {
- return *msg->_impl_.create_time_;
- }
- const ::google::protobuf::Timestamp& Document::_Internal::update_time(const Document* msg) {
- return *msg->_impl_.update_time_;
- }
- void Document::clear_create_time() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.create_time_ != nullptr) _impl_.create_time_->Clear();
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- void Document::clear_update_time() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.update_time_ != nullptr) _impl_.update_time_->Clear();
- _impl_._has_bits_[0] &= ~0x00000002u;
- }
- Document::Document(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Document)
- }
- inline PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0},
- fields_{visibility, arena, from.fields_},
- name_(arena, from.name_) {}
- Document::Document(
- ::google::protobuf::Arena* arena,
- const Document& from)
- : ::google::protobuf::Message(arena) {
- Document* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.create_time_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.create_time_)
- : nullptr;
- _impl_.update_time_ = (cached_has_bits & 0x00000002u)
- ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.update_time_)
- : nullptr;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Document)
- }
- inline PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0},
- fields_{visibility, arena},
- name_(arena) {}
- inline void Document::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, create_time_),
- 0,
- offsetof(Impl_, update_time_) -
- offsetof(Impl_, create_time_) +
- sizeof(Impl_::update_time_));
- }
- Document::~Document() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Document)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Document::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.name_.Destroy();
- delete _impl_.create_time_;
- delete _impl_.update_time_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void Document::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Document)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.fields_.Clear();
- _impl_.name_.ClearToEmpty();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.create_time_ != nullptr);
- _impl_.create_time_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.update_time_ != nullptr);
- _impl_.update_time_->Clear();
- }
- }
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Document::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<2, 4, 4, 47, 2> Document::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_),
- 0, // no _extensions_
- 4, 24, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967280, // skipmap
- offsetof(decltype(_table_), field_entries),
- 4, // num_field_entries
- 4, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Document_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.protobuf.Timestamp update_time = 4;
- {::_pbi::TcParser::FastMtS1,
- {34, 1, 3, PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_)}},
- // string name = 1;
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(Document, _impl_.name_)}},
- {::_pbi::TcParser::MiniParse, {}},
- // .google.protobuf.Timestamp create_time = 3;
- {::_pbi::TcParser::FastMtS1,
- {26, 0, 2, PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string name = 1;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.name_), -1, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // map<string, .google.firestore.v1.Value> fields = 2;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.fields_), -1, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
- // .google.protobuf.Timestamp create_time = 3;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_), _Internal::kHasBitsOffset + 0, 2,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.Timestamp update_time = 4;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_), _Internal::kHasBitsOffset + 1, 3,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetMapAuxInfo<
- decltype(Document()._impl_.fields_)>(
- 1, 0, 0, 9,
- 11)},
- {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- }}, {{
- "\34\4\6\0\0\0\0\0"
- "google.firestore.v1.Document"
- "name"
- "fields"
- }},
- };
- ::uint8_t* Document::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Document)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // map<string, .google.firestore.v1.Value> fields = 2;
- if (!_internal_fields().empty()) {
- using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
- using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>;
- const auto& field = _internal_fields();
- if (stream->IsSerializationDeterministic() && field.size() > 1) {
- for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
- target = WireHelper::InternalSerialize(
- 2, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.fields");
- }
- } else {
- for (const auto& entry : field) {
- target = WireHelper::InternalSerialize(
- 2, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.fields");
- }
- }
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .google.protobuf.Timestamp create_time = 3;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::create_time(this),
- _Internal::create_time(this).GetCachedSize(), target, stream);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 4, _Internal::update_time(this),
- _Internal::update_time(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Document)
- return target;
- }
- ::size_t Document::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Document)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 2;
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
- for (const auto& entry : _internal_fields()) {
- total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
- }
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- // .google.protobuf.Timestamp create_time = 3;
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.create_time_);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (cached_has_bits & 0x00000002u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_time_);
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Document::_class_data_ = {
- Document::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Document::GetClassData() const {
- return &_class_data_;
- }
- void Document::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Document*>(&to_msg);
- auto& from = static_cast<const Document&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Document)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_impl_.fields_.MergeFrom(from._impl_.fields_);
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_create_time()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_create_time());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_update_time());
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Document::CopyFrom(const Document& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Document)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Document::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Document::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Document::InternalSwap(Document* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- _impl_.fields_.InternalSwap(&other->_impl_.fields_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_)
- + sizeof(Document::_impl_.update_time_)
- - PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_)>(
- reinterpret_cast<char*>(&_impl_.create_time_),
- reinterpret_cast<char*>(&other->_impl_.create_time_));
- }
- ::google::protobuf::Metadata Document::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[1]);
- }
- // ===================================================================
- class Value::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_._oneof_case_);
- static const ::google::protobuf::Timestamp& timestamp_value(const Value* msg);
- static const ::google::type::LatLng& geo_point_value(const Value* msg);
- static const ::google::firestore::v1::ArrayValue& array_value(const Value* msg);
- static const ::google::firestore::v1::MapValue& map_value(const Value* msg);
- static const ::google::firestore::v1::Function& function_value(const Value* msg);
- static const ::google::firestore::v1::Pipeline& pipeline_value(const Value* msg);
- };
- const ::google::protobuf::Timestamp& Value::_Internal::timestamp_value(const Value* msg) {
- return *msg->_impl_.value_type_.timestamp_value_;
- }
- const ::google::type::LatLng& Value::_Internal::geo_point_value(const Value* msg) {
- return *msg->_impl_.value_type_.geo_point_value_;
- }
- const ::google::firestore::v1::ArrayValue& Value::_Internal::array_value(const Value* msg) {
- return *msg->_impl_.value_type_.array_value_;
- }
- const ::google::firestore::v1::MapValue& Value::_Internal::map_value(const Value* msg) {
- return *msg->_impl_.value_type_.map_value_;
- }
- const ::google::firestore::v1::Function& Value::_Internal::function_value(const Value* msg) {
- return *msg->_impl_.value_type_.function_value_;
- }
- const ::google::firestore::v1::Pipeline& Value::_Internal::pipeline_value(const Value* msg) {
- return *msg->_impl_.value_type_.pipeline_value_;
- }
- void Value::set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (timestamp_value) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(timestamp_value)->GetArena();
- if (message_arena != submessage_arena) {
- timestamp_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, timestamp_value, submessage_arena);
- }
- set_has_timestamp_value();
- _impl_.value_type_.timestamp_value_ = timestamp_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.timestamp_value)
- }
- void Value::clear_timestamp_value() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (value_type_case() == kTimestampValue) {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.timestamp_value_;
- }
- clear_has_value_type();
- }
- }
- void Value::set_allocated_geo_point_value(::google::type::LatLng* geo_point_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (geo_point_value) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(geo_point_value)->GetArena();
- if (message_arena != submessage_arena) {
- geo_point_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, geo_point_value, submessage_arena);
- }
- set_has_geo_point_value();
- _impl_.value_type_.geo_point_value_ = geo_point_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.geo_point_value)
- }
- void Value::clear_geo_point_value() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (value_type_case() == kGeoPointValue) {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.geo_point_value_;
- }
- clear_has_value_type();
- }
- }
- void Value::set_allocated_array_value(::google::firestore::v1::ArrayValue* array_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (array_value) {
- ::google::protobuf::Arena* submessage_arena = array_value->GetArena();
- if (message_arena != submessage_arena) {
- array_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, array_value, submessage_arena);
- }
- set_has_array_value();
- _impl_.value_type_.array_value_ = array_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.array_value)
- }
- void Value::set_allocated_map_value(::google::firestore::v1::MapValue* map_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (map_value) {
- ::google::protobuf::Arena* submessage_arena = map_value->GetArena();
- if (message_arena != submessage_arena) {
- map_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_value, submessage_arena);
- }
- set_has_map_value();
- _impl_.value_type_.map_value_ = map_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.map_value)
- }
- void Value::set_allocated_function_value(::google::firestore::v1::Function* function_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (function_value) {
- ::google::protobuf::Arena* submessage_arena = function_value->GetArena();
- if (message_arena != submessage_arena) {
- function_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, function_value, submessage_arena);
- }
- set_has_function_value();
- _impl_.value_type_.function_value_ = function_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.function_value)
- }
- void Value::set_allocated_pipeline_value(::google::firestore::v1::Pipeline* pipeline_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (pipeline_value) {
- ::google::protobuf::Arena* submessage_arena = pipeline_value->GetArena();
- if (message_arena != submessage_arena) {
- pipeline_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, pipeline_value, submessage_arena);
- }
- set_has_pipeline_value();
- _impl_.value_type_.pipeline_value_ = pipeline_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.pipeline_value)
- }
- Value::Value(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Value)
- }
- inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : value_type_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- Value::Value(
- ::google::protobuf::Arena* arena,
- const Value& from)
- : ::google::protobuf::Message(arena) {
- Value* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (value_type_case()) {
- case VALUE_TYPE_NOT_SET:
- break;
- case kNullValue:
- _impl_.value_type_.null_value_ = from._impl_.value_type_.null_value_;
- break;
- case kBooleanValue:
- _impl_.value_type_.boolean_value_ = from._impl_.value_type_.boolean_value_;
- break;
- case kIntegerValue:
- _impl_.value_type_.integer_value_ = from._impl_.value_type_.integer_value_;
- break;
- case kDoubleValue:
- _impl_.value_type_.double_value_ = from._impl_.value_type_.double_value_;
- break;
- case kTimestampValue:
- _impl_.value_type_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.value_type_.timestamp_value_);
- break;
- case kStringValue:
- new (&_impl_.value_type_.string_value_) decltype(_impl_.value_type_.string_value_){arena, from._impl_.value_type_.string_value_};
- break;
- case kBytesValue:
- new (&_impl_.value_type_.bytes_value_) decltype(_impl_.value_type_.bytes_value_){arena, from._impl_.value_type_.bytes_value_};
- break;
- case kReferenceValue:
- new (&_impl_.value_type_.reference_value_) decltype(_impl_.value_type_.reference_value_){arena, from._impl_.value_type_.reference_value_};
- break;
- case kGeoPointValue:
- _impl_.value_type_.geo_point_value_ = CreateMaybeMessage<::google::type::LatLng>(arena, *from._impl_.value_type_.geo_point_value_);
- break;
- case kArrayValue:
- _impl_.value_type_.array_value_ = CreateMaybeMessage<::google::firestore::v1::ArrayValue>(arena, *from._impl_.value_type_.array_value_);
- break;
- case kMapValue:
- _impl_.value_type_.map_value_ = CreateMaybeMessage<::google::firestore::v1::MapValue>(arena, *from._impl_.value_type_.map_value_);
- break;
- case kFieldReferenceValue:
- new (&_impl_.value_type_.field_reference_value_) decltype(_impl_.value_type_.field_reference_value_){arena, from._impl_.value_type_.field_reference_value_};
- break;
- case kFunctionValue:
- _impl_.value_type_.function_value_ = CreateMaybeMessage<::google::firestore::v1::Function>(arena, *from._impl_.value_type_.function_value_);
- break;
- case kPipelineValue:
- _impl_.value_type_.pipeline_value_ = CreateMaybeMessage<::google::firestore::v1::Pipeline>(arena, *from._impl_.value_type_.pipeline_value_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Value)
- }
- inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : value_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void Value::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- Value::~Value() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Value)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Value::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_value_type()) {
- clear_value_type();
- }
- _impl_.~Impl_();
- }
- void Value::clear_value_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Value)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (value_type_case()) {
- case kNullValue: {
- // No need to clear
- break;
- }
- case kBooleanValue: {
- // No need to clear
- break;
- }
- case kIntegerValue: {
- // No need to clear
- break;
- }
- case kDoubleValue: {
- // No need to clear
- break;
- }
- case kTimestampValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.timestamp_value_;
- }
- break;
- }
- case kStringValue: {
- _impl_.value_type_.string_value_.Destroy();
- break;
- }
- case kBytesValue: {
- _impl_.value_type_.bytes_value_.Destroy();
- break;
- }
- case kReferenceValue: {
- _impl_.value_type_.reference_value_.Destroy();
- break;
- }
- case kGeoPointValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.geo_point_value_;
- }
- break;
- }
- case kArrayValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.array_value_;
- }
- break;
- }
- case kMapValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.map_value_;
- }
- break;
- }
- case kFieldReferenceValue: {
- _impl_.value_type_.field_reference_value_.Destroy();
- break;
- }
- case kFunctionValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.function_value_;
- }
- break;
- }
- case kPipelineValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.pipeline_value_;
- }
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = VALUE_TYPE_NOT_SET;
- }
- PROTOBUF_NOINLINE void Value::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Value)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_value_type();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Value::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 14, 6, 90, 2> Value::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 21, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4292933704, // skipmap
- offsetof(decltype(_table_), field_entries),
- 14, // num_field_entries
- 6, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Value_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // bool boolean_value = 1;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.boolean_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kBool)},
- // int64 integer_value = 2;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.integer_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kInt64)},
- // double double_value = 3;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.double_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kDouble)},
- // string reference_value = 5;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.reference_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // .google.firestore.v1.MapValue map_value = 6;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.map_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.type.LatLng geo_point_value = 8;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.geo_point_value_), _Internal::kOneofCaseOffset + 0, 1,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.ArrayValue array_value = 9;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.array_value_), _Internal::kOneofCaseOffset + 0, 2,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.Timestamp timestamp_value = 10;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.timestamp_value_), _Internal::kOneofCaseOffset + 0, 3,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.NullValue null_value = 11;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.null_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
- // string string_value = 17;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.string_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // bytes bytes_value = 18;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
- // string field_reference_value = 19;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.field_reference_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // .google.firestore.v1.Function function_value = 20;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.function_value_), _Internal::kOneofCaseOffset + 0, 4,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.Pipeline pipeline_value = 21;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.pipeline_value_), _Internal::kOneofCaseOffset + 0, 5,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::MapValue>()},
- {::_pbi::TcParser::GetTable<::google::type::LatLng>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::ArrayValue>()},
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Function>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Pipeline>()},
- }}, {{
- "\31\0\0\0\17\0\0\0\0\0\14\0\25\0\0\0"
- "google.firestore.v1.Value"
- "reference_value"
- "string_value"
- "field_reference_value"
- }},
- };
- ::uint8_t* Value::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Value)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- switch (value_type_case()) {
- case kBooleanValue: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 1, this->_internal_boolean_value(), target);
- break;
- }
- case kIntegerValue: {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt64ToArrayWithField<2>(
- stream, this->_internal_integer_value(), target);
- break;
- }
- case kDoubleValue: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(
- 3, this->_internal_double_value(), target);
- break;
- }
- case kReferenceValue: {
- const std::string& _s = this->_internal_reference_value();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.reference_value");
- target = stream->WriteStringMaybeAliased(5, _s, target);
- break;
- }
- case kMapValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 6, _Internal::map_value(this),
- _Internal::map_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kGeoPointValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 8, _Internal::geo_point_value(this),
- _Internal::geo_point_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kArrayValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 9, _Internal::array_value(this),
- _Internal::array_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kTimestampValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 10, _Internal::timestamp_value(this),
- _Internal::timestamp_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kNullValue: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 11, this->_internal_null_value(), target);
- break;
- }
- case kStringValue: {
- const std::string& _s = this->_internal_string_value();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.string_value");
- target = stream->WriteStringMaybeAliased(17, _s, target);
- break;
- }
- case kBytesValue: {
- const std::string& _s = this->_internal_bytes_value();
- target = stream->WriteBytesMaybeAliased(18, _s, target);
- break;
- }
- case kFieldReferenceValue: {
- const std::string& _s = this->_internal_field_reference_value();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.field_reference_value");
- target = stream->WriteStringMaybeAliased(19, _s, target);
- break;
- }
- case kFunctionValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 20, _Internal::function_value(this),
- _Internal::function_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kPipelineValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 21, _Internal::pipeline_value(this),
- _Internal::pipeline_value(this).GetCachedSize(), target, stream);
- break;
- }
- default:
- break;
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Value)
- return target;
- }
- ::size_t Value::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Value)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- switch (value_type_case()) {
- // .google.protobuf.NullValue null_value = 11;
- case kNullValue: {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value());
- break;
- }
- // bool boolean_value = 1;
- case kBooleanValue: {
- total_size += 2;
- break;
- }
- // int64 integer_value = 2;
- case kIntegerValue: {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
- this->_internal_integer_value());
- break;
- }
- // double double_value = 3;
- case kDoubleValue: {
- total_size += 9;
- break;
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- case kTimestampValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.timestamp_value_);
- break;
- }
- // string string_value = 17;
- case kStringValue: {
- total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_string_value());
- break;
- }
- // bytes bytes_value = 18;
- case kBytesValue: {
- total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->_internal_bytes_value());
- break;
- }
- // string reference_value = 5;
- case kReferenceValue: {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reference_value());
- break;
- }
- // .google.type.LatLng geo_point_value = 8;
- case kGeoPointValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.geo_point_value_);
- break;
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- case kArrayValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.array_value_);
- break;
- }
- // .google.firestore.v1.MapValue map_value = 6;
- case kMapValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.map_value_);
- break;
- }
- // string field_reference_value = 19;
- case kFieldReferenceValue: {
- total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_field_reference_value());
- break;
- }
- // .google.firestore.v1.Function function_value = 20;
- case kFunctionValue: {
- total_size +=
- 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.function_value_);
- break;
- }
- // .google.firestore.v1.Pipeline pipeline_value = 21;
- case kPipelineValue: {
- total_size +=
- 2 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.pipeline_value_);
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Value::_class_data_ = {
- Value::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Value::GetClassData() const {
- return &_class_data_;
- }
- void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Value*>(&to_msg);
- auto& from = static_cast<const Value&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Value)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.value_type_case()) {
- case kNullValue: {
- _this->_internal_set_null_value(from._internal_null_value());
- break;
- }
- case kBooleanValue: {
- _this->_internal_set_boolean_value(from._internal_boolean_value());
- break;
- }
- case kIntegerValue: {
- _this->_internal_set_integer_value(from._internal_integer_value());
- break;
- }
- case kDoubleValue: {
- _this->_internal_set_double_value(from._internal_double_value());
- break;
- }
- case kTimestampValue: {
- _this->_internal_mutable_timestamp_value()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_timestamp_value());
- break;
- }
- case kStringValue: {
- _this->_internal_set_string_value(from._internal_string_value());
- break;
- }
- case kBytesValue: {
- _this->_internal_set_bytes_value(from._internal_bytes_value());
- break;
- }
- case kReferenceValue: {
- _this->_internal_set_reference_value(from._internal_reference_value());
- break;
- }
- case kGeoPointValue: {
- _this->_internal_mutable_geo_point_value()->::google::type::LatLng::MergeFrom(
- from._internal_geo_point_value());
- break;
- }
- case kArrayValue: {
- _this->_internal_mutable_array_value()->::google::firestore::v1::ArrayValue::MergeFrom(
- from._internal_array_value());
- break;
- }
- case kMapValue: {
- _this->_internal_mutable_map_value()->::google::firestore::v1::MapValue::MergeFrom(
- from._internal_map_value());
- break;
- }
- case kFieldReferenceValue: {
- _this->_internal_set_field_reference_value(from._internal_field_reference_value());
- break;
- }
- case kFunctionValue: {
- _this->_internal_mutable_function_value()->::google::firestore::v1::Function::MergeFrom(
- from._internal_function_value());
- break;
- }
- case kPipelineValue: {
- _this->_internal_mutable_pipeline_value()->::google::firestore::v1::Pipeline::MergeFrom(
- from._internal_pipeline_value());
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Value::CopyFrom(const Value& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Value)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Value::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Value::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.value_type_, other->_impl_.value_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata Value::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[2]);
- }
- // ===================================================================
- class ArrayValue::_Internal {
- public:
- };
- ArrayValue::ArrayValue(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ArrayValue)
- }
- inline PROTOBUF_NDEBUG_INLINE ArrayValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : values_{visibility, arena, from.values_},
- _cached_size_{0} {}
- ArrayValue::ArrayValue(
- ::google::protobuf::Arena* arena,
- const ArrayValue& from)
- : ::google::protobuf::Message(arena) {
- ArrayValue* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ArrayValue)
- }
- inline PROTOBUF_NDEBUG_INLINE ArrayValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : values_{visibility, arena},
- _cached_size_{0} {}
- inline void ArrayValue::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- ArrayValue::~ArrayValue() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.ArrayValue)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void ArrayValue::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void ArrayValue::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ArrayValue)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.values_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* ArrayValue::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArrayValue::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_ArrayValue_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.Value values = 1;
- {::_pbi::TcParser::FastMtR1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(ArrayValue, _impl_.values_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated .google.firestore.v1.Value values = 1;
- {PROTOBUF_FIELD_OFFSET(ArrayValue, _impl_.values_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
- }}, {{
- }},
- };
- ::uint8_t* ArrayValue::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ArrayValue)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
- const auto& repfield = this->_internal_values().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ArrayValue)
- return target;
- }
- ::size_t ArrayValue::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ArrayValue)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- total_size += 1UL * this->_internal_values_size();
- for (const auto& msg : this->_internal_values()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData ArrayValue::_class_data_ = {
- ArrayValue::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* ArrayValue::GetClassData() const {
- return &_class_data_;
- }
- void ArrayValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<ArrayValue*>(&to_msg);
- auto& from = static_cast<const ArrayValue&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ArrayValue)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_values()->MergeFrom(
- from._internal_values());
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void ArrayValue::CopyFrom(const ArrayValue& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ArrayValue)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool ArrayValue::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* ArrayValue::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void ArrayValue::InternalSwap(ArrayValue* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.values_.InternalSwap(&other->_impl_.values_);
- }
- ::google::protobuf::Metadata ArrayValue::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[3]);
- }
- // ===================================================================
- MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse() {}
- MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
- : SuperType(arena) {}
- ::google::protobuf::Metadata MapValue_FieldsEntry_DoNotUse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[4]);
- }
- // ===================================================================
- class MapValue::_Internal {
- public:
- };
- MapValue::MapValue(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.MapValue)
- }
- inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : fields_{visibility, arena, from.fields_},
- _cached_size_{0} {}
- MapValue::MapValue(
- ::google::protobuf::Arena* arena,
- const MapValue& from)
- : ::google::protobuf::Message(arena) {
- MapValue* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.MapValue)
- }
- inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : fields_{visibility, arena},
- _cached_size_{0} {}
- inline void MapValue::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- MapValue::~MapValue() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.MapValue)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void MapValue::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void MapValue::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.MapValue)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.fields_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* MapValue::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 2, 43, 2> MapValue::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 2, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_MapValue_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // map<string, .google.firestore.v1.Value> fields = 1;
- {PROTOBUF_FIELD_OFFSET(MapValue, _impl_.fields_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
- }}, {{
- {::_pbi::TcParser::GetMapAuxInfo<
- decltype(MapValue()._impl_.fields_)>(
- 1, 0, 0, 9,
- 11)},
- {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
- }}, {{
- "\34\6\0\0\0\0\0\0"
- "google.firestore.v1.MapValue"
- "fields"
- }},
- };
- ::uint8_t* MapValue::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.MapValue)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 1;
- if (!_internal_fields().empty()) {
- using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
- using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>;
- const auto& field = _internal_fields();
- if (stream->IsSerializationDeterministic() && field.size() > 1) {
- for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
- target = WireHelper::InternalSerialize(
- 1, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.MapValue.fields");
- }
- } else {
- for (const auto& entry : field) {
- target = WireHelper::InternalSerialize(
- 1, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.MapValue.fields");
- }
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.MapValue)
- return target;
- }
- ::size_t MapValue::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.MapValue)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 1;
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
- for (const auto& entry : _internal_fields()) {
- total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData MapValue::_class_data_ = {
- MapValue::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* MapValue::GetClassData() const {
- return &_class_data_;
- }
- void MapValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<MapValue*>(&to_msg);
- auto& from = static_cast<const MapValue&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.MapValue)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_impl_.fields_.MergeFrom(from._impl_.fields_);
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void MapValue::CopyFrom(const MapValue& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.MapValue)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool MapValue::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* MapValue::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void MapValue::InternalSwap(MapValue* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.fields_.InternalSwap(&other->_impl_.fields_);
- }
- ::google::protobuf::Metadata MapValue::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[5]);
- }
- // ===================================================================
- Function_OptionsEntry_DoNotUse::Function_OptionsEntry_DoNotUse() {}
- Function_OptionsEntry_DoNotUse::Function_OptionsEntry_DoNotUse(::google::protobuf::Arena* arena)
- : SuperType(arena) {}
- ::google::protobuf::Metadata Function_OptionsEntry_DoNotUse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[6]);
- }
- // ===================================================================
- class Function::_Internal {
- public:
- };
- Function::Function(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Function)
- }
- inline PROTOBUF_NDEBUG_INLINE Function::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : args_{visibility, arena, from.args_},
- options_{visibility, arena, from.options_},
- name_(arena, from.name_),
- _cached_size_{0} {}
- Function::Function(
- ::google::protobuf::Arena* arena,
- const Function& from)
- : ::google::protobuf::Message(arena) {
- Function* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Function)
- }
- inline PROTOBUF_NDEBUG_INLINE Function::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : args_{visibility, arena},
- options_{visibility, arena},
- name_(arena),
- _cached_size_{0} {}
- inline void Function::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- Function::~Function() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Function)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Function::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.name_.Destroy();
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void Function::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Function)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.args_.Clear();
- _impl_.options_.Clear();
- _impl_.name_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Function::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 3, 3, 48, 2> Function::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967288, // skipmap
- offsetof(decltype(_table_), field_entries),
- 3, // num_field_entries
- 3, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Function_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- {::_pbi::TcParser::FastMtR1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(Function, _impl_.args_)}},
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(Function, _impl_.name_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- {PROTOBUF_FIELD_OFFSET(Function, _impl_.name_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- {PROTOBUF_FIELD_OFFSET(Function, _impl_.args_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
- {PROTOBUF_FIELD_OFFSET(Function, _impl_.options_), 0, 1,
- (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
- {::_pbi::TcParser::GetMapAuxInfo<
- decltype(Function()._impl_.options_)>(
- 1, 0, 0, 9,
- 11)},
- {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
- }}, {{
- "\34\4\0\7\0\0\0\0"
- "google.firestore.v1.Function"
- "name"
- "options"
- }},
- };
- ::uint8_t* Function::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Function)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Function.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_args_size()); i < n; i++) {
- const auto& repfield = this->_internal_args().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
- // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
- if (!_internal_options().empty()) {
- using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
- using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>;
- const auto& field = _internal_options();
- if (stream->IsSerializationDeterministic() && field.size() > 1) {
- for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
- target = WireHelper::InternalSerialize(
- 3, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Function.options");
- }
- } else {
- for (const auto& entry : field) {
- target = WireHelper::InternalSerialize(
- 3, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Function.options");
- }
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Function)
- return target;
- }
- ::size_t Function::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Function)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- total_size += 1UL * this->_internal_args_size();
- for (const auto& msg : this->_internal_args()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_options_size());
- for (const auto& entry : _internal_options()) {
- total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
- }
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Function::_class_data_ = {
- Function::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Function::GetClassData() const {
- return &_class_data_;
- }
- void Function::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Function*>(&to_msg);
- auto& from = static_cast<const Function&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Function)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_args()->MergeFrom(
- from._internal_args());
- _this->_impl_.options_.MergeFrom(from._impl_.options_);
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Function::CopyFrom(const Function& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Function)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Function::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Function::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Function::InternalSwap(Function* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.args_.InternalSwap(&other->_impl_.args_);
- _impl_.options_.InternalSwap(&other->_impl_.options_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
- }
- ::google::protobuf::Metadata Function::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[7]);
- }
- // ===================================================================
- Pipeline_Stage_OptionsEntry_DoNotUse::Pipeline_Stage_OptionsEntry_DoNotUse() {}
- Pipeline_Stage_OptionsEntry_DoNotUse::Pipeline_Stage_OptionsEntry_DoNotUse(::google::protobuf::Arena* arena)
- : SuperType(arena) {}
- ::google::protobuf::Metadata Pipeline_Stage_OptionsEntry_DoNotUse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[8]);
- }
- // ===================================================================
- class Pipeline_Stage::_Internal {
- public:
- };
- Pipeline_Stage::Pipeline_Stage(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Pipeline.Stage)
- }
- inline PROTOBUF_NDEBUG_INLINE Pipeline_Stage::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : args_{visibility, arena, from.args_},
- options_{visibility, arena, from.options_},
- name_(arena, from.name_),
- _cached_size_{0} {}
- Pipeline_Stage::Pipeline_Stage(
- ::google::protobuf::Arena* arena,
- const Pipeline_Stage& from)
- : ::google::protobuf::Message(arena) {
- Pipeline_Stage* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Pipeline.Stage)
- }
- inline PROTOBUF_NDEBUG_INLINE Pipeline_Stage::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : args_{visibility, arena},
- options_{visibility, arena},
- name_(arena),
- _cached_size_{0} {}
- inline void Pipeline_Stage::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- Pipeline_Stage::~Pipeline_Stage() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Pipeline.Stage)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Pipeline_Stage::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.name_.Destroy();
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void Pipeline_Stage::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Pipeline.Stage)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.args_.Clear();
- _impl_.options_.Clear();
- _impl_.name_.ClearToEmpty();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Pipeline_Stage::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<1, 3, 3, 54, 2> Pipeline_Stage::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 3, 8, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967288, // skipmap
- offsetof(decltype(_table_), field_entries),
- 3, // num_field_entries
- 3, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Pipeline_Stage_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- {::_pbi::TcParser::FastMtR1,
- {18, 63, 0, PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.args_)}},
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.name_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- {PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.name_), 0, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- {PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.args_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
- {PROTOBUF_FIELD_OFFSET(Pipeline_Stage, _impl_.options_), 0, 1,
- (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
- {::_pbi::TcParser::GetMapAuxInfo<
- decltype(Pipeline_Stage()._impl_.options_)>(
- 1, 0, 0, 9,
- 11)},
- {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
- }}, {{
- "\42\4\0\7\0\0\0\0"
- "google.firestore.v1.Pipeline.Stage"
- "name"
- "options"
- }},
- };
- ::uint8_t* Pipeline_Stage::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Pipeline.Stage)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Pipeline.Stage.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_args_size()); i < n; i++) {
- const auto& repfield = this->_internal_args().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
- }
- // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
- if (!_internal_options().empty()) {
- using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
- using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>;
- const auto& field = _internal_options();
- if (stream->IsSerializationDeterministic() && field.size() > 1) {
- for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
- target = WireHelper::InternalSerialize(
- 3, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Pipeline.Stage.options");
- }
- } else {
- for (const auto& entry : field) {
- target = WireHelper::InternalSerialize(
- 3, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Pipeline.Stage.options");
- }
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Pipeline.Stage)
- return target;
- }
- ::size_t Pipeline_Stage::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Pipeline.Stage)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value args = 2 [(.google.api.field_behavior) = OPTIONAL];
- total_size += 1UL * this->_internal_args_size();
- for (const auto& msg : this->_internal_args()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- // map<string, .google.firestore.v1.Value> options = 3 [(.google.api.field_behavior) = OPTIONAL];
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_options_size());
- for (const auto& entry : _internal_options()) {
- total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
- }
- // string name = 1 [(.google.api.field_behavior) = REQUIRED];
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Pipeline_Stage::_class_data_ = {
- Pipeline_Stage::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Pipeline_Stage::GetClassData() const {
- return &_class_data_;
- }
- void Pipeline_Stage::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Pipeline_Stage*>(&to_msg);
- auto& from = static_cast<const Pipeline_Stage&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Pipeline.Stage)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_args()->MergeFrom(
- from._internal_args());
- _this->_impl_.options_.MergeFrom(from._impl_.options_);
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Pipeline_Stage::CopyFrom(const Pipeline_Stage& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Pipeline.Stage)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Pipeline_Stage::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Pipeline_Stage::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Pipeline_Stage::InternalSwap(Pipeline_Stage* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.args_.InternalSwap(&other->_impl_.args_);
- _impl_.options_.InternalSwap(&other->_impl_.options_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
- }
- ::google::protobuf::Metadata Pipeline_Stage::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[9]);
- }
- // ===================================================================
- class Pipeline::_Internal {
- public:
- };
- Pipeline::Pipeline(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Pipeline)
- }
- inline PROTOBUF_NDEBUG_INLINE Pipeline::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : stages_{visibility, arena, from.stages_},
- _cached_size_{0} {}
- Pipeline::Pipeline(
- ::google::protobuf::Arena* arena,
- const Pipeline& from)
- : ::google::protobuf::Message(arena) {
- Pipeline* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Pipeline)
- }
- inline PROTOBUF_NDEBUG_INLINE Pipeline::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : stages_{visibility, arena},
- _cached_size_{0} {}
- inline void Pipeline::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- Pipeline::~Pipeline() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Pipeline)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Pipeline::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void Pipeline::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Pipeline)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.stages_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Pipeline::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> Pipeline::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Pipeline_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
- {::_pbi::TcParser::FastMtR1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(Pipeline, _impl_.stages_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
- {PROTOBUF_FIELD_OFFSET(Pipeline, _impl_.stages_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Pipeline_Stage>()},
- }}, {{
- }},
- };
- ::uint8_t* Pipeline::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Pipeline)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_stages_size()); i < n; i++) {
- const auto& repfield = this->_internal_stages().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Pipeline)
- return target;
- }
- ::size_t Pipeline::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Pipeline)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Pipeline.Stage stages = 1 [(.google.api.field_behavior) = REQUIRED];
- total_size += 1UL * this->_internal_stages_size();
- for (const auto& msg : this->_internal_stages()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Pipeline::_class_data_ = {
- Pipeline::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Pipeline::GetClassData() const {
- return &_class_data_;
- }
- void Pipeline::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Pipeline*>(&to_msg);
- auto& from = static_cast<const Pipeline&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Pipeline)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_stages()->MergeFrom(
- from._internal_stages());
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Pipeline::CopyFrom(const Pipeline& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Pipeline)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Pipeline::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Pipeline::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Pipeline::InternalSwap(Pipeline* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.stages_.InternalSwap(&other->_impl_.stages_);
- }
- ::google::protobuf::Metadata Pipeline::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[10]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|