target.pb.h 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  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/target.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_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/firestore.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_2ftarget_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_2ftarget_2eproto {
  63. static const ::uint32_t offsets[];
  64. };
  65. extern const ::google::protobuf::internal::DescriptorTable
  66. descriptor_table_firestore_2flocal_2ftarget_2eproto;
  67. namespace firestore {
  68. namespace client {
  69. class Target;
  70. struct TargetDefaultTypeInternal;
  71. extern TargetDefaultTypeInternal _Target_default_instance_;
  72. class TargetGlobal;
  73. struct TargetGlobalDefaultTypeInternal;
  74. extern TargetGlobalDefaultTypeInternal _TargetGlobal_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 TargetGlobal final :
  86. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
  87. public:
  88. inline TargetGlobal() : TargetGlobal(nullptr) {}
  89. ~TargetGlobal() override;
  90. template<typename = void>
  91. explicit PROTOBUF_CONSTEXPR TargetGlobal(::google::protobuf::internal::ConstantInitialized);
  92. inline TargetGlobal(const TargetGlobal& from)
  93. : TargetGlobal(nullptr, from) {}
  94. TargetGlobal(TargetGlobal&& from) noexcept
  95. : TargetGlobal() {
  96. *this = ::std::move(from);
  97. }
  98. inline TargetGlobal& operator=(const TargetGlobal& from) {
  99. CopyFrom(from);
  100. return *this;
  101. }
  102. inline TargetGlobal& operator=(TargetGlobal&& 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 TargetGlobal& default_instance() {
  133. return *internal_default_instance();
  134. }
  135. static inline const TargetGlobal* internal_default_instance() {
  136. return reinterpret_cast<const TargetGlobal*>(
  137. &_TargetGlobal_default_instance_);
  138. }
  139. static constexpr int kIndexInFileMessages =
  140. 1;
  141. friend void swap(TargetGlobal& a, TargetGlobal& b) {
  142. a.Swap(&b);
  143. }
  144. inline void Swap(TargetGlobal* 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(TargetGlobal* other) {
  158. if (other == this) return;
  159. ABSL_DCHECK(GetArena() == other->GetArena());
  160. InternalSwap(other);
  161. }
  162. // implements Message ----------------------------------------------
  163. TargetGlobal* New(::google::protobuf::Arena* arena = nullptr) const final {
  164. return CreateMaybeMessage<TargetGlobal>(arena);
  165. }
  166. using ::google::protobuf::Message::CopyFrom;
  167. void CopyFrom(const TargetGlobal& from);
  168. using ::google::protobuf::Message::MergeFrom;
  169. void MergeFrom( const TargetGlobal& from) {
  170. TargetGlobal::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(TargetGlobal* other);
  187. private:
  188. friend class ::google::protobuf::internal::AnyMetadata;
  189. static ::absl::string_view FullMessageName() {
  190. return "firestore.client.TargetGlobal";
  191. }
  192. protected:
  193. explicit TargetGlobal(::google::protobuf::Arena* arena);
  194. TargetGlobal(::google::protobuf::Arena* arena, const TargetGlobal& 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. kLastRemoteSnapshotVersionFieldNumber = 3,
  203. kHighestListenSequenceNumberFieldNumber = 2,
  204. kHighestTargetIdFieldNumber = 1,
  205. kTargetCountFieldNumber = 4,
  206. };
  207. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  208. bool has_last_remote_snapshot_version() const;
  209. void clear_last_remote_snapshot_version() ;
  210. const ::google::protobuf::Timestamp& last_remote_snapshot_version() const;
  211. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_remote_snapshot_version();
  212. ::google::protobuf::Timestamp* mutable_last_remote_snapshot_version();
  213. void set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value);
  214. void unsafe_arena_set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value);
  215. ::google::protobuf::Timestamp* unsafe_arena_release_last_remote_snapshot_version();
  216. private:
  217. const ::google::protobuf::Timestamp& _internal_last_remote_snapshot_version() const;
  218. ::google::protobuf::Timestamp* _internal_mutable_last_remote_snapshot_version();
  219. public:
  220. // int64 highest_listen_sequence_number = 2;
  221. void clear_highest_listen_sequence_number() ;
  222. ::int64_t highest_listen_sequence_number() const;
  223. void set_highest_listen_sequence_number(::int64_t value);
  224. private:
  225. ::int64_t _internal_highest_listen_sequence_number() const;
  226. void _internal_set_highest_listen_sequence_number(::int64_t value);
  227. public:
  228. // int32 highest_target_id = 1;
  229. void clear_highest_target_id() ;
  230. ::int32_t highest_target_id() const;
  231. void set_highest_target_id(::int32_t value);
  232. private:
  233. ::int32_t _internal_highest_target_id() const;
  234. void _internal_set_highest_target_id(::int32_t value);
  235. public:
  236. // int32 target_count = 4;
  237. void clear_target_count() ;
  238. ::int32_t target_count() const;
  239. void set_target_count(::int32_t value);
  240. private:
  241. ::int32_t _internal_target_count() const;
  242. void _internal_set_target_count(::int32_t value);
  243. public:
  244. // @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
  245. private:
  246. class _Internal;
  247. friend class ::google::protobuf::internal::TcParser;
  248. static const ::google::protobuf::internal::TcParseTable<
  249. 2, 4, 1,
  250. 0, 2>
  251. _table_;
  252. friend class ::google::protobuf::MessageLite;
  253. friend class ::google::protobuf::Arena;
  254. template <typename T>
  255. friend class ::google::protobuf::Arena::InternalHelper;
  256. using InternalArenaConstructable_ = void;
  257. using DestructorSkippable_ = void;
  258. struct Impl_ {
  259. inline explicit constexpr Impl_(
  260. ::google::protobuf::internal::ConstantInitialized) noexcept;
  261. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  262. ::google::protobuf::Arena* arena);
  263. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  264. ::google::protobuf::Arena* arena, const Impl_& from);
  265. ::google::protobuf::internal::HasBits<1> _has_bits_;
  266. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  267. ::google::protobuf::Timestamp* last_remote_snapshot_version_;
  268. ::int64_t highest_listen_sequence_number_;
  269. ::int32_t highest_target_id_;
  270. ::int32_t target_count_;
  271. PROTOBUF_TSAN_DECLARE_MEMBER
  272. };
  273. union { Impl_ _impl_; };
  274. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  275. };// -------------------------------------------------------------------
  276. class Target final :
  277. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.Target) */ {
  278. public:
  279. inline Target() : Target(nullptr) {}
  280. ~Target() override;
  281. template<typename = void>
  282. explicit PROTOBUF_CONSTEXPR Target(::google::protobuf::internal::ConstantInitialized);
  283. inline Target(const Target& from)
  284. : Target(nullptr, from) {}
  285. Target(Target&& from) noexcept
  286. : Target() {
  287. *this = ::std::move(from);
  288. }
  289. inline Target& operator=(const Target& from) {
  290. CopyFrom(from);
  291. return *this;
  292. }
  293. inline Target& operator=(Target&& from) noexcept {
  294. if (this == &from) return *this;
  295. if (GetArena() == from.GetArena()
  296. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  297. && GetArena() != nullptr
  298. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  299. ) {
  300. InternalSwap(&from);
  301. } else {
  302. CopyFrom(from);
  303. }
  304. return *this;
  305. }
  306. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  307. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  308. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  309. }
  310. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  311. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  312. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  313. }
  314. static const ::google::protobuf::Descriptor* descriptor() {
  315. return GetDescriptor();
  316. }
  317. static const ::google::protobuf::Descriptor* GetDescriptor() {
  318. return default_instance().GetMetadata().descriptor;
  319. }
  320. static const ::google::protobuf::Reflection* GetReflection() {
  321. return default_instance().GetMetadata().reflection;
  322. }
  323. static const Target& default_instance() {
  324. return *internal_default_instance();
  325. }
  326. enum TargetTypeCase {
  327. kQuery = 5,
  328. kDocuments = 6,
  329. TARGET_TYPE_NOT_SET = 0,
  330. };
  331. static inline const Target* internal_default_instance() {
  332. return reinterpret_cast<const Target*>(
  333. &_Target_default_instance_);
  334. }
  335. static constexpr int kIndexInFileMessages =
  336. 0;
  337. friend void swap(Target& a, Target& b) {
  338. a.Swap(&b);
  339. }
  340. inline void Swap(Target* other) {
  341. if (other == this) return;
  342. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  343. if (GetArena() != nullptr &&
  344. GetArena() == other->GetArena()) {
  345. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  346. if (GetArena() == other->GetArena()) {
  347. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  348. InternalSwap(other);
  349. } else {
  350. ::google::protobuf::internal::GenericSwap(this, other);
  351. }
  352. }
  353. void UnsafeArenaSwap(Target* other) {
  354. if (other == this) return;
  355. ABSL_DCHECK(GetArena() == other->GetArena());
  356. InternalSwap(other);
  357. }
  358. // implements Message ----------------------------------------------
  359. Target* New(::google::protobuf::Arena* arena = nullptr) const final {
  360. return CreateMaybeMessage<Target>(arena);
  361. }
  362. using ::google::protobuf::Message::CopyFrom;
  363. void CopyFrom(const Target& from);
  364. using ::google::protobuf::Message::MergeFrom;
  365. void MergeFrom( const Target& from) {
  366. Target::MergeImpl(*this, from);
  367. }
  368. private:
  369. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  370. public:
  371. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  372. bool IsInitialized() const final;
  373. ::size_t ByteSizeLong() const final;
  374. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  375. ::uint8_t* _InternalSerialize(
  376. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  377. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  378. private:
  379. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  380. void SharedCtor(::google::protobuf::Arena* arena);
  381. void SharedDtor();
  382. void InternalSwap(Target* other);
  383. private:
  384. friend class ::google::protobuf::internal::AnyMetadata;
  385. static ::absl::string_view FullMessageName() {
  386. return "firestore.client.Target";
  387. }
  388. protected:
  389. explicit Target(::google::protobuf::Arena* arena);
  390. Target(::google::protobuf::Arena* arena, const Target& from);
  391. public:
  392. static const ClassData _class_data_;
  393. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  394. ::google::protobuf::Metadata GetMetadata() const final;
  395. // nested types ----------------------------------------------------
  396. // accessors -------------------------------------------------------
  397. enum : int {
  398. kResumeTokenFieldNumber = 3,
  399. kSnapshotVersionFieldNumber = 2,
  400. kLastLimboFreeSnapshotVersionFieldNumber = 7,
  401. kLastListenSequenceNumberFieldNumber = 4,
  402. kTargetIdFieldNumber = 1,
  403. kQueryFieldNumber = 5,
  404. kDocumentsFieldNumber = 6,
  405. };
  406. // bytes resume_token = 3;
  407. void clear_resume_token() ;
  408. const std::string& resume_token() const;
  409. template <typename Arg_ = const std::string&, typename... Args_>
  410. void set_resume_token(Arg_&& arg, Args_... args);
  411. std::string* mutable_resume_token();
  412. PROTOBUF_NODISCARD std::string* release_resume_token();
  413. void set_allocated_resume_token(std::string* value);
  414. private:
  415. const std::string& _internal_resume_token() const;
  416. inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume_token(
  417. const std::string& value);
  418. std::string* _internal_mutable_resume_token();
  419. public:
  420. // .google.protobuf.Timestamp snapshot_version = 2;
  421. bool has_snapshot_version() const;
  422. void clear_snapshot_version() ;
  423. const ::google::protobuf::Timestamp& snapshot_version() const;
  424. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_snapshot_version();
  425. ::google::protobuf::Timestamp* mutable_snapshot_version();
  426. void set_allocated_snapshot_version(::google::protobuf::Timestamp* value);
  427. void unsafe_arena_set_allocated_snapshot_version(::google::protobuf::Timestamp* value);
  428. ::google::protobuf::Timestamp* unsafe_arena_release_snapshot_version();
  429. private:
  430. const ::google::protobuf::Timestamp& _internal_snapshot_version() const;
  431. ::google::protobuf::Timestamp* _internal_mutable_snapshot_version();
  432. public:
  433. // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
  434. bool has_last_limbo_free_snapshot_version() const;
  435. void clear_last_limbo_free_snapshot_version() ;
  436. const ::google::protobuf::Timestamp& last_limbo_free_snapshot_version() const;
  437. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_limbo_free_snapshot_version();
  438. ::google::protobuf::Timestamp* mutable_last_limbo_free_snapshot_version();
  439. void set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value);
  440. void unsafe_arena_set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value);
  441. ::google::protobuf::Timestamp* unsafe_arena_release_last_limbo_free_snapshot_version();
  442. private:
  443. const ::google::protobuf::Timestamp& _internal_last_limbo_free_snapshot_version() const;
  444. ::google::protobuf::Timestamp* _internal_mutable_last_limbo_free_snapshot_version();
  445. public:
  446. // int64 last_listen_sequence_number = 4;
  447. void clear_last_listen_sequence_number() ;
  448. ::int64_t last_listen_sequence_number() const;
  449. void set_last_listen_sequence_number(::int64_t value);
  450. private:
  451. ::int64_t _internal_last_listen_sequence_number() const;
  452. void _internal_set_last_listen_sequence_number(::int64_t value);
  453. public:
  454. // int32 target_id = 1;
  455. void clear_target_id() ;
  456. ::int32_t target_id() const;
  457. void set_target_id(::int32_t value);
  458. private:
  459. ::int32_t _internal_target_id() const;
  460. void _internal_set_target_id(::int32_t value);
  461. public:
  462. // .google.firestore.v1.Target.QueryTarget query = 5;
  463. bool has_query() const;
  464. private:
  465. bool _internal_has_query() const;
  466. public:
  467. void clear_query() ;
  468. const ::google::firestore::v1::Target_QueryTarget& query() const;
  469. PROTOBUF_NODISCARD ::google::firestore::v1::Target_QueryTarget* release_query();
  470. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  471. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
  472. void unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
  473. ::google::firestore::v1::Target_QueryTarget* unsafe_arena_release_query();
  474. private:
  475. const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
  476. ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
  477. public:
  478. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  479. bool has_documents() const;
  480. private:
  481. bool _internal_has_documents() const;
  482. public:
  483. void clear_documents() ;
  484. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  485. PROTOBUF_NODISCARD ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  486. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  487. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
  488. void unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
  489. ::google::firestore::v1::Target_DocumentsTarget* unsafe_arena_release_documents();
  490. private:
  491. const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
  492. ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
  493. public:
  494. void clear_target_type();
  495. TargetTypeCase target_type_case() const;
  496. // @@protoc_insertion_point(class_scope:firestore.client.Target)
  497. private:
  498. class _Internal;
  499. void set_has_query();
  500. void set_has_documents();
  501. inline bool has_target_type() const;
  502. inline void clear_has_target_type();
  503. friend class ::google::protobuf::internal::TcParser;
  504. static const ::google::protobuf::internal::TcParseTable<
  505. 3, 7, 4,
  506. 0, 2>
  507. _table_;
  508. friend class ::google::protobuf::MessageLite;
  509. friend class ::google::protobuf::Arena;
  510. template <typename T>
  511. friend class ::google::protobuf::Arena::InternalHelper;
  512. using InternalArenaConstructable_ = void;
  513. using DestructorSkippable_ = void;
  514. struct Impl_ {
  515. inline explicit constexpr Impl_(
  516. ::google::protobuf::internal::ConstantInitialized) noexcept;
  517. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  518. ::google::protobuf::Arena* arena);
  519. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  520. ::google::protobuf::Arena* arena, const Impl_& from);
  521. ::google::protobuf::internal::HasBits<1> _has_bits_;
  522. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  523. ::google::protobuf::internal::ArenaStringPtr resume_token_;
  524. ::google::protobuf::Timestamp* snapshot_version_;
  525. ::google::protobuf::Timestamp* last_limbo_free_snapshot_version_;
  526. ::int64_t last_listen_sequence_number_;
  527. ::int32_t target_id_;
  528. union TargetTypeUnion {
  529. constexpr TargetTypeUnion() : _constinit_{} {}
  530. ::google::protobuf::internal::ConstantInitialized _constinit_;
  531. ::google::firestore::v1::Target_QueryTarget* query_;
  532. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  533. } target_type_;
  534. ::uint32_t _oneof_case_[1];
  535. PROTOBUF_TSAN_DECLARE_MEMBER
  536. };
  537. union { Impl_ _impl_; };
  538. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  539. };
  540. // ===================================================================
  541. // ===================================================================
  542. #ifdef __GNUC__
  543. #pragma GCC diagnostic push
  544. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  545. #endif // __GNUC__
  546. // -------------------------------------------------------------------
  547. // Target
  548. // int32 target_id = 1;
  549. inline void Target::clear_target_id() {
  550. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  551. _impl_.target_id_ = 0;
  552. }
  553. inline ::int32_t Target::target_id() const {
  554. // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
  555. return _internal_target_id();
  556. }
  557. inline void Target::set_target_id(::int32_t value) {
  558. _internal_set_target_id(value);
  559. // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
  560. }
  561. inline ::int32_t Target::_internal_target_id() const {
  562. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  563. return _impl_.target_id_;
  564. }
  565. inline void Target::_internal_set_target_id(::int32_t value) {
  566. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  567. ;
  568. _impl_.target_id_ = value;
  569. }
  570. // .google.protobuf.Timestamp snapshot_version = 2;
  571. inline bool Target::has_snapshot_version() const {
  572. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  573. PROTOBUF_ASSUME(!value || _impl_.snapshot_version_ != nullptr);
  574. return value;
  575. }
  576. inline const ::google::protobuf::Timestamp& Target::_internal_snapshot_version() const {
  577. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  578. const ::google::protobuf::Timestamp* p = _impl_.snapshot_version_;
  579. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  580. }
  581. inline const ::google::protobuf::Timestamp& Target::snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  582. // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
  583. return _internal_snapshot_version();
  584. }
  585. inline void Target::unsafe_arena_set_allocated_snapshot_version(::google::protobuf::Timestamp* value) {
  586. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  587. if (GetArena() == nullptr) {
  588. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.snapshot_version_);
  589. }
  590. _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  591. if (value != nullptr) {
  592. _impl_._has_bits_[0] |= 0x00000001u;
  593. } else {
  594. _impl_._has_bits_[0] &= ~0x00000001u;
  595. }
  596. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.snapshot_version)
  597. }
  598. inline ::google::protobuf::Timestamp* Target::release_snapshot_version() {
  599. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  600. _impl_._has_bits_[0] &= ~0x00000001u;
  601. ::google::protobuf::Timestamp* released = _impl_.snapshot_version_;
  602. _impl_.snapshot_version_ = nullptr;
  603. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  604. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  605. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  606. if (GetArena() == nullptr) {
  607. delete old;
  608. }
  609. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  610. if (GetArena() != nullptr) {
  611. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  612. }
  613. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  614. return released;
  615. }
  616. inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_snapshot_version() {
  617. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  618. // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
  619. _impl_._has_bits_[0] &= ~0x00000001u;
  620. ::google::protobuf::Timestamp* temp = _impl_.snapshot_version_;
  621. _impl_.snapshot_version_ = nullptr;
  622. return temp;
  623. }
  624. inline ::google::protobuf::Timestamp* Target::_internal_mutable_snapshot_version() {
  625. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  626. _impl_._has_bits_[0] |= 0x00000001u;
  627. if (_impl_.snapshot_version_ == nullptr) {
  628. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  629. _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  630. }
  631. return _impl_.snapshot_version_;
  632. }
  633. inline ::google::protobuf::Timestamp* Target::mutable_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  634. ::google::protobuf::Timestamp* _msg = _internal_mutable_snapshot_version();
  635. // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
  636. return _msg;
  637. }
  638. inline void Target::set_allocated_snapshot_version(::google::protobuf::Timestamp* value) {
  639. ::google::protobuf::Arena* message_arena = GetArena();
  640. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  641. if (message_arena == nullptr) {
  642. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.snapshot_version_);
  643. }
  644. if (value != nullptr) {
  645. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  646. if (message_arena != submessage_arena) {
  647. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  648. }
  649. _impl_._has_bits_[0] |= 0x00000001u;
  650. } else {
  651. _impl_._has_bits_[0] &= ~0x00000001u;
  652. }
  653. _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  654. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
  655. }
  656. // bytes resume_token = 3;
  657. inline void Target::clear_resume_token() {
  658. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  659. _impl_.resume_token_.ClearToEmpty();
  660. }
  661. inline const std::string& Target::resume_token() const
  662. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  663. // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
  664. return _internal_resume_token();
  665. }
  666. template <typename Arg_, typename... Args_>
  667. inline PROTOBUF_ALWAYS_INLINE void Target::set_resume_token(Arg_&& arg,
  668. Args_... args) {
  669. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  670. ;
  671. _impl_.resume_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  672. // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
  673. }
  674. inline std::string* Target::mutable_resume_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  675. std::string* _s = _internal_mutable_resume_token();
  676. // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
  677. return _s;
  678. }
  679. inline const std::string& Target::_internal_resume_token() const {
  680. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  681. return _impl_.resume_token_.Get();
  682. }
  683. inline void Target::_internal_set_resume_token(const std::string& value) {
  684. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  685. ;
  686. _impl_.resume_token_.Set(value, GetArena());
  687. }
  688. inline std::string* Target::_internal_mutable_resume_token() {
  689. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  690. ;
  691. return _impl_.resume_token_.Mutable( GetArena());
  692. }
  693. inline std::string* Target::release_resume_token() {
  694. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  695. // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
  696. return _impl_.resume_token_.Release();
  697. }
  698. inline void Target::set_allocated_resume_token(std::string* value) {
  699. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  700. _impl_.resume_token_.SetAllocated(value, GetArena());
  701. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  702. if (_impl_.resume_token_.IsDefault()) {
  703. _impl_.resume_token_.Set("", GetArena());
  704. }
  705. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  706. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
  707. }
  708. // int64 last_listen_sequence_number = 4;
  709. inline void Target::clear_last_listen_sequence_number() {
  710. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  711. _impl_.last_listen_sequence_number_ = ::int64_t{0};
  712. }
  713. inline ::int64_t Target::last_listen_sequence_number() const {
  714. // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
  715. return _internal_last_listen_sequence_number();
  716. }
  717. inline void Target::set_last_listen_sequence_number(::int64_t value) {
  718. _internal_set_last_listen_sequence_number(value);
  719. // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
  720. }
  721. inline ::int64_t Target::_internal_last_listen_sequence_number() const {
  722. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  723. return _impl_.last_listen_sequence_number_;
  724. }
  725. inline void Target::_internal_set_last_listen_sequence_number(::int64_t value) {
  726. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  727. ;
  728. _impl_.last_listen_sequence_number_ = value;
  729. }
  730. // .google.firestore.v1.Target.QueryTarget query = 5;
  731. inline bool Target::has_query() const {
  732. return target_type_case() == kQuery;
  733. }
  734. inline bool Target::_internal_has_query() const {
  735. return target_type_case() == kQuery;
  736. }
  737. inline void Target::set_has_query() {
  738. _impl_._oneof_case_[0] = kQuery;
  739. }
  740. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  741. // @@protoc_insertion_point(field_release:firestore.client.Target.query)
  742. if (target_type_case() == kQuery) {
  743. clear_has_target_type();
  744. auto* temp = _impl_.target_type_.query_;
  745. if (GetArena() != nullptr) {
  746. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  747. }
  748. _impl_.target_type_.query_ = nullptr;
  749. return temp;
  750. } else {
  751. return nullptr;
  752. }
  753. }
  754. inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
  755. return target_type_case() == kQuery ? *_impl_.target_type_.query_ : reinterpret_cast<::google::firestore::v1::Target_QueryTarget&>(::google::firestore::v1::_Target_QueryTarget_default_instance_);
  756. }
  757. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  758. // @@protoc_insertion_point(field_get:firestore.client.Target.query)
  759. return _internal_query();
  760. }
  761. inline ::google::firestore::v1::Target_QueryTarget* Target::unsafe_arena_release_query() {
  762. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.query)
  763. if (target_type_case() == kQuery) {
  764. clear_has_target_type();
  765. auto* temp = _impl_.target_type_.query_;
  766. _impl_.target_type_.query_ = nullptr;
  767. return temp;
  768. } else {
  769. return nullptr;
  770. }
  771. }
  772. inline void Target::unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value) {
  773. // We rely on the oneof clear method to free the earlier contents
  774. // of this oneof. We can directly use the pointer we're given to
  775. // set the new value.
  776. clear_target_type();
  777. if (value) {
  778. set_has_query();
  779. _impl_.target_type_.query_ = value;
  780. }
  781. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.query)
  782. }
  783. inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
  784. if (target_type_case() != kQuery) {
  785. clear_target_type();
  786. set_has_query();
  787. _impl_.target_type_.query_ = CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(GetArena());
  788. }
  789. return _impl_.target_type_.query_;
  790. }
  791. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  792. ::google::firestore::v1::Target_QueryTarget* _msg = _internal_mutable_query();
  793. // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
  794. return _msg;
  795. }
  796. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  797. inline bool Target::has_documents() const {
  798. return target_type_case() == kDocuments;
  799. }
  800. inline bool Target::_internal_has_documents() const {
  801. return target_type_case() == kDocuments;
  802. }
  803. inline void Target::set_has_documents() {
  804. _impl_._oneof_case_[0] = kDocuments;
  805. }
  806. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  807. // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
  808. if (target_type_case() == kDocuments) {
  809. clear_has_target_type();
  810. auto* temp = _impl_.target_type_.documents_;
  811. if (GetArena() != nullptr) {
  812. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  813. }
  814. _impl_.target_type_.documents_ = nullptr;
  815. return temp;
  816. } else {
  817. return nullptr;
  818. }
  819. }
  820. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
  821. return target_type_case() == kDocuments ? *_impl_.target_type_.documents_ : reinterpret_cast<::google::firestore::v1::Target_DocumentsTarget&>(::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  822. }
  823. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  824. // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
  825. return _internal_documents();
  826. }
  827. inline ::google::firestore::v1::Target_DocumentsTarget* Target::unsafe_arena_release_documents() {
  828. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.documents)
  829. if (target_type_case() == kDocuments) {
  830. clear_has_target_type();
  831. auto* temp = _impl_.target_type_.documents_;
  832. _impl_.target_type_.documents_ = nullptr;
  833. return temp;
  834. } else {
  835. return nullptr;
  836. }
  837. }
  838. inline void Target::unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value) {
  839. // We rely on the oneof clear method to free the earlier contents
  840. // of this oneof. We can directly use the pointer we're given to
  841. // set the new value.
  842. clear_target_type();
  843. if (value) {
  844. set_has_documents();
  845. _impl_.target_type_.documents_ = value;
  846. }
  847. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.documents)
  848. }
  849. inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
  850. if (target_type_case() != kDocuments) {
  851. clear_target_type();
  852. set_has_documents();
  853. _impl_.target_type_.documents_ = CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(GetArena());
  854. }
  855. return _impl_.target_type_.documents_;
  856. }
  857. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  858. ::google::firestore::v1::Target_DocumentsTarget* _msg = _internal_mutable_documents();
  859. // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
  860. return _msg;
  861. }
  862. // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
  863. inline bool Target::has_last_limbo_free_snapshot_version() const {
  864. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  865. PROTOBUF_ASSUME(!value || _impl_.last_limbo_free_snapshot_version_ != nullptr);
  866. return value;
  867. }
  868. inline const ::google::protobuf::Timestamp& Target::_internal_last_limbo_free_snapshot_version() const {
  869. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  870. const ::google::protobuf::Timestamp* p = _impl_.last_limbo_free_snapshot_version_;
  871. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  872. }
  873. inline const ::google::protobuf::Timestamp& Target::last_limbo_free_snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  874. // @@protoc_insertion_point(field_get:firestore.client.Target.last_limbo_free_snapshot_version)
  875. return _internal_last_limbo_free_snapshot_version();
  876. }
  877. inline void Target::unsafe_arena_set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value) {
  878. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  879. if (GetArena() == nullptr) {
  880. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_limbo_free_snapshot_version_);
  881. }
  882. _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  883. if (value != nullptr) {
  884. _impl_._has_bits_[0] |= 0x00000002u;
  885. } else {
  886. _impl_._has_bits_[0] &= ~0x00000002u;
  887. }
  888. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
  889. }
  890. inline ::google::protobuf::Timestamp* Target::release_last_limbo_free_snapshot_version() {
  891. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  892. _impl_._has_bits_[0] &= ~0x00000002u;
  893. ::google::protobuf::Timestamp* released = _impl_.last_limbo_free_snapshot_version_;
  894. _impl_.last_limbo_free_snapshot_version_ = nullptr;
  895. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  896. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  897. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  898. if (GetArena() == nullptr) {
  899. delete old;
  900. }
  901. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  902. if (GetArena() != nullptr) {
  903. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  904. }
  905. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  906. return released;
  907. }
  908. inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_last_limbo_free_snapshot_version() {
  909. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  910. // @@protoc_insertion_point(field_release:firestore.client.Target.last_limbo_free_snapshot_version)
  911. _impl_._has_bits_[0] &= ~0x00000002u;
  912. ::google::protobuf::Timestamp* temp = _impl_.last_limbo_free_snapshot_version_;
  913. _impl_.last_limbo_free_snapshot_version_ = nullptr;
  914. return temp;
  915. }
  916. inline ::google::protobuf::Timestamp* Target::_internal_mutable_last_limbo_free_snapshot_version() {
  917. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  918. _impl_._has_bits_[0] |= 0x00000002u;
  919. if (_impl_.last_limbo_free_snapshot_version_ == nullptr) {
  920. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  921. _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  922. }
  923. return _impl_.last_limbo_free_snapshot_version_;
  924. }
  925. inline ::google::protobuf::Timestamp* Target::mutable_last_limbo_free_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  926. ::google::protobuf::Timestamp* _msg = _internal_mutable_last_limbo_free_snapshot_version();
  927. // @@protoc_insertion_point(field_mutable:firestore.client.Target.last_limbo_free_snapshot_version)
  928. return _msg;
  929. }
  930. inline void Target::set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value) {
  931. ::google::protobuf::Arena* message_arena = GetArena();
  932. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  933. if (message_arena == nullptr) {
  934. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_limbo_free_snapshot_version_);
  935. }
  936. if (value != nullptr) {
  937. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  938. if (message_arena != submessage_arena) {
  939. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  940. }
  941. _impl_._has_bits_[0] |= 0x00000002u;
  942. } else {
  943. _impl_._has_bits_[0] &= ~0x00000002u;
  944. }
  945. _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  946. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
  947. }
  948. inline bool Target::has_target_type() const {
  949. return target_type_case() != TARGET_TYPE_NOT_SET;
  950. }
  951. inline void Target::clear_has_target_type() {
  952. _impl_._oneof_case_[0] = TARGET_TYPE_NOT_SET;
  953. }
  954. inline Target::TargetTypeCase Target::target_type_case() const {
  955. return Target::TargetTypeCase(_impl_._oneof_case_[0]);
  956. }
  957. // -------------------------------------------------------------------
  958. // TargetGlobal
  959. // int32 highest_target_id = 1;
  960. inline void TargetGlobal::clear_highest_target_id() {
  961. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  962. _impl_.highest_target_id_ = 0;
  963. }
  964. inline ::int32_t TargetGlobal::highest_target_id() const {
  965. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
  966. return _internal_highest_target_id();
  967. }
  968. inline void TargetGlobal::set_highest_target_id(::int32_t value) {
  969. _internal_set_highest_target_id(value);
  970. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
  971. }
  972. inline ::int32_t TargetGlobal::_internal_highest_target_id() const {
  973. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  974. return _impl_.highest_target_id_;
  975. }
  976. inline void TargetGlobal::_internal_set_highest_target_id(::int32_t value) {
  977. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  978. ;
  979. _impl_.highest_target_id_ = value;
  980. }
  981. // int64 highest_listen_sequence_number = 2;
  982. inline void TargetGlobal::clear_highest_listen_sequence_number() {
  983. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  984. _impl_.highest_listen_sequence_number_ = ::int64_t{0};
  985. }
  986. inline ::int64_t TargetGlobal::highest_listen_sequence_number() const {
  987. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
  988. return _internal_highest_listen_sequence_number();
  989. }
  990. inline void TargetGlobal::set_highest_listen_sequence_number(::int64_t value) {
  991. _internal_set_highest_listen_sequence_number(value);
  992. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
  993. }
  994. inline ::int64_t TargetGlobal::_internal_highest_listen_sequence_number() const {
  995. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  996. return _impl_.highest_listen_sequence_number_;
  997. }
  998. inline void TargetGlobal::_internal_set_highest_listen_sequence_number(::int64_t value) {
  999. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1000. ;
  1001. _impl_.highest_listen_sequence_number_ = value;
  1002. }
  1003. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  1004. inline bool TargetGlobal::has_last_remote_snapshot_version() const {
  1005. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1006. PROTOBUF_ASSUME(!value || _impl_.last_remote_snapshot_version_ != nullptr);
  1007. return value;
  1008. }
  1009. inline const ::google::protobuf::Timestamp& TargetGlobal::_internal_last_remote_snapshot_version() const {
  1010. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1011. const ::google::protobuf::Timestamp* p = _impl_.last_remote_snapshot_version_;
  1012. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1013. }
  1014. inline const ::google::protobuf::Timestamp& TargetGlobal::last_remote_snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1015. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1016. return _internal_last_remote_snapshot_version();
  1017. }
  1018. inline void TargetGlobal::unsafe_arena_set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value) {
  1019. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1020. if (GetArena() == nullptr) {
  1021. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_remote_snapshot_version_);
  1022. }
  1023. _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1024. if (value != nullptr) {
  1025. _impl_._has_bits_[0] |= 0x00000001u;
  1026. } else {
  1027. _impl_._has_bits_[0] &= ~0x00000001u;
  1028. }
  1029. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1030. }
  1031. inline ::google::protobuf::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
  1032. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1033. _impl_._has_bits_[0] &= ~0x00000001u;
  1034. ::google::protobuf::Timestamp* released = _impl_.last_remote_snapshot_version_;
  1035. _impl_.last_remote_snapshot_version_ = nullptr;
  1036. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1037. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1038. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1039. if (GetArena() == nullptr) {
  1040. delete old;
  1041. }
  1042. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1043. if (GetArena() != nullptr) {
  1044. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1045. }
  1046. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1047. return released;
  1048. }
  1049. inline ::google::protobuf::Timestamp* TargetGlobal::unsafe_arena_release_last_remote_snapshot_version() {
  1050. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1051. // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1052. _impl_._has_bits_[0] &= ~0x00000001u;
  1053. ::google::protobuf::Timestamp* temp = _impl_.last_remote_snapshot_version_;
  1054. _impl_.last_remote_snapshot_version_ = nullptr;
  1055. return temp;
  1056. }
  1057. inline ::google::protobuf::Timestamp* TargetGlobal::_internal_mutable_last_remote_snapshot_version() {
  1058. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1059. _impl_._has_bits_[0] |= 0x00000001u;
  1060. if (_impl_.last_remote_snapshot_version_ == nullptr) {
  1061. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1062. _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1063. }
  1064. return _impl_.last_remote_snapshot_version_;
  1065. }
  1066. inline ::google::protobuf::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1067. ::google::protobuf::Timestamp* _msg = _internal_mutable_last_remote_snapshot_version();
  1068. // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1069. return _msg;
  1070. }
  1071. inline void TargetGlobal::set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value) {
  1072. ::google::protobuf::Arena* message_arena = GetArena();
  1073. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1074. if (message_arena == nullptr) {
  1075. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_remote_snapshot_version_);
  1076. }
  1077. if (value != nullptr) {
  1078. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1079. if (message_arena != submessage_arena) {
  1080. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1081. }
  1082. _impl_._has_bits_[0] |= 0x00000001u;
  1083. } else {
  1084. _impl_._has_bits_[0] &= ~0x00000001u;
  1085. }
  1086. _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1087. // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1088. }
  1089. // int32 target_count = 4;
  1090. inline void TargetGlobal::clear_target_count() {
  1091. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1092. _impl_.target_count_ = 0;
  1093. }
  1094. inline ::int32_t TargetGlobal::target_count() const {
  1095. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
  1096. return _internal_target_count();
  1097. }
  1098. inline void TargetGlobal::set_target_count(::int32_t value) {
  1099. _internal_set_target_count(value);
  1100. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
  1101. }
  1102. inline ::int32_t TargetGlobal::_internal_target_count() const {
  1103. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1104. return _impl_.target_count_;
  1105. }
  1106. inline void TargetGlobal::_internal_set_target_count(::int32_t value) {
  1107. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1108. ;
  1109. _impl_.target_count_ = value;
  1110. }
  1111. #ifdef __GNUC__
  1112. #pragma GCC diagnostic pop
  1113. #endif // __GNUC__
  1114. // @@protoc_insertion_point(namespace_scope)
  1115. } // namespace client
  1116. } // namespace firestore
  1117. // @@protoc_insertion_point(global_scope)
  1118. #include "google/protobuf/port_undef.inc"
  1119. #endif // GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto_2epb_2eh