mutation.pb.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611
  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: 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 < 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/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. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  147. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  148. #else
  149. bool MergePartialFromCodedStream(
  150. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  151. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  152. void SerializeWithCachedSizes(
  153. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  154. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  155. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  156. int GetCachedSize() const final { return _cached_size_.Get(); }
  157. private:
  158. inline void SharedCtor();
  159. inline void SharedDtor();
  160. void SetCachedSize(int size) const final;
  161. void InternalSwap(MutationQueue* other);
  162. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  163. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  164. return "firestore.client.MutationQueue";
  165. }
  166. private:
  167. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  168. return nullptr;
  169. }
  170. inline void* MaybeArenaPtr() const {
  171. return nullptr;
  172. }
  173. public:
  174. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  175. private:
  176. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  177. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmutation_2eproto);
  178. return ::descriptor_table_firestore_2flocal_2fmutation_2eproto.file_level_metadata[kIndexInFileMessages];
  179. }
  180. public:
  181. // nested types ----------------------------------------------------
  182. // accessors -------------------------------------------------------
  183. enum : int {
  184. kLastStreamTokenFieldNumber = 2,
  185. kLastAcknowledgedBatchIdFieldNumber = 1,
  186. };
  187. // bytes last_stream_token = 2;
  188. void clear_last_stream_token();
  189. const std::string& last_stream_token() const;
  190. void set_last_stream_token(const std::string& value);
  191. void set_last_stream_token(std::string&& value);
  192. void set_last_stream_token(const char* value);
  193. void set_last_stream_token(const void* value, size_t size);
  194. std::string* mutable_last_stream_token();
  195. std::string* release_last_stream_token();
  196. void set_allocated_last_stream_token(std::string* last_stream_token);
  197. // int32 last_acknowledged_batch_id = 1;
  198. void clear_last_acknowledged_batch_id();
  199. ::PROTOBUF_NAMESPACE_ID::int32 last_acknowledged_batch_id() const;
  200. void set_last_acknowledged_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  201. // @@protoc_insertion_point(class_scope:firestore.client.MutationQueue)
  202. private:
  203. class _Internal;
  204. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  205. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_stream_token_;
  206. ::PROTOBUF_NAMESPACE_ID::int32 last_acknowledged_batch_id_;
  207. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  208. friend struct ::TableStruct_firestore_2flocal_2fmutation_2eproto;
  209. };
  210. // -------------------------------------------------------------------
  211. class WriteBatch :
  212. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.WriteBatch) */ {
  213. public:
  214. WriteBatch();
  215. virtual ~WriteBatch();
  216. WriteBatch(const WriteBatch& from);
  217. WriteBatch(WriteBatch&& from) noexcept
  218. : WriteBatch() {
  219. *this = ::std::move(from);
  220. }
  221. inline WriteBatch& operator=(const WriteBatch& from) {
  222. CopyFrom(from);
  223. return *this;
  224. }
  225. inline WriteBatch& operator=(WriteBatch&& from) noexcept {
  226. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  227. if (this != &from) InternalSwap(&from);
  228. } else {
  229. CopyFrom(from);
  230. }
  231. return *this;
  232. }
  233. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  234. return GetDescriptor();
  235. }
  236. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  237. return GetMetadataStatic().descriptor;
  238. }
  239. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  240. return GetMetadataStatic().reflection;
  241. }
  242. static const WriteBatch& default_instance();
  243. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  244. static inline const WriteBatch* internal_default_instance() {
  245. return reinterpret_cast<const WriteBatch*>(
  246. &_WriteBatch_default_instance_);
  247. }
  248. static constexpr int kIndexInFileMessages =
  249. 1;
  250. friend void swap(WriteBatch& a, WriteBatch& b) {
  251. a.Swap(&b);
  252. }
  253. inline void Swap(WriteBatch* other) {
  254. if (other == this) return;
  255. InternalSwap(other);
  256. }
  257. // implements Message ----------------------------------------------
  258. inline WriteBatch* New() const final {
  259. return CreateMaybeMessage<WriteBatch>(nullptr);
  260. }
  261. WriteBatch* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  262. return CreateMaybeMessage<WriteBatch>(arena);
  263. }
  264. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  265. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  266. void CopyFrom(const WriteBatch& from);
  267. void MergeFrom(const WriteBatch& from);
  268. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  269. bool IsInitialized() const final;
  270. size_t ByteSizeLong() const final;
  271. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  272. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  273. #else
  274. bool MergePartialFromCodedStream(
  275. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  276. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  277. void SerializeWithCachedSizes(
  278. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  279. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  280. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  281. int GetCachedSize() const final { return _cached_size_.Get(); }
  282. private:
  283. inline void SharedCtor();
  284. inline void SharedDtor();
  285. void SetCachedSize(int size) const final;
  286. void InternalSwap(WriteBatch* other);
  287. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  288. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  289. return "firestore.client.WriteBatch";
  290. }
  291. private:
  292. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  293. return nullptr;
  294. }
  295. inline void* MaybeArenaPtr() const {
  296. return nullptr;
  297. }
  298. public:
  299. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  300. private:
  301. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  302. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2fmutation_2eproto);
  303. return ::descriptor_table_firestore_2flocal_2fmutation_2eproto.file_level_metadata[kIndexInFileMessages];
  304. }
  305. public:
  306. // nested types ----------------------------------------------------
  307. // accessors -------------------------------------------------------
  308. enum : int {
  309. kWritesFieldNumber = 2,
  310. kBaseWritesFieldNumber = 4,
  311. kLocalWriteTimeFieldNumber = 3,
  312. kBatchIdFieldNumber = 1,
  313. };
  314. // repeated .google.firestore.v1.Write writes = 2;
  315. int writes_size() const;
  316. void clear_writes();
  317. ::google::firestore::v1::Write* mutable_writes(int index);
  318. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  319. mutable_writes();
  320. const ::google::firestore::v1::Write& writes(int index) const;
  321. ::google::firestore::v1::Write* add_writes();
  322. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  323. writes() const;
  324. // repeated .google.firestore.v1.Write base_writes = 4;
  325. int base_writes_size() const;
  326. void clear_base_writes();
  327. ::google::firestore::v1::Write* mutable_base_writes(int index);
  328. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  329. mutable_base_writes();
  330. const ::google::firestore::v1::Write& base_writes(int index) const;
  331. ::google::firestore::v1::Write* add_base_writes();
  332. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  333. base_writes() const;
  334. // .google.protobuf.Timestamp local_write_time = 3;
  335. bool has_local_write_time() const;
  336. void clear_local_write_time();
  337. const PROTOBUF_NAMESPACE_ID::Timestamp& local_write_time() const;
  338. PROTOBUF_NAMESPACE_ID::Timestamp* release_local_write_time();
  339. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_local_write_time();
  340. void set_allocated_local_write_time(PROTOBUF_NAMESPACE_ID::Timestamp* local_write_time);
  341. // int32 batch_id = 1;
  342. void clear_batch_id();
  343. ::PROTOBUF_NAMESPACE_ID::int32 batch_id() const;
  344. void set_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  345. // @@protoc_insertion_point(class_scope:firestore.client.WriteBatch)
  346. private:
  347. class _Internal;
  348. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  349. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  350. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write > base_writes_;
  351. PROTOBUF_NAMESPACE_ID::Timestamp* local_write_time_;
  352. ::PROTOBUF_NAMESPACE_ID::int32 batch_id_;
  353. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  354. friend struct ::TableStruct_firestore_2flocal_2fmutation_2eproto;
  355. };
  356. // ===================================================================
  357. // ===================================================================
  358. #ifdef __GNUC__
  359. #pragma GCC diagnostic push
  360. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  361. #endif // __GNUC__
  362. // MutationQueue
  363. // int32 last_acknowledged_batch_id = 1;
  364. inline void MutationQueue::clear_last_acknowledged_batch_id() {
  365. last_acknowledged_batch_id_ = 0;
  366. }
  367. inline ::PROTOBUF_NAMESPACE_ID::int32 MutationQueue::last_acknowledged_batch_id() const {
  368. // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_acknowledged_batch_id)
  369. return last_acknowledged_batch_id_;
  370. }
  371. inline void MutationQueue::set_last_acknowledged_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  372. last_acknowledged_batch_id_ = value;
  373. // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_acknowledged_batch_id)
  374. }
  375. // bytes last_stream_token = 2;
  376. inline void MutationQueue::clear_last_stream_token() {
  377. last_stream_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  378. }
  379. inline const std::string& MutationQueue::last_stream_token() const {
  380. // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_stream_token)
  381. return last_stream_token_.GetNoArena();
  382. }
  383. inline void MutationQueue::set_last_stream_token(const std::string& value) {
  384. last_stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  385. // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_stream_token)
  386. }
  387. inline void MutationQueue::set_last_stream_token(std::string&& value) {
  388. last_stream_token_.SetNoArena(
  389. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  390. // @@protoc_insertion_point(field_set_rvalue:firestore.client.MutationQueue.last_stream_token)
  391. }
  392. inline void MutationQueue::set_last_stream_token(const char* value) {
  393. GOOGLE_DCHECK(value != nullptr);
  394. last_stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  395. // @@protoc_insertion_point(field_set_char:firestore.client.MutationQueue.last_stream_token)
  396. }
  397. inline void MutationQueue::set_last_stream_token(const void* value, size_t size) {
  398. last_stream_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  399. ::std::string(reinterpret_cast<const char*>(value), size));
  400. // @@protoc_insertion_point(field_set_pointer:firestore.client.MutationQueue.last_stream_token)
  401. }
  402. inline std::string* MutationQueue::mutable_last_stream_token() {
  403. // @@protoc_insertion_point(field_mutable:firestore.client.MutationQueue.last_stream_token)
  404. return last_stream_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  405. }
  406. inline std::string* MutationQueue::release_last_stream_token() {
  407. // @@protoc_insertion_point(field_release:firestore.client.MutationQueue.last_stream_token)
  408. return last_stream_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  409. }
  410. inline void MutationQueue::set_allocated_last_stream_token(std::string* last_stream_token) {
  411. if (last_stream_token != nullptr) {
  412. } else {
  413. }
  414. last_stream_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), last_stream_token);
  415. // @@protoc_insertion_point(field_set_allocated:firestore.client.MutationQueue.last_stream_token)
  416. }
  417. // -------------------------------------------------------------------
  418. // WriteBatch
  419. // int32 batch_id = 1;
  420. inline void WriteBatch::clear_batch_id() {
  421. batch_id_ = 0;
  422. }
  423. inline ::PROTOBUF_NAMESPACE_ID::int32 WriteBatch::batch_id() const {
  424. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.batch_id)
  425. return batch_id_;
  426. }
  427. inline void WriteBatch::set_batch_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  428. batch_id_ = value;
  429. // @@protoc_insertion_point(field_set:firestore.client.WriteBatch.batch_id)
  430. }
  431. // repeated .google.firestore.v1.Write writes = 2;
  432. inline int WriteBatch::writes_size() const {
  433. return writes_.size();
  434. }
  435. inline ::google::firestore::v1::Write* WriteBatch::mutable_writes(int index) {
  436. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.writes)
  437. return writes_.Mutable(index);
  438. }
  439. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  440. WriteBatch::mutable_writes() {
  441. // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.writes)
  442. return &writes_;
  443. }
  444. inline const ::google::firestore::v1::Write& WriteBatch::writes(int index) const {
  445. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.writes)
  446. return writes_.Get(index);
  447. }
  448. inline ::google::firestore::v1::Write* WriteBatch::add_writes() {
  449. // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.writes)
  450. return writes_.Add();
  451. }
  452. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  453. WriteBatch::writes() const {
  454. // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.writes)
  455. return writes_;
  456. }
  457. // .google.protobuf.Timestamp local_write_time = 3;
  458. inline bool WriteBatch::has_local_write_time() const {
  459. return this != internal_default_instance() && local_write_time_ != nullptr;
  460. }
  461. inline const PROTOBUF_NAMESPACE_ID::Timestamp& WriteBatch::local_write_time() const {
  462. const PROTOBUF_NAMESPACE_ID::Timestamp* p = local_write_time_;
  463. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.local_write_time)
  464. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  465. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  466. }
  467. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteBatch::release_local_write_time() {
  468. // @@protoc_insertion_point(field_release:firestore.client.WriteBatch.local_write_time)
  469. PROTOBUF_NAMESPACE_ID::Timestamp* temp = local_write_time_;
  470. local_write_time_ = nullptr;
  471. return temp;
  472. }
  473. inline PROTOBUF_NAMESPACE_ID::Timestamp* WriteBatch::mutable_local_write_time() {
  474. if (local_write_time_ == nullptr) {
  475. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  476. local_write_time_ = p;
  477. }
  478. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.local_write_time)
  479. return local_write_time_;
  480. }
  481. inline void WriteBatch::set_allocated_local_write_time(PROTOBUF_NAMESPACE_ID::Timestamp* local_write_time) {
  482. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  483. if (message_arena == nullptr) {
  484. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(local_write_time_);
  485. }
  486. if (local_write_time) {
  487. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  488. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(local_write_time)->GetArena();
  489. if (message_arena != submessage_arena) {
  490. local_write_time = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  491. message_arena, local_write_time, submessage_arena);
  492. }
  493. } else {
  494. }
  495. local_write_time_ = local_write_time;
  496. // @@protoc_insertion_point(field_set_allocated:firestore.client.WriteBatch.local_write_time)
  497. }
  498. // repeated .google.firestore.v1.Write base_writes = 4;
  499. inline int WriteBatch::base_writes_size() const {
  500. return base_writes_.size();
  501. }
  502. inline ::google::firestore::v1::Write* WriteBatch::mutable_base_writes(int index) {
  503. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.base_writes)
  504. return base_writes_.Mutable(index);
  505. }
  506. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >*
  507. WriteBatch::mutable_base_writes() {
  508. // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.base_writes)
  509. return &base_writes_;
  510. }
  511. inline const ::google::firestore::v1::Write& WriteBatch::base_writes(int index) const {
  512. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.base_writes)
  513. return base_writes_.Get(index);
  514. }
  515. inline ::google::firestore::v1::Write* WriteBatch::add_base_writes() {
  516. // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.base_writes)
  517. return base_writes_.Add();
  518. }
  519. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::firestore::v1::Write >&
  520. WriteBatch::base_writes() const {
  521. // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.base_writes)
  522. return base_writes_;
  523. }
  524. #ifdef __GNUC__
  525. #pragma GCC diagnostic pop
  526. #endif // __GNUC__
  527. // -------------------------------------------------------------------
  528. // @@protoc_insertion_point(namespace_scope)
  529. } // namespace client
  530. } // namespace firestore
  531. // @@protoc_insertion_point(global_scope)
  532. #include <google/protobuf/port_undef.inc>
  533. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto