| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388 |
- /*
- * Copyright 2018 Google
- *
- * 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/stubs/common.h>
- #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>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_google_2ffirestore_2fv1_2fdocument_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Document_FieldsEntry_DoNotUse_google_2ffirestore_2fv1_2fdocument_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto;
- extern PROTOBUF_INTERNAL_EXPORT_google_2ftype_2flatlng_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_LatLng_google_2ftype_2flatlng_2eproto;
- namespace google {
- namespace firestore {
- namespace v1 {
- class Document_FieldsEntry_DoNotUseDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Document_FieldsEntry_DoNotUse> _instance;
- } _Document_FieldsEntry_DoNotUse_default_instance_;
- class DocumentDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Document> _instance;
- } _Document_default_instance_;
- class ValueDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Value> _instance;
- int null_value_;
- bool boolean_value_;
- ::PROTOBUF_NAMESPACE_ID::int64 integer_value_;
- double double_value_;
- const PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr string_value_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr bytes_value_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr reference_value_;
- const ::google::type::LatLng* geo_point_value_;
- const ::google::firestore::v1::ArrayValue* array_value_;
- const ::google::firestore::v1::MapValue* map_value_;
- } _Value_default_instance_;
- class ArrayValueDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ArrayValue> _instance;
- } _ArrayValue_default_instance_;
- class MapValue_FieldsEntry_DoNotUseDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MapValue_FieldsEntry_DoNotUse> _instance;
- } _MapValue_FieldsEntry_DoNotUse_default_instance_;
- class MapValueDefaultTypeInternal {
- public:
- ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MapValue> _instance;
- } _MapValue_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- static void InitDefaultsscc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::firestore::v1::_Value_default_instance_;
- new (ptr) ::google::firestore::v1::Value();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- {
- void* ptr = &::google::firestore::v1::_ArrayValue_default_instance_;
- new (ptr) ::google::firestore::v1::ArrayValue();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- {
- void* ptr = &::google::firestore::v1::_MapValue_FieldsEntry_DoNotUse_default_instance_;
- new (ptr) ::google::firestore::v1::MapValue_FieldsEntry_DoNotUse();
- }
- {
- void* ptr = &::google::firestore::v1::_MapValue_default_instance_;
- new (ptr) ::google::firestore::v1::MapValue();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::firestore::v1::Value::InitAsDefaultInstance();
- ::google::firestore::v1::ArrayValue::InitAsDefaultInstance();
- ::google::firestore::v1::MapValue_FieldsEntry_DoNotUse::InitAsDefaultInstance();
- ::google::firestore::v1::MapValue::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto}, {
- &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,
- &scc_info_LatLng_google_2ftype_2flatlng_2eproto.base,}};
- static void InitDefaultsscc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::firestore::v1::_Document_default_instance_;
- new (ptr) ::google::firestore::v1::Document();
- ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::firestore::v1::Document::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto}, {
- &scc_info_Document_FieldsEntry_DoNotUse_google_2ffirestore_2fv1_2fdocument_2eproto.base,
- &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}};
- static void InitDefaultsscc_info_Document_FieldsEntry_DoNotUse_google_2ffirestore_2fv1_2fdocument_2eproto() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::firestore::v1::_Document_FieldsEntry_DoNotUse_default_instance_;
- new (ptr) ::google::firestore::v1::Document_FieldsEntry_DoNotUse();
- }
- ::google::firestore::v1::Document_FieldsEntry_DoNotUse::InitAsDefaultInstance();
- }
- ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Document_FieldsEntry_DoNotUse_google_2ffirestore_2fv1_2fdocument_2eproto =
- {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_Document_FieldsEntry_DoNotUse_google_2ffirestore_2fv1_2fdocument_2eproto}, {
- &scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base,}};
- static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[6];
- static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
- static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
- const ::PROTOBUF_NAMESPACE_ID::uint32 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_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, name_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, fields_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, create_time_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, update_time_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _oneof_case_[0]),
- ~0u, // no _weak_field_map_
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, null_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, boolean_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, integer_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, double_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, timestamp_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, string_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, bytes_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, reference_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, geo_point_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, array_value_),
- offsetof(::google::firestore::v1::ValueDefaultTypeInternal, map_value_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, 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_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, 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_
- 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_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, fields_),
- };
- static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 7, sizeof(::google::firestore::v1::Document_FieldsEntry_DoNotUse)},
- { 9, -1, sizeof(::google::firestore::v1::Document)},
- { 18, -1, sizeof(::google::firestore::v1::Value)},
- { 35, -1, sizeof(::google::firestore::v1::ArrayValue)},
- { 41, 48, sizeof(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse)},
- { 50, -1, sizeof(::google::firestore::v1::MapValue)},
- };
- static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_Document_FieldsEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_Document_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_Value_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_ArrayValue_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_MapValue_FieldsEntry_DoNotUse_default_instance_),
- reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::firestore::v1::_MapValue_default_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\034google/api/annotation"
- "s.proto\032\034google/protobuf/struct.proto\032\037g"
- "oogle/protobuf/timestamp.proto\032\030google/t"
- "ype/latlng.proto\"\200\002\n\010Document\022\014\n\004name\030\001 "
- "\001(\t\0229\n\006fields\030\002 \003(\0132).google.firestore.v"
- "1.Document.FieldsEntry\022/\n\013create_time\030\003 "
- "\001(\0132\032.google.protobuf.Timestamp\022/\n\013updat"
- "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp"
- "\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\"\256\003\n\005"
- "Value\0220\n\nnull_value\030\013 \001(\0162\032.google.proto"
- "buf.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_valu"
- "e\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n \001(\0132\032.goo"
- "gle.protobuf.TimestampH\000\022\026\n\014string_value"
- "\030\021 \001(\tH\000\022\025\n\013bytes_value\030\022 \001(\014H\000\022\031\n\017refer"
- "ence_value\030\005 \001(\tH\000\022.\n\017geo_point_value\030\010 "
- "\001(\0132\023.google.type.LatLngH\000\0226\n\013array_valu"
- "e\030\t \001(\0132\037.google.firestore.v1.ArrayValue"
- "H\000\0222\n\tmap_value\030\006 \001(\0132\035.google.firestore"
- ".v1.MapValueH\000B\014\n\nvalue_type\"8\n\nArrayVal"
- "ue\022*\n\006values\030\001 \003(\0132\032.google.firestore.v1"
- ".Value\"\220\001\n\010MapValue\0229\n\006fields\030\001 \003(\0132).go"
- "ogle.firestore.v1.MapValue.FieldsEntry\032I"
- "\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001("
- "\0132\032.google.firestore.v1.Value:\0028\001B\261\001\n\027co"
- "m.google.firestore.v1B\rDocumentProtoP\001Z<"
- "google.golang.org/genproto/googleapis/fi"
- "restore/v1;firestore\242\002\004GCFS\252\002\036Google.Clo"
- "ud.Firestore.V1Beta1\312\002\036Google\\Cloud\\Fire"
- "store\\V1beta1b\006proto3"
- ;
- static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps[4] = {
- &::descriptor_table_google_2fapi_2fannotations_2eproto,
- &::descriptor_table_google_2fprotobuf_2fstruct_2eproto,
- &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
- &::descriptor_table_google_2ftype_2flatlng_2eproto,
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_sccs[3] = {
- &scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base,
- &scc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto.base,
- &scc_info_Document_FieldsEntry_DoNotUse_google_2ffirestore_2fv1_2fdocument_2eproto.base,
- };
- static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once;
- static bool descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_initialized = false;
- const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto = {
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_initialized, descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto, "google/firestore/v1/document.proto", 1261,
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once, descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_sccs, descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps, 3, 4,
- schemas, file_default_instances, TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto, 6, file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto, file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
- };
- // Force running AddDescriptors() at dynamic initialization time.
- static bool dynamic_init_dummy_google_2ffirestore_2fv1_2fdocument_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto), true);
- namespace google {
- namespace firestore {
- namespace v1 {
- // ===================================================================
- Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse() {}
- Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : SuperType(arena) {}
- void Document_FieldsEntry_DoNotUse::MergeFrom(const Document_FieldsEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Document_FieldsEntry_DoNotUse::GetMetadata() const {
- return GetMetadataStatic();
- }
- void Document_FieldsEntry_DoNotUse::MergeFrom(
- const ::PROTOBUF_NAMESPACE_ID::Message& other) {
- ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
- }
- // ===================================================================
- void Document::InitAsDefaultInstance() {
- ::google::firestore::v1::_Document_default_instance_._instance.get_mutable()->create_time_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(
- PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance());
- ::google::firestore::v1::_Document_default_instance_._instance.get_mutable()->update_time_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(
- PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance());
- }
- class Document::_Internal {
- public:
- static const PROTOBUF_NAMESPACE_ID::Timestamp& create_time(const Document* msg);
- static const PROTOBUF_NAMESPACE_ID::Timestamp& update_time(const Document* msg);
- };
- const PROTOBUF_NAMESPACE_ID::Timestamp&
- Document::_Internal::create_time(const Document* msg) {
- return *msg->create_time_;
- }
- const PROTOBUF_NAMESPACE_ID::Timestamp&
- Document::_Internal::update_time(const Document* msg) {
- return *msg->update_time_;
- }
- void Document::clear_create_time() {
- if (GetArenaNoVirtual() == nullptr && create_time_ != nullptr) {
- delete create_time_;
- }
- create_time_ = nullptr;
- }
- void Document::clear_update_time() {
- if (GetArenaNoVirtual() == nullptr && update_time_ != nullptr) {
- delete update_time_;
- }
- update_time_ = nullptr;
- }
- Document::Document()
- : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.firestore.v1.Document)
- }
- Document::Document(const Document& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _internal_metadata_(nullptr) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- fields_.MergeFrom(from.fields_);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (!from.name().empty()) {
- name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
- }
- if (from.has_create_time()) {
- create_time_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.create_time_);
- } else {
- create_time_ = nullptr;
- }
- if (from.has_update_time()) {
- update_time_ = new PROTOBUF_NAMESPACE_ID::Timestamp(*from.update_time_);
- } else {
- update_time_ = nullptr;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Document)
- }
- void Document::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- ::memset(&create_time_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&update_time_) -
- reinterpret_cast<char*>(&create_time_)) + sizeof(update_time_));
- }
- Document::~Document() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Document)
- SharedDtor();
- }
- void Document::SharedDtor() {
- name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (this != internal_default_instance()) delete create_time_;
- if (this != internal_default_instance()) delete update_time_;
- }
- void Document::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const Document& Document::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Document_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- return *internal_default_instance();
- }
- void Document::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Document)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- fields_.Clear();
- name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- if (GetArenaNoVirtual() == nullptr && create_time_ != nullptr) {
- delete create_time_;
- }
- create_time_ = nullptr;
- if (GetArenaNoVirtual() == nullptr && update_time_ != nullptr) {
- delete update_time_;
- }
- update_time_ = nullptr;
- _internal_metadata_.Clear();
- }
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* Document::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // string name = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.firestore.v1.Document.name");
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // map<string, .google.firestore.v1.Value> fields = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(&fields_, ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
- } else goto handle_unusual;
- continue;
- // .google.protobuf.Timestamp create_time = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
- ptr = ctx->ParseMessage(mutable_create_time(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.protobuf.Timestamp update_time = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
- ptr = ctx->ParseMessage(mutable_update_time(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- bool Document::MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.firestore.v1.Document)
- for (;;) {
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // string name = 1;
- case 1: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
- input, this->mutable_name()));
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->name().data(), static_cast<int>(this->name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
- "google.firestore.v1.Document.name"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // map<string, .google.firestore.v1.Value> fields = 2;
- case 2: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
- Document_FieldsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
- Document_FieldsEntry_DoNotUse,
- std::string, ::google::firestore::v1::Value,
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value > > parser(&fields_);
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
- "google.firestore.v1.Document.FieldsEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Timestamp create_time = 3;
- case 3: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, mutable_create_time()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Timestamp update_time = 4;
- case 4: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, mutable_update_time()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.firestore.v1.Document)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.firestore.v1.Document)
- return false;
- #undef DO_
- }
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void Document::SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.firestore.v1.Document)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (this->name().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->name().data(), static_cast<int>(this->name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Document.name");
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->name(), output);
- }
- // map<string, .google.firestore.v1.Value> fields = 2;
- if (!this->fields().empty()) {
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Document.FieldsEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->fields().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->fields().size()]);
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::size_type size_type;
- size_type n = 0;
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- for (size_type i = 0; i < n; i++) {
- Document_FieldsEntry_DoNotUse::Funcs::SerializeToCodedStream(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
- Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
- }
- } else {
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it) {
- Document_FieldsEntry_DoNotUse::Funcs::SerializeToCodedStream(2, it->first, it->second, output);
- Utf8Check::Check(&(*it));
- }
- }
- }
- // .google.protobuf.Timestamp create_time = 3;
- if (this->has_create_time()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, _Internal::create_time(this), output);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (this->has_update_time()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, _Internal::update_time(this), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:google.firestore.v1.Document)
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* Document::InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Document)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // string name = 1;
- if (this->name().size() > 0) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->name().data(), static_cast<int>(this->name().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Document.name");
- target =
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
- 1, this->name(), target);
- }
- // map<string, .google.firestore.v1.Value> fields = 2;
- if (!this->fields().empty()) {
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Document.FieldsEntry.key");
- }
- };
- if (false &&
- this->fields().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->fields().size()]);
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::size_type size_type;
- size_type n = 0;
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- for (size_type i = 0; i < n; i++) {
- target = Document_FieldsEntry_DoNotUse::Funcs::SerializeToArray(2, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
- Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
- }
- } else {
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it) {
- target = Document_FieldsEntry_DoNotUse::Funcs::SerializeToArray(2, it->first, it->second, target);
- Utf8Check::Check(&(*it));
- }
- }
- }
- // .google.protobuf.Timestamp create_time = 3;
- if (this->has_create_time()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, _Internal::create_time(this), target);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (this->has_update_time()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, _Internal::update_time(this), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@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;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 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 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->fields_size());
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it) {
- total_size += Document_FieldsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
- }
- // string name = 1;
- if (this->name().size() > 0) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->name());
- }
- // .google.protobuf.Timestamp create_time = 3;
- if (this->has_create_time()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *create_time_);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (this->has_update_time()) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *update_time_);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Document::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.Document)
- GOOGLE_DCHECK_NE(&from, this);
- const Document* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Document>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.Document)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.Document)
- MergeFrom(*source);
- }
- }
- void Document::MergeFrom(const Document& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Document)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- fields_.MergeFrom(from.fields_);
- if (from.name().size() > 0) {
- name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
- }
- if (from.has_create_time()) {
- mutable_create_time()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from.create_time());
- }
- if (from.has_update_time()) {
- mutable_update_time()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from.update_time());
- }
- }
- void Document::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.Document)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- 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);
- }
- bool Document::IsInitialized() const {
- return true;
- }
- void Document::InternalSwap(Document* other) {
- using std::swap;
- _internal_metadata_.Swap(&other->_internal_metadata_);
- fields_.Swap(&other->fields_);
- name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(create_time_, other->create_time_);
- swap(update_time_, other->update_time_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Document::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void Value::InitAsDefaultInstance() {
- ::google::firestore::v1::_Value_default_instance_.null_value_ = 0;
- ::google::firestore::v1::_Value_default_instance_.boolean_value_ = false;
- ::google::firestore::v1::_Value_default_instance_.integer_value_ = PROTOBUF_LONGLONG(0);
- ::google::firestore::v1::_Value_default_instance_.double_value_ = 0;
- ::google::firestore::v1::_Value_default_instance_.timestamp_value_ = const_cast< PROTOBUF_NAMESPACE_ID::Timestamp*>(
- PROTOBUF_NAMESPACE_ID::Timestamp::internal_default_instance());
- ::google::firestore::v1::_Value_default_instance_.string_value_.UnsafeSetDefault(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- ::google::firestore::v1::_Value_default_instance_.bytes_value_.UnsafeSetDefault(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- ::google::firestore::v1::_Value_default_instance_.reference_value_.UnsafeSetDefault(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- ::google::firestore::v1::_Value_default_instance_.geo_point_value_ = const_cast< ::google::type::LatLng*>(
- ::google::type::LatLng::internal_default_instance());
- ::google::firestore::v1::_Value_default_instance_.array_value_ = const_cast< ::google::firestore::v1::ArrayValue*>(
- ::google::firestore::v1::ArrayValue::internal_default_instance());
- ::google::firestore::v1::_Value_default_instance_.map_value_ = const_cast< ::google::firestore::v1::MapValue*>(
- ::google::firestore::v1::MapValue::internal_default_instance());
- }
- class Value::_Internal {
- public:
- static const PROTOBUF_NAMESPACE_ID::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);
- };
- const PROTOBUF_NAMESPACE_ID::Timestamp&
- Value::_Internal::timestamp_value(const Value* msg) {
- return *msg->value_type_.timestamp_value_;
- }
- const ::google::type::LatLng&
- Value::_Internal::geo_point_value(const Value* msg) {
- return *msg->value_type_.geo_point_value_;
- }
- const ::google::firestore::v1::ArrayValue&
- Value::_Internal::array_value(const Value* msg) {
- return *msg->value_type_.array_value_;
- }
- const ::google::firestore::v1::MapValue&
- Value::_Internal::map_value(const Value* msg) {
- return *msg->value_type_.map_value_;
- }
- void Value::set_allocated_timestamp_value(PROTOBUF_NAMESPACE_ID::Timestamp* timestamp_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- clear_value_type();
- if (timestamp_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
- reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(timestamp_value)->GetArena();
- if (message_arena != submessage_arena) {
- timestamp_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, timestamp_value, submessage_arena);
- }
- set_has_timestamp_value();
- value_type_.timestamp_value_ = timestamp_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.timestamp_value)
- }
- void Value::clear_timestamp_value() {
- if (has_timestamp_value()) {
- delete value_type_.timestamp_value_;
- clear_has_value_type();
- }
- }
- void Value::set_allocated_geo_point_value(::google::type::LatLng* geo_point_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- clear_value_type();
- if (geo_point_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
- if (message_arena != submessage_arena) {
- geo_point_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, geo_point_value, submessage_arena);
- }
- set_has_geo_point_value();
- 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() {
- if (has_geo_point_value()) {
- delete value_type_.geo_point_value_;
- clear_has_value_type();
- }
- }
- void Value::set_allocated_array_value(::google::firestore::v1::ArrayValue* array_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- clear_value_type();
- if (array_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
- if (message_arena != submessage_arena) {
- array_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, array_value, submessage_arena);
- }
- set_has_array_value();
- 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) {
- ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
- clear_value_type();
- if (map_value) {
- ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
- if (message_arena != submessage_arena) {
- map_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
- message_arena, map_value, submessage_arena);
- }
- set_has_map_value();
- value_type_.map_value_ = map_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.map_value)
- }
- Value::Value()
- : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.firestore.v1.Value)
- }
- Value::Value(const Value& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _internal_metadata_(nullptr) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- clear_has_value_type();
- switch (from.value_type_case()) {
- case kNullValue: {
- set_null_value(from.null_value());
- break;
- }
- case kBooleanValue: {
- set_boolean_value(from.boolean_value());
- break;
- }
- case kIntegerValue: {
- set_integer_value(from.integer_value());
- break;
- }
- case kDoubleValue: {
- set_double_value(from.double_value());
- break;
- }
- case kTimestampValue: {
- mutable_timestamp_value()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from.timestamp_value());
- break;
- }
- case kStringValue: {
- set_string_value(from.string_value());
- break;
- }
- case kBytesValue: {
- set_bytes_value(from.bytes_value());
- break;
- }
- case kReferenceValue: {
- set_reference_value(from.reference_value());
- break;
- }
- case kGeoPointValue: {
- mutable_geo_point_value()->::google::type::LatLng::MergeFrom(from.geo_point_value());
- break;
- }
- case kArrayValue: {
- mutable_array_value()->::google::firestore::v1::ArrayValue::MergeFrom(from.array_value());
- break;
- }
- case kMapValue: {
- mutable_map_value()->::google::firestore::v1::MapValue::MergeFrom(from.map_value());
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Value)
- }
- void Value::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- clear_has_value_type();
- }
- Value::~Value() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Value)
- SharedDtor();
- }
- void Value::SharedDtor() {
- if (has_value_type()) {
- clear_value_type();
- }
- }
- void Value::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const Value& Value::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- return *internal_default_instance();
- }
- void Value::clear_value_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Value)
- 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: {
- delete value_type_.timestamp_value_;
- break;
- }
- case kStringValue: {
- value_type_.string_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- break;
- }
- case kBytesValue: {
- value_type_.bytes_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- break;
- }
- case kReferenceValue: {
- value_type_.reference_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- break;
- }
- case kGeoPointValue: {
- delete value_type_.geo_point_value_;
- break;
- }
- case kArrayValue: {
- delete value_type_.array_value_;
- break;
- }
- case kMapValue: {
- delete value_type_.map_value_;
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- _oneof_case_[0] = VALUE_TYPE_NOT_SET;
- }
- void Value::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Value)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_value_type();
- _internal_metadata_.Clear();
- }
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* Value::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // bool boolean_value = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
- set_boolean_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // int64 integer_value = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
- set_integer_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr));
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // double double_value = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) {
- set_double_value(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
- ptr += sizeof(double);
- } else goto handle_unusual;
- continue;
- // string reference_value = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_reference_value(), ptr, ctx, "google.firestore.v1.Value.reference_value");
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.firestore.v1.MapValue map_value = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
- ptr = ctx->ParseMessage(mutable_map_value(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.type.LatLng geo_point_value = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
- ptr = ctx->ParseMessage(mutable_geo_point_value(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.firestore.v1.ArrayValue array_value = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
- ptr = ctx->ParseMessage(mutable_array_value(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.protobuf.Timestamp timestamp_value = 10;
- case 10:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
- ptr = ctx->ParseMessage(mutable_timestamp_value(), ptr);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // .google.protobuf.NullValue null_value = 11;
- case 11:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) {
- ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
- CHK_(ptr);
- set_null_value(static_cast<PROTOBUF_NAMESPACE_ID::NullValue>(val));
- } else goto handle_unusual;
- continue;
- // string string_value = 17;
- case 17:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_string_value(), ptr, ctx, "google.firestore.v1.Value.string_value");
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- // bytes bytes_value = 18;
- case 18:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 146)) {
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(mutable_bytes_value(), ptr, ctx);
- CHK_(ptr);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- bool Value::MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.firestore.v1.Value)
- for (;;) {
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // bool boolean_value = 1;
- case 1: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
- clear_value_type();
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
- bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
- input, &value_type_.boolean_value_)));
- set_has_boolean_value();
- } else {
- goto handle_unusual;
- }
- break;
- }
- // int64 integer_value = 2;
- case 2: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
- clear_value_type();
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
- ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>(
- input, &value_type_.integer_value_)));
- set_has_integer_value();
- } else {
- goto handle_unusual;
- }
- break;
- }
- // double double_value = 3;
- case 3: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (25 & 0xFF)) {
- clear_value_type();
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
- double, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &value_type_.double_value_)));
- set_has_double_value();
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string reference_value = 5;
- case 5: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
- input, this->mutable_reference_value()));
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->reference_value().data(), static_cast<int>(this->reference_value().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
- "google.firestore.v1.Value.reference_value"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.firestore.v1.MapValue map_value = 6;
- case 6: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, mutable_map_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.type.LatLng geo_point_value = 8;
- case 8: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, mutable_geo_point_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- case 9: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, mutable_array_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- case 10: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, mutable_timestamp_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.NullValue null_value = 11;
- case 11: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (88 & 0xFF)) {
- int value = 0;
- DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
- int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
- input, &value)));
- set_null_value(static_cast< PROTOBUF_NAMESPACE_ID::NullValue >(value));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // string string_value = 17;
- case 17: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (138 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
- input, this->mutable_string_value()));
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->string_value().data(), static_cast<int>(this->string_value().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
- "google.firestore.v1.Value.string_value"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // bytes bytes_value = 18;
- case 18: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (146 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
- input, this->mutable_bytes_value()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.firestore.v1.Value)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.firestore.v1.Value)
- return false;
- #undef DO_
- }
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void Value::SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.firestore.v1.Value)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // bool boolean_value = 1;
- if (has_boolean_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(1, this->boolean_value(), output);
- }
- // int64 integer_value = 2;
- if (has_integer_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(2, this->integer_value(), output);
- }
- // double double_value = 3;
- if (has_double_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDouble(3, this->double_value(), output);
- }
- // string reference_value = 5;
- if (has_reference_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->reference_value().data(), static_cast<int>(this->reference_value().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Value.reference_value");
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->reference_value(), output);
- }
- // .google.firestore.v1.MapValue map_value = 6;
- if (has_map_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, _Internal::map_value(this), output);
- }
- // .google.type.LatLng geo_point_value = 8;
- if (has_geo_point_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, _Internal::geo_point_value(this), output);
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- if (has_array_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, _Internal::array_value(this), output);
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- if (has_timestamp_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, _Internal::timestamp_value(this), output);
- }
- // .google.protobuf.NullValue null_value = 11;
- if (has_null_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
- 11, this->null_value(), output);
- }
- // string string_value = 17;
- if (has_string_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->string_value().data(), static_cast<int>(this->string_value().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Value.string_value");
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
- 17, this->string_value(), output);
- }
- // bytes bytes_value = 18;
- if (has_bytes_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
- 18, this->bytes_value(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:google.firestore.v1.Value)
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* Value::InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Value)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // bool boolean_value = 1;
- if (has_boolean_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->boolean_value(), target);
- }
- // int64 integer_value = 2;
- if (has_integer_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->integer_value(), target);
- }
- // double double_value = 3;
- if (has_double_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->double_value(), target);
- }
- // string reference_value = 5;
- if (has_reference_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->reference_value().data(), static_cast<int>(this->reference_value().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Value.reference_value");
- target =
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
- 5, this->reference_value(), target);
- }
- // .google.firestore.v1.MapValue map_value = 6;
- if (has_map_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 6, _Internal::map_value(this), target);
- }
- // .google.type.LatLng geo_point_value = 8;
- if (has_geo_point_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, _Internal::geo_point_value(this), target);
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- if (has_array_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, _Internal::array_value(this), target);
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- if (has_timestamp_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 10, _Internal::timestamp_value(this), target);
- }
- // .google.protobuf.NullValue null_value = 11;
- if (has_null_value()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
- 11, this->null_value(), target);
- }
- // string string_value = 17;
- if (has_string_value()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- this->string_value().data(), static_cast<int>(this->string_value().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.Value.string_value");
- target =
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
- 17, this->string_value(), target);
- }
- // bytes bytes_value = 18;
- if (has_bytes_value()) {
- target =
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
- 18, this->bytes_value(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@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;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 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 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->null_value());
- break;
- }
- // bool boolean_value = 1;
- case kBooleanValue: {
- total_size += 1 + 1;
- break;
- }
- // int64 integer_value = 2;
- case kIntegerValue: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
- this->integer_value());
- break;
- }
- // double double_value = 3;
- case kDoubleValue: {
- total_size += 1 + 8;
- break;
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- case kTimestampValue: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *value_type_.timestamp_value_);
- break;
- }
- // string string_value = 17;
- case kStringValue: {
- total_size += 2 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->string_value());
- break;
- }
- // bytes bytes_value = 18;
- case kBytesValue: {
- total_size += 2 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
- this->bytes_value());
- break;
- }
- // string reference_value = 5;
- case kReferenceValue: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->reference_value());
- break;
- }
- // .google.type.LatLng geo_point_value = 8;
- case kGeoPointValue: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *value_type_.geo_point_value_);
- break;
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- case kArrayValue: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *value_type_.array_value_);
- break;
- }
- // .google.firestore.v1.MapValue map_value = 6;
- case kMapValue: {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *value_type_.map_value_);
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Value::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.Value)
- GOOGLE_DCHECK_NE(&from, this);
- const Value* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Value>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.Value)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.Value)
- MergeFrom(*source);
- }
- }
- void Value::MergeFrom(const Value& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Value)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.value_type_case()) {
- case kNullValue: {
- set_null_value(from.null_value());
- break;
- }
- case kBooleanValue: {
- set_boolean_value(from.boolean_value());
- break;
- }
- case kIntegerValue: {
- set_integer_value(from.integer_value());
- break;
- }
- case kDoubleValue: {
- set_double_value(from.double_value());
- break;
- }
- case kTimestampValue: {
- mutable_timestamp_value()->PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(from.timestamp_value());
- break;
- }
- case kStringValue: {
- set_string_value(from.string_value());
- break;
- }
- case kBytesValue: {
- set_bytes_value(from.bytes_value());
- break;
- }
- case kReferenceValue: {
- set_reference_value(from.reference_value());
- break;
- }
- case kGeoPointValue: {
- mutable_geo_point_value()->::google::type::LatLng::MergeFrom(from.geo_point_value());
- break;
- }
- case kArrayValue: {
- mutable_array_value()->::google::firestore::v1::ArrayValue::MergeFrom(from.array_value());
- break;
- }
- case kMapValue: {
- mutable_map_value()->::google::firestore::v1::MapValue::MergeFrom(from.map_value());
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- }
- void Value::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.Value)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- 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);
- }
- bool Value::IsInitialized() const {
- return true;
- }
- void Value::InternalSwap(Value* other) {
- using std::swap;
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(value_type_, other->value_type_);
- swap(_oneof_case_[0], other->_oneof_case_[0]);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Value::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- void ArrayValue::InitAsDefaultInstance() {
- }
- class ArrayValue::_Internal {
- public:
- };
- ArrayValue::ArrayValue()
- : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.firestore.v1.ArrayValue)
- }
- ArrayValue::ArrayValue(const ArrayValue& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _internal_metadata_(nullptr),
- values_(from.values_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ArrayValue)
- }
- void ArrayValue::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- }
- ArrayValue::~ArrayValue() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.ArrayValue)
- SharedDtor();
- }
- void ArrayValue::SharedDtor() {
- }
- void ArrayValue::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ArrayValue& ArrayValue::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- return *internal_default_instance();
- }
- void ArrayValue::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ArrayValue)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- values_.Clear();
- _internal_metadata_.Clear();
- }
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* ArrayValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // repeated .google.firestore.v1.Value values = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(add_values(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- bool ArrayValue::MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.firestore.v1.ArrayValue)
- for (;;) {
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .google.firestore.v1.Value values = 1;
- case 1: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
- input, add_values()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.firestore.v1.ArrayValue)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.firestore.v1.ArrayValue)
- return false;
- #undef DO_
- }
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void ArrayValue::SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.firestore.v1.ArrayValue)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->values(static_cast<int>(i)),
- output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:google.firestore.v1.ArrayValue)
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* ArrayValue::InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ArrayValue)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->values_size()); i < n; i++) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->values(static_cast<int>(i)), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@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;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->values_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- this->values(static_cast<int>(i)));
- }
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void ArrayValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.ArrayValue)
- GOOGLE_DCHECK_NE(&from, this);
- const ArrayValue* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ArrayValue>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.ArrayValue)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.ArrayValue)
- MergeFrom(*source);
- }
- }
- void ArrayValue::MergeFrom(const ArrayValue& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ArrayValue)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- values_.MergeFrom(from.values_);
- }
- void ArrayValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.ArrayValue)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- 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);
- }
- bool ArrayValue::IsInitialized() const {
- return true;
- }
- void ArrayValue::InternalSwap(ArrayValue* other) {
- using std::swap;
- _internal_metadata_.Swap(&other->_internal_metadata_);
- CastToBase(&values_)->InternalSwap(CastToBase(&other->values_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata ArrayValue::GetMetadata() const {
- return GetMetadataStatic();
- }
- // ===================================================================
- MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse() {}
- MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : SuperType(arena) {}
- void MapValue_FieldsEntry_DoNotUse::MergeFrom(const MapValue_FieldsEntry_DoNotUse& other) {
- MergeFromInternal(other);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata MapValue_FieldsEntry_DoNotUse::GetMetadata() const {
- return GetMetadataStatic();
- }
- void MapValue_FieldsEntry_DoNotUse::MergeFrom(
- const ::PROTOBUF_NAMESPACE_ID::Message& other) {
- ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
- }
- // ===================================================================
- void MapValue::InitAsDefaultInstance() {
- }
- class MapValue::_Internal {
- public:
- };
- MapValue::MapValue()
- : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.firestore.v1.MapValue)
- }
- MapValue::MapValue(const MapValue& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(),
- _internal_metadata_(nullptr) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- fields_.MergeFrom(from.fields_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.MapValue)
- }
- void MapValue::SharedCtor() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- }
- MapValue::~MapValue() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.MapValue)
- SharedDtor();
- }
- void MapValue::SharedDtor() {
- }
- void MapValue::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const MapValue& MapValue::default_instance() {
- ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ArrayValue_google_2ffirestore_2fv1_2fdocument_2eproto.base);
- return *internal_default_instance();
- }
- void MapValue::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.MapValue)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- fields_.Clear();
- _internal_metadata_.Clear();
- }
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* MapValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
- CHK_(ptr);
- switch (tag >> 3) {
- // map<string, .google.firestore.v1.Value> fields = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(&fields_, ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
- } else goto handle_unusual;
- continue;
- default: {
- handle_unusual:
- if ((tag & 7) == 4 || tag == 0) {
- ctx->SetLastTag(tag);
- goto success;
- }
- ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
- CHK_(ptr != nullptr);
- continue;
- }
- } // switch
- } // while
- success:
- return ptr;
- failure:
- ptr = nullptr;
- goto success;
- #undef CHK_
- }
- #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- bool MapValue::MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
- ::PROTOBUF_NAMESPACE_ID::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.firestore.v1.MapValue)
- for (;;) {
- ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // map<string, .google.firestore.v1.Value> fields = 1;
- case 1: {
- if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
- MapValue_FieldsEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
- MapValue_FieldsEntry_DoNotUse,
- std::string, ::google::firestore::v1::Value,
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
- 0 >,
- ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value > > parser(&fields_);
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
- input, &parser));
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- parser.key().data(), static_cast<int>(parser.key().length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
- "google.firestore.v1.MapValue.FieldsEntry.key"));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.firestore.v1.MapValue)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.firestore.v1.MapValue)
- return false;
- #undef DO_
- }
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void MapValue::SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.firestore.v1.MapValue)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 1;
- if (!this->fields().empty()) {
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.MapValue.FieldsEntry.key");
- }
- };
- if (output->IsSerializationDeterministic() &&
- this->fields().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->fields().size()]);
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::size_type size_type;
- size_type n = 0;
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- for (size_type i = 0; i < n; i++) {
- MapValue_FieldsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
- Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
- }
- } else {
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it) {
- MapValue_FieldsEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output);
- Utf8Check::Check(&(*it));
- }
- }
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:google.firestore.v1.MapValue)
- }
- ::PROTOBUF_NAMESPACE_ID::uint8* MapValue::InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.MapValue)
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 1;
- if (!this->fields().empty()) {
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_pointer
- ConstPtr;
- typedef ConstPtr SortItem;
- typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
- struct Utf8Check {
- static void Check(ConstPtr p) {
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- p->first.data(), static_cast<int>(p->first.length()),
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
- "google.firestore.v1.MapValue.FieldsEntry.key");
- }
- };
- if (false &&
- this->fields().size() > 1) {
- ::std::unique_ptr<SortItem[]> items(
- new SortItem[this->fields().size()]);
- typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::size_type size_type;
- size_type n = 0;
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it, ++n) {
- items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
- }
- ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
- for (size_type i = 0; i < n; i++) {
- target = MapValue_FieldsEntry_DoNotUse::Funcs::SerializeToArray(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
- Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
- }
- } else {
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it) {
- target = MapValue_FieldsEntry_DoNotUse::Funcs::SerializeToArray(1, it->first, it->second, target);
- Utf8Check::Check(&(*it));
- }
- }
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@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;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- ::PROTOBUF_NAMESPACE_ID::uint32 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 *
- ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->fields_size());
- for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::google::firestore::v1::Value >::const_iterator
- it = this->fields().begin();
- it != this->fields().end(); ++it) {
- total_size += MapValue_FieldsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
- }
- int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void MapValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.firestore.v1.MapValue)
- GOOGLE_DCHECK_NE(&from, this);
- const MapValue* source =
- ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MapValue>(
- &from);
- if (source == nullptr) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.firestore.v1.MapValue)
- ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.firestore.v1.MapValue)
- MergeFrom(*source);
- }
- }
- void MapValue::MergeFrom(const MapValue& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.MapValue)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- fields_.MergeFrom(from.fields_);
- }
- void MapValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.firestore.v1.MapValue)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- 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);
- }
- bool MapValue::IsInitialized() const {
- return true;
- }
- void MapValue::InternalSwap(MapValue* other) {
- using std::swap;
- _internal_metadata_.Swap(&other->_internal_metadata_);
- fields_.Swap(&other->fields_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata MapValue::GetMetadata() const {
- return GetMetadataStatic();
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::google::firestore::v1::Document_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::firestore::v1::Document_FieldsEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::firestore::v1::Document_FieldsEntry_DoNotUse >(arena);
- }
- template<> PROTOBUF_NOINLINE ::google::firestore::v1::Document* Arena::CreateMaybeMessage< ::google::firestore::v1::Document >(Arena* arena) {
- return Arena::CreateInternal< ::google::firestore::v1::Document >(arena);
- }
- template<> PROTOBUF_NOINLINE ::google::firestore::v1::Value* Arena::CreateMaybeMessage< ::google::firestore::v1::Value >(Arena* arena) {
- return Arena::CreateInternal< ::google::firestore::v1::Value >(arena);
- }
- template<> PROTOBUF_NOINLINE ::google::firestore::v1::ArrayValue* Arena::CreateMaybeMessage< ::google::firestore::v1::ArrayValue >(Arena* arena) {
- return Arena::CreateInternal< ::google::firestore::v1::ArrayValue >(arena);
- }
- template<> PROTOBUF_NOINLINE ::google::firestore::v1::MapValue_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage< ::google::firestore::v1::MapValue_FieldsEntry_DoNotUse >(Arena* arena) {
- return Arena::CreateInternal< ::google::firestore::v1::MapValue_FieldsEntry_DoNotUse >(arena);
- }
- template<> PROTOBUF_NOINLINE ::google::firestore::v1::MapValue* Arena::CreateMaybeMessage< ::google::firestore::v1::MapValue >(Arena* arena) {
- return Arena::CreateInternal< ::google::firestore::v1::MapValue >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
|