document.pb.h 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/firestore/v1/document.proto
  18. #ifndef PROTOBUF_google_2ffirestore_2fv1_2fdocument_2eproto__INCLUDED
  19. #define PROTOBUF_google_2ffirestore_2fv1_2fdocument_2eproto__INCLUDED
  20. #include <string>
  21. #include <google/protobuf/stubs/common.h>
  22. #if GOOGLE_PROTOBUF_VERSION < 3005000
  23. #error This file was generated by a newer version of protoc which is
  24. #error incompatible with your Protocol Buffer headers. Please update
  25. #error your headers.
  26. #endif
  27. #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  28. #error This file was generated by an older version of protoc which is
  29. #error incompatible with your Protocol Buffer headers. Please
  30. #error regenerate this file with a newer version of protoc.
  31. #endif
  32. #include <google/protobuf/io/coded_stream.h>
  33. #include <google/protobuf/arena.h>
  34. #include <google/protobuf/arenastring.h>
  35. #include <google/protobuf/generated_message_table_driven.h>
  36. #include <google/protobuf/generated_message_util.h>
  37. #include <google/protobuf/metadata.h>
  38. #include <google/protobuf/message.h>
  39. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  40. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  41. #include <google/protobuf/map.h> // IWYU pragma: export
  42. #include <google/protobuf/map_entry.h>
  43. #include <google/protobuf/map_field_inl.h>
  44. #include <google/protobuf/unknown_field_set.h>
  45. #include "google/api/annotations.pb.h"
  46. #include <google/protobuf/struct.pb.h>
  47. #include <google/protobuf/timestamp.pb.h>
  48. #include "google/type/latlng.pb.h"
  49. // @@protoc_insertion_point(includes)
  50. namespace protobuf_google_2ffirestore_2fv1_2fdocument_2eproto {
  51. // Internal implementation detail -- do not use these members.
  52. struct TableStruct {
  53. static const ::google::protobuf::internal::ParseTableField entries[];
  54. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  55. static const ::google::protobuf::internal::ParseTable schema[6];
  56. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  57. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  58. static const ::google::protobuf::uint32 offsets[];
  59. };
  60. void AddDescriptors();
  61. void InitDefaultsDocument_FieldsEntry_DoNotUseImpl();
  62. void InitDefaultsDocument_FieldsEntry_DoNotUse();
  63. void InitDefaultsDocumentImpl();
  64. void InitDefaultsDocument();
  65. void InitDefaultsArrayValueImpl();
  66. void InitDefaultsArrayValue();
  67. inline void InitDefaults() {
  68. InitDefaultsDocument_FieldsEntry_DoNotUse();
  69. InitDefaultsDocument();
  70. InitDefaultsArrayValue();
  71. }
  72. } // namespace protobuf_google_2ffirestore_2fv1_2fdocument_2eproto
  73. namespace google {
  74. namespace firestore {
  75. namespace v1 {
  76. class ArrayValue;
  77. class ArrayValueDefaultTypeInternal;
  78. extern ArrayValueDefaultTypeInternal _ArrayValue_default_instance_;
  79. class Document;
  80. class DocumentDefaultTypeInternal;
  81. extern DocumentDefaultTypeInternal _Document_default_instance_;
  82. class Document_FieldsEntry_DoNotUse;
  83. class Document_FieldsEntry_DoNotUseDefaultTypeInternal;
  84. extern Document_FieldsEntry_DoNotUseDefaultTypeInternal _Document_FieldsEntry_DoNotUse_default_instance_;
  85. class MapValue;
  86. class MapValueDefaultTypeInternal;
  87. extern MapValueDefaultTypeInternal _MapValue_default_instance_;
  88. class MapValue_FieldsEntry_DoNotUse;
  89. class MapValue_FieldsEntry_DoNotUseDefaultTypeInternal;
  90. extern MapValue_FieldsEntry_DoNotUseDefaultTypeInternal _MapValue_FieldsEntry_DoNotUse_default_instance_;
  91. class Value;
  92. class ValueDefaultTypeInternal;
  93. extern ValueDefaultTypeInternal _Value_default_instance_;
  94. } // namespace v1
  95. } // namespace firestore
  96. } // namespace google
  97. namespace google {
  98. namespace firestore {
  99. namespace v1 {
  100. // ===================================================================
  101. class Document_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Document_FieldsEntry_DoNotUse,
  102. ::std::string, ::google::firestore::v1::Value,
  103. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  104. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  105. 0 > {
  106. public:
  107. typedef ::google::protobuf::internal::MapEntry<Document_FieldsEntry_DoNotUse,
  108. ::std::string, ::google::firestore::v1::Value,
  109. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  110. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  111. 0 > SuperType;
  112. Document_FieldsEntry_DoNotUse();
  113. Document_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  114. void MergeFrom(const Document_FieldsEntry_DoNotUse& other);
  115. static const Document_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Document_FieldsEntry_DoNotUse*>(&_Document_FieldsEntry_DoNotUse_default_instance_); }
  116. void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
  117. ::google::protobuf::Metadata GetMetadata() const;
  118. };
  119. // -------------------------------------------------------------------
  120. class Document : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Document) */ {
  121. public:
  122. Document();
  123. virtual ~Document();
  124. Document(const Document& from);
  125. inline Document& operator=(const Document& from) {
  126. CopyFrom(from);
  127. return *this;
  128. }
  129. #if LANG_CXX11
  130. Document(Document&& from) noexcept
  131. : Document() {
  132. *this = ::std::move(from);
  133. }
  134. inline Document& operator=(Document&& from) noexcept {
  135. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  136. if (this != &from) InternalSwap(&from);
  137. } else {
  138. CopyFrom(from);
  139. }
  140. return *this;
  141. }
  142. #endif
  143. static const ::google::protobuf::Descriptor* descriptor();
  144. static const Document& default_instance();
  145. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  146. static inline const Document* internal_default_instance() {
  147. return reinterpret_cast<const Document*>(
  148. &_Document_default_instance_);
  149. }
  150. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  151. 1;
  152. void Swap(Document* other);
  153. friend void swap(Document& a, Document& b) {
  154. a.Swap(&b);
  155. }
  156. // implements Message ----------------------------------------------
  157. inline Document* New() const PROTOBUF_FINAL { return New(NULL); }
  158. Document* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  159. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  160. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  161. void CopyFrom(const Document& from);
  162. void MergeFrom(const Document& from);
  163. void Clear() PROTOBUF_FINAL;
  164. bool IsInitialized() const PROTOBUF_FINAL;
  165. size_t ByteSizeLong() const PROTOBUF_FINAL;
  166. bool MergePartialFromCodedStream(
  167. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  168. void SerializeWithCachedSizes(
  169. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  170. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  171. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  172. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  173. private:
  174. void SharedCtor();
  175. void SharedDtor();
  176. void SetCachedSize(int size) const PROTOBUF_FINAL;
  177. void InternalSwap(Document* other);
  178. private:
  179. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  180. return NULL;
  181. }
  182. inline void* MaybeArenaPtr() const {
  183. return NULL;
  184. }
  185. public:
  186. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  187. // nested types ----------------------------------------------------
  188. // accessors -------------------------------------------------------
  189. // map<string, .google.firestore.v1.Value> fields = 2;
  190. int fields_size() const;
  191. void clear_fields();
  192. static const int kFieldsFieldNumber = 2;
  193. const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
  194. fields() const;
  195. ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
  196. mutable_fields();
  197. // string name = 1;
  198. void clear_name();
  199. static const int kNameFieldNumber = 1;
  200. const ::std::string& name() const;
  201. void set_name(const ::std::string& value);
  202. #if LANG_CXX11
  203. void set_name(::std::string&& value);
  204. #endif
  205. void set_name(const char* value);
  206. void set_name(const char* value, size_t size);
  207. ::std::string* mutable_name();
  208. ::std::string* release_name();
  209. void set_allocated_name(::std::string* name);
  210. // .google.protobuf.Timestamp create_time = 3;
  211. bool has_create_time() const;
  212. void clear_create_time();
  213. static const int kCreateTimeFieldNumber = 3;
  214. const ::google::protobuf::Timestamp& create_time() const;
  215. ::google::protobuf::Timestamp* release_create_time();
  216. ::google::protobuf::Timestamp* mutable_create_time();
  217. void set_allocated_create_time(::google::protobuf::Timestamp* create_time);
  218. // .google.protobuf.Timestamp update_time = 4;
  219. bool has_update_time() const;
  220. void clear_update_time();
  221. static const int kUpdateTimeFieldNumber = 4;
  222. const ::google::protobuf::Timestamp& update_time() const;
  223. ::google::protobuf::Timestamp* release_update_time();
  224. ::google::protobuf::Timestamp* mutable_update_time();
  225. void set_allocated_update_time(::google::protobuf::Timestamp* update_time);
  226. // @@protoc_insertion_point(class_scope:google.firestore.v1.Document)
  227. private:
  228. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  229. ::google::protobuf::internal::MapField<
  230. Document_FieldsEntry_DoNotUse,
  231. ::std::string, ::google::firestore::v1::Value,
  232. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  233. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  234. 0 > fields_;
  235. ::google::protobuf::internal::ArenaStringPtr name_;
  236. ::google::protobuf::Timestamp* create_time_;
  237. ::google::protobuf::Timestamp* update_time_;
  238. mutable int _cached_size_;
  239. friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
  240. friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsDocumentImpl();
  241. };
  242. // -------------------------------------------------------------------
  243. class Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.Value) */ {
  244. public:
  245. Value();
  246. virtual ~Value();
  247. Value(const Value& from);
  248. inline Value& operator=(const Value& from) {
  249. CopyFrom(from);
  250. return *this;
  251. }
  252. #if LANG_CXX11
  253. Value(Value&& from) noexcept
  254. : Value() {
  255. *this = ::std::move(from);
  256. }
  257. inline Value& operator=(Value&& from) noexcept {
  258. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  259. if (this != &from) InternalSwap(&from);
  260. } else {
  261. CopyFrom(from);
  262. }
  263. return *this;
  264. }
  265. #endif
  266. static const ::google::protobuf::Descriptor* descriptor();
  267. static const Value& default_instance();
  268. enum ValueTypeCase {
  269. kNullValue = 11,
  270. kBooleanValue = 1,
  271. kIntegerValue = 2,
  272. kDoubleValue = 3,
  273. kTimestampValue = 10,
  274. kStringValue = 17,
  275. kBytesValue = 18,
  276. kReferenceValue = 5,
  277. kGeoPointValue = 8,
  278. kArrayValue = 9,
  279. kMapValue = 6,
  280. VALUE_TYPE_NOT_SET = 0,
  281. };
  282. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  283. static inline const Value* internal_default_instance() {
  284. return reinterpret_cast<const Value*>(
  285. &_Value_default_instance_);
  286. }
  287. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  288. 2;
  289. void Swap(Value* other);
  290. friend void swap(Value& a, Value& b) {
  291. a.Swap(&b);
  292. }
  293. // implements Message ----------------------------------------------
  294. inline Value* New() const PROTOBUF_FINAL { return New(NULL); }
  295. Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  296. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  297. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  298. void CopyFrom(const Value& from);
  299. void MergeFrom(const Value& from);
  300. void Clear() PROTOBUF_FINAL;
  301. bool IsInitialized() const PROTOBUF_FINAL;
  302. size_t ByteSizeLong() const PROTOBUF_FINAL;
  303. bool MergePartialFromCodedStream(
  304. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  305. void SerializeWithCachedSizes(
  306. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  307. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  308. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  309. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  310. private:
  311. void SharedCtor();
  312. void SharedDtor();
  313. void SetCachedSize(int size) const PROTOBUF_FINAL;
  314. void InternalSwap(Value* other);
  315. private:
  316. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  317. return NULL;
  318. }
  319. inline void* MaybeArenaPtr() const {
  320. return NULL;
  321. }
  322. public:
  323. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  324. // nested types ----------------------------------------------------
  325. // accessors -------------------------------------------------------
  326. // .google.protobuf.NullValue null_value = 11;
  327. private:
  328. bool has_null_value() const;
  329. public:
  330. void clear_null_value();
  331. static const int kNullValueFieldNumber = 11;
  332. ::google::protobuf::NullValue null_value() const;
  333. void set_null_value(::google::protobuf::NullValue value);
  334. // bool boolean_value = 1;
  335. private:
  336. bool has_boolean_value() const;
  337. public:
  338. void clear_boolean_value();
  339. static const int kBooleanValueFieldNumber = 1;
  340. bool boolean_value() const;
  341. void set_boolean_value(bool value);
  342. // int64 integer_value = 2;
  343. private:
  344. bool has_integer_value() const;
  345. public:
  346. void clear_integer_value();
  347. static const int kIntegerValueFieldNumber = 2;
  348. ::google::protobuf::int64 integer_value() const;
  349. void set_integer_value(::google::protobuf::int64 value);
  350. // double double_value = 3;
  351. private:
  352. bool has_double_value() const;
  353. public:
  354. void clear_double_value();
  355. static const int kDoubleValueFieldNumber = 3;
  356. double double_value() const;
  357. void set_double_value(double value);
  358. // .google.protobuf.Timestamp timestamp_value = 10;
  359. bool has_timestamp_value() const;
  360. void clear_timestamp_value();
  361. static const int kTimestampValueFieldNumber = 10;
  362. const ::google::protobuf::Timestamp& timestamp_value() const;
  363. ::google::protobuf::Timestamp* release_timestamp_value();
  364. ::google::protobuf::Timestamp* mutable_timestamp_value();
  365. void set_allocated_timestamp_value(::google::protobuf::Timestamp* timestamp_value);
  366. // string string_value = 17;
  367. private:
  368. bool has_string_value() const;
  369. public:
  370. void clear_string_value();
  371. static const int kStringValueFieldNumber = 17;
  372. const ::std::string& string_value() const;
  373. void set_string_value(const ::std::string& value);
  374. #if LANG_CXX11
  375. void set_string_value(::std::string&& value);
  376. #endif
  377. void set_string_value(const char* value);
  378. void set_string_value(const char* value, size_t size);
  379. ::std::string* mutable_string_value();
  380. ::std::string* release_string_value();
  381. void set_allocated_string_value(::std::string* string_value);
  382. // bytes bytes_value = 18;
  383. private:
  384. bool has_bytes_value() const;
  385. public:
  386. void clear_bytes_value();
  387. static const int kBytesValueFieldNumber = 18;
  388. const ::std::string& bytes_value() const;
  389. void set_bytes_value(const ::std::string& value);
  390. #if LANG_CXX11
  391. void set_bytes_value(::std::string&& value);
  392. #endif
  393. void set_bytes_value(const char* value);
  394. void set_bytes_value(const void* value, size_t size);
  395. ::std::string* mutable_bytes_value();
  396. ::std::string* release_bytes_value();
  397. void set_allocated_bytes_value(::std::string* bytes_value);
  398. // string reference_value = 5;
  399. private:
  400. bool has_reference_value() const;
  401. public:
  402. void clear_reference_value();
  403. static const int kReferenceValueFieldNumber = 5;
  404. const ::std::string& reference_value() const;
  405. void set_reference_value(const ::std::string& value);
  406. #if LANG_CXX11
  407. void set_reference_value(::std::string&& value);
  408. #endif
  409. void set_reference_value(const char* value);
  410. void set_reference_value(const char* value, size_t size);
  411. ::std::string* mutable_reference_value();
  412. ::std::string* release_reference_value();
  413. void set_allocated_reference_value(::std::string* reference_value);
  414. // .google.type.LatLng geo_point_value = 8;
  415. bool has_geo_point_value() const;
  416. void clear_geo_point_value();
  417. static const int kGeoPointValueFieldNumber = 8;
  418. const ::google::type::LatLng& geo_point_value() const;
  419. ::google::type::LatLng* release_geo_point_value();
  420. ::google::type::LatLng* mutable_geo_point_value();
  421. void set_allocated_geo_point_value(::google::type::LatLng* geo_point_value);
  422. // .google.firestore.v1.ArrayValue array_value = 9;
  423. bool has_array_value() const;
  424. void clear_array_value();
  425. static const int kArrayValueFieldNumber = 9;
  426. const ::google::firestore::v1::ArrayValue& array_value() const;
  427. ::google::firestore::v1::ArrayValue* release_array_value();
  428. ::google::firestore::v1::ArrayValue* mutable_array_value();
  429. void set_allocated_array_value(::google::firestore::v1::ArrayValue* array_value);
  430. // .google.firestore.v1.MapValue map_value = 6;
  431. bool has_map_value() const;
  432. void clear_map_value();
  433. static const int kMapValueFieldNumber = 6;
  434. const ::google::firestore::v1::MapValue& map_value() const;
  435. ::google::firestore::v1::MapValue* release_map_value();
  436. ::google::firestore::v1::MapValue* mutable_map_value();
  437. void set_allocated_map_value(::google::firestore::v1::MapValue* map_value);
  438. ValueTypeCase value_type_case() const;
  439. // @@protoc_insertion_point(class_scope:google.firestore.v1.Value)
  440. private:
  441. void set_has_null_value();
  442. void set_has_boolean_value();
  443. void set_has_integer_value();
  444. void set_has_double_value();
  445. void set_has_timestamp_value();
  446. void set_has_string_value();
  447. void set_has_bytes_value();
  448. void set_has_reference_value();
  449. void set_has_geo_point_value();
  450. void set_has_array_value();
  451. void set_has_map_value();
  452. inline bool has_value_type() const;
  453. void clear_value_type();
  454. inline void clear_has_value_type();
  455. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  456. union ValueTypeUnion {
  457. ValueTypeUnion() {}
  458. int null_value_;
  459. bool boolean_value_;
  460. ::google::protobuf::int64 integer_value_;
  461. double double_value_;
  462. ::google::protobuf::Timestamp* timestamp_value_;
  463. ::google::protobuf::internal::ArenaStringPtr string_value_;
  464. ::google::protobuf::internal::ArenaStringPtr bytes_value_;
  465. ::google::protobuf::internal::ArenaStringPtr reference_value_;
  466. ::google::type::LatLng* geo_point_value_;
  467. ::google::firestore::v1::ArrayValue* array_value_;
  468. ::google::firestore::v1::MapValue* map_value_;
  469. } value_type_;
  470. mutable int _cached_size_;
  471. ::google::protobuf::uint32 _oneof_case_[1];
  472. friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
  473. friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
  474. };
  475. // -------------------------------------------------------------------
  476. class ArrayValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.ArrayValue) */ {
  477. public:
  478. ArrayValue();
  479. virtual ~ArrayValue();
  480. ArrayValue(const ArrayValue& from);
  481. inline ArrayValue& operator=(const ArrayValue& from) {
  482. CopyFrom(from);
  483. return *this;
  484. }
  485. #if LANG_CXX11
  486. ArrayValue(ArrayValue&& from) noexcept
  487. : ArrayValue() {
  488. *this = ::std::move(from);
  489. }
  490. inline ArrayValue& operator=(ArrayValue&& from) noexcept {
  491. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  492. if (this != &from) InternalSwap(&from);
  493. } else {
  494. CopyFrom(from);
  495. }
  496. return *this;
  497. }
  498. #endif
  499. static const ::google::protobuf::Descriptor* descriptor();
  500. static const ArrayValue& default_instance();
  501. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  502. static inline const ArrayValue* internal_default_instance() {
  503. return reinterpret_cast<const ArrayValue*>(
  504. &_ArrayValue_default_instance_);
  505. }
  506. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  507. 3;
  508. void Swap(ArrayValue* other);
  509. friend void swap(ArrayValue& a, ArrayValue& b) {
  510. a.Swap(&b);
  511. }
  512. // implements Message ----------------------------------------------
  513. inline ArrayValue* New() const PROTOBUF_FINAL { return New(NULL); }
  514. ArrayValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  515. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  516. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  517. void CopyFrom(const ArrayValue& from);
  518. void MergeFrom(const ArrayValue& from);
  519. void Clear() PROTOBUF_FINAL;
  520. bool IsInitialized() const PROTOBUF_FINAL;
  521. size_t ByteSizeLong() const PROTOBUF_FINAL;
  522. bool MergePartialFromCodedStream(
  523. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  524. void SerializeWithCachedSizes(
  525. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  526. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  527. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  528. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  529. private:
  530. void SharedCtor();
  531. void SharedDtor();
  532. void SetCachedSize(int size) const PROTOBUF_FINAL;
  533. void InternalSwap(ArrayValue* other);
  534. private:
  535. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  536. return NULL;
  537. }
  538. inline void* MaybeArenaPtr() const {
  539. return NULL;
  540. }
  541. public:
  542. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  543. // nested types ----------------------------------------------------
  544. // accessors -------------------------------------------------------
  545. // repeated .google.firestore.v1.Value values = 1;
  546. int values_size() const;
  547. void clear_values();
  548. static const int kValuesFieldNumber = 1;
  549. const ::google::firestore::v1::Value& values(int index) const;
  550. ::google::firestore::v1::Value* mutable_values(int index);
  551. ::google::firestore::v1::Value* add_values();
  552. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  553. mutable_values();
  554. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  555. values() const;
  556. // @@protoc_insertion_point(class_scope:google.firestore.v1.ArrayValue)
  557. private:
  558. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  559. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value > values_;
  560. mutable int _cached_size_;
  561. friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
  562. friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
  563. };
  564. // -------------------------------------------------------------------
  565. class MapValue_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<MapValue_FieldsEntry_DoNotUse,
  566. ::std::string, ::google::firestore::v1::Value,
  567. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  568. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  569. 0 > {
  570. public:
  571. typedef ::google::protobuf::internal::MapEntry<MapValue_FieldsEntry_DoNotUse,
  572. ::std::string, ::google::firestore::v1::Value,
  573. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  574. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  575. 0 > SuperType;
  576. MapValue_FieldsEntry_DoNotUse();
  577. MapValue_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
  578. void MergeFrom(const MapValue_FieldsEntry_DoNotUse& other);
  579. static const MapValue_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const MapValue_FieldsEntry_DoNotUse*>(&_MapValue_FieldsEntry_DoNotUse_default_instance_); }
  580. void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL;
  581. ::google::protobuf::Metadata GetMetadata() const;
  582. };
  583. // -------------------------------------------------------------------
  584. class MapValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.firestore.v1.MapValue) */ {
  585. public:
  586. MapValue();
  587. virtual ~MapValue();
  588. MapValue(const MapValue& from);
  589. inline MapValue& operator=(const MapValue& from) {
  590. CopyFrom(from);
  591. return *this;
  592. }
  593. #if LANG_CXX11
  594. MapValue(MapValue&& from) noexcept
  595. : MapValue() {
  596. *this = ::std::move(from);
  597. }
  598. inline MapValue& operator=(MapValue&& from) noexcept {
  599. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  600. if (this != &from) InternalSwap(&from);
  601. } else {
  602. CopyFrom(from);
  603. }
  604. return *this;
  605. }
  606. #endif
  607. static const ::google::protobuf::Descriptor* descriptor();
  608. static const MapValue& default_instance();
  609. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  610. static inline const MapValue* internal_default_instance() {
  611. return reinterpret_cast<const MapValue*>(
  612. &_MapValue_default_instance_);
  613. }
  614. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  615. 5;
  616. void Swap(MapValue* other);
  617. friend void swap(MapValue& a, MapValue& b) {
  618. a.Swap(&b);
  619. }
  620. // implements Message ----------------------------------------------
  621. inline MapValue* New() const PROTOBUF_FINAL { return New(NULL); }
  622. MapValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  623. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  624. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  625. void CopyFrom(const MapValue& from);
  626. void MergeFrom(const MapValue& from);
  627. void Clear() PROTOBUF_FINAL;
  628. bool IsInitialized() const PROTOBUF_FINAL;
  629. size_t ByteSizeLong() const PROTOBUF_FINAL;
  630. bool MergePartialFromCodedStream(
  631. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  632. void SerializeWithCachedSizes(
  633. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  634. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  635. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  636. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  637. private:
  638. void SharedCtor();
  639. void SharedDtor();
  640. void SetCachedSize(int size) const PROTOBUF_FINAL;
  641. void InternalSwap(MapValue* other);
  642. private:
  643. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  644. return NULL;
  645. }
  646. inline void* MaybeArenaPtr() const {
  647. return NULL;
  648. }
  649. public:
  650. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  651. // nested types ----------------------------------------------------
  652. // accessors -------------------------------------------------------
  653. // map<string, .google.firestore.v1.Value> fields = 1;
  654. int fields_size() const;
  655. void clear_fields();
  656. static const int kFieldsFieldNumber = 1;
  657. const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
  658. fields() const;
  659. ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
  660. mutable_fields();
  661. // @@protoc_insertion_point(class_scope:google.firestore.v1.MapValue)
  662. private:
  663. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  664. ::google::protobuf::internal::MapField<
  665. MapValue_FieldsEntry_DoNotUse,
  666. ::std::string, ::google::firestore::v1::Value,
  667. ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
  668. ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
  669. 0 > fields_;
  670. mutable int _cached_size_;
  671. friend struct ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::TableStruct;
  672. friend void ::protobuf_google_2ffirestore_2fv1_2fdocument_2eproto::InitDefaultsArrayValueImpl();
  673. };
  674. // ===================================================================
  675. // ===================================================================
  676. #ifdef __GNUC__
  677. #pragma GCC diagnostic push
  678. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  679. #endif // __GNUC__
  680. // -------------------------------------------------------------------
  681. // Document
  682. // string name = 1;
  683. inline void Document::clear_name() {
  684. name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  685. }
  686. inline const ::std::string& Document::name() const {
  687. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.name)
  688. return name_.GetNoArena();
  689. }
  690. inline void Document::set_name(const ::std::string& value) {
  691. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  692. // @@protoc_insertion_point(field_set:google.firestore.v1.Document.name)
  693. }
  694. #if LANG_CXX11
  695. inline void Document::set_name(::std::string&& value) {
  696. name_.SetNoArena(
  697. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  698. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Document.name)
  699. }
  700. #endif
  701. inline void Document::set_name(const char* value) {
  702. GOOGLE_DCHECK(value != NULL);
  703. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  704. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Document.name)
  705. }
  706. inline void Document::set_name(const char* value, size_t size) {
  707. name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  708. ::std::string(reinterpret_cast<const char*>(value), size));
  709. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Document.name)
  710. }
  711. inline ::std::string* Document::mutable_name() {
  712. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.name)
  713. return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  714. }
  715. inline ::std::string* Document::release_name() {
  716. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.name)
  717. return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  718. }
  719. inline void Document::set_allocated_name(::std::string* name) {
  720. if (name != NULL) {
  721. } else {
  722. }
  723. name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
  724. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.name)
  725. }
  726. // map<string, .google.firestore.v1.Value> fields = 2;
  727. inline int Document::fields_size() const {
  728. return fields_.size();
  729. }
  730. inline void Document::clear_fields() {
  731. fields_.Clear();
  732. }
  733. inline const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
  734. Document::fields() const {
  735. // @@protoc_insertion_point(field_map:google.firestore.v1.Document.fields)
  736. return fields_.GetMap();
  737. }
  738. inline ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
  739. Document::mutable_fields() {
  740. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.Document.fields)
  741. return fields_.MutableMap();
  742. }
  743. // .google.protobuf.Timestamp create_time = 3;
  744. inline bool Document::has_create_time() const {
  745. return this != internal_default_instance() && create_time_ != NULL;
  746. }
  747. inline const ::google::protobuf::Timestamp& Document::create_time() const {
  748. const ::google::protobuf::Timestamp* p = create_time_;
  749. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.create_time)
  750. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  751. &::google::protobuf::_Timestamp_default_instance_);
  752. }
  753. inline ::google::protobuf::Timestamp* Document::release_create_time() {
  754. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.create_time)
  755. ::google::protobuf::Timestamp* temp = create_time_;
  756. create_time_ = NULL;
  757. return temp;
  758. }
  759. inline ::google::protobuf::Timestamp* Document::mutable_create_time() {
  760. if (create_time_ == NULL) {
  761. create_time_ = new ::google::protobuf::Timestamp;
  762. }
  763. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.create_time)
  764. return create_time_;
  765. }
  766. inline void Document::set_allocated_create_time(::google::protobuf::Timestamp* create_time) {
  767. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  768. if (message_arena == NULL) {
  769. delete reinterpret_cast< ::google::protobuf::MessageLite*>(create_time_);
  770. }
  771. if (create_time) {
  772. ::google::protobuf::Arena* submessage_arena =
  773. reinterpret_cast< ::google::protobuf::MessageLite*>(create_time)->GetArena();
  774. if (message_arena != submessage_arena) {
  775. create_time = ::google::protobuf::internal::GetOwnedMessage(
  776. message_arena, create_time, submessage_arena);
  777. }
  778. } else {
  779. }
  780. create_time_ = create_time;
  781. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.create_time)
  782. }
  783. // .google.protobuf.Timestamp update_time = 4;
  784. inline bool Document::has_update_time() const {
  785. return this != internal_default_instance() && update_time_ != NULL;
  786. }
  787. inline const ::google::protobuf::Timestamp& Document::update_time() const {
  788. const ::google::protobuf::Timestamp* p = update_time_;
  789. // @@protoc_insertion_point(field_get:google.firestore.v1.Document.update_time)
  790. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  791. &::google::protobuf::_Timestamp_default_instance_);
  792. }
  793. inline ::google::protobuf::Timestamp* Document::release_update_time() {
  794. // @@protoc_insertion_point(field_release:google.firestore.v1.Document.update_time)
  795. ::google::protobuf::Timestamp* temp = update_time_;
  796. update_time_ = NULL;
  797. return temp;
  798. }
  799. inline ::google::protobuf::Timestamp* Document::mutable_update_time() {
  800. if (update_time_ == NULL) {
  801. update_time_ = new ::google::protobuf::Timestamp;
  802. }
  803. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Document.update_time)
  804. return update_time_;
  805. }
  806. inline void Document::set_allocated_update_time(::google::protobuf::Timestamp* update_time) {
  807. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  808. if (message_arena == NULL) {
  809. delete reinterpret_cast< ::google::protobuf::MessageLite*>(update_time_);
  810. }
  811. if (update_time) {
  812. ::google::protobuf::Arena* submessage_arena =
  813. reinterpret_cast< ::google::protobuf::MessageLite*>(update_time)->GetArena();
  814. if (message_arena != submessage_arena) {
  815. update_time = ::google::protobuf::internal::GetOwnedMessage(
  816. message_arena, update_time, submessage_arena);
  817. }
  818. } else {
  819. }
  820. update_time_ = update_time;
  821. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Document.update_time)
  822. }
  823. // -------------------------------------------------------------------
  824. // Value
  825. // .google.protobuf.NullValue null_value = 11;
  826. inline bool Value::has_null_value() const {
  827. return value_type_case() == kNullValue;
  828. }
  829. inline void Value::set_has_null_value() {
  830. _oneof_case_[0] = kNullValue;
  831. }
  832. inline void Value::clear_null_value() {
  833. if (has_null_value()) {
  834. value_type_.null_value_ = 0;
  835. clear_has_value_type();
  836. }
  837. }
  838. inline ::google::protobuf::NullValue Value::null_value() const {
  839. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.null_value)
  840. if (has_null_value()) {
  841. return static_cast< ::google::protobuf::NullValue >(value_type_.null_value_);
  842. }
  843. return static_cast< ::google::protobuf::NullValue >(0);
  844. }
  845. inline void Value::set_null_value(::google::protobuf::NullValue value) {
  846. if (!has_null_value()) {
  847. clear_value_type();
  848. set_has_null_value();
  849. }
  850. value_type_.null_value_ = value;
  851. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.null_value)
  852. }
  853. // bool boolean_value = 1;
  854. inline bool Value::has_boolean_value() const {
  855. return value_type_case() == kBooleanValue;
  856. }
  857. inline void Value::set_has_boolean_value() {
  858. _oneof_case_[0] = kBooleanValue;
  859. }
  860. inline void Value::clear_boolean_value() {
  861. if (has_boolean_value()) {
  862. value_type_.boolean_value_ = false;
  863. clear_has_value_type();
  864. }
  865. }
  866. inline bool Value::boolean_value() const {
  867. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.boolean_value)
  868. if (has_boolean_value()) {
  869. return value_type_.boolean_value_;
  870. }
  871. return false;
  872. }
  873. inline void Value::set_boolean_value(bool value) {
  874. if (!has_boolean_value()) {
  875. clear_value_type();
  876. set_has_boolean_value();
  877. }
  878. value_type_.boolean_value_ = value;
  879. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.boolean_value)
  880. }
  881. // int64 integer_value = 2;
  882. inline bool Value::has_integer_value() const {
  883. return value_type_case() == kIntegerValue;
  884. }
  885. inline void Value::set_has_integer_value() {
  886. _oneof_case_[0] = kIntegerValue;
  887. }
  888. inline void Value::clear_integer_value() {
  889. if (has_integer_value()) {
  890. value_type_.integer_value_ = GOOGLE_LONGLONG(0);
  891. clear_has_value_type();
  892. }
  893. }
  894. inline ::google::protobuf::int64 Value::integer_value() const {
  895. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.integer_value)
  896. if (has_integer_value()) {
  897. return value_type_.integer_value_;
  898. }
  899. return GOOGLE_LONGLONG(0);
  900. }
  901. inline void Value::set_integer_value(::google::protobuf::int64 value) {
  902. if (!has_integer_value()) {
  903. clear_value_type();
  904. set_has_integer_value();
  905. }
  906. value_type_.integer_value_ = value;
  907. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.integer_value)
  908. }
  909. // double double_value = 3;
  910. inline bool Value::has_double_value() const {
  911. return value_type_case() == kDoubleValue;
  912. }
  913. inline void Value::set_has_double_value() {
  914. _oneof_case_[0] = kDoubleValue;
  915. }
  916. inline void Value::clear_double_value() {
  917. if (has_double_value()) {
  918. value_type_.double_value_ = 0;
  919. clear_has_value_type();
  920. }
  921. }
  922. inline double Value::double_value() const {
  923. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.double_value)
  924. if (has_double_value()) {
  925. return value_type_.double_value_;
  926. }
  927. return 0;
  928. }
  929. inline void Value::set_double_value(double value) {
  930. if (!has_double_value()) {
  931. clear_value_type();
  932. set_has_double_value();
  933. }
  934. value_type_.double_value_ = value;
  935. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.double_value)
  936. }
  937. // .google.protobuf.Timestamp timestamp_value = 10;
  938. inline bool Value::has_timestamp_value() const {
  939. return value_type_case() == kTimestampValue;
  940. }
  941. inline void Value::set_has_timestamp_value() {
  942. _oneof_case_[0] = kTimestampValue;
  943. }
  944. inline ::google::protobuf::Timestamp* Value::release_timestamp_value() {
  945. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.timestamp_value)
  946. if (has_timestamp_value()) {
  947. clear_has_value_type();
  948. ::google::protobuf::Timestamp* temp = value_type_.timestamp_value_;
  949. value_type_.timestamp_value_ = NULL;
  950. return temp;
  951. } else {
  952. return NULL;
  953. }
  954. }
  955. inline const ::google::protobuf::Timestamp& Value::timestamp_value() const {
  956. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.timestamp_value)
  957. return has_timestamp_value()
  958. ? *value_type_.timestamp_value_
  959. : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_);
  960. }
  961. inline ::google::protobuf::Timestamp* Value::mutable_timestamp_value() {
  962. if (!has_timestamp_value()) {
  963. clear_value_type();
  964. set_has_timestamp_value();
  965. value_type_.timestamp_value_ = new ::google::protobuf::Timestamp;
  966. }
  967. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.timestamp_value)
  968. return value_type_.timestamp_value_;
  969. }
  970. // string string_value = 17;
  971. inline bool Value::has_string_value() const {
  972. return value_type_case() == kStringValue;
  973. }
  974. inline void Value::set_has_string_value() {
  975. _oneof_case_[0] = kStringValue;
  976. }
  977. inline void Value::clear_string_value() {
  978. if (has_string_value()) {
  979. value_type_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  980. clear_has_value_type();
  981. }
  982. }
  983. inline const ::std::string& Value::string_value() const {
  984. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.string_value)
  985. if (has_string_value()) {
  986. return value_type_.string_value_.GetNoArena();
  987. }
  988. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  989. }
  990. inline void Value::set_string_value(const ::std::string& value) {
  991. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
  992. if (!has_string_value()) {
  993. clear_value_type();
  994. set_has_string_value();
  995. value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  996. }
  997. value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  998. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
  999. }
  1000. #if LANG_CXX11
  1001. inline void Value::set_string_value(::std::string&& value) {
  1002. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.string_value)
  1003. if (!has_string_value()) {
  1004. clear_value_type();
  1005. set_has_string_value();
  1006. value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1007. }
  1008. value_type_.string_value_.SetNoArena(
  1009. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1010. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Value.string_value)
  1011. }
  1012. #endif
  1013. inline void Value::set_string_value(const char* value) {
  1014. GOOGLE_DCHECK(value != NULL);
  1015. if (!has_string_value()) {
  1016. clear_value_type();
  1017. set_has_string_value();
  1018. value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1019. }
  1020. value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1021. ::std::string(value));
  1022. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Value.string_value)
  1023. }
  1024. inline void Value::set_string_value(const char* value, size_t size) {
  1025. if (!has_string_value()) {
  1026. clear_value_type();
  1027. set_has_string_value();
  1028. value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1029. }
  1030. value_type_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1031. reinterpret_cast<const char*>(value), size));
  1032. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Value.string_value)
  1033. }
  1034. inline ::std::string* Value::mutable_string_value() {
  1035. if (!has_string_value()) {
  1036. clear_value_type();
  1037. set_has_string_value();
  1038. value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1039. }
  1040. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.string_value)
  1041. return value_type_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1042. }
  1043. inline ::std::string* Value::release_string_value() {
  1044. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.string_value)
  1045. if (has_string_value()) {
  1046. clear_has_value_type();
  1047. return value_type_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1048. } else {
  1049. return NULL;
  1050. }
  1051. }
  1052. inline void Value::set_allocated_string_value(::std::string* string_value) {
  1053. if (!has_string_value()) {
  1054. value_type_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1055. }
  1056. clear_value_type();
  1057. if (string_value != NULL) {
  1058. set_has_string_value();
  1059. value_type_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1060. string_value);
  1061. }
  1062. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.string_value)
  1063. }
  1064. // bytes bytes_value = 18;
  1065. inline bool Value::has_bytes_value() const {
  1066. return value_type_case() == kBytesValue;
  1067. }
  1068. inline void Value::set_has_bytes_value() {
  1069. _oneof_case_[0] = kBytesValue;
  1070. }
  1071. inline void Value::clear_bytes_value() {
  1072. if (has_bytes_value()) {
  1073. value_type_.bytes_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1074. clear_has_value_type();
  1075. }
  1076. }
  1077. inline const ::std::string& Value::bytes_value() const {
  1078. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.bytes_value)
  1079. if (has_bytes_value()) {
  1080. return value_type_.bytes_value_.GetNoArena();
  1081. }
  1082. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1083. }
  1084. inline void Value::set_bytes_value(const ::std::string& value) {
  1085. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
  1086. if (!has_bytes_value()) {
  1087. clear_value_type();
  1088. set_has_bytes_value();
  1089. value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1090. }
  1091. value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1092. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
  1093. }
  1094. #if LANG_CXX11
  1095. inline void Value::set_bytes_value(::std::string&& value) {
  1096. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.bytes_value)
  1097. if (!has_bytes_value()) {
  1098. clear_value_type();
  1099. set_has_bytes_value();
  1100. value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1101. }
  1102. value_type_.bytes_value_.SetNoArena(
  1103. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1104. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Value.bytes_value)
  1105. }
  1106. #endif
  1107. inline void Value::set_bytes_value(const char* value) {
  1108. GOOGLE_DCHECK(value != NULL);
  1109. if (!has_bytes_value()) {
  1110. clear_value_type();
  1111. set_has_bytes_value();
  1112. value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1113. }
  1114. value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1115. ::std::string(value));
  1116. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Value.bytes_value)
  1117. }
  1118. inline void Value::set_bytes_value(const void* value, size_t size) {
  1119. if (!has_bytes_value()) {
  1120. clear_value_type();
  1121. set_has_bytes_value();
  1122. value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1123. }
  1124. value_type_.bytes_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1125. reinterpret_cast<const char*>(value), size));
  1126. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Value.bytes_value)
  1127. }
  1128. inline ::std::string* Value::mutable_bytes_value() {
  1129. if (!has_bytes_value()) {
  1130. clear_value_type();
  1131. set_has_bytes_value();
  1132. value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1133. }
  1134. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.bytes_value)
  1135. return value_type_.bytes_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1136. }
  1137. inline ::std::string* Value::release_bytes_value() {
  1138. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.bytes_value)
  1139. if (has_bytes_value()) {
  1140. clear_has_value_type();
  1141. return value_type_.bytes_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1142. } else {
  1143. return NULL;
  1144. }
  1145. }
  1146. inline void Value::set_allocated_bytes_value(::std::string* bytes_value) {
  1147. if (!has_bytes_value()) {
  1148. value_type_.bytes_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1149. }
  1150. clear_value_type();
  1151. if (bytes_value != NULL) {
  1152. set_has_bytes_value();
  1153. value_type_.bytes_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1154. bytes_value);
  1155. }
  1156. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.bytes_value)
  1157. }
  1158. // string reference_value = 5;
  1159. inline bool Value::has_reference_value() const {
  1160. return value_type_case() == kReferenceValue;
  1161. }
  1162. inline void Value::set_has_reference_value() {
  1163. _oneof_case_[0] = kReferenceValue;
  1164. }
  1165. inline void Value::clear_reference_value() {
  1166. if (has_reference_value()) {
  1167. value_type_.reference_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1168. clear_has_value_type();
  1169. }
  1170. }
  1171. inline const ::std::string& Value::reference_value() const {
  1172. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.reference_value)
  1173. if (has_reference_value()) {
  1174. return value_type_.reference_value_.GetNoArena();
  1175. }
  1176. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1177. }
  1178. inline void Value::set_reference_value(const ::std::string& value) {
  1179. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
  1180. if (!has_reference_value()) {
  1181. clear_value_type();
  1182. set_has_reference_value();
  1183. value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1184. }
  1185. value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  1186. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
  1187. }
  1188. #if LANG_CXX11
  1189. inline void Value::set_reference_value(::std::string&& value) {
  1190. // @@protoc_insertion_point(field_set:google.firestore.v1.Value.reference_value)
  1191. if (!has_reference_value()) {
  1192. clear_value_type();
  1193. set_has_reference_value();
  1194. value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1195. }
  1196. value_type_.reference_value_.SetNoArena(
  1197. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  1198. // @@protoc_insertion_point(field_set_rvalue:google.firestore.v1.Value.reference_value)
  1199. }
  1200. #endif
  1201. inline void Value::set_reference_value(const char* value) {
  1202. GOOGLE_DCHECK(value != NULL);
  1203. if (!has_reference_value()) {
  1204. clear_value_type();
  1205. set_has_reference_value();
  1206. value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1207. }
  1208. value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1209. ::std::string(value));
  1210. // @@protoc_insertion_point(field_set_char:google.firestore.v1.Value.reference_value)
  1211. }
  1212. inline void Value::set_reference_value(const char* value, size_t size) {
  1213. if (!has_reference_value()) {
  1214. clear_value_type();
  1215. set_has_reference_value();
  1216. value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1217. }
  1218. value_type_.reference_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1219. reinterpret_cast<const char*>(value), size));
  1220. // @@protoc_insertion_point(field_set_pointer:google.firestore.v1.Value.reference_value)
  1221. }
  1222. inline ::std::string* Value::mutable_reference_value() {
  1223. if (!has_reference_value()) {
  1224. clear_value_type();
  1225. set_has_reference_value();
  1226. value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1227. }
  1228. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.reference_value)
  1229. return value_type_.reference_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1230. }
  1231. inline ::std::string* Value::release_reference_value() {
  1232. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.reference_value)
  1233. if (has_reference_value()) {
  1234. clear_has_value_type();
  1235. return value_type_.reference_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1236. } else {
  1237. return NULL;
  1238. }
  1239. }
  1240. inline void Value::set_allocated_reference_value(::std::string* reference_value) {
  1241. if (!has_reference_value()) {
  1242. value_type_.reference_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1243. }
  1244. clear_value_type();
  1245. if (reference_value != NULL) {
  1246. set_has_reference_value();
  1247. value_type_.reference_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1248. reference_value);
  1249. }
  1250. // @@protoc_insertion_point(field_set_allocated:google.firestore.v1.Value.reference_value)
  1251. }
  1252. // .google.type.LatLng geo_point_value = 8;
  1253. inline bool Value::has_geo_point_value() const {
  1254. return value_type_case() == kGeoPointValue;
  1255. }
  1256. inline void Value::set_has_geo_point_value() {
  1257. _oneof_case_[0] = kGeoPointValue;
  1258. }
  1259. inline ::google::type::LatLng* Value::release_geo_point_value() {
  1260. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.geo_point_value)
  1261. if (has_geo_point_value()) {
  1262. clear_has_value_type();
  1263. ::google::type::LatLng* temp = value_type_.geo_point_value_;
  1264. value_type_.geo_point_value_ = NULL;
  1265. return temp;
  1266. } else {
  1267. return NULL;
  1268. }
  1269. }
  1270. inline const ::google::type::LatLng& Value::geo_point_value() const {
  1271. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.geo_point_value)
  1272. return has_geo_point_value()
  1273. ? *value_type_.geo_point_value_
  1274. : *reinterpret_cast< ::google::type::LatLng*>(&::google::type::_LatLng_default_instance_);
  1275. }
  1276. inline ::google::type::LatLng* Value::mutable_geo_point_value() {
  1277. if (!has_geo_point_value()) {
  1278. clear_value_type();
  1279. set_has_geo_point_value();
  1280. value_type_.geo_point_value_ = new ::google::type::LatLng;
  1281. }
  1282. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.geo_point_value)
  1283. return value_type_.geo_point_value_;
  1284. }
  1285. // .google.firestore.v1.ArrayValue array_value = 9;
  1286. inline bool Value::has_array_value() const {
  1287. return value_type_case() == kArrayValue;
  1288. }
  1289. inline void Value::set_has_array_value() {
  1290. _oneof_case_[0] = kArrayValue;
  1291. }
  1292. inline void Value::clear_array_value() {
  1293. if (has_array_value()) {
  1294. delete value_type_.array_value_;
  1295. clear_has_value_type();
  1296. }
  1297. }
  1298. inline ::google::firestore::v1::ArrayValue* Value::release_array_value() {
  1299. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.array_value)
  1300. if (has_array_value()) {
  1301. clear_has_value_type();
  1302. ::google::firestore::v1::ArrayValue* temp = value_type_.array_value_;
  1303. value_type_.array_value_ = NULL;
  1304. return temp;
  1305. } else {
  1306. return NULL;
  1307. }
  1308. }
  1309. inline const ::google::firestore::v1::ArrayValue& Value::array_value() const {
  1310. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.array_value)
  1311. return has_array_value()
  1312. ? *value_type_.array_value_
  1313. : *reinterpret_cast< ::google::firestore::v1::ArrayValue*>(&::google::firestore::v1::_ArrayValue_default_instance_);
  1314. }
  1315. inline ::google::firestore::v1::ArrayValue* Value::mutable_array_value() {
  1316. if (!has_array_value()) {
  1317. clear_value_type();
  1318. set_has_array_value();
  1319. value_type_.array_value_ = new ::google::firestore::v1::ArrayValue;
  1320. }
  1321. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.array_value)
  1322. return value_type_.array_value_;
  1323. }
  1324. // .google.firestore.v1.MapValue map_value = 6;
  1325. inline bool Value::has_map_value() const {
  1326. return value_type_case() == kMapValue;
  1327. }
  1328. inline void Value::set_has_map_value() {
  1329. _oneof_case_[0] = kMapValue;
  1330. }
  1331. inline void Value::clear_map_value() {
  1332. if (has_map_value()) {
  1333. delete value_type_.map_value_;
  1334. clear_has_value_type();
  1335. }
  1336. }
  1337. inline ::google::firestore::v1::MapValue* Value::release_map_value() {
  1338. // @@protoc_insertion_point(field_release:google.firestore.v1.Value.map_value)
  1339. if (has_map_value()) {
  1340. clear_has_value_type();
  1341. ::google::firestore::v1::MapValue* temp = value_type_.map_value_;
  1342. value_type_.map_value_ = NULL;
  1343. return temp;
  1344. } else {
  1345. return NULL;
  1346. }
  1347. }
  1348. inline const ::google::firestore::v1::MapValue& Value::map_value() const {
  1349. // @@protoc_insertion_point(field_get:google.firestore.v1.Value.map_value)
  1350. return has_map_value()
  1351. ? *value_type_.map_value_
  1352. : *reinterpret_cast< ::google::firestore::v1::MapValue*>(&::google::firestore::v1::_MapValue_default_instance_);
  1353. }
  1354. inline ::google::firestore::v1::MapValue* Value::mutable_map_value() {
  1355. if (!has_map_value()) {
  1356. clear_value_type();
  1357. set_has_map_value();
  1358. value_type_.map_value_ = new ::google::firestore::v1::MapValue;
  1359. }
  1360. // @@protoc_insertion_point(field_mutable:google.firestore.v1.Value.map_value)
  1361. return value_type_.map_value_;
  1362. }
  1363. inline bool Value::has_value_type() const {
  1364. return value_type_case() != VALUE_TYPE_NOT_SET;
  1365. }
  1366. inline void Value::clear_has_value_type() {
  1367. _oneof_case_[0] = VALUE_TYPE_NOT_SET;
  1368. }
  1369. inline Value::ValueTypeCase Value::value_type_case() const {
  1370. return Value::ValueTypeCase(_oneof_case_[0]);
  1371. }
  1372. // -------------------------------------------------------------------
  1373. // ArrayValue
  1374. // repeated .google.firestore.v1.Value values = 1;
  1375. inline int ArrayValue::values_size() const {
  1376. return values_.size();
  1377. }
  1378. inline void ArrayValue::clear_values() {
  1379. values_.Clear();
  1380. }
  1381. inline const ::google::firestore::v1::Value& ArrayValue::values(int index) const {
  1382. // @@protoc_insertion_point(field_get:google.firestore.v1.ArrayValue.values)
  1383. return values_.Get(index);
  1384. }
  1385. inline ::google::firestore::v1::Value* ArrayValue::mutable_values(int index) {
  1386. // @@protoc_insertion_point(field_mutable:google.firestore.v1.ArrayValue.values)
  1387. return values_.Mutable(index);
  1388. }
  1389. inline ::google::firestore::v1::Value* ArrayValue::add_values() {
  1390. // @@protoc_insertion_point(field_add:google.firestore.v1.ArrayValue.values)
  1391. return values_.Add();
  1392. }
  1393. inline ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >*
  1394. ArrayValue::mutable_values() {
  1395. // @@protoc_insertion_point(field_mutable_list:google.firestore.v1.ArrayValue.values)
  1396. return &values_;
  1397. }
  1398. inline const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Value >&
  1399. ArrayValue::values() const {
  1400. // @@protoc_insertion_point(field_list:google.firestore.v1.ArrayValue.values)
  1401. return values_;
  1402. }
  1403. // -------------------------------------------------------------------
  1404. // -------------------------------------------------------------------
  1405. // MapValue
  1406. // map<string, .google.firestore.v1.Value> fields = 1;
  1407. inline int MapValue::fields_size() const {
  1408. return fields_.size();
  1409. }
  1410. inline void MapValue::clear_fields() {
  1411. fields_.Clear();
  1412. }
  1413. inline const ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >&
  1414. MapValue::fields() const {
  1415. // @@protoc_insertion_point(field_map:google.firestore.v1.MapValue.fields)
  1416. return fields_.GetMap();
  1417. }
  1418. inline ::google::protobuf::Map< ::std::string, ::google::firestore::v1::Value >*
  1419. MapValue::mutable_fields() {
  1420. // @@protoc_insertion_point(field_mutable_map:google.firestore.v1.MapValue.fields)
  1421. return fields_.MutableMap();
  1422. }
  1423. #ifdef __GNUC__
  1424. #pragma GCC diagnostic pop
  1425. #endif // __GNUC__
  1426. // -------------------------------------------------------------------
  1427. // -------------------------------------------------------------------
  1428. // -------------------------------------------------------------------
  1429. // -------------------------------------------------------------------
  1430. // -------------------------------------------------------------------
  1431. // @@protoc_insertion_point(namespace_scope)
  1432. } // namespace v1
  1433. } // namespace firestore
  1434. } // namespace google
  1435. // @@protoc_insertion_point(global_scope)
  1436. #endif // PROTOBUF_google_2ffirestore_2fv1_2fdocument_2eproto__INCLUDED