mutation.pb.h 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. /*
  2. * Copyright 2024 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. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/unknown_field_set.h"
  48. #include "google/firestore/v1/write.pb.h"
  49. #include "google/protobuf/timestamp.pb.h"
  50. // @@protoc_insertion_point(includes)
  51. // Must be included last.
  52. #include "google/protobuf/port_def.inc"
  53. #define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2fmutation_2eproto
  54. namespace google {
  55. namespace protobuf {
  56. namespace internal {
  57. class AnyMetadata;
  58. } // namespace internal
  59. } // namespace protobuf
  60. } // namespace google
  61. // Internal implementation detail -- do not use these members.
  62. struct TableStruct_firestore_2flocal_2fmutation_2eproto {
  63. static const ::uint32_t offsets[];
  64. };
  65. extern const ::google::protobuf::internal::DescriptorTable
  66. descriptor_table_firestore_2flocal_2fmutation_2eproto;
  67. namespace firestore {
  68. namespace client {
  69. class MutationQueue;
  70. struct MutationQueueDefaultTypeInternal;
  71. extern MutationQueueDefaultTypeInternal _MutationQueue_default_instance_;
  72. class WriteBatch;
  73. struct WriteBatchDefaultTypeInternal;
  74. extern WriteBatchDefaultTypeInternal _WriteBatch_default_instance_;
  75. } // namespace client
  76. } // namespace firestore
  77. namespace google {
  78. namespace protobuf {
  79. } // namespace protobuf
  80. } // namespace google
  81. namespace firestore {
  82. namespace client {
  83. // ===================================================================
  84. // -------------------------------------------------------------------
  85. class MutationQueue final :
  86. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.MutationQueue) */ {
  87. public:
  88. inline MutationQueue() : MutationQueue(nullptr) {}
  89. ~MutationQueue() override;
  90. template<typename = void>
  91. explicit PROTOBUF_CONSTEXPR MutationQueue(::google::protobuf::internal::ConstantInitialized);
  92. inline MutationQueue(const MutationQueue& from)
  93. : MutationQueue(nullptr, from) {}
  94. MutationQueue(MutationQueue&& from) noexcept
  95. : MutationQueue() {
  96. *this = ::std::move(from);
  97. }
  98. inline MutationQueue& operator=(const MutationQueue& from) {
  99. CopyFrom(from);
  100. return *this;
  101. }
  102. inline MutationQueue& operator=(MutationQueue&& from) noexcept {
  103. if (this == &from) return *this;
  104. if (GetArena() == from.GetArena()
  105. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  106. && GetArena() != nullptr
  107. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  108. ) {
  109. InternalSwap(&from);
  110. } else {
  111. CopyFrom(from);
  112. }
  113. return *this;
  114. }
  115. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  116. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  117. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  118. }
  119. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  120. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  121. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  122. }
  123. static const ::google::protobuf::Descriptor* descriptor() {
  124. return GetDescriptor();
  125. }
  126. static const ::google::protobuf::Descriptor* GetDescriptor() {
  127. return default_instance().GetMetadata().descriptor;
  128. }
  129. static const ::google::protobuf::Reflection* GetReflection() {
  130. return default_instance().GetMetadata().reflection;
  131. }
  132. static const MutationQueue& default_instance() {
  133. return *internal_default_instance();
  134. }
  135. static inline const MutationQueue* internal_default_instance() {
  136. return reinterpret_cast<const MutationQueue*>(
  137. &_MutationQueue_default_instance_);
  138. }
  139. static constexpr int kIndexInFileMessages =
  140. 0;
  141. friend void swap(MutationQueue& a, MutationQueue& b) {
  142. a.Swap(&b);
  143. }
  144. inline void Swap(MutationQueue* other) {
  145. if (other == this) return;
  146. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  147. if (GetArena() != nullptr &&
  148. GetArena() == other->GetArena()) {
  149. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  150. if (GetArena() == other->GetArena()) {
  151. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  152. InternalSwap(other);
  153. } else {
  154. ::google::protobuf::internal::GenericSwap(this, other);
  155. }
  156. }
  157. void UnsafeArenaSwap(MutationQueue* other) {
  158. if (other == this) return;
  159. ABSL_DCHECK(GetArena() == other->GetArena());
  160. InternalSwap(other);
  161. }
  162. // implements Message ----------------------------------------------
  163. MutationQueue* New(::google::protobuf::Arena* arena = nullptr) const final {
  164. return CreateMaybeMessage<MutationQueue>(arena);
  165. }
  166. using ::google::protobuf::Message::CopyFrom;
  167. void CopyFrom(const MutationQueue& from);
  168. using ::google::protobuf::Message::MergeFrom;
  169. void MergeFrom( const MutationQueue& from) {
  170. MutationQueue::MergeImpl(*this, from);
  171. }
  172. private:
  173. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  174. public:
  175. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  176. bool IsInitialized() const final;
  177. ::size_t ByteSizeLong() const final;
  178. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  179. ::uint8_t* _InternalSerialize(
  180. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  181. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  182. private:
  183. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  184. void SharedCtor(::google::protobuf::Arena* arena);
  185. void SharedDtor();
  186. void InternalSwap(MutationQueue* other);
  187. private:
  188. friend class ::google::protobuf::internal::AnyMetadata;
  189. static ::absl::string_view FullMessageName() {
  190. return "firestore.client.MutationQueue";
  191. }
  192. protected:
  193. explicit MutationQueue(::google::protobuf::Arena* arena);
  194. MutationQueue(::google::protobuf::Arena* arena, const MutationQueue& from);
  195. public:
  196. static const ClassData _class_data_;
  197. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  198. ::google::protobuf::Metadata GetMetadata() const final;
  199. // nested types ----------------------------------------------------
  200. // accessors -------------------------------------------------------
  201. enum : int {
  202. kLastStreamTokenFieldNumber = 2,
  203. kLastAcknowledgedBatchIdFieldNumber = 1,
  204. };
  205. // bytes last_stream_token = 2;
  206. void clear_last_stream_token() ;
  207. const std::string& last_stream_token() const;
  208. template <typename Arg_ = const std::string&, typename... Args_>
  209. void set_last_stream_token(Arg_&& arg, Args_... args);
  210. std::string* mutable_last_stream_token();
  211. PROTOBUF_NODISCARD std::string* release_last_stream_token();
  212. void set_allocated_last_stream_token(std::string* value);
  213. private:
  214. const std::string& _internal_last_stream_token() const;
  215. inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_stream_token(
  216. const std::string& value);
  217. std::string* _internal_mutable_last_stream_token();
  218. public:
  219. // int32 last_acknowledged_batch_id = 1;
  220. void clear_last_acknowledged_batch_id() ;
  221. ::int32_t last_acknowledged_batch_id() const;
  222. void set_last_acknowledged_batch_id(::int32_t value);
  223. private:
  224. ::int32_t _internal_last_acknowledged_batch_id() const;
  225. void _internal_set_last_acknowledged_batch_id(::int32_t value);
  226. public:
  227. // @@protoc_insertion_point(class_scope:firestore.client.MutationQueue)
  228. private:
  229. class _Internal;
  230. friend class ::google::protobuf::internal::TcParser;
  231. static const ::google::protobuf::internal::TcParseTable<
  232. 1, 2, 0,
  233. 0, 2>
  234. _table_;
  235. friend class ::google::protobuf::MessageLite;
  236. friend class ::google::protobuf::Arena;
  237. template <typename T>
  238. friend class ::google::protobuf::Arena::InternalHelper;
  239. using InternalArenaConstructable_ = void;
  240. using DestructorSkippable_ = void;
  241. struct Impl_ {
  242. inline explicit constexpr Impl_(
  243. ::google::protobuf::internal::ConstantInitialized) noexcept;
  244. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  245. ::google::protobuf::Arena* arena);
  246. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  247. ::google::protobuf::Arena* arena, const Impl_& from);
  248. ::google::protobuf::internal::ArenaStringPtr last_stream_token_;
  249. ::int32_t last_acknowledged_batch_id_;
  250. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  251. PROTOBUF_TSAN_DECLARE_MEMBER
  252. };
  253. union { Impl_ _impl_; };
  254. friend struct ::TableStruct_firestore_2flocal_2fmutation_2eproto;
  255. };// -------------------------------------------------------------------
  256. class WriteBatch final :
  257. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.WriteBatch) */ {
  258. public:
  259. inline WriteBatch() : WriteBatch(nullptr) {}
  260. ~WriteBatch() override;
  261. template<typename = void>
  262. explicit PROTOBUF_CONSTEXPR WriteBatch(::google::protobuf::internal::ConstantInitialized);
  263. inline WriteBatch(const WriteBatch& from)
  264. : WriteBatch(nullptr, from) {}
  265. WriteBatch(WriteBatch&& from) noexcept
  266. : WriteBatch() {
  267. *this = ::std::move(from);
  268. }
  269. inline WriteBatch& operator=(const WriteBatch& from) {
  270. CopyFrom(from);
  271. return *this;
  272. }
  273. inline WriteBatch& operator=(WriteBatch&& from) noexcept {
  274. if (this == &from) return *this;
  275. if (GetArena() == from.GetArena()
  276. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  277. && GetArena() != nullptr
  278. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  279. ) {
  280. InternalSwap(&from);
  281. } else {
  282. CopyFrom(from);
  283. }
  284. return *this;
  285. }
  286. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  287. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  288. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  289. }
  290. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  291. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  292. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  293. }
  294. static const ::google::protobuf::Descriptor* descriptor() {
  295. return GetDescriptor();
  296. }
  297. static const ::google::protobuf::Descriptor* GetDescriptor() {
  298. return default_instance().GetMetadata().descriptor;
  299. }
  300. static const ::google::protobuf::Reflection* GetReflection() {
  301. return default_instance().GetMetadata().reflection;
  302. }
  303. static const WriteBatch& default_instance() {
  304. return *internal_default_instance();
  305. }
  306. static inline const WriteBatch* internal_default_instance() {
  307. return reinterpret_cast<const WriteBatch*>(
  308. &_WriteBatch_default_instance_);
  309. }
  310. static constexpr int kIndexInFileMessages =
  311. 1;
  312. friend void swap(WriteBatch& a, WriteBatch& b) {
  313. a.Swap(&b);
  314. }
  315. inline void Swap(WriteBatch* other) {
  316. if (other == this) return;
  317. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  318. if (GetArena() != nullptr &&
  319. GetArena() == other->GetArena()) {
  320. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  321. if (GetArena() == other->GetArena()) {
  322. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  323. InternalSwap(other);
  324. } else {
  325. ::google::protobuf::internal::GenericSwap(this, other);
  326. }
  327. }
  328. void UnsafeArenaSwap(WriteBatch* other) {
  329. if (other == this) return;
  330. ABSL_DCHECK(GetArena() == other->GetArena());
  331. InternalSwap(other);
  332. }
  333. // implements Message ----------------------------------------------
  334. WriteBatch* New(::google::protobuf::Arena* arena = nullptr) const final {
  335. return CreateMaybeMessage<WriteBatch>(arena);
  336. }
  337. using ::google::protobuf::Message::CopyFrom;
  338. void CopyFrom(const WriteBatch& from);
  339. using ::google::protobuf::Message::MergeFrom;
  340. void MergeFrom( const WriteBatch& from) {
  341. WriteBatch::MergeImpl(*this, from);
  342. }
  343. private:
  344. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  345. public:
  346. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  347. bool IsInitialized() const final;
  348. ::size_t ByteSizeLong() const final;
  349. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  350. ::uint8_t* _InternalSerialize(
  351. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  352. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  353. private:
  354. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  355. void SharedCtor(::google::protobuf::Arena* arena);
  356. void SharedDtor();
  357. void InternalSwap(WriteBatch* other);
  358. private:
  359. friend class ::google::protobuf::internal::AnyMetadata;
  360. static ::absl::string_view FullMessageName() {
  361. return "firestore.client.WriteBatch";
  362. }
  363. protected:
  364. explicit WriteBatch(::google::protobuf::Arena* arena);
  365. WriteBatch(::google::protobuf::Arena* arena, const WriteBatch& from);
  366. public:
  367. static const ClassData _class_data_;
  368. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  369. ::google::protobuf::Metadata GetMetadata() const final;
  370. // nested types ----------------------------------------------------
  371. // accessors -------------------------------------------------------
  372. enum : int {
  373. kWritesFieldNumber = 2,
  374. kBaseWritesFieldNumber = 4,
  375. kLocalWriteTimeFieldNumber = 3,
  376. kBatchIdFieldNumber = 1,
  377. };
  378. // repeated .google.firestore.v1.Write writes = 2;
  379. int writes_size() const;
  380. private:
  381. int _internal_writes_size() const;
  382. public:
  383. void clear_writes() ;
  384. ::google::firestore::v1::Write* mutable_writes(int index);
  385. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >*
  386. mutable_writes();
  387. private:
  388. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& _internal_writes() const;
  389. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* _internal_mutable_writes();
  390. public:
  391. const ::google::firestore::v1::Write& writes(int index) const;
  392. ::google::firestore::v1::Write* add_writes();
  393. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >&
  394. writes() const;
  395. // repeated .google.firestore.v1.Write base_writes = 4;
  396. int base_writes_size() const;
  397. private:
  398. int _internal_base_writes_size() const;
  399. public:
  400. void clear_base_writes() ;
  401. ::google::firestore::v1::Write* mutable_base_writes(int index);
  402. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >*
  403. mutable_base_writes();
  404. private:
  405. const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& _internal_base_writes() const;
  406. ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* _internal_mutable_base_writes();
  407. public:
  408. const ::google::firestore::v1::Write& base_writes(int index) const;
  409. ::google::firestore::v1::Write* add_base_writes();
  410. const ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write >&
  411. base_writes() const;
  412. // .google.protobuf.Timestamp local_write_time = 3;
  413. bool has_local_write_time() const;
  414. void clear_local_write_time() ;
  415. const ::google::protobuf::Timestamp& local_write_time() const;
  416. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_local_write_time();
  417. ::google::protobuf::Timestamp* mutable_local_write_time();
  418. void set_allocated_local_write_time(::google::protobuf::Timestamp* value);
  419. void unsafe_arena_set_allocated_local_write_time(::google::protobuf::Timestamp* value);
  420. ::google::protobuf::Timestamp* unsafe_arena_release_local_write_time();
  421. private:
  422. const ::google::protobuf::Timestamp& _internal_local_write_time() const;
  423. ::google::protobuf::Timestamp* _internal_mutable_local_write_time();
  424. public:
  425. // int32 batch_id = 1;
  426. void clear_batch_id() ;
  427. ::int32_t batch_id() const;
  428. void set_batch_id(::int32_t value);
  429. private:
  430. ::int32_t _internal_batch_id() const;
  431. void _internal_set_batch_id(::int32_t value);
  432. public:
  433. // @@protoc_insertion_point(class_scope:firestore.client.WriteBatch)
  434. private:
  435. class _Internal;
  436. friend class ::google::protobuf::internal::TcParser;
  437. static const ::google::protobuf::internal::TcParseTable<
  438. 2, 4, 3,
  439. 0, 2>
  440. _table_;
  441. friend class ::google::protobuf::MessageLite;
  442. friend class ::google::protobuf::Arena;
  443. template <typename T>
  444. friend class ::google::protobuf::Arena::InternalHelper;
  445. using InternalArenaConstructable_ = void;
  446. using DestructorSkippable_ = void;
  447. struct Impl_ {
  448. inline explicit constexpr Impl_(
  449. ::google::protobuf::internal::ConstantInitialized) noexcept;
  450. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  451. ::google::protobuf::Arena* arena);
  452. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  453. ::google::protobuf::Arena* arena, const Impl_& from);
  454. ::google::protobuf::internal::HasBits<1> _has_bits_;
  455. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  456. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write > writes_;
  457. ::google::protobuf::RepeatedPtrField< ::google::firestore::v1::Write > base_writes_;
  458. ::google::protobuf::Timestamp* local_write_time_;
  459. ::int32_t batch_id_;
  460. PROTOBUF_TSAN_DECLARE_MEMBER
  461. };
  462. union { Impl_ _impl_; };
  463. friend struct ::TableStruct_firestore_2flocal_2fmutation_2eproto;
  464. };
  465. // ===================================================================
  466. // ===================================================================
  467. #ifdef __GNUC__
  468. #pragma GCC diagnostic push
  469. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  470. #endif // __GNUC__
  471. // -------------------------------------------------------------------
  472. // MutationQueue
  473. // int32 last_acknowledged_batch_id = 1;
  474. inline void MutationQueue::clear_last_acknowledged_batch_id() {
  475. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  476. _impl_.last_acknowledged_batch_id_ = 0;
  477. }
  478. inline ::int32_t MutationQueue::last_acknowledged_batch_id() const {
  479. // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_acknowledged_batch_id)
  480. return _internal_last_acknowledged_batch_id();
  481. }
  482. inline void MutationQueue::set_last_acknowledged_batch_id(::int32_t value) {
  483. _internal_set_last_acknowledged_batch_id(value);
  484. // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_acknowledged_batch_id)
  485. }
  486. inline ::int32_t MutationQueue::_internal_last_acknowledged_batch_id() const {
  487. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  488. return _impl_.last_acknowledged_batch_id_;
  489. }
  490. inline void MutationQueue::_internal_set_last_acknowledged_batch_id(::int32_t value) {
  491. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  492. ;
  493. _impl_.last_acknowledged_batch_id_ = value;
  494. }
  495. // bytes last_stream_token = 2;
  496. inline void MutationQueue::clear_last_stream_token() {
  497. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  498. _impl_.last_stream_token_.ClearToEmpty();
  499. }
  500. inline const std::string& MutationQueue::last_stream_token() const
  501. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  502. // @@protoc_insertion_point(field_get:firestore.client.MutationQueue.last_stream_token)
  503. return _internal_last_stream_token();
  504. }
  505. template <typename Arg_, typename... Args_>
  506. inline PROTOBUF_ALWAYS_INLINE void MutationQueue::set_last_stream_token(Arg_&& arg,
  507. Args_... args) {
  508. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  509. ;
  510. _impl_.last_stream_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  511. // @@protoc_insertion_point(field_set:firestore.client.MutationQueue.last_stream_token)
  512. }
  513. inline std::string* MutationQueue::mutable_last_stream_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  514. std::string* _s = _internal_mutable_last_stream_token();
  515. // @@protoc_insertion_point(field_mutable:firestore.client.MutationQueue.last_stream_token)
  516. return _s;
  517. }
  518. inline const std::string& MutationQueue::_internal_last_stream_token() const {
  519. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  520. return _impl_.last_stream_token_.Get();
  521. }
  522. inline void MutationQueue::_internal_set_last_stream_token(const std::string& value) {
  523. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  524. ;
  525. _impl_.last_stream_token_.Set(value, GetArena());
  526. }
  527. inline std::string* MutationQueue::_internal_mutable_last_stream_token() {
  528. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  529. ;
  530. return _impl_.last_stream_token_.Mutable( GetArena());
  531. }
  532. inline std::string* MutationQueue::release_last_stream_token() {
  533. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  534. // @@protoc_insertion_point(field_release:firestore.client.MutationQueue.last_stream_token)
  535. return _impl_.last_stream_token_.Release();
  536. }
  537. inline void MutationQueue::set_allocated_last_stream_token(std::string* value) {
  538. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  539. _impl_.last_stream_token_.SetAllocated(value, GetArena());
  540. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  541. if (_impl_.last_stream_token_.IsDefault()) {
  542. _impl_.last_stream_token_.Set("", GetArena());
  543. }
  544. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  545. // @@protoc_insertion_point(field_set_allocated:firestore.client.MutationQueue.last_stream_token)
  546. }
  547. // -------------------------------------------------------------------
  548. // WriteBatch
  549. // int32 batch_id = 1;
  550. inline void WriteBatch::clear_batch_id() {
  551. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  552. _impl_.batch_id_ = 0;
  553. }
  554. inline ::int32_t WriteBatch::batch_id() const {
  555. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.batch_id)
  556. return _internal_batch_id();
  557. }
  558. inline void WriteBatch::set_batch_id(::int32_t value) {
  559. _internal_set_batch_id(value);
  560. // @@protoc_insertion_point(field_set:firestore.client.WriteBatch.batch_id)
  561. }
  562. inline ::int32_t WriteBatch::_internal_batch_id() const {
  563. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  564. return _impl_.batch_id_;
  565. }
  566. inline void WriteBatch::_internal_set_batch_id(::int32_t value) {
  567. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  568. ;
  569. _impl_.batch_id_ = value;
  570. }
  571. // repeated .google.firestore.v1.Write writes = 2;
  572. inline int WriteBatch::_internal_writes_size() const {
  573. return _internal_writes().size();
  574. }
  575. inline int WriteBatch::writes_size() const {
  576. return _internal_writes_size();
  577. }
  578. inline ::google::firestore::v1::Write* WriteBatch::mutable_writes(int index)
  579. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  580. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.writes)
  581. return _internal_mutable_writes()->Mutable(index);
  582. }
  583. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* WriteBatch::mutable_writes()
  584. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  585. // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.writes)
  586. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  587. return _internal_mutable_writes();
  588. }
  589. inline const ::google::firestore::v1::Write& WriteBatch::writes(int index) const
  590. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  591. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.writes)
  592. return _internal_writes().Get(index);
  593. }
  594. inline ::google::firestore::v1::Write* WriteBatch::add_writes() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  595. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  596. ::google::firestore::v1::Write* _add = _internal_mutable_writes()->Add();
  597. // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.writes)
  598. return _add;
  599. }
  600. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& WriteBatch::writes() const
  601. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  602. // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.writes)
  603. return _internal_writes();
  604. }
  605. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>&
  606. WriteBatch::_internal_writes() const {
  607. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  608. return _impl_.writes_;
  609. }
  610. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>*
  611. WriteBatch::_internal_mutable_writes() {
  612. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  613. return &_impl_.writes_;
  614. }
  615. // .google.protobuf.Timestamp local_write_time = 3;
  616. inline bool WriteBatch::has_local_write_time() const {
  617. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  618. PROTOBUF_ASSUME(!value || _impl_.local_write_time_ != nullptr);
  619. return value;
  620. }
  621. inline const ::google::protobuf::Timestamp& WriteBatch::_internal_local_write_time() const {
  622. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  623. const ::google::protobuf::Timestamp* p = _impl_.local_write_time_;
  624. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  625. }
  626. inline const ::google::protobuf::Timestamp& WriteBatch::local_write_time() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  627. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.local_write_time)
  628. return _internal_local_write_time();
  629. }
  630. inline void WriteBatch::unsafe_arena_set_allocated_local_write_time(::google::protobuf::Timestamp* value) {
  631. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  632. if (GetArena() == nullptr) {
  633. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.local_write_time_);
  634. }
  635. _impl_.local_write_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  636. if (value != nullptr) {
  637. _impl_._has_bits_[0] |= 0x00000001u;
  638. } else {
  639. _impl_._has_bits_[0] &= ~0x00000001u;
  640. }
  641. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.WriteBatch.local_write_time)
  642. }
  643. inline ::google::protobuf::Timestamp* WriteBatch::release_local_write_time() {
  644. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  645. _impl_._has_bits_[0] &= ~0x00000001u;
  646. ::google::protobuf::Timestamp* released = _impl_.local_write_time_;
  647. _impl_.local_write_time_ = nullptr;
  648. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  649. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  650. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  651. if (GetArena() == nullptr) {
  652. delete old;
  653. }
  654. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  655. if (GetArena() != nullptr) {
  656. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  657. }
  658. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  659. return released;
  660. }
  661. inline ::google::protobuf::Timestamp* WriteBatch::unsafe_arena_release_local_write_time() {
  662. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  663. // @@protoc_insertion_point(field_release:firestore.client.WriteBatch.local_write_time)
  664. _impl_._has_bits_[0] &= ~0x00000001u;
  665. ::google::protobuf::Timestamp* temp = _impl_.local_write_time_;
  666. _impl_.local_write_time_ = nullptr;
  667. return temp;
  668. }
  669. inline ::google::protobuf::Timestamp* WriteBatch::_internal_mutable_local_write_time() {
  670. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  671. _impl_._has_bits_[0] |= 0x00000001u;
  672. if (_impl_.local_write_time_ == nullptr) {
  673. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  674. _impl_.local_write_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  675. }
  676. return _impl_.local_write_time_;
  677. }
  678. inline ::google::protobuf::Timestamp* WriteBatch::mutable_local_write_time() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  679. ::google::protobuf::Timestamp* _msg = _internal_mutable_local_write_time();
  680. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.local_write_time)
  681. return _msg;
  682. }
  683. inline void WriteBatch::set_allocated_local_write_time(::google::protobuf::Timestamp* value) {
  684. ::google::protobuf::Arena* message_arena = GetArena();
  685. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  686. if (message_arena == nullptr) {
  687. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.local_write_time_);
  688. }
  689. if (value != nullptr) {
  690. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  691. if (message_arena != submessage_arena) {
  692. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  693. }
  694. _impl_._has_bits_[0] |= 0x00000001u;
  695. } else {
  696. _impl_._has_bits_[0] &= ~0x00000001u;
  697. }
  698. _impl_.local_write_time_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  699. // @@protoc_insertion_point(field_set_allocated:firestore.client.WriteBatch.local_write_time)
  700. }
  701. // repeated .google.firestore.v1.Write base_writes = 4;
  702. inline int WriteBatch::_internal_base_writes_size() const {
  703. return _internal_base_writes().size();
  704. }
  705. inline int WriteBatch::base_writes_size() const {
  706. return _internal_base_writes_size();
  707. }
  708. inline ::google::firestore::v1::Write* WriteBatch::mutable_base_writes(int index)
  709. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  710. // @@protoc_insertion_point(field_mutable:firestore.client.WriteBatch.base_writes)
  711. return _internal_mutable_base_writes()->Mutable(index);
  712. }
  713. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>* WriteBatch::mutable_base_writes()
  714. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  715. // @@protoc_insertion_point(field_mutable_list:firestore.client.WriteBatch.base_writes)
  716. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  717. return _internal_mutable_base_writes();
  718. }
  719. inline const ::google::firestore::v1::Write& WriteBatch::base_writes(int index) const
  720. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  721. // @@protoc_insertion_point(field_get:firestore.client.WriteBatch.base_writes)
  722. return _internal_base_writes().Get(index);
  723. }
  724. inline ::google::firestore::v1::Write* WriteBatch::add_base_writes() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  725. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  726. ::google::firestore::v1::Write* _add = _internal_mutable_base_writes()->Add();
  727. // @@protoc_insertion_point(field_add:firestore.client.WriteBatch.base_writes)
  728. return _add;
  729. }
  730. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>& WriteBatch::base_writes() const
  731. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  732. // @@protoc_insertion_point(field_list:firestore.client.WriteBatch.base_writes)
  733. return _internal_base_writes();
  734. }
  735. inline const ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>&
  736. WriteBatch::_internal_base_writes() const {
  737. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  738. return _impl_.base_writes_;
  739. }
  740. inline ::google::protobuf::RepeatedPtrField<::google::firestore::v1::Write>*
  741. WriteBatch::_internal_mutable_base_writes() {
  742. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  743. return &_impl_.base_writes_;
  744. }
  745. #ifdef __GNUC__
  746. #pragma GCC diagnostic pop
  747. #endif // __GNUC__
  748. // @@protoc_insertion_point(namespace_scope)
  749. } // namespace client
  750. } // namespace firestore
  751. // @@protoc_insertion_point(global_scope)
  752. #include "google/protobuf/port_undef.inc"
  753. #endif // GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2fmutation_2eproto_2epb_2eh