| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584 |
- /*
- * 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
- #ifndef PROTOBUF_google_2ffirestore_2fv1_2fdocument_2eproto__INCLUDED
- #define PROTOBUF_google_2ffirestore_2fv1_2fdocument_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3005000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/map.h> // IWYU pragma: export
- #include <google/protobuf/map_entry.h>
- #include <google/protobuf/map_field_inl.h>
- #include <google/protobuf/unknown_field_set.h>
- #include "google/api/annotations.pb.h"
- #include <google/protobuf/struct.pb.h>
- #include <google/protobuf/timestamp.pb.h>
- #include "google/type/latlng.pb.h"
- // @@protoc_insertion_point(includes)
- namespace protobuf_google_2ffirestore_2fv1_2fdocument_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[6];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- void InitDefaultsDocument_FieldsEntry_DoNotUseImpl();
- void InitDefaultsDocument_FieldsEntry_DoNotUse();
- void InitDefaultsDocumentImpl();
- void InitDefaultsDocument();
- void InitDefaultsArrayValueImpl();
- void InitDefaultsArrayValue();
- inline void InitDefaults() {
- InitDefaultsDocument_FieldsEntry_DoNotUse();
- InitDefaultsDocument();
- InitDefaultsArrayValue();
- }
- } // namespace protobuf_google_2ffirestore_2fv1_2fdocument_2eproto
- namespace google {
- namespace firestore {
- namespace v1 {
- class ArrayValue;
- class ArrayValueDefaultTypeInternal;
- extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
- class Document;
- class DocumentDefaultTypeInternal;
- extern DocumentDefaultTypeInternal _Document_default_instance_;
- class Document_FieldsEntry_DoNotUse;
- class Document_FieldsEntry_DoNotUseDefaultTypeInternal;
- extern Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
- class MapValue;
- class MapValueDefaultTypeInternal;
- extern MapValueDefaultTypeInternal _MapValue_default_instance_;
- class MapValue_FieldsEntry_DoNotUse;
- class MapValue_FieldsEntry_DoNotUseDefaultTypeInternal;
- extern MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
- class Value;
- class ValueDefaultTypeInternal;
- extern ValueDefaultTypeInternal _Value_default_instance_;
- } // namespace v1
- } // namespace firestore
- } // namespace google
- namespace google {
- namespace firestore {
- namespace v1 {
- // ===================================================================
- class Document_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Document_FieldsEntry_DoNotUse,
- ::std::string, ::google::firestore::v1::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 > {
- public:
- typedef ::google::protobuf::internal::MapEntry<Document_FieldsEntry_DoNotUse,
- ::std::string, ::google::firestore::v1::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 > SuperType;
- Document_FieldsEntry_DoNotUse();
- Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
- void MergeFrom(const Document_FieldsEntry_DoNotUse& other);
- static const Document_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Document_FieldsEntry_DoNotUse*>(&_Document_FieldsEntry_DoNotUse_default_instance_); }
- void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
- ::google::protobuf::Metadata GetMetadata() const;
- };
- // -------------------------------------------------------------------
- class Document : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Document) */ {
- public:
- Document();
- virtual ~Document();
- Document(const Document& from);
- inline Document& operator=(const Document& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Document(Document&& from) noexcept
- : Document() {
- *this = ::std::move(from);
- }
- inline Document& operator=(Document&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const Document& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Document* internal_default_instance() {
- return reinterpret_cast<const Document*>(
- &_Document_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 1;
- void Swap(Document* other);
- friend void swap(Document& a, Document& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Document* New() const PROTOBUF_FINAL { return New(NULL); }
- Document* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const Document& from);
- void MergeFrom(const Document& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(Document* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // map<string, .google.firestore.v1.Value> fields = 2;
- int fields_size() const;
- void clear_fields();
- static const int kFieldsFieldNumber = 2;
- const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
- fields() const;
- ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
- mutable_fields();
- // string name = 1;
- void clear_name();
- static const int kNameFieldNumber = 1;
- const ::std::string& name() const;
- void set_name(const ::std::string& value);
- #if LANG_CXX11
- void set_name(::std::string&& value);
- #endif
- void set_name(const char* value);
- void set_name(const char* value, size_t size);
- ::std::string* mutable_name();
- ::std::string* release_name();
- void set_allocated_name(::std::string* name);
- // .google.protobuf.Timestamp create_time = 3;
- bool has_create_time() const;
- void clear_create_time();
- static const int kCreateTimeFieldNumber = 3;
- const ::google::protobuf::Timestamp& create_time() const;
- ::google::protobuf::Timestamp* release_create_time();
- ::google::protobuf::Timestamp* mutable_create_time();
- void set_allocated_create_time(::google::protobuf::Timestamp* create_time);
- // .google.protobuf.Timestamp update_time = 4;
- bool has_update_time() const;
- void clear_update_time();
- static const int kUpdateTimeFieldNumber = 4;
- const ::google::protobuf::Timestamp& update_time() const;
- ::google::protobuf::Timestamp* release_update_time();
- ::google::protobuf::Timestamp* mutable_update_time();
- void set_allocated_update_time(::google::protobuf::Timestamp* update_time);
- // @@protoc_insertion_point(class_scope:google.firestore.v1.Document)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::MapField<
- Document_FieldsEntry_DoNotUse,
- ::std::string, ::google::firestore::v1::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 > fields_;
- ::google::protobuf::internal::ArenaStringPtr name_;
- ::google::protobuf::Timestamp* create_time_;
- ::google::protobuf::Timestamp* update_time_;
- mutable int _cached_size_;
- friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
- friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsDocumentImpl();
- };
- // -------------------------------------------------------------------
- class Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Value) */ {
- public:
- Value();
- virtual ~Value();
- Value(const Value& from);
- inline Value& operator=(const Value& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Value(Value&& from) noexcept
- : Value() {
- *this = ::std::move(from);
- }
- inline Value& operator=(Value&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const Value& default_instance();
- enum ValueTypeCase {
- kNullValue = 11,
- kBooleanValue = 1,
- kIntegerValue = 2,
- kDoubleValue = 3,
- kTimestampValue = 10,
- kStringValue = 17,
- kBytesValue = 18,
- kReferenceValue = 5,
- kGeoPointValue = 8,
- kArrayValue = 9,
- kMapValue = 6,
- VALUE_TYPE_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Value* internal_default_instance() {
- return reinterpret_cast<const Value*>(
- &_Value_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 2;
- void Swap(Value* other);
- friend void swap(Value& a, Value& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Value* New() const PROTOBUF_FINAL { return New(NULL); }
- Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const Value& from);
- void MergeFrom(const Value& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(Value* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // .google.protobuf.NullValue null_value = 11;
- private:
- bool has_null_value() const;
- public:
- void clear_null_value();
- static const int kNullValueFieldNumber = 11;
- ::google::protobuf::NullValue null_value() const;
- void set_null_value(::google::protobuf::NullValue value);
- // bool boolean_value = 1;
- private:
- bool has_boolean_value() const;
- public:
- void clear_boolean_value();
- static const int kBooleanValueFieldNumber = 1;
- bool boolean_value() const;
- void set_boolean_value(bool value);
- // int64 integer_value = 2;
- private:
- bool has_integer_value() const;
- public:
- void clear_integer_value();
- static const int kIntegerValueFieldNumber = 2;
- ::google::protobuf::int64 integer_value() const;
- void set_integer_value(::google::protobuf::int64 value);
- // double double_value = 3;
- private:
- bool has_double_value() const;
- public:
- void clear_double_value();
- static const int kDoubleValueFieldNumber = 3;
- double double_value() const;
- void set_double_value(double value);
- // .google.protobuf.Timestamp timestamp_value = 10;
- bool has_timestamp_value() const;
- void clear_timestamp_value();
- static const int kTimestampValueFieldNumber = 10;
- const ::google::protobuf::Timestamp& timestamp_value() const;
- ::google::protobuf::Timestamp* release_timestamp_value();
- ::google::protobuf::Timestamp* mutable_timestamp_value();
- void set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value);
- // string string_value = 17;
- private:
- bool has_string_value() const;
- public:
- void clear_string_value();
- static const int kStringValueFieldNumber = 17;
- const ::std::string& string_value() const;
- void set_string_value(const ::std::string& value);
- #if LANG_CXX11
- void set_string_value(::std::string&& value);
- #endif
- void set_string_value(const char* value);
- void set_string_value(const char* value, size_t size);
- ::std::string* mutable_string_value();
- ::std::string* release_string_value();
- void set_allocated_string_value(::std::string* string_value);
- // bytes bytes_value = 18;
- private:
- bool has_bytes_value() const;
- public:
- void clear_bytes_value();
- static const int kBytesValueFieldNumber = 18;
- const ::std::string& bytes_value() const;
- void set_bytes_value(const ::std::string& value);
- #if LANG_CXX11
- void set_bytes_value(::std::string&& value);
- #endif
- void set_bytes_value(const char* value);
- void set_bytes_value(const void* value, size_t size);
- ::std::string* mutable_bytes_value();
- ::std::string* release_bytes_value();
- void set_allocated_bytes_value(::std::string* bytes_value);
- // string reference_value = 5;
- private:
- bool has_reference_value() const;
- public:
- void clear_reference_value();
- static const int kReferenceValueFieldNumber = 5;
- const ::std::string& reference_value() const;
- void set_reference_value(const ::std::string& value);
- #if LANG_CXX11
- void set_reference_value(::std::string&& value);
- #endif
- void set_reference_value(const char* value);
- void set_reference_value(const char* value, size_t size);
- ::std::string* mutable_reference_value();
- ::std::string* release_reference_value();
- void set_allocated_reference_value(::std::string* reference_value);
- // .google.type.LatLng geo_point_value = 8;
- bool has_geo_point_value() const;
- void clear_geo_point_value();
- static const int kGeoPointValueFieldNumber = 8;
- const ::google::type::LatLng& geo_point_value() const;
- ::google::type::LatLng* release_geo_point_value();
- ::google::type::LatLng* mutable_geo_point_value();
- void set_allocated_geo_point_value(::google::type::LatLng* geo_point_value);
- // .google.firestore.v1.ArrayValue array_value = 9;
- bool has_array_value() const;
- void clear_array_value();
- static const int kArrayValueFieldNumber = 9;
- const ::google::firestore::v1::ArrayValue& array_value() const;
- ::google::firestore::v1::ArrayValue* release_array_value();
- ::google::firestore::v1::ArrayValue* mutable_array_value();
- void set_allocated_array_value(::google::firestore::v1::ArrayValue* array_value);
- // .google.firestore.v1.MapValue map_value = 6;
- bool has_map_value() const;
- void clear_map_value();
- static const int kMapValueFieldNumber = 6;
- const ::google::firestore::v1::MapValue& map_value() const;
- ::google::firestore::v1::MapValue* release_map_value();
- ::google::firestore::v1::MapValue* mutable_map_value();
- void set_allocated_map_value(::google::firestore::v1::MapValue* map_value);
- ValueTypeCase value_type_case() const;
- // @@protoc_insertion_point(class_scope:google.firestore.v1.Value)
- private:
- void set_has_null_value();
- void set_has_boolean_value();
- void set_has_integer_value();
- void set_has_double_value();
- void set_has_timestamp_value();
- void set_has_string_value();
- void set_has_bytes_value();
- void set_has_reference_value();
- void set_has_geo_point_value();
- void set_has_array_value();
- void set_has_map_value();
- inline bool has_value_type() const;
- void clear_value_type();
- inline void clear_has_value_type();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- union ValueTypeUnion {
- ValueTypeUnion() {}
- int null_value_;
- bool boolean_value_;
- ::google::protobuf::int64 integer_value_;
- double double_value_;
- ::google::protobuf::Timestamp* timestamp_value_;
- ::google::protobuf::internal::ArenaStringPtr string_value_;
- ::google::protobuf::internal::ArenaStringPtr bytes_value_;
- ::google::protobuf::internal::ArenaStringPtr reference_value_;
- ::google::type::LatLng* geo_point_value_;
- ::google::firestore::v1::ArrayValue* array_value_;
- ::google::firestore::v1::MapValue* map_value_;
- } value_type_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
- friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
- };
- // -------------------------------------------------------------------
- class ArrayValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ArrayValue) */ {
- public:
- ArrayValue();
- virtual ~ArrayValue();
- ArrayValue(const ArrayValue& from);
- inline ArrayValue& operator=(const ArrayValue& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- ArrayValue(ArrayValue&& from) noexcept
- : ArrayValue() {
- *this = ::std::move(from);
- }
- inline ArrayValue& operator=(ArrayValue&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const ArrayValue& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const ArrayValue* internal_default_instance() {
- return reinterpret_cast<const ArrayValue*>(
- &_ArrayValue_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 3;
- void Swap(ArrayValue* other);
- friend void swap(ArrayValue& a, ArrayValue& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline ArrayValue* New() const PROTOBUF_FINAL { return New(NULL); }
- ArrayValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const ArrayValue& from);
- void MergeFrom(const ArrayValue& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(ArrayValue* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .google.firestore.v1.Value values = 1;
- int values_size() const;
- void clear_values();
- static const int kValuesFieldNumber = 1;
- const ::google::firestore::v1::Value& values(int index) const;
- ::google::firestore::v1::Value* mutable_values(int index);
- ::google::firestore::v1::Value* add_values();
- ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
- mutable_values();
- const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
- values() const;
- // @@protoc_insertion_point(class_scope:google.firestore.v1.ArrayValue)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > values_;
- mutable int _cached_size_;
- friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
- friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
- };
- // -------------------------------------------------------------------
- class MapValue_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapValue_FieldsEntry_DoNotUse,
- ::std::string, ::google::firestore::v1::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 > {
- public:
- typedef ::google::protobuf::internal::MapEntry<MapValue_FieldsEntry_DoNotUse,
- ::std::string, ::google::firestore::v1::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 > SuperType;
- MapValue_FieldsEntry_DoNotUse();
- MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
- void MergeFrom(const MapValue_FieldsEntry_DoNotUse& other);
- static const MapValue_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapValue_FieldsEntry_DoNotUse*>(&_MapValue_FieldsEntry_DoNotUse_default_instance_); }
- void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
- ::google::protobuf::Metadata GetMetadata() const;
- };
- // -------------------------------------------------------------------
- class MapValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.MapValue) */ {
- public:
- MapValue();
- virtual ~MapValue();
- MapValue(const MapValue& from);
- inline MapValue& operator=(const MapValue& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- MapValue(MapValue&& from) noexcept
- : MapValue() {
- *this = ::std::move(from);
- }
- inline MapValue& operator=(MapValue&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- static const ::google::protobuf::Descriptor* descriptor();
- static const MapValue& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const MapValue* internal_default_instance() {
- return reinterpret_cast<const MapValue*>(
- &_MapValue_default_instance_);
- }
- static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 5;
- void Swap(MapValue* other);
- friend void swap(MapValue& a, MapValue& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline MapValue* New() const PROTOBUF_FINAL { return New(NULL); }
- MapValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const MapValue& from);
- void MergeFrom(const MapValue& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(MapValue* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // map<string, .google.firestore.v1.Value> fields = 1;
- int fields_size() const;
- void clear_fields();
- static const int kFieldsFieldNumber = 1;
- const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
- fields() const;
- ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
- mutable_fields();
- // @@protoc_insertion_point(class_scope:google.firestore.v1.MapValue)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::MapField<
- MapValue_FieldsEntry_DoNotUse,
- ::std::string, ::google::firestore::v1::Value,
- ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
- ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
- 0 > fields_;
- mutable int _cached_size_;
- friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
- friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // Document
- // string name = 1;
- inline void Document::clear_name() {
- name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline const ::std::string& Document::name() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Document.name)
- return name_.GetNoArena();
- }
- inline void Document::set_name(const ::std::string& value) {
-
- name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.Document.name)
- }
- #if LANG_CXX11
- inline void Document::set_name(::std::string&& value) {
-
- name_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Document.name)
- }
- #endif
- inline void Document::set_name(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.Document.name)
- }
- inline void Document::set_name(const char* value, size_t size) {
-
- name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Document.name)
- }
- inline ::std::string* Document::mutable_name() {
-
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.name)
- return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* Document::release_name() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Document.name)
-
- return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void Document::set_allocated_name(::std::string* name) {
- if (name != NULL) {
-
- } else {
-
- }
- name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.name)
- }
- // map<string, .google.firestore.v1.Value> fields = 2;
- inline int Document::fields_size() const {
- return fields_.size();
- }
- inline void Document::clear_fields() {
- fields_.Clear();
- }
- inline const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
- Document::fields() const {
- // @@protoc_insertion_point(field_map:google.firestore.v1.Document.fields)
- return fields_.GetMap();
- }
- inline ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
- Document::mutable_fields() {
- // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.Document.fields)
- return fields_.MutableMap();
- }
- // .google.protobuf.Timestamp create_time = 3;
- inline bool Document::has_create_time() const {
- return this != internal_default_instance() && create_time_ != NULL;
- }
- inline const ::google::protobuf::Timestamp& Document::create_time() const {
- const ::google::protobuf::Timestamp* p = create_time_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.Document.create_time)
- return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
- &::google::protobuf::_Timestamp_default_instance_);
- }
- inline ::google::protobuf::Timestamp* Document::release_create_time() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Document.create_time)
-
- ::google::protobuf::Timestamp* temp = create_time_;
- create_time_ = NULL;
- return temp;
- }
- inline ::google::protobuf::Timestamp* Document::mutable_create_time() {
-
- if (create_time_ == NULL) {
- create_time_ = new ::google::protobuf::Timestamp;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.create_time)
- return create_time_;
- }
- inline void Document::set_allocated_create_time(::google::protobuf::Timestamp* create_time) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(create_time_);
- }
- if (create_time) {
- ::google::protobuf::Arena* submessage_arena =
- reinterpret_cast< ::google::protobuf::MessageLite*>(create_time)->GetArena();
- if (message_arena != submessage_arena) {
- create_time = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, create_time, submessage_arena);
- }
-
- } else {
-
- }
- create_time_ = create_time;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.create_time)
- }
- // .google.protobuf.Timestamp update_time = 4;
- inline bool Document::has_update_time() const {
- return this != internal_default_instance() && update_time_ != NULL;
- }
- inline const ::google::protobuf::Timestamp& Document::update_time() const {
- const ::google::protobuf::Timestamp* p = update_time_;
- // @@protoc_insertion_point(field_get:google.firestore.v1.Document.update_time)
- return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
- &::google::protobuf::_Timestamp_default_instance_);
- }
- inline ::google::protobuf::Timestamp* Document::release_update_time() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Document.update_time)
-
- ::google::protobuf::Timestamp* temp = update_time_;
- update_time_ = NULL;
- return temp;
- }
- inline ::google::protobuf::Timestamp* Document::mutable_update_time() {
-
- if (update_time_ == NULL) {
- update_time_ = new ::google::protobuf::Timestamp;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.update_time)
- return update_time_;
- }
- inline void Document::set_allocated_update_time(::google::protobuf::Timestamp* update_time) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete reinterpret_cast< ::google::protobuf::MessageLite*>(update_time_);
- }
- if (update_time) {
- ::google::protobuf::Arena* submessage_arena =
- reinterpret_cast< ::google::protobuf::MessageLite*>(update_time)->GetArena();
- if (message_arena != submessage_arena) {
- update_time = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, update_time, submessage_arena);
- }
-
- } else {
-
- }
- update_time_ = update_time;
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.update_time)
- }
- // -------------------------------------------------------------------
- // Value
- // .google.protobuf.NullValue null_value = 11;
- inline bool Value::has_null_value() const {
- return value_type_case() == kNullValue;
- }
- inline void Value::set_has_null_value() {
- _oneof_case_[0] = kNullValue;
- }
- inline void Value::clear_null_value() {
- if (has_null_value()) {
- value_type_.null_value_ = 0;
- clear_has_value_type();
- }
- }
- inline ::google::protobuf::NullValue Value::null_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.null_value)
- if (has_null_value()) {
- return static_cast< ::google::protobuf::NullValue >(value_type_.null_value_);
- }
- return static_cast< ::google::protobuf::NullValue >(0);
- }
- inline void Value::set_null_value(::google::protobuf::NullValue value) {
- if (!has_null_value()) {
- clear_value_type();
- set_has_null_value();
- }
- value_type_.null_value_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.null_value)
- }
- // bool boolean_value = 1;
- inline bool Value::has_boolean_value() const {
- return value_type_case() == kBooleanValue;
- }
- inline void Value::set_has_boolean_value() {
- _oneof_case_[0] = kBooleanValue;
- }
- inline void Value::clear_boolean_value() {
- if (has_boolean_value()) {
- value_type_.boolean_value_ = false;
- clear_has_value_type();
- }
- }
- inline bool Value::boolean_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.boolean_value)
- if (has_boolean_value()) {
- return value_type_.boolean_value_;
- }
- return false;
- }
- inline void Value::set_boolean_value(bool value) {
- if (!has_boolean_value()) {
- clear_value_type();
- set_has_boolean_value();
- }
- value_type_.boolean_value_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.boolean_value)
- }
- // int64 integer_value = 2;
- inline bool Value::has_integer_value() const {
- return value_type_case() == kIntegerValue;
- }
- inline void Value::set_has_integer_value() {
- _oneof_case_[0] = kIntegerValue;
- }
- inline void Value::clear_integer_value() {
- if (has_integer_value()) {
- value_type_.integer_value_ = GOOGLE_LONGLONG(0);
- clear_has_value_type();
- }
- }
- inline ::google::protobuf::int64 Value::integer_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.integer_value)
- if (has_integer_value()) {
- return value_type_.integer_value_;
- }
- return GOOGLE_LONGLONG(0);
- }
- inline void Value::set_integer_value(::google::protobuf::int64 value) {
- if (!has_integer_value()) {
- clear_value_type();
- set_has_integer_value();
- }
- value_type_.integer_value_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.integer_value)
- }
- // double double_value = 3;
- inline bool Value::has_double_value() const {
- return value_type_case() == kDoubleValue;
- }
- inline void Value::set_has_double_value() {
- _oneof_case_[0] = kDoubleValue;
- }
- inline void Value::clear_double_value() {
- if (has_double_value()) {
- value_type_.double_value_ = 0;
- clear_has_value_type();
- }
- }
- inline double Value::double_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.double_value)
- if (has_double_value()) {
- return value_type_.double_value_;
- }
- return 0;
- }
- inline void Value::set_double_value(double value) {
- if (!has_double_value()) {
- clear_value_type();
- set_has_double_value();
- }
- value_type_.double_value_ = value;
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.double_value)
- }
- // .google.protobuf.Timestamp timestamp_value = 10;
- inline bool Value::has_timestamp_value() const {
- return value_type_case() == kTimestampValue;
- }
- inline void Value::set_has_timestamp_value() {
- _oneof_case_[0] = kTimestampValue;
- }
- inline ::google::protobuf::Timestamp* Value::release_timestamp_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.timestamp_value)
- if (has_timestamp_value()) {
- clear_has_value_type();
- ::google::protobuf::Timestamp* temp = value_type_.timestamp_value_;
- value_type_.timestamp_value_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::google::protobuf::Timestamp& Value::timestamp_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.timestamp_value)
- return has_timestamp_value()
- ? *value_type_.timestamp_value_
- : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
- }
- inline ::google::protobuf::Timestamp* Value::mutable_timestamp_value() {
- if (!has_timestamp_value()) {
- clear_value_type();
- set_has_timestamp_value();
- value_type_.timestamp_value_ = new ::google::protobuf::Timestamp;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.timestamp_value)
- return value_type_.timestamp_value_;
- }
- // string string_value = 17;
- inline bool Value::has_string_value() const {
- return value_type_case() == kStringValue;
- }
- inline void Value::set_has_string_value() {
- _oneof_case_[0] = kStringValue;
- }
- inline void Value::clear_string_value() {
- if (has_string_value()) {
- value_type_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_value_type();
- }
- }
- inline const ::std::string& Value::string_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.string_value)
- if (has_string_value()) {
- return value_type_.string_value_.GetNoArena();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void Value::set_string_value(const ::std::string& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
- if (!has_string_value()) {
- clear_value_type();
- set_has_string_value();
- value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
- }
- #if LANG_CXX11
- inline void Value::set_string_value(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
- if (!has_string_value()) {
- clear_value_type();
- set_has_string_value();
- value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.string_value_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Value.string_value)
- }
- #endif
- inline void Value::set_string_value(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_string_value()) {
- clear_value_type();
- set_has_string_value();
- value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.Value.string_value)
- }
- inline void Value::set_string_value(const char* value, size_t size) {
- if (!has_string_value()) {
- clear_value_type();
- set_has_string_value();
- value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Value.string_value)
- }
- inline ::std::string* Value::mutable_string_value() {
- if (!has_string_value()) {
- clear_value_type();
- set_has_string_value();
- value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.string_value)
- return value_type_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* Value::release_string_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.string_value)
- if (has_string_value()) {
- clear_has_value_type();
- return value_type_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- } else {
- return NULL;
- }
- }
- inline void Value::set_allocated_string_value(::std::string* string_value) {
- if (!has_string_value()) {
- value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_value_type();
- if (string_value != NULL) {
- set_has_string_value();
- value_type_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- string_value);
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.string_value)
- }
- // bytes bytes_value = 18;
- inline bool Value::has_bytes_value() const {
- return value_type_case() == kBytesValue;
- }
- inline void Value::set_has_bytes_value() {
- _oneof_case_[0] = kBytesValue;
- }
- inline void Value::clear_bytes_value() {
- if (has_bytes_value()) {
- value_type_.bytes_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_value_type();
- }
- }
- inline const ::std::string& Value::bytes_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.bytes_value)
- if (has_bytes_value()) {
- return value_type_.bytes_value_.GetNoArena();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void Value::set_bytes_value(const ::std::string& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
- if (!has_bytes_value()) {
- clear_value_type();
- set_has_bytes_value();
- value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
- }
- #if LANG_CXX11
- inline void Value::set_bytes_value(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
- if (!has_bytes_value()) {
- clear_value_type();
- set_has_bytes_value();
- value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.bytes_value_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Value.bytes_value)
- }
- #endif
- inline void Value::set_bytes_value(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_bytes_value()) {
- clear_value_type();
- set_has_bytes_value();
- value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.Value.bytes_value)
- }
- inline void Value::set_bytes_value(const void* value, size_t size) {
- if (!has_bytes_value()) {
- clear_value_type();
- set_has_bytes_value();
- value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Value.bytes_value)
- }
- inline ::std::string* Value::mutable_bytes_value() {
- if (!has_bytes_value()) {
- clear_value_type();
- set_has_bytes_value();
- value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.bytes_value)
- return value_type_.bytes_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* Value::release_bytes_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.bytes_value)
- if (has_bytes_value()) {
- clear_has_value_type();
- return value_type_.bytes_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- } else {
- return NULL;
- }
- }
- inline void Value::set_allocated_bytes_value(::std::string* bytes_value) {
- if (!has_bytes_value()) {
- value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_value_type();
- if (bytes_value != NULL) {
- set_has_bytes_value();
- value_type_.bytes_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- bytes_value);
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.bytes_value)
- }
- // string reference_value = 5;
- inline bool Value::has_reference_value() const {
- return value_type_case() == kReferenceValue;
- }
- inline void Value::set_has_reference_value() {
- _oneof_case_[0] = kReferenceValue;
- }
- inline void Value::clear_reference_value() {
- if (has_reference_value()) {
- value_type_.reference_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_value_type();
- }
- }
- inline const ::std::string& Value::reference_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.reference_value)
- if (has_reference_value()) {
- return value_type_.reference_value_.GetNoArena();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void Value::set_reference_value(const ::std::string& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
- if (!has_reference_value()) {
- clear_value_type();
- set_has_reference_value();
- value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
- }
- #if LANG_CXX11
- inline void Value::set_reference_value(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
- if (!has_reference_value()) {
- clear_value_type();
- set_has_reference_value();
- value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.reference_value_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Value.reference_value)
- }
- #endif
- inline void Value::set_reference_value(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_reference_value()) {
- clear_value_type();
- set_has_reference_value();
- value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value));
- // @@protoc_insertion_point(field_set_char:google.firestore.v1.Value.reference_value)
- }
- inline void Value::set_reference_value(const char* value, size_t size) {
- if (!has_reference_value()) {
- clear_value_type();
- set_has_reference_value();
- value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Value.reference_value)
- }
- inline ::std::string* Value::mutable_reference_value() {
- if (!has_reference_value()) {
- clear_value_type();
- set_has_reference_value();
- value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.reference_value)
- return value_type_.reference_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* Value::release_reference_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.reference_value)
- if (has_reference_value()) {
- clear_has_value_type();
- return value_type_.reference_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- } else {
- return NULL;
- }
- }
- inline void Value::set_allocated_reference_value(::std::string* reference_value) {
- if (!has_reference_value()) {
- value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_value_type();
- if (reference_value != NULL) {
- set_has_reference_value();
- value_type_.reference_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- reference_value);
- }
- // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.reference_value)
- }
- // .google.type.LatLng geo_point_value = 8;
- inline bool Value::has_geo_point_value() const {
- return value_type_case() == kGeoPointValue;
- }
- inline void Value::set_has_geo_point_value() {
- _oneof_case_[0] = kGeoPointValue;
- }
- inline ::google::type::LatLng* Value::release_geo_point_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.geo_point_value)
- if (has_geo_point_value()) {
- clear_has_value_type();
- ::google::type::LatLng* temp = value_type_.geo_point_value_;
- value_type_.geo_point_value_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::google::type::LatLng& Value::geo_point_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.geo_point_value)
- return has_geo_point_value()
- ? *value_type_.geo_point_value_
- : *reinterpret_cast< ::google::type::LatLng*>(&::google::type::_LatLng_default_instance_);
- }
- inline ::google::type::LatLng* Value::mutable_geo_point_value() {
- if (!has_geo_point_value()) {
- clear_value_type();
- set_has_geo_point_value();
- value_type_.geo_point_value_ = new ::google::type::LatLng;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.geo_point_value)
- return value_type_.geo_point_value_;
- }
- // .google.firestore.v1.ArrayValue array_value = 9;
- inline bool Value::has_array_value() const {
- return value_type_case() == kArrayValue;
- }
- inline void Value::set_has_array_value() {
- _oneof_case_[0] = kArrayValue;
- }
- inline void Value::clear_array_value() {
- if (has_array_value()) {
- delete value_type_.array_value_;
- clear_has_value_type();
- }
- }
- inline ::google::firestore::v1::ArrayValue* Value::release_array_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.array_value)
- if (has_array_value()) {
- clear_has_value_type();
- ::google::firestore::v1::ArrayValue* temp = value_type_.array_value_;
- value_type_.array_value_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::google::firestore::v1::ArrayValue& Value::array_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.array_value)
- return has_array_value()
- ? *value_type_.array_value_
- : *reinterpret_cast< ::google::firestore::v1::ArrayValue*>(&::google::firestore::v1::_ArrayValue_default_instance_);
- }
- inline ::google::firestore::v1::ArrayValue* Value::mutable_array_value() {
- if (!has_array_value()) {
- clear_value_type();
- set_has_array_value();
- value_type_.array_value_ = new ::google::firestore::v1::ArrayValue;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.array_value)
- return value_type_.array_value_;
- }
- // .google.firestore.v1.MapValue map_value = 6;
- inline bool Value::has_map_value() const {
- return value_type_case() == kMapValue;
- }
- inline void Value::set_has_map_value() {
- _oneof_case_[0] = kMapValue;
- }
- inline void Value::clear_map_value() {
- if (has_map_value()) {
- delete value_type_.map_value_;
- clear_has_value_type();
- }
- }
- inline ::google::firestore::v1::MapValue* Value::release_map_value() {
- // @@protoc_insertion_point(field_release:google.firestore.v1.Value.map_value)
- if (has_map_value()) {
- clear_has_value_type();
- ::google::firestore::v1::MapValue* temp = value_type_.map_value_;
- value_type_.map_value_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::google::firestore::v1::MapValue& Value::map_value() const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.Value.map_value)
- return has_map_value()
- ? *value_type_.map_value_
- : *reinterpret_cast< ::google::firestore::v1::MapValue*>(&::google::firestore::v1::_MapValue_default_instance_);
- }
- inline ::google::firestore::v1::MapValue* Value::mutable_map_value() {
- if (!has_map_value()) {
- clear_value_type();
- set_has_map_value();
- value_type_.map_value_ = new ::google::firestore::v1::MapValue;
- }
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.map_value)
- return value_type_.map_value_;
- }
- inline bool Value::has_value_type() const {
- return value_type_case() != VALUE_TYPE_NOT_SET;
- }
- inline void Value::clear_has_value_type() {
- _oneof_case_[0] = VALUE_TYPE_NOT_SET;
- }
- inline Value::ValueTypeCase Value::value_type_case() const {
- return Value::ValueTypeCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // ArrayValue
- // repeated .google.firestore.v1.Value values = 1;
- inline int ArrayValue::values_size() const {
- return values_.size();
- }
- inline void ArrayValue::clear_values() {
- values_.Clear();
- }
- inline const ::google::firestore::v1::Value& ArrayValue::values(int index) const {
- // @@protoc_insertion_point(field_get:google.firestore.v1.ArrayValue.values)
- return values_.Get(index);
- }
- inline ::google::firestore::v1::Value* ArrayValue::mutable_values(int index) {
- // @@protoc_insertion_point(field_mutable:google.firestore.v1.ArrayValue.values)
- return values_.Mutable(index);
- }
- inline ::google::firestore::v1::Value* ArrayValue::add_values() {
- // @@protoc_insertion_point(field_add:google.firestore.v1.ArrayValue.values)
- return values_.Add();
- }
- inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
- ArrayValue::mutable_values() {
- // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ArrayValue.values)
- return &values_;
- }
- inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
- ArrayValue::values() const {
- // @@protoc_insertion_point(field_list:google.firestore.v1.ArrayValue.values)
- return values_;
- }
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // MapValue
- // map<string, .google.firestore.v1.Value> fields = 1;
- inline int MapValue::fields_size() const {
- return fields_.size();
- }
- inline void MapValue::clear_fields() {
- fields_.Clear();
- }
- inline const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
- MapValue::fields() const {
- // @@protoc_insertion_point(field_map:google.firestore.v1.MapValue.fields)
- return fields_.GetMap();
- }
- inline ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
- MapValue::mutable_fields() {
- // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.MapValue.fields)
- return fields_.MutableMap();
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace v1
- } // namespace firestore
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_google_2ffirestore_2fv1_2fdocument_2eproto__INCLUDED
|