mutation.pb.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679
  1. /*
  2. * Copyright 2021 Google LLC
  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: firestore/local/mutation.proto
  18. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3011000
  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 3011002 < 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/unknown_field_set.h>
  46. #include "google/firestore/v1/write.pb.h"
  47. #include <google/protobuf/timestamp.pb.h>
  48. // @@protoc_insertion_point(includes)
  49. #include <google/protobuf/port_def.inc>
  50. #define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2fmutation_2eproto
  51. PROTOBUF_NAMESPACE_OPEN
  52. namespace internal {
  53. class AnyMetadata;
  54. } // namespace internal
  55. PROTOBUF_NAMESPACE_CLOSE
  56. // Internal implementation detail -- do not use these members.
  57. struct TableStruct_firestore_2flocal_2fmutation_2eproto {
  58. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  59. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  60. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  61. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  62. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
  63. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  65. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  66. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  67. };
  68. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_firestore_2flocal_2fmutation_2eproto;
  69. namespace firestore {
  70. namespace client {
  71. class MutationQueue;
  72. class MutationQueueDefaultTypeInternal;
  73. extern MutationQueueDefaultTypeInternal _MutationQueue_default_instance_;
  74. class WriteBatch;
  75. class WriteBatchDefaultTypeInternal;
  76. extern WriteBatchDefaultTypeInternal _WriteBatch_default_instance_;
  77. } // namespace client
  78. } // namespace firestore
  79. PROTOBUF_NAMESPACE_OPEN
  80. template<> ::firestore::client::MutationQueue* Arena::CreateMaybeMessage<::firestore::client::MutationQueue>(Arena*);
  81. template<> ::firestore::client::WriteBatch* Arena::CreateMaybeMessage<::firestore::client::WriteBatch>(Arena*);
  82. PROTOBUF_NAMESPACE_CLOSE
  83. namespace firestore {
  84. namespace client {
  85. // ===================================================================
  86. class MutationQueue :
  87. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.MutationQueue) */ {
  88. public:
  89. MutationQueue();
  90. virtual ~MutationQueue();
  91. MutationQueue(const MutationQueue& from);
  92. MutationQueue(MutationQueue&& from) noexcept
  93. : MutationQueue() {
  94. *this = ::std::move(from);
  95. }
  96. inline MutationQueue& operator=(const MutationQueue& from) {
  97. CopyFrom(from);
  98. return *this;
  99. }
  100. inline MutationQueue& operator=(MutationQueue&& from) noexcept {
  101. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  102. if (this != &from) InternalSwap(&from);
  103. } else {
  104. CopyFrom(from);
  105. }
  106. return *this;
  107. }
  108. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  109. return GetDescriptor();
  110. }
  111. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  112. return GetMetadataStatic().descriptor;
  113. }
  114. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  115. return GetMetadataStatic().reflection;
  116. }
  117. static const MutationQueue& default_instance();
  118. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  119. static inline const MutationQueue* internal_default_instance() {
  120. return reinterpret_cast<const MutationQueue*>(
  121. &_MutationQueue_default_instance_);
  122. }
  123. static constexpr int kIndexInFileMessages =
  124. 0;
  125. friend void swap(MutationQueue& a, MutationQueue& b) {
  126. a.Swap(&b);
  127. }
  128. inline void Swap(MutationQueue* other) {
  129. if (other == this) return;
  130. InternalSwap(other);
  131. }
  132. // implements Message ----------------------------------------------
  133. inline MutationQueue* New() const final {
  134. return CreateMaybeMessage<MutationQueue>(nullptr);
  135. }
  136. MutationQueue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  137. return CreateMaybeMessage<MutationQueue>(arena);
  138. }
  139. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  140. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  141. void CopyFrom(const MutationQueue& from);
  142. void MergeFrom(const MutationQueue& from);
  143. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  144. bool IsInitialized() const final;
  145. size_t ByteSizeLong() const final;
  146. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  147. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  148. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  149. int GetCachedSize() const final { return _cached_size_.Get(); }
  150. private:
  151. inline void SharedCtor();
  152. inline void SharedDtor();
  153. void SetCachedSize(int size) const final;
  154. void InternalSwap(MutationQueue* other);
  155. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  156. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  157. return "firestore.client.MutationQueue";
  158. }
  159. private:
  160. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  161. return nullptr;
  162. }
  163. inline void* MaybeArenaPtr() const {
  164. return nullptr;
  165. }
  166. public:
  167. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  168. private:
  169. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  170. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmutation_2eproto);
  171. return ::descriptor_table_firestore_2flocal_2fmutation_2eproto.file_level_metadata[kIndexInFileMessages];
  172. }
  173. public:
  174. // nested types ----------------------------------------------------
  175. // accessors -------------------------------------------------------
  176. enum : int {
  177. kLastStreamTokenFieldNumber = 2,
  178. kLastAcknowledgedBatchIdFieldNumber = 1,
  179. };
  180. // bytes last_stream_token = 2;
  181. void clear_last_stream_token();
  182. const std::string& last_stream_token() const;
  183. void set_last_stream_token(const std::string& value);
  184. void set_last_stream_token(std::string&& value);
  185. void set_last_stream_token(const char* value);
  186. void set_last_stream_token(const void* value, size_t size);
  187. std::string* mutable_last_stream_token();
  188. std::string* release_last_stream_token();
  189. void set_allocated_last_stream_token(std::string* last_stream_token);
  190. private:
  191. const std::string& _internal_last_stream_token() const;
  192. void _internal_set_last_stream_token(const std::string& value);
  193. std::string* _internal_mutable_last_stream_token();
  194. public:
  195. // int32 last_acknowledged_batch_id = 1;
  196. void clear_last_acknowledged_batch_id();
  197. ::PROTOBUF_NAMESPACE_ID::int32 last_acknowledged_batch_id() const;
  198. void set_last_acknowledged_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  199. private:
  200. ::PROTOBUF_NAMESPACE_ID::int32 _internal_last_acknowledged_batch_id() const;
  201. void _internal_set_last_acknowledged_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  202. public:
  203. // @@protoc_insertion_point(class_scope:firestore.client.MutationQueue)
  204. private:
  205. class _Internal;
  206. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  207. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_stream_token_;
  208. ::PROTOBUF_NAMESPACE_ID::int32 last_acknowledged_batch_id_;
  209. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  210. friend struct ::TableStruct_firestore_2flocal_2fmutation_2eproto;
  211. };
  212. // -------------------------------------------------------------------
  213. class WriteBatch :
  214. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.WriteBatch) */ {
  215. public:
  216. WriteBatch();
  217. virtual ~WriteBatch();
  218. WriteBatch(const WriteBatch& from);
  219. WriteBatch(WriteBatch&& from) noexcept
  220. : WriteBatch() {
  221. *this = ::std::move(from);
  222. }
  223. inline WriteBatch& operator=(const WriteBatch& from) {
  224. CopyFrom(from);
  225. return *this;
  226. }
  227. inline WriteBatch& operator=(WriteBatch&& from) noexcept {
  228. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  229. if (this != &from) InternalSwap(&from);
  230. } else {
  231. CopyFrom(from);
  232. }
  233. return *this;
  234. }
  235. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  236. return GetDescriptor();
  237. }
  238. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  239. return GetMetadataStatic().descriptor;
  240. }
  241. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  242. return GetMetadataStatic().reflection;
  243. }
  244. static const WriteBatch& default_instance();
  245. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  246. static inline const WriteBatch* internal_default_instance() {
  247. return reinterpret_cast<const WriteBatch*>(
  248. &_WriteBatch_default_instance_);
  249. }
  250. static constexpr int kIndexInFileMessages =
  251. 1;
  252. friend void swap(WriteBatch& a, WriteBatch& b) {
  253. a.Swap(&b);
  254. }
  255. inline void Swap(WriteBatch* other) {
  256. if (other == this) return;
  257. InternalSwap(other);
  258. }
  259. // implements Message ----------------------------------------------
  260. inline WriteBatch* New() const final {
  261. return CreateMaybeMessage<WriteBatch>(nullptr);
  262. }
  263. WriteBatch* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  264. return CreateMaybeMessage<WriteBatch>(arena);
  265. }
  266. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  267. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  268. void CopyFrom(const WriteBatch& from);
  269. void MergeFrom(const WriteBatch& from);
  270. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  271. bool IsInitialized() const final;
  272. size_t ByteSizeLong() const final;
  273. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  274. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  275. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  276. int GetCachedSize() const final { return _cached_size_.Get(); }
  277. private:
  278. inline void SharedCtor();
  279. inline void SharedDtor();
  280. void SetCachedSize(int size) const final;
  281. void InternalSwap(WriteBatch* other);
  282. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  283. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  284. return "firestore.client.WriteBatch";
  285. }
  286. private:
  287. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  288. return nullptr;
  289. }
  290. inline void* MaybeArenaPtr() const {
  291. return nullptr;
  292. }
  293. public:
  294. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  295. private:
  296. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  297. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmutation_2eproto);
  298. return ::descriptor_table_firestore_2flocal_2fmutation_2eproto.file_level_metadata[kIndexInFileMessages];
  299. }
  300. public:
  301. // nested types ----------------------------------------------------
  302. // accessors -------------------------------------------------------
  303. enum : int {
  304. kWritesFieldNumber = 2,
  305. kBaseWritesFieldNumber = 4,
  306. kLocalWriteTimeFieldNumber = 3,
  307. kBatchIdFieldNumber = 1,
  308. };
  309. // repeated .google.firestore.v1.Write writes = 2;
  310. int writes_size() const;
  311. private:
  312. int _internal_writes_size() const;
  313. public:
  314. void clear_writes();
  315. ::google::firestore::v1::Write* mutable_writes(int index);
  316. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  317. mutable_writes();
  318. private:
  319. const ::google::firestore::v1::Write& _internal_writes(int index) const;
  320. ::google::firestore::v1::Write* _internal_add_writes();
  321. public:
  322. const ::google::firestore::v1::Write& writes(int index) const;
  323. ::google::firestore::v1::Write* add_writes();
  324. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  325. writes() const;
  326. // repeated .google.firestore.v1.Write base_writes = 4;
  327. int base_writes_size() const;
  328. private:
  329. int _internal_base_writes_size() const;
  330. public:
  331. void clear_base_writes();
  332. ::google::firestore::v1::Write* mutable_base_writes(int index);
  333. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  334. mutable_base_writes();
  335. private:
  336. const ::google::firestore::v1::Write& _internal_base_writes(int index) const;
  337. ::google::firestore::v1::Write* _internal_add_base_writes();
  338. public:
  339. const ::google::firestore::v1::Write& base_writes(int index) const;
  340. ::google::firestore::v1::Write* add_base_writes();
  341. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  342. base_writes() const;
  343. // .google.protobuf.Timestamp local_write_time = 3;
  344. bool has_local_write_time() const;
  345. private:
  346. bool _internal_has_local_write_time() const;
  347. public:
  348. void clear_local_write_time();
  349. const PROTOBUF_NAMESPACE_ID::Timestamp& local_write_time() const;
  350. PROTOBUF_NAMESPACE_ID::Timestamp* release_local_write_time();
  351. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_local_write_time();
  352. void set_allocated_local_write_time(PROTOBUF_NAMESPACE_ID::Timestamp* local_write_time);
  353. private:
  354. const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_local_write_time() const;
  355. PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_local_write_time();
  356. public:
  357. // int32 batch_id = 1;
  358. void clear_batch_id();
  359. ::PROTOBUF_NAMESPACE_ID::int32 batch_id() const;
  360. void set_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  361. private:
  362. ::PROTOBUF_NAMESPACE_ID::int32 _internal_batch_id() const;
  363. void _internal_set_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  364. public:
  365. // @@protoc_insertion_point(class_scope:firestore.client.WriteBatch)
  366. private:
  367. class _Internal;
  368. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  369. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  370. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > base_writes_;
  371. PROTOBUF_NAMESPACE_ID::Timestamp* local_write_time_;
  372. ::PROTOBUF_NAMESPACE_ID::int32 batch_id_;
  373. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  374. friend struct ::TableStruct_firestore_2flocal_2fmutation_2eproto;
  375. };
  376. // ===================================================================
  377. // ===================================================================
  378. #ifdef __GNUC__
  379. #pragma GCC diagnostic push
  380. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  381. #endif // __GNUC__
  382. // MutationQueue
  383. // int32 last_acknowledged_batch_id = 1;
  384. inline void MutationQueue::clear_last_acknowledged_batch_id() {
  385. last_acknowledged_batch_id_ = 0;
  386. }
  387. inline ::PROTOBUF_NAMESPACE_ID::int32 MutationQueue::_internal_last_acknowledged_batch_id() const {
  388. return last_acknowledged_batch_id_;
  389. }
  390. inline ::PROTOBUF_NAMESPACE_ID::int32 MutationQueue::last_acknowledged_batch_id() const {
  391. // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_acknowledged_batch_id)
  392. return _internal_last_acknowledged_batch_id();
  393. }
  394. inline void MutationQueue::_internal_set_last_acknowledged_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  395. last_acknowledged_batch_id_ = value;
  396. }
  397. inline void MutationQueue::set_last_acknowledged_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  398. _internal_set_last_acknowledged_batch_id(value);
  399. // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_acknowledged_batch_id)
  400. }
  401. // bytes last_stream_token = 2;
  402. inline void MutationQueue::clear_last_stream_token() {
  403. last_stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  404. }
  405. inline const std::string& MutationQueue::last_stream_token() const {
  406. // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_stream_token)
  407. return _internal_last_stream_token();
  408. }
  409. inline void MutationQueue::set_last_stream_token(const std::string& value) {
  410. _internal_set_last_stream_token(value);
  411. // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_stream_token)
  412. }
  413. inline std::string* MutationQueue::mutable_last_stream_token() {
  414. // @@protoc_insertion_point(field_mutable:firestore.client.MutationQueue.last_stream_token)
  415. return _internal_mutable_last_stream_token();
  416. }
  417. inline const std::string& MutationQueue::_internal_last_stream_token() const {
  418. return last_stream_token_.GetNoArena();
  419. }
  420. inline void MutationQueue::_internal_set_last_stream_token(const std::string& value) {
  421. last_stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  422. }
  423. inline void MutationQueue::set_last_stream_token(std::string&& value) {
  424. last_stream_token_.SetNoArena(
  425. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  426. // @@protoc_insertion_point(field_set_rvalue:firestore.client.MutationQueue.last_stream_token)
  427. }
  428. inline void MutationQueue::set_last_stream_token(const char* value) {
  429. GOOGLE_DCHECK(value != nullptr);
  430. last_stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  431. // @@protoc_insertion_point(field_set_char:firestore.client.MutationQueue.last_stream_token)
  432. }
  433. inline void MutationQueue::set_last_stream_token(const void* value, size_t size) {
  434. last_stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  435. ::std::string(reinterpret_cast<const char*>(value), size));
  436. // @@protoc_insertion_point(field_set_pointer:firestore.client.MutationQueue.last_stream_token)
  437. }
  438. inline std::string* MutationQueue::_internal_mutable_last_stream_token() {
  439. return last_stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  440. }
  441. inline std::string* MutationQueue::release_last_stream_token() {
  442. // @@protoc_insertion_point(field_release:firestore.client.MutationQueue.last_stream_token)
  443. return last_stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  444. }
  445. inline void MutationQueue::set_allocated_last_stream_token(std::string* last_stream_token) {
  446. if (last_stream_token != nullptr) {
  447. } else {
  448. }
  449. last_stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_stream_token);
  450. // @@protoc_insertion_point(field_set_allocated:firestore.client.MutationQueue.last_stream_token)
  451. }
  452. // -------------------------------------------------------------------
  453. // WriteBatch
  454. // int32 batch_id = 1;
  455. inline void WriteBatch::clear_batch_id() {
  456. batch_id_ = 0;
  457. }
  458. inline ::PROTOBUF_NAMESPACE_ID::int32 WriteBatch::_internal_batch_id() const {
  459. return batch_id_;
  460. }
  461. inline ::PROTOBUF_NAMESPACE_ID::int32 WriteBatch::batch_id() const {
  462. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.batch_id)
  463. return _internal_batch_id();
  464. }
  465. inline void WriteBatch::_internal_set_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  466. batch_id_ = value;
  467. }
  468. inline void WriteBatch::set_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  469. _internal_set_batch_id(value);
  470. // @@protoc_insertion_point(field_set:firestore.client.WriteBatch.batch_id)
  471. }
  472. // repeated .google.firestore.v1.Write writes = 2;
  473. inline int WriteBatch::_internal_writes_size() const {
  474. return writes_.size();
  475. }
  476. inline int WriteBatch::writes_size() const {
  477. return _internal_writes_size();
  478. }
  479. inline ::google::firestore::v1::Write* WriteBatch::mutable_writes(int index) {
  480. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.writes)
  481. return writes_.Mutable(index);
  482. }
  483. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  484. WriteBatch::mutable_writes() {
  485. // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.writes)
  486. return &writes_;
  487. }
  488. inline const ::google::firestore::v1::Write& WriteBatch::_internal_writes(int index) const {
  489. return writes_.Get(index);
  490. }
  491. inline const ::google::firestore::v1::Write& WriteBatch::writes(int index) const {
  492. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.writes)
  493. return _internal_writes(index);
  494. }
  495. inline ::google::firestore::v1::Write* WriteBatch::_internal_add_writes() {
  496. return writes_.Add();
  497. }
  498. inline ::google::firestore::v1::Write* WriteBatch::add_writes() {
  499. // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.writes)
  500. return _internal_add_writes();
  501. }
  502. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  503. WriteBatch::writes() const {
  504. // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.writes)
  505. return writes_;
  506. }
  507. // .google.protobuf.Timestamp local_write_time = 3;
  508. inline bool WriteBatch::_internal_has_local_write_time() const {
  509. return this != internal_default_instance() && local_write_time_ != nullptr;
  510. }
  511. inline bool WriteBatch::has_local_write_time() const {
  512. return _internal_has_local_write_time();
  513. }
  514. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteBatch::_internal_local_write_time() const {
  515. const PROTOBUF_NAMESPACE_ID::Timestamp* p = local_write_time_;
  516. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  517. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  518. }
  519. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteBatch::local_write_time() const {
  520. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.local_write_time)
  521. return _internal_local_write_time();
  522. }
  523. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteBatch::release_local_write_time() {
  524. // @@protoc_insertion_point(field_release:firestore.client.WriteBatch.local_write_time)
  525. PROTOBUF_NAMESPACE_ID::Timestamp* temp = local_write_time_;
  526. local_write_time_ = nullptr;
  527. return temp;
  528. }
  529. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteBatch::_internal_mutable_local_write_time() {
  530. if (local_write_time_ == nullptr) {
  531. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  532. local_write_time_ = p;
  533. }
  534. return local_write_time_;
  535. }
  536. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteBatch::mutable_local_write_time() {
  537. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.local_write_time)
  538. return _internal_mutable_local_write_time();
  539. }
  540. inline void WriteBatch::set_allocated_local_write_time(PROTOBUF_NAMESPACE_ID::Timestamp* local_write_time) {
  541. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  542. if (message_arena == nullptr) {
  543. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(local_write_time_);
  544. }
  545. if (local_write_time) {
  546. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  547. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(local_write_time)->GetArena();
  548. if (message_arena != submessage_arena) {
  549. local_write_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  550. message_arena, local_write_time, submessage_arena);
  551. }
  552. } else {
  553. }
  554. local_write_time_ = local_write_time;
  555. // @@protoc_insertion_point(field_set_allocated:firestore.client.WriteBatch.local_write_time)
  556. }
  557. // repeated .google.firestore.v1.Write base_writes = 4;
  558. inline int WriteBatch::_internal_base_writes_size() const {
  559. return base_writes_.size();
  560. }
  561. inline int WriteBatch::base_writes_size() const {
  562. return _internal_base_writes_size();
  563. }
  564. inline ::google::firestore::v1::Write* WriteBatch::mutable_base_writes(int index) {
  565. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.base_writes)
  566. return base_writes_.Mutable(index);
  567. }
  568. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  569. WriteBatch::mutable_base_writes() {
  570. // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.base_writes)
  571. return &base_writes_;
  572. }
  573. inline const ::google::firestore::v1::Write& WriteBatch::_internal_base_writes(int index) const {
  574. return base_writes_.Get(index);
  575. }
  576. inline const ::google::firestore::v1::Write& WriteBatch::base_writes(int index) const {
  577. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.base_writes)
  578. return _internal_base_writes(index);
  579. }
  580. inline ::google::firestore::v1::Write* WriteBatch::_internal_add_base_writes() {
  581. return base_writes_.Add();
  582. }
  583. inline ::google::firestore::v1::Write* WriteBatch::add_base_writes() {
  584. // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.base_writes)
  585. return _internal_add_base_writes();
  586. }
  587. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  588. WriteBatch::base_writes() const {
  589. // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.base_writes)
  590. return base_writes_;
  591. }
  592. #ifdef __GNUC__
  593. #pragma GCC diagnostic pop
  594. #endif // __GNUC__
  595. // -------------------------------------------------------------------
  596. // @@protoc_insertion_point(namespace_scope)
  597. } // namespace client
  598. } // namespace firestore
  599. // @@protoc_insertion_point(global_scope)
  600. #include <google/protobuf/port_undef.inc>
  601. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto