| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698 |
- /*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/firestore/v1/document.proto
- #include "google/firestore/v1/document.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- #include "google/protobuf/generated_message_tctable_impl.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::google::protobuf;
- namespace _pbi = ::google::protobuf::internal;
- namespace _fl = ::google::protobuf::internal::field_layout;
- namespace google {
- namespace firestore {
- namespace v1 {
- inline constexpr ArrayValue::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : values_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR ArrayValue::ArrayValue(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct ArrayValueDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ArrayValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ArrayValueDefaultTypeInternal() {}
- union {
- ArrayValue _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
- inline constexpr MapValue::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : fields_{},
- _cached_size_{0} {}
- template <typename>
- PROTOBUF_CONSTEXPR MapValue::MapValue(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct MapValueDefaultTypeInternal {
- PROTOBUF_CONSTEXPR MapValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~MapValueDefaultTypeInternal() {}
- union {
- MapValue _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValueDefaultTypeInternal _MapValue_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
- struct MapValue_FieldsEntry_DoNotUseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR MapValue_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~MapValue_FieldsEntry_DoNotUseDefaultTypeInternal() {}
- union {
- MapValue_FieldsEntry_DoNotUse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
- inline constexpr Value::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : value_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- template <typename>
- PROTOBUF_CONSTEXPR Value::Value(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct ValueDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ValueDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ValueDefaultTypeInternal() {}
- union {
- Value _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::_pbi::ConstantInitialized) {}
- struct Document_FieldsEntry_DoNotUseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Document_FieldsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Document_FieldsEntry_DoNotUseDefaultTypeInternal() {}
- union {
- Document_FieldsEntry_DoNotUse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
- inline constexpr Document::Impl_::Impl_(
- ::_pbi::ConstantInitialized) noexcept
- : _cached_size_{0},
- fields_{},
- name_(
- &::google::protobuf::internal::fixed_address_empty_string,
- ::_pbi::ConstantInitialized()),
- create_time_{nullptr},
- update_time_{nullptr} {}
- template <typename>
- PROTOBUF_CONSTEXPR Document::Document(::_pbi::ConstantInitialized)
- : _impl_(::_pbi::ConstantInitialized()) {}
- struct DocumentDefaultTypeInternal {
- PROTOBUF_CONSTEXPR DocumentDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~DocumentDefaultTypeInternal() {}
- union {
- Document _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DocumentDefaultTypeInternal _Document_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- static ::_pb::Metadata file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[6];
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto = nullptr;
- const ::uint32_t TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document_FieldsEntry_DoNotUse, value_),
- 0,
- 1,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.name_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.fields_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.create_time_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Document, _impl_.update_time_),
- ~0u,
- ~0u,
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _internal_metadata_),
- ~0u, // no _extensions_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_._oneof_case_[0]),
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- ::_pbi::kInvalidFieldOffsetTag,
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_.value_type_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::ArrayValue, _impl_.values_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, _has_bits_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, key_),
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse, value_),
- 0,
- 1,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::MapValue, _impl_.fields_),
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- {0, 10, -1, sizeof(::google::firestore::v1::Document_FieldsEntry_DoNotUse)},
- {12, 24, -1, sizeof(::google::firestore::v1::Document)},
- {28, -1, -1, sizeof(::google::firestore::v1::Value)},
- {48, -1, -1, sizeof(::google::firestore::v1::ArrayValue)},
- {57, 67, -1, sizeof(::google::firestore::v1::MapValue_FieldsEntry_DoNotUse)},
- {69, -1, -1, sizeof(::google::firestore::v1::MapValue)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::google::firestore::v1::_Document_FieldsEntry_DoNotUse_default_instance_._instance,
- &::google::firestore::v1::_Document_default_instance_._instance,
- &::google::firestore::v1::_Value_default_instance_._instance,
- &::google::firestore::v1::_ArrayValue_default_instance_._instance,
- &::google::firestore::v1::_MapValue_FieldsEntry_DoNotUse_default_instance_._instance,
- &::google::firestore::v1::_MapValue_default_instance_._instance,
- };
- 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/protobuf/struc"
- "t.proto\032\037google/protobuf/timestamp.proto"
- "\032\030google/type/latlng.proto\"\200\002\n\010Document\022"
- "\014\n\004name\030\001 \001(\t\0229\n\006fields\030\002 \003(\0132).google.f"
- "irestore.v1.Document.FieldsEntry\022/\n\013crea"
- "te_time\030\003 \001(\0132\032.google.protobuf.Timestam"
- "p\022/\n\013update_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.Valu"
- "e:\0028\001\"\256\003\n\005Value\0220\n\nnull_value\030\013 \001(\0162\032.go"
- "ogle.protobuf.NullValueH\000\022\027\n\rboolean_val"
- "ue\030\001 \001(\010H\000\022\027\n\rinteger_value\030\002 \001(\003H\000\022\026\n\014d"
- "ouble_value\030\003 \001(\001H\000\0225\n\017timestamp_value\030\n"
- " \001(\0132\032.google.protobuf.TimestampH\000\022\026\n\014st"
- "ring_value\030\021 \001(\tH\000\022\025\n\013bytes_value\030\022 \001(\014H"
- "\000\022\031\n\017reference_value\030\005 \001(\tH\000\022.\n\017geo_poin"
- "t_value\030\010 \001(\0132\023.google.type.LatLngH\000\0226\n\013"
- "array_value\030\t \001(\0132\037.google.firestore.v1."
- "ArrayValueH\000\0222\n\tmap_value\030\006 \001(\0132\035.google"
- ".firestore.v1.MapValueH\000B\014\n\nvalue_type\"8"
- "\n\nArrayValue\022*\n\006values\030\001 \003(\0132\032.google.fi"
- "restore.v1.Value\"\220\001\n\010MapValue\0229\n\006fields\030"
- "\001 \003(\0132).google.firestore.v1.MapValue.Fie"
- "ldsEntry\032I\n\013FieldsEntry\022\013\n\003key\030\001 \001(\t\022)\n\005"
- "value\030\002 \001(\0132\032.google.firestore.v1.Value:"
- "\0028\001B\261\001\n\027com.google.firestore.v1B\rDocumen"
- "tProtoP\001Z<google.golang.org/genproto/goo"
- "gleapis/firestore/v1;firestore\242\002\004GCFS\252\002\036"
- "Google.Cloud.Firestore.V1Beta1\312\002\036Google\\"
- "Cloud\\Firestore\\V1beta1b\006proto3"
- };
- static const ::_pbi::DescriptorTable* const descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps[3] =
- {
- &::descriptor_table_google_2fprotobuf_2fstruct_2eproto,
- &::descriptor_table_google_2fprotobuf_2ftimestamp_2eproto,
- &::descriptor_table_google_2ftype_2flatlng_2eproto,
- };
- static ::absl::once_flag descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto = {
- false,
- false,
- 1231,
- descriptor_table_protodef_google_2ffirestore_2fv1_2fdocument_2eproto,
- "google/firestore/v1/document.proto",
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_deps,
- 3,
- 6,
- schemas,
- file_default_instances,
- TableStruct_google_2ffirestore_2fv1_2fdocument_2eproto::offsets,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto,
- file_level_enum_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
- file_level_service_descriptors_google_2ffirestore_2fv1_2fdocument_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter() {
- return &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_google_2ffirestore_2fv1_2fdocument_2eproto(&descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto);
- namespace google {
- namespace firestore {
- namespace v1 {
- // ===================================================================
- Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse() {}
- Document_FieldsEntry_DoNotUse::Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
- : SuperType(arena) {}
- ::google::protobuf::Metadata Document_FieldsEntry_DoNotUse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[0]);
- }
- // ===================================================================
- class Document::_Internal {
- public:
- using HasBits = decltype(std::declval<Document>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_);
- static const ::google::protobuf::Timestamp& create_time(const Document* msg);
- static void set_has_create_time(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::google::protobuf::Timestamp& update_time(const Document* msg);
- static void set_has_update_time(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- };
- const ::google::protobuf::Timestamp& Document::_Internal::create_time(const Document* msg) {
- return *msg->_impl_.create_time_;
- }
- const ::google::protobuf::Timestamp& Document::_Internal::update_time(const Document* msg) {
- return *msg->_impl_.update_time_;
- }
- void Document::clear_create_time() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.create_time_ != nullptr) _impl_.create_time_->Clear();
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- void Document::clear_update_time() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (_impl_.update_time_ != nullptr) _impl_.update_time_->Clear();
- _impl_._has_bits_[0] &= ~0x00000002u;
- }
- Document::Document(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Document)
- }
- inline PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : _has_bits_{from._has_bits_},
- _cached_size_{0},
- fields_{visibility, arena, from.fields_},
- name_(arena, from.name_) {}
- Document::Document(
- ::google::protobuf::Arena* arena,
- const Document& from)
- : ::google::protobuf::Message(arena) {
- Document* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- ::uint32_t cached_has_bits = _impl_._has_bits_[0];
- _impl_.create_time_ = (cached_has_bits & 0x00000001u)
- ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.create_time_)
- : nullptr;
- _impl_.update_time_ = (cached_has_bits & 0x00000002u)
- ? CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.update_time_)
- : nullptr;
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Document)
- }
- inline PROTOBUF_NDEBUG_INLINE Document::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : _cached_size_{0},
- fields_{visibility, arena},
- name_(arena) {}
- inline void Document::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- ::memset(reinterpret_cast<char *>(&_impl_) +
- offsetof(Impl_, create_time_),
- 0,
- offsetof(Impl_, update_time_) -
- offsetof(Impl_, create_time_) +
- sizeof(Impl_::update_time_));
- }
- Document::~Document() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Document)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Document::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.name_.Destroy();
- delete _impl_.create_time_;
- delete _impl_.update_time_;
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void Document::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Document)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.fields_.Clear();
- _impl_.name_.ClearToEmpty();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.create_time_ != nullptr);
- _impl_.create_time_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.update_time_ != nullptr);
- _impl_.update_time_->Clear();
- }
- }
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Document::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<2, 4, 4, 47, 2> Document::_table_ = {
- {
- PROTOBUF_FIELD_OFFSET(Document, _impl_._has_bits_),
- 0, // no _extensions_
- 4, 24, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967280, // skipmap
- offsetof(decltype(_table_), field_entries),
- 4, // num_field_entries
- 4, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Document_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // .google.protobuf.Timestamp update_time = 4;
- {::_pbi::TcParser::FastMtS1,
- {34, 1, 3, PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_)}},
- // string name = 1;
- {::_pbi::TcParser::FastUS1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(Document, _impl_.name_)}},
- {::_pbi::TcParser::MiniParse, {}},
- // .google.protobuf.Timestamp create_time = 3;
- {::_pbi::TcParser::FastMtS1,
- {26, 0, 2, PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // string name = 1;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.name_), -1, 0,
- (0 | ::_fl::kFcSingular | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // map<string, .google.firestore.v1.Value> fields = 2;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.fields_), -1, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
- // .google.protobuf.Timestamp create_time = 3;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_), _Internal::kHasBitsOffset + 0, 2,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.Timestamp update_time = 4;
- {PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_), _Internal::kHasBitsOffset + 1, 3,
- (0 | ::_fl::kFcOptional | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetMapAuxInfo<
- decltype(Document()._impl_.fields_)>(
- 1, 0, 0, 9,
- 11)},
- {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- }}, {{
- "\34\4\6\0\0\0\0\0"
- "google.firestore.v1.Document"
- "name"
- "fields"
- }},
- };
- ::uint8_t* Document::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Document)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // string name = 1;
- if (!this->_internal_name().empty()) {
- const std::string& _s = this->_internal_name();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.name");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // map<string, .google.firestore.v1.Value> fields = 2;
- if (!_internal_fields().empty()) {
- using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
- using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>;
- const auto& field = _internal_fields();
- if (stream->IsSerializationDeterministic() && field.size() > 1) {
- for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
- target = WireHelper::InternalSerialize(
- 2, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.fields");
- }
- } else {
- for (const auto& entry : field) {
- target = WireHelper::InternalSerialize(
- 2, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Document.fields");
- }
- }
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .google.protobuf.Timestamp create_time = 3;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 3, _Internal::create_time(this),
- _Internal::create_time(this).GetCachedSize(), target, stream);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 4, _Internal::update_time(this),
- _Internal::update_time(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Document)
- return target;
- }
- ::size_t Document::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Document)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 2;
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
- for (const auto& entry : _internal_fields()) {
- total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
- }
- // string name = 1;
- if (!this->_internal_name().empty()) {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_name());
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- // .google.protobuf.Timestamp create_time = 3;
- if (cached_has_bits & 0x00000001u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.create_time_);
- }
- // .google.protobuf.Timestamp update_time = 4;
- if (cached_has_bits & 0x00000002u) {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.update_time_);
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Document::_class_data_ = {
- Document::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Document::GetClassData() const {
- return &_class_data_;
- }
- void Document::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Document*>(&to_msg);
- auto& from = static_cast<const Document&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Document)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_impl_.fields_.MergeFrom(from._impl_.fields_);
- if (!from._internal_name().empty()) {
- _this->_internal_set_name(from._internal_name());
- }
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000003u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_create_time()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_create_time());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_update_time()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_update_time());
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Document::CopyFrom(const Document& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Document)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Document::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Document::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Document::InternalSwap(Document* PROTOBUF_RESTRICT other) {
- using std::swap;
- auto* arena = GetArena();
- ABSL_DCHECK_EQ(arena, other->GetArena());
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- _impl_.fields_.InternalSwap(&other->_impl_.fields_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
- ::google::protobuf::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Document, _impl_.update_time_)
- + sizeof(Document::_impl_.update_time_)
- - PROTOBUF_FIELD_OFFSET(Document, _impl_.create_time_)>(
- reinterpret_cast<char*>(&_impl_.create_time_),
- reinterpret_cast<char*>(&other->_impl_.create_time_));
- }
- ::google::protobuf::Metadata Document::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[1]);
- }
- // ===================================================================
- class Value::_Internal {
- public:
- static constexpr ::int32_t kOneofCaseOffset =
- PROTOBUF_FIELD_OFFSET(::google::firestore::v1::Value, _impl_._oneof_case_);
- static const ::google::protobuf::Timestamp& timestamp_value(const Value* msg);
- static const ::google::type::LatLng& geo_point_value(const Value* msg);
- static const ::google::firestore::v1::ArrayValue& array_value(const Value* msg);
- static const ::google::firestore::v1::MapValue& map_value(const Value* msg);
- };
- const ::google::protobuf::Timestamp& Value::_Internal::timestamp_value(const Value* msg) {
- return *msg->_impl_.value_type_.timestamp_value_;
- }
- const ::google::type::LatLng& Value::_Internal::geo_point_value(const Value* msg) {
- return *msg->_impl_.value_type_.geo_point_value_;
- }
- const ::google::firestore::v1::ArrayValue& Value::_Internal::array_value(const Value* msg) {
- return *msg->_impl_.value_type_.array_value_;
- }
- const ::google::firestore::v1::MapValue& Value::_Internal::map_value(const Value* msg) {
- return *msg->_impl_.value_type_.map_value_;
- }
- void Value::set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (timestamp_value) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(timestamp_value)->GetArena();
- if (message_arena != submessage_arena) {
- timestamp_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, timestamp_value, submessage_arena);
- }
- set_has_timestamp_value();
- _impl_.value_type_.timestamp_value_ = timestamp_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.timestamp_value)
- }
- void Value::clear_timestamp_value() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (value_type_case() == kTimestampValue) {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.timestamp_value_;
- }
- clear_has_value_type();
- }
- }
- void Value::set_allocated_geo_point_value(::google::type::LatLng* geo_point_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (geo_point_value) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(geo_point_value)->GetArena();
- if (message_arena != submessage_arena) {
- geo_point_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, geo_point_value, submessage_arena);
- }
- set_has_geo_point_value();
- _impl_.value_type_.geo_point_value_ = geo_point_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.geo_point_value)
- }
- void Value::clear_geo_point_value() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (value_type_case() == kGeoPointValue) {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.geo_point_value_;
- }
- clear_has_value_type();
- }
- }
- void Value::set_allocated_array_value(::google::firestore::v1::ArrayValue* array_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (array_value) {
- ::google::protobuf::Arena* submessage_arena = array_value->GetArena();
- if (message_arena != submessage_arena) {
- array_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, array_value, submessage_arena);
- }
- set_has_array_value();
- _impl_.value_type_.array_value_ = array_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.array_value)
- }
- void Value::set_allocated_map_value(::google::firestore::v1::MapValue* map_value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- clear_value_type();
- if (map_value) {
- ::google::protobuf::Arena* submessage_arena = map_value->GetArena();
- if (message_arena != submessage_arena) {
- map_value = ::google::protobuf::internal::GetOwnedMessage(message_arena, map_value, submessage_arena);
- }
- set_has_map_value();
- _impl_.value_type_.map_value_ = map_value;
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.map_value)
- }
- Value::Value(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.Value)
- }
- inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : value_type_{},
- _cached_size_{0},
- _oneof_case_{from._oneof_case_[0]} {}
- Value::Value(
- ::google::protobuf::Arena* arena,
- const Value& from)
- : ::google::protobuf::Message(arena) {
- Value* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- switch (value_type_case()) {
- case VALUE_TYPE_NOT_SET:
- break;
- case kNullValue:
- _impl_.value_type_.null_value_ = from._impl_.value_type_.null_value_;
- break;
- case kBooleanValue:
- _impl_.value_type_.boolean_value_ = from._impl_.value_type_.boolean_value_;
- break;
- case kIntegerValue:
- _impl_.value_type_.integer_value_ = from._impl_.value_type_.integer_value_;
- break;
- case kDoubleValue:
- _impl_.value_type_.double_value_ = from._impl_.value_type_.double_value_;
- break;
- case kTimestampValue:
- _impl_.value_type_.timestamp_value_ = CreateMaybeMessage<::google::protobuf::Timestamp>(arena, *from._impl_.value_type_.timestamp_value_);
- break;
- case kStringValue:
- new (&_impl_.value_type_.string_value_) decltype(_impl_.value_type_.string_value_){arena, from._impl_.value_type_.string_value_};
- break;
- case kBytesValue:
- new (&_impl_.value_type_.bytes_value_) decltype(_impl_.value_type_.bytes_value_){arena, from._impl_.value_type_.bytes_value_};
- break;
- case kReferenceValue:
- new (&_impl_.value_type_.reference_value_) decltype(_impl_.value_type_.reference_value_){arena, from._impl_.value_type_.reference_value_};
- break;
- case kGeoPointValue:
- _impl_.value_type_.geo_point_value_ = CreateMaybeMessage<::google::type::LatLng>(arena, *from._impl_.value_type_.geo_point_value_);
- break;
- case kArrayValue:
- _impl_.value_type_.array_value_ = CreateMaybeMessage<::google::firestore::v1::ArrayValue>(arena, *from._impl_.value_type_.array_value_);
- break;
- case kMapValue:
- _impl_.value_type_.map_value_ = CreateMaybeMessage<::google::firestore::v1::MapValue>(arena, *from._impl_.value_type_.map_value_);
- break;
- }
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.Value)
- }
- inline PROTOBUF_NDEBUG_INLINE Value::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : value_type_{},
- _cached_size_{0},
- _oneof_case_{} {}
- inline void Value::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- Value::~Value() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.Value)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void Value::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- if (has_value_type()) {
- clear_value_type();
- }
- _impl_.~Impl_();
- }
- void Value::clear_value_type() {
- // @@protoc_insertion_point(one_of_clear_start:google.firestore.v1.Value)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- switch (value_type_case()) {
- case kNullValue: {
- // No need to clear
- break;
- }
- case kBooleanValue: {
- // No need to clear
- break;
- }
- case kIntegerValue: {
- // No need to clear
- break;
- }
- case kDoubleValue: {
- // No need to clear
- break;
- }
- case kTimestampValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.timestamp_value_;
- }
- break;
- }
- case kStringValue: {
- _impl_.value_type_.string_value_.Destroy();
- break;
- }
- case kBytesValue: {
- _impl_.value_type_.bytes_value_.Destroy();
- break;
- }
- case kReferenceValue: {
- _impl_.value_type_.reference_value_.Destroy();
- break;
- }
- case kGeoPointValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.geo_point_value_;
- }
- break;
- }
- case kArrayValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.array_value_;
- }
- break;
- }
- case kMapValue: {
- if (GetArena() == nullptr) {
- delete _impl_.value_type_.map_value_;
- }
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- _impl_._oneof_case_[0] = VALUE_TYPE_NOT_SET;
- }
- PROTOBUF_NOINLINE void Value::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.Value)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- clear_value_type();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* Value::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 11, 4, 69, 2> Value::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 18, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294768712, // skipmap
- offsetof(decltype(_table_), field_entries),
- 11, // num_field_entries
- 4, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_Value_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // bool boolean_value = 1;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.boolean_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kBool)},
- // int64 integer_value = 2;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.integer_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kInt64)},
- // double double_value = 3;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.double_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kDouble)},
- // string reference_value = 5;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.reference_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // .google.firestore.v1.MapValue map_value = 6;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.map_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.type.LatLng geo_point_value = 8;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.geo_point_value_), _Internal::kOneofCaseOffset + 0, 1,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.firestore.v1.ArrayValue array_value = 9;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.array_value_), _Internal::kOneofCaseOffset + 0, 2,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.Timestamp timestamp_value = 10;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.timestamp_value_), _Internal::kOneofCaseOffset + 0, 3,
- (0 | ::_fl::kFcOneof | ::_fl::kMessage | ::_fl::kTvTable)},
- // .google.protobuf.NullValue null_value = 11;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.null_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kOpenEnum)},
- // string string_value = 17;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.string_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kUtf8String | ::_fl::kRepAString)},
- // bytes bytes_value = 18;
- {PROTOBUF_FIELD_OFFSET(Value, _impl_.value_type_.bytes_value_), _Internal::kOneofCaseOffset + 0, 0,
- (0 | ::_fl::kFcOneof | ::_fl::kBytes | ::_fl::kRepAString)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::MapValue>()},
- {::_pbi::TcParser::GetTable<::google::type::LatLng>()},
- {::_pbi::TcParser::GetTable<::google::firestore::v1::ArrayValue>()},
- {::_pbi::TcParser::GetTable<::google::protobuf::Timestamp>()},
- }}, {{
- "\31\0\0\0\17\0\0\0\0\0\14\0\0\0\0\0"
- "google.firestore.v1.Value"
- "reference_value"
- "string_value"
- }},
- };
- ::uint8_t* Value::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.Value)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- switch (value_type_case()) {
- case kBooleanValue: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 1, this->_internal_boolean_value(), target);
- break;
- }
- case kIntegerValue: {
- target = ::google::protobuf::internal::WireFormatLite::
- WriteInt64ToArrayWithField<2>(
- stream, this->_internal_integer_value(), target);
- break;
- }
- case kDoubleValue: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteDoubleToArray(
- 3, this->_internal_double_value(), target);
- break;
- }
- case kReferenceValue: {
- const std::string& _s = this->_internal_reference_value();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.reference_value");
- target = stream->WriteStringMaybeAliased(5, _s, target);
- break;
- }
- case kMapValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 6, _Internal::map_value(this),
- _Internal::map_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kGeoPointValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 8, _Internal::geo_point_value(this),
- _Internal::geo_point_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kArrayValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 9, _Internal::array_value(this),
- _Internal::array_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kTimestampValue: {
- target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
- 10, _Internal::timestamp_value(this),
- _Internal::timestamp_value(this).GetCachedSize(), target, stream);
- break;
- }
- case kNullValue: {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteEnumToArray(
- 11, this->_internal_null_value(), target);
- break;
- }
- case kStringValue: {
- const std::string& _s = this->_internal_string_value();
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.Value.string_value");
- target = stream->WriteStringMaybeAliased(17, _s, target);
- break;
- }
- case kBytesValue: {
- const std::string& _s = this->_internal_bytes_value();
- target = stream->WriteBytesMaybeAliased(18, _s, target);
- break;
- }
- default:
- break;
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.Value)
- return target;
- }
- ::size_t Value::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.Value)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- switch (value_type_case()) {
- // .google.protobuf.NullValue null_value = 11;
- case kNullValue: {
- total_size += 1 +
- ::_pbi::WireFormatLite::EnumSize(this->_internal_null_value());
- break;
- }
- // bool boolean_value = 1;
- case kBooleanValue: {
- total_size += 2;
- break;
- }
- // int64 integer_value = 2;
- case kIntegerValue: {
- total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
- this->_internal_integer_value());
- break;
- }
- // double double_value = 3;
- case kDoubleValue: {
- total_size += 9;
- break;
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- case kTimestampValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.timestamp_value_);
- break;
- }
- // string string_value = 17;
- case kStringValue: {
- total_size += 2 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_string_value());
- break;
- }
- // bytes bytes_value = 18;
- case kBytesValue: {
- total_size += 2 + ::google::protobuf::internal::WireFormatLite::BytesSize(
- this->_internal_bytes_value());
- break;
- }
- // string reference_value = 5;
- case kReferenceValue: {
- total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
- this->_internal_reference_value());
- break;
- }
- // .google.type.LatLng geo_point_value = 8;
- case kGeoPointValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.geo_point_value_);
- break;
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- case kArrayValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.array_value_);
- break;
- }
- // .google.firestore.v1.MapValue map_value = 6;
- case kMapValue: {
- total_size +=
- 1 + ::google::protobuf::internal::WireFormatLite::MessageSize(*_impl_.value_type_.map_value_);
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData Value::_class_data_ = {
- Value::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* Value::GetClassData() const {
- return &_class_data_;
- }
- void Value::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<Value*>(&to_msg);
- auto& from = static_cast<const Value&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.Value)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- switch (from.value_type_case()) {
- case kNullValue: {
- _this->_internal_set_null_value(from._internal_null_value());
- break;
- }
- case kBooleanValue: {
- _this->_internal_set_boolean_value(from._internal_boolean_value());
- break;
- }
- case kIntegerValue: {
- _this->_internal_set_integer_value(from._internal_integer_value());
- break;
- }
- case kDoubleValue: {
- _this->_internal_set_double_value(from._internal_double_value());
- break;
- }
- case kTimestampValue: {
- _this->_internal_mutable_timestamp_value()->::google::protobuf::Timestamp::MergeFrom(
- from._internal_timestamp_value());
- break;
- }
- case kStringValue: {
- _this->_internal_set_string_value(from._internal_string_value());
- break;
- }
- case kBytesValue: {
- _this->_internal_set_bytes_value(from._internal_bytes_value());
- break;
- }
- case kReferenceValue: {
- _this->_internal_set_reference_value(from._internal_reference_value());
- break;
- }
- case kGeoPointValue: {
- _this->_internal_mutable_geo_point_value()->::google::type::LatLng::MergeFrom(
- from._internal_geo_point_value());
- break;
- }
- case kArrayValue: {
- _this->_internal_mutable_array_value()->::google::firestore::v1::ArrayValue::MergeFrom(
- from._internal_array_value());
- break;
- }
- case kMapValue: {
- _this->_internal_mutable_map_value()->::google::firestore::v1::MapValue::MergeFrom(
- from._internal_map_value());
- break;
- }
- case VALUE_TYPE_NOT_SET: {
- break;
- }
- }
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void Value::CopyFrom(const Value& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.Value)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool Value::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* Value::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void Value::InternalSwap(Value* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_.value_type_, other->_impl_.value_type_);
- swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
- }
- ::google::protobuf::Metadata Value::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[2]);
- }
- // ===================================================================
- class ArrayValue::_Internal {
- public:
- };
- ArrayValue::ArrayValue(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.ArrayValue)
- }
- inline PROTOBUF_NDEBUG_INLINE ArrayValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : values_{visibility, arena, from.values_},
- _cached_size_{0} {}
- ArrayValue::ArrayValue(
- ::google::protobuf::Arena* arena,
- const ArrayValue& from)
- : ::google::protobuf::Message(arena) {
- ArrayValue* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.ArrayValue)
- }
- inline PROTOBUF_NDEBUG_INLINE ArrayValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : values_{visibility, arena},
- _cached_size_{0} {}
- inline void ArrayValue::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- ArrayValue::~ArrayValue() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.ArrayValue)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void ArrayValue::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void ArrayValue::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.ArrayValue)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.values_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* ArrayValue::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 1, 0, 2> ArrayValue::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 1, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_ArrayValue_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- // repeated .google.firestore.v1.Value values = 1;
- {::_pbi::TcParser::FastMtR1,
- {10, 63, 0, PROTOBUF_FIELD_OFFSET(ArrayValue, _impl_.values_)}},
- }}, {{
- 65535, 65535
- }}, {{
- // repeated .google.firestore.v1.Value values = 1;
- {PROTOBUF_FIELD_OFFSET(ArrayValue, _impl_.values_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
- }}, {{
- {::_pbi::TcParser::GetTable<::google::firestore::v1::Value>()},
- }}, {{
- }},
- };
- ::uint8_t* ArrayValue::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.ArrayValue)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_values_size()); i < n; i++) {
- const auto& repfield = this->_internal_values().Get(i);
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.ArrayValue)
- return target;
- }
- ::size_t ArrayValue::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.ArrayValue)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .google.firestore.v1.Value values = 1;
- total_size += 1UL * this->_internal_values_size();
- for (const auto& msg : this->_internal_values()) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData ArrayValue::_class_data_ = {
- ArrayValue::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* ArrayValue::GetClassData() const {
- return &_class_data_;
- }
- void ArrayValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<ArrayValue*>(&to_msg);
- auto& from = static_cast<const ArrayValue&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.ArrayValue)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_values()->MergeFrom(
- from._internal_values());
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void ArrayValue::CopyFrom(const ArrayValue& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.ArrayValue)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool ArrayValue::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* ArrayValue::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void ArrayValue::InternalSwap(ArrayValue* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.values_.InternalSwap(&other->_impl_.values_);
- }
- ::google::protobuf::Metadata ArrayValue::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[3]);
- }
- // ===================================================================
- MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse() {}
- MapValue_FieldsEntry_DoNotUse::MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena)
- : SuperType(arena) {}
- ::google::protobuf::Metadata MapValue_FieldsEntry_DoNotUse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[4]);
- }
- // ===================================================================
- class MapValue::_Internal {
- public:
- };
- MapValue::MapValue(::google::protobuf::Arena* arena)
- : ::google::protobuf::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:google.firestore.v1.MapValue)
- }
- inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility, ::google::protobuf::Arena* arena,
- const Impl_& from)
- : fields_{visibility, arena, from.fields_},
- _cached_size_{0} {}
- MapValue::MapValue(
- ::google::protobuf::Arena* arena,
- const MapValue& from)
- : ::google::protobuf::Message(arena) {
- MapValue* const _this = this;
- (void)_this;
- _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
- from._internal_metadata_);
- new (&_impl_) Impl_(internal_visibility(), arena, from._impl_);
- // @@protoc_insertion_point(copy_constructor:google.firestore.v1.MapValue)
- }
- inline PROTOBUF_NDEBUG_INLINE MapValue::Impl_::Impl_(
- ::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena)
- : fields_{visibility, arena},
- _cached_size_{0} {}
- inline void MapValue::SharedCtor(::_pb::Arena* arena) {
- new (&_impl_) Impl_(internal_visibility(), arena);
- }
- MapValue::~MapValue() {
- // @@protoc_insertion_point(destructor:google.firestore.v1.MapValue)
- _internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
- SharedDtor();
- }
- inline void MapValue::SharedDtor() {
- ABSL_DCHECK(GetArena() == nullptr);
- _impl_.~Impl_();
- }
- PROTOBUF_NOINLINE void MapValue::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.firestore.v1.MapValue)
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.fields_.Clear();
- _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
- }
- const char* MapValue::_InternalParse(
- const char* ptr, ::_pbi::ParseContext* ctx) {
- ptr = ::_pbi::TcParser::ParseLoop(this, ptr, ctx, &_table_.header);
- return ptr;
- }
- PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
- const ::_pbi::TcParseTable<0, 1, 2, 43, 2> MapValue::_table_ = {
- {
- 0, // no _has_bits_
- 0, // no _extensions_
- 1, 0, // max_field_number, fast_idx_mask
- offsetof(decltype(_table_), field_lookup_table),
- 4294967294, // skipmap
- offsetof(decltype(_table_), field_entries),
- 1, // num_field_entries
- 2, // num_aux_entries
- offsetof(decltype(_table_), aux_entries),
- &_MapValue_default_instance_._instance,
- ::_pbi::TcParser::GenericFallback, // fallback
- }, {{
- {::_pbi::TcParser::MiniParse, {}},
- }}, {{
- 65535, 65535
- }}, {{
- // map<string, .google.firestore.v1.Value> fields = 1;
- {PROTOBUF_FIELD_OFFSET(MapValue, _impl_.fields_), 0, 0,
- (0 | ::_fl::kFcRepeated | ::_fl::kMap)},
- }}, {{
- {::_pbi::TcParser::GetMapAuxInfo<
- decltype(MapValue()._impl_.fields_)>(
- 1, 0, 0, 9,
- 11)},
- {::_pbi::TcParser::CreateInArenaStorageCb<::google::firestore::v1::Value>},
- }}, {{
- "\34\6\0\0\0\0\0\0"
- "google.firestore.v1.MapValue"
- "fields"
- }},
- };
- ::uint8_t* MapValue::_InternalSerialize(
- ::uint8_t* target,
- ::google::protobuf::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:google.firestore.v1.MapValue)
- ::uint32_t cached_has_bits = 0;
- (void)cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 1;
- if (!_internal_fields().empty()) {
- using MapType = ::google::protobuf::Map<std::string, ::google::firestore::v1::Value>;
- using WireHelper = _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>;
- const auto& field = _internal_fields();
- if (stream->IsSerializationDeterministic() && field.size() > 1) {
- for (const auto& entry : ::google::protobuf::internal::MapSorterPtr<MapType>(field)) {
- target = WireHelper::InternalSerialize(
- 1, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.MapValue.fields");
- }
- } else {
- for (const auto& entry : field) {
- target = WireHelper::InternalSerialize(
- 1, entry.first, entry.second, target, stream);
- ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
- entry.first.data(), static_cast<int>(entry.first.length()),
- ::google::protobuf::internal::WireFormatLite::SERIALIZE, "google.firestore.v1.MapValue.fields");
- }
- }
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target =
- ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.firestore.v1.MapValue)
- return target;
- }
- ::size_t MapValue::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.firestore.v1.MapValue)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // map<string, .google.firestore.v1.Value> fields = 1;
- total_size += 1 * ::google::protobuf::internal::FromIntSize(_internal_fields_size());
- for (const auto& entry : _internal_fields()) {
- total_size += _pbi::MapEntryFuncs<std::string, ::google::firestore::v1::Value,
- _pbi::WireFormatLite::TYPE_STRING,
- _pbi::WireFormatLite::TYPE_MESSAGE>::ByteSizeLong(entry.first, entry.second);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::google::protobuf::Message::ClassData MapValue::_class_data_ = {
- MapValue::MergeImpl,
- nullptr, // OnDemandRegisterArenaDtor
- };
- const ::google::protobuf::Message::ClassData* MapValue::GetClassData() const {
- return &_class_data_;
- }
- void MapValue::MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg) {
- auto* const _this = static_cast<MapValue*>(&to_msg);
- auto& from = static_cast<const MapValue&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:google.firestore.v1.MapValue)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_impl_.fields_.MergeFrom(from._impl_.fields_);
- _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
- }
- void MapValue::CopyFrom(const MapValue& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.firestore.v1.MapValue)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- PROTOBUF_NOINLINE bool MapValue::IsInitialized() const {
- return true;
- }
- ::_pbi::CachedSize* MapValue::AccessCachedSize() const {
- return &_impl_._cached_size_;
- }
- void MapValue::InternalSwap(MapValue* PROTOBUF_RESTRICT other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _impl_.fields_.InternalSwap(&other->_impl_.fields_);
- }
- ::google::protobuf::Metadata MapValue::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_getter, &descriptor_table_google_2ffirestore_2fv1_2fdocument_2eproto_once,
- file_level_metadata_google_2ffirestore_2fv1_2fdocument_2eproto[5]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|