document.pb.h 64 KB

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