target.pb.h 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  1. /*
  2. * Copyright 2025 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. kPipelineQuery = 13,
  330. TARGET_TYPE_NOT_SET = 0,
  331. };
  332. static inline const Target* internal_default_instance() {
  333. return reinterpret_cast<const Target*>(
  334. &_Target_default_instance_);
  335. }
  336. static constexpr int kIndexInFileMessages =
  337. 0;
  338. friend void swap(Target& a, Target& b) {
  339. a.Swap(&b);
  340. }
  341. inline void Swap(Target* other) {
  342. if (other == this) return;
  343. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  344. if (GetArena() != nullptr &&
  345. GetArena() == other->GetArena()) {
  346. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  347. if (GetArena() == other->GetArena()) {
  348. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  349. InternalSwap(other);
  350. } else {
  351. ::google::protobuf::internal::GenericSwap(this, other);
  352. }
  353. }
  354. void UnsafeArenaSwap(Target* other) {
  355. if (other == this) return;
  356. ABSL_DCHECK(GetArena() == other->GetArena());
  357. InternalSwap(other);
  358. }
  359. // implements Message ----------------------------------------------
  360. Target* New(::google::protobuf::Arena* arena = nullptr) const final {
  361. return CreateMaybeMessage<Target>(arena);
  362. }
  363. using ::google::protobuf::Message::CopyFrom;
  364. void CopyFrom(const Target& from);
  365. using ::google::protobuf::Message::MergeFrom;
  366. void MergeFrom( const Target& from) {
  367. Target::MergeImpl(*this, from);
  368. }
  369. private:
  370. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  371. public:
  372. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  373. bool IsInitialized() const final;
  374. ::size_t ByteSizeLong() const final;
  375. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  376. ::uint8_t* _InternalSerialize(
  377. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  378. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  379. private:
  380. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  381. void SharedCtor(::google::protobuf::Arena* arena);
  382. void SharedDtor();
  383. void InternalSwap(Target* other);
  384. private:
  385. friend class ::google::protobuf::internal::AnyMetadata;
  386. static ::absl::string_view FullMessageName() {
  387. return "firestore.client.Target";
  388. }
  389. protected:
  390. explicit Target(::google::protobuf::Arena* arena);
  391. Target(::google::protobuf::Arena* arena, const Target& from);
  392. public:
  393. static const ClassData _class_data_;
  394. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  395. ::google::protobuf::Metadata GetMetadata() const final;
  396. // nested types ----------------------------------------------------
  397. // accessors -------------------------------------------------------
  398. enum : int {
  399. kResumeTokenFieldNumber = 3,
  400. kSnapshotVersionFieldNumber = 2,
  401. kLastLimboFreeSnapshotVersionFieldNumber = 7,
  402. kLastListenSequenceNumberFieldNumber = 4,
  403. kTargetIdFieldNumber = 1,
  404. kQueryFieldNumber = 5,
  405. kDocumentsFieldNumber = 6,
  406. kPipelineQueryFieldNumber = 13,
  407. };
  408. // bytes resume_token = 3;
  409. void clear_resume_token() ;
  410. const std::string& resume_token() const;
  411. template <typename Arg_ = const std::string&, typename... Args_>
  412. void set_resume_token(Arg_&& arg, Args_... args);
  413. std::string* mutable_resume_token();
  414. PROTOBUF_NODISCARD std::string* release_resume_token();
  415. void set_allocated_resume_token(std::string* value);
  416. private:
  417. const std::string& _internal_resume_token() const;
  418. inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume_token(
  419. const std::string& value);
  420. std::string* _internal_mutable_resume_token();
  421. public:
  422. // .google.protobuf.Timestamp snapshot_version = 2;
  423. bool has_snapshot_version() const;
  424. void clear_snapshot_version() ;
  425. const ::google::protobuf::Timestamp& snapshot_version() const;
  426. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_snapshot_version();
  427. ::google::protobuf::Timestamp* mutable_snapshot_version();
  428. void set_allocated_snapshot_version(::google::protobuf::Timestamp* value);
  429. void unsafe_arena_set_allocated_snapshot_version(::google::protobuf::Timestamp* value);
  430. ::google::protobuf::Timestamp* unsafe_arena_release_snapshot_version();
  431. private:
  432. const ::google::protobuf::Timestamp& _internal_snapshot_version() const;
  433. ::google::protobuf::Timestamp* _internal_mutable_snapshot_version();
  434. public:
  435. // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
  436. bool has_last_limbo_free_snapshot_version() const;
  437. void clear_last_limbo_free_snapshot_version() ;
  438. const ::google::protobuf::Timestamp& last_limbo_free_snapshot_version() const;
  439. PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_limbo_free_snapshot_version();
  440. ::google::protobuf::Timestamp* mutable_last_limbo_free_snapshot_version();
  441. void set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value);
  442. void unsafe_arena_set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value);
  443. ::google::protobuf::Timestamp* unsafe_arena_release_last_limbo_free_snapshot_version();
  444. private:
  445. const ::google::protobuf::Timestamp& _internal_last_limbo_free_snapshot_version() const;
  446. ::google::protobuf::Timestamp* _internal_mutable_last_limbo_free_snapshot_version();
  447. public:
  448. // int64 last_listen_sequence_number = 4;
  449. void clear_last_listen_sequence_number() ;
  450. ::int64_t last_listen_sequence_number() const;
  451. void set_last_listen_sequence_number(::int64_t value);
  452. private:
  453. ::int64_t _internal_last_listen_sequence_number() const;
  454. void _internal_set_last_listen_sequence_number(::int64_t value);
  455. public:
  456. // int32 target_id = 1;
  457. void clear_target_id() ;
  458. ::int32_t target_id() const;
  459. void set_target_id(::int32_t value);
  460. private:
  461. ::int32_t _internal_target_id() const;
  462. void _internal_set_target_id(::int32_t value);
  463. public:
  464. // .google.firestore.v1.Target.QueryTarget query = 5;
  465. bool has_query() const;
  466. private:
  467. bool _internal_has_query() const;
  468. public:
  469. void clear_query() ;
  470. const ::google::firestore::v1::Target_QueryTarget& query() const;
  471. PROTOBUF_NODISCARD ::google::firestore::v1::Target_QueryTarget* release_query();
  472. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  473. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
  474. void unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
  475. ::google::firestore::v1::Target_QueryTarget* unsafe_arena_release_query();
  476. private:
  477. const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
  478. ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
  479. public:
  480. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  481. bool has_documents() const;
  482. private:
  483. bool _internal_has_documents() const;
  484. public:
  485. void clear_documents() ;
  486. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  487. PROTOBUF_NODISCARD ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  488. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  489. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
  490. void unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
  491. ::google::firestore::v1::Target_DocumentsTarget* unsafe_arena_release_documents();
  492. private:
  493. const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
  494. ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
  495. public:
  496. // .google.firestore.v1.Target.PipelineQueryTarget pipeline_query = 13;
  497. bool has_pipeline_query() const;
  498. private:
  499. bool _internal_has_pipeline_query() const;
  500. public:
  501. void clear_pipeline_query() ;
  502. const ::google::firestore::v1::Target_PipelineQueryTarget& pipeline_query() const;
  503. PROTOBUF_NODISCARD ::google::firestore::v1::Target_PipelineQueryTarget* release_pipeline_query();
  504. ::google::firestore::v1::Target_PipelineQueryTarget* mutable_pipeline_query();
  505. void set_allocated_pipeline_query(::google::firestore::v1::Target_PipelineQueryTarget* value);
  506. void unsafe_arena_set_allocated_pipeline_query(::google::firestore::v1::Target_PipelineQueryTarget* value);
  507. ::google::firestore::v1::Target_PipelineQueryTarget* unsafe_arena_release_pipeline_query();
  508. private:
  509. const ::google::firestore::v1::Target_PipelineQueryTarget& _internal_pipeline_query() const;
  510. ::google::firestore::v1::Target_PipelineQueryTarget* _internal_mutable_pipeline_query();
  511. public:
  512. void clear_target_type();
  513. TargetTypeCase target_type_case() const;
  514. // @@protoc_insertion_point(class_scope:firestore.client.Target)
  515. private:
  516. class _Internal;
  517. void set_has_query();
  518. void set_has_documents();
  519. void set_has_pipeline_query();
  520. inline bool has_target_type() const;
  521. inline void clear_has_target_type();
  522. friend class ::google::protobuf::internal::TcParser;
  523. static const ::google::protobuf::internal::TcParseTable<
  524. 3, 8, 5,
  525. 0, 2>
  526. _table_;
  527. friend class ::google::protobuf::MessageLite;
  528. friend class ::google::protobuf::Arena;
  529. template <typename T>
  530. friend class ::google::protobuf::Arena::InternalHelper;
  531. using InternalArenaConstructable_ = void;
  532. using DestructorSkippable_ = void;
  533. struct Impl_ {
  534. inline explicit constexpr Impl_(
  535. ::google::protobuf::internal::ConstantInitialized) noexcept;
  536. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  537. ::google::protobuf::Arena* arena);
  538. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  539. ::google::protobuf::Arena* arena, const Impl_& from);
  540. ::google::protobuf::internal::HasBits<1> _has_bits_;
  541. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  542. ::google::protobuf::internal::ArenaStringPtr resume_token_;
  543. ::google::protobuf::Timestamp* snapshot_version_;
  544. ::google::protobuf::Timestamp* last_limbo_free_snapshot_version_;
  545. ::int64_t last_listen_sequence_number_;
  546. ::int32_t target_id_;
  547. union TargetTypeUnion {
  548. constexpr TargetTypeUnion() : _constinit_{} {}
  549. ::google::protobuf::internal::ConstantInitialized _constinit_;
  550. ::google::firestore::v1::Target_QueryTarget* query_;
  551. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  552. ::google::firestore::v1::Target_PipelineQueryTarget* pipeline_query_;
  553. } target_type_;
  554. ::uint32_t _oneof_case_[1];
  555. PROTOBUF_TSAN_DECLARE_MEMBER
  556. };
  557. union { Impl_ _impl_; };
  558. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  559. };
  560. // ===================================================================
  561. // ===================================================================
  562. #ifdef __GNUC__
  563. #pragma GCC diagnostic push
  564. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  565. #endif // __GNUC__
  566. // -------------------------------------------------------------------
  567. // Target
  568. // int32 target_id = 1;
  569. inline void Target::clear_target_id() {
  570. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  571. _impl_.target_id_ = 0;
  572. }
  573. inline ::int32_t Target::target_id() const {
  574. // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
  575. return _internal_target_id();
  576. }
  577. inline void Target::set_target_id(::int32_t value) {
  578. _internal_set_target_id(value);
  579. // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
  580. }
  581. inline ::int32_t Target::_internal_target_id() const {
  582. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  583. return _impl_.target_id_;
  584. }
  585. inline void Target::_internal_set_target_id(::int32_t value) {
  586. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  587. ;
  588. _impl_.target_id_ = value;
  589. }
  590. // .google.protobuf.Timestamp snapshot_version = 2;
  591. inline bool Target::has_snapshot_version() const {
  592. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  593. PROTOBUF_ASSUME(!value || _impl_.snapshot_version_ != nullptr);
  594. return value;
  595. }
  596. inline const ::google::protobuf::Timestamp& Target::_internal_snapshot_version() const {
  597. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  598. const ::google::protobuf::Timestamp* p = _impl_.snapshot_version_;
  599. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  600. }
  601. inline const ::google::protobuf::Timestamp& Target::snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  602. // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
  603. return _internal_snapshot_version();
  604. }
  605. inline void Target::unsafe_arena_set_allocated_snapshot_version(::google::protobuf::Timestamp* value) {
  606. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  607. if (GetArena() == nullptr) {
  608. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.snapshot_version_);
  609. }
  610. _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  611. if (value != nullptr) {
  612. _impl_._has_bits_[0] |= 0x00000001u;
  613. } else {
  614. _impl_._has_bits_[0] &= ~0x00000001u;
  615. }
  616. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.snapshot_version)
  617. }
  618. inline ::google::protobuf::Timestamp* Target::release_snapshot_version() {
  619. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  620. _impl_._has_bits_[0] &= ~0x00000001u;
  621. ::google::protobuf::Timestamp* released = _impl_.snapshot_version_;
  622. _impl_.snapshot_version_ = nullptr;
  623. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  624. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  625. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  626. if (GetArena() == nullptr) {
  627. delete old;
  628. }
  629. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  630. if (GetArena() != nullptr) {
  631. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  632. }
  633. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  634. return released;
  635. }
  636. inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_snapshot_version() {
  637. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  638. // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
  639. _impl_._has_bits_[0] &= ~0x00000001u;
  640. ::google::protobuf::Timestamp* temp = _impl_.snapshot_version_;
  641. _impl_.snapshot_version_ = nullptr;
  642. return temp;
  643. }
  644. inline ::google::protobuf::Timestamp* Target::_internal_mutable_snapshot_version() {
  645. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  646. _impl_._has_bits_[0] |= 0x00000001u;
  647. if (_impl_.snapshot_version_ == nullptr) {
  648. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  649. _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  650. }
  651. return _impl_.snapshot_version_;
  652. }
  653. inline ::google::protobuf::Timestamp* Target::mutable_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  654. ::google::protobuf::Timestamp* _msg = _internal_mutable_snapshot_version();
  655. // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
  656. return _msg;
  657. }
  658. inline void Target::set_allocated_snapshot_version(::google::protobuf::Timestamp* value) {
  659. ::google::protobuf::Arena* message_arena = GetArena();
  660. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  661. if (message_arena == nullptr) {
  662. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.snapshot_version_);
  663. }
  664. if (value != nullptr) {
  665. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  666. if (message_arena != submessage_arena) {
  667. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  668. }
  669. _impl_._has_bits_[0] |= 0x00000001u;
  670. } else {
  671. _impl_._has_bits_[0] &= ~0x00000001u;
  672. }
  673. _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  674. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
  675. }
  676. // bytes resume_token = 3;
  677. inline void Target::clear_resume_token() {
  678. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  679. _impl_.resume_token_.ClearToEmpty();
  680. }
  681. inline const std::string& Target::resume_token() const
  682. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  683. // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
  684. return _internal_resume_token();
  685. }
  686. template <typename Arg_, typename... Args_>
  687. inline PROTOBUF_ALWAYS_INLINE void Target::set_resume_token(Arg_&& arg,
  688. Args_... args) {
  689. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  690. ;
  691. _impl_.resume_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
  692. // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
  693. }
  694. inline std::string* Target::mutable_resume_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  695. std::string* _s = _internal_mutable_resume_token();
  696. // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
  697. return _s;
  698. }
  699. inline const std::string& Target::_internal_resume_token() const {
  700. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  701. return _impl_.resume_token_.Get();
  702. }
  703. inline void Target::_internal_set_resume_token(const std::string& value) {
  704. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  705. ;
  706. _impl_.resume_token_.Set(value, GetArena());
  707. }
  708. inline std::string* Target::_internal_mutable_resume_token() {
  709. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  710. ;
  711. return _impl_.resume_token_.Mutable( GetArena());
  712. }
  713. inline std::string* Target::release_resume_token() {
  714. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  715. // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
  716. return _impl_.resume_token_.Release();
  717. }
  718. inline void Target::set_allocated_resume_token(std::string* value) {
  719. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  720. _impl_.resume_token_.SetAllocated(value, GetArena());
  721. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  722. if (_impl_.resume_token_.IsDefault()) {
  723. _impl_.resume_token_.Set("", GetArena());
  724. }
  725. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  726. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
  727. }
  728. // int64 last_listen_sequence_number = 4;
  729. inline void Target::clear_last_listen_sequence_number() {
  730. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  731. _impl_.last_listen_sequence_number_ = ::int64_t{0};
  732. }
  733. inline ::int64_t Target::last_listen_sequence_number() const {
  734. // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
  735. return _internal_last_listen_sequence_number();
  736. }
  737. inline void Target::set_last_listen_sequence_number(::int64_t value) {
  738. _internal_set_last_listen_sequence_number(value);
  739. // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
  740. }
  741. inline ::int64_t Target::_internal_last_listen_sequence_number() const {
  742. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  743. return _impl_.last_listen_sequence_number_;
  744. }
  745. inline void Target::_internal_set_last_listen_sequence_number(::int64_t value) {
  746. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  747. ;
  748. _impl_.last_listen_sequence_number_ = value;
  749. }
  750. // .google.firestore.v1.Target.QueryTarget query = 5;
  751. inline bool Target::has_query() const {
  752. return target_type_case() == kQuery;
  753. }
  754. inline bool Target::_internal_has_query() const {
  755. return target_type_case() == kQuery;
  756. }
  757. inline void Target::set_has_query() {
  758. _impl_._oneof_case_[0] = kQuery;
  759. }
  760. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  761. // @@protoc_insertion_point(field_release:firestore.client.Target.query)
  762. if (target_type_case() == kQuery) {
  763. clear_has_target_type();
  764. auto* temp = _impl_.target_type_.query_;
  765. if (GetArena() != nullptr) {
  766. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  767. }
  768. _impl_.target_type_.query_ = nullptr;
  769. return temp;
  770. } else {
  771. return nullptr;
  772. }
  773. }
  774. inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
  775. return target_type_case() == kQuery ? *_impl_.target_type_.query_ : reinterpret_cast<::google::firestore::v1::Target_QueryTarget&>(::google::firestore::v1::_Target_QueryTarget_default_instance_);
  776. }
  777. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  778. // @@protoc_insertion_point(field_get:firestore.client.Target.query)
  779. return _internal_query();
  780. }
  781. inline ::google::firestore::v1::Target_QueryTarget* Target::unsafe_arena_release_query() {
  782. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.query)
  783. if (target_type_case() == kQuery) {
  784. clear_has_target_type();
  785. auto* temp = _impl_.target_type_.query_;
  786. _impl_.target_type_.query_ = nullptr;
  787. return temp;
  788. } else {
  789. return nullptr;
  790. }
  791. }
  792. inline void Target::unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value) {
  793. // We rely on the oneof clear method to free the earlier contents
  794. // of this oneof. We can directly use the pointer we're given to
  795. // set the new value.
  796. clear_target_type();
  797. if (value) {
  798. set_has_query();
  799. _impl_.target_type_.query_ = value;
  800. }
  801. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.query)
  802. }
  803. inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
  804. if (target_type_case() != kQuery) {
  805. clear_target_type();
  806. set_has_query();
  807. _impl_.target_type_.query_ = CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(GetArena());
  808. }
  809. return _impl_.target_type_.query_;
  810. }
  811. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  812. ::google::firestore::v1::Target_QueryTarget* _msg = _internal_mutable_query();
  813. // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
  814. return _msg;
  815. }
  816. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  817. inline bool Target::has_documents() const {
  818. return target_type_case() == kDocuments;
  819. }
  820. inline bool Target::_internal_has_documents() const {
  821. return target_type_case() == kDocuments;
  822. }
  823. inline void Target::set_has_documents() {
  824. _impl_._oneof_case_[0] = kDocuments;
  825. }
  826. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  827. // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
  828. if (target_type_case() == kDocuments) {
  829. clear_has_target_type();
  830. auto* temp = _impl_.target_type_.documents_;
  831. if (GetArena() != nullptr) {
  832. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  833. }
  834. _impl_.target_type_.documents_ = nullptr;
  835. return temp;
  836. } else {
  837. return nullptr;
  838. }
  839. }
  840. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
  841. return target_type_case() == kDocuments ? *_impl_.target_type_.documents_ : reinterpret_cast<::google::firestore::v1::Target_DocumentsTarget&>(::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  842. }
  843. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  844. // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
  845. return _internal_documents();
  846. }
  847. inline ::google::firestore::v1::Target_DocumentsTarget* Target::unsafe_arena_release_documents() {
  848. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.documents)
  849. if (target_type_case() == kDocuments) {
  850. clear_has_target_type();
  851. auto* temp = _impl_.target_type_.documents_;
  852. _impl_.target_type_.documents_ = nullptr;
  853. return temp;
  854. } else {
  855. return nullptr;
  856. }
  857. }
  858. inline void Target::unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value) {
  859. // We rely on the oneof clear method to free the earlier contents
  860. // of this oneof. We can directly use the pointer we're given to
  861. // set the new value.
  862. clear_target_type();
  863. if (value) {
  864. set_has_documents();
  865. _impl_.target_type_.documents_ = value;
  866. }
  867. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.documents)
  868. }
  869. inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
  870. if (target_type_case() != kDocuments) {
  871. clear_target_type();
  872. set_has_documents();
  873. _impl_.target_type_.documents_ = CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(GetArena());
  874. }
  875. return _impl_.target_type_.documents_;
  876. }
  877. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  878. ::google::firestore::v1::Target_DocumentsTarget* _msg = _internal_mutable_documents();
  879. // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
  880. return _msg;
  881. }
  882. // .google.firestore.v1.Target.PipelineQueryTarget pipeline_query = 13;
  883. inline bool Target::has_pipeline_query() const {
  884. return target_type_case() == kPipelineQuery;
  885. }
  886. inline bool Target::_internal_has_pipeline_query() const {
  887. return target_type_case() == kPipelineQuery;
  888. }
  889. inline void Target::set_has_pipeline_query() {
  890. _impl_._oneof_case_[0] = kPipelineQuery;
  891. }
  892. inline ::google::firestore::v1::Target_PipelineQueryTarget* Target::release_pipeline_query() {
  893. // @@protoc_insertion_point(field_release:firestore.client.Target.pipeline_query)
  894. if (target_type_case() == kPipelineQuery) {
  895. clear_has_target_type();
  896. auto* temp = _impl_.target_type_.pipeline_query_;
  897. if (GetArena() != nullptr) {
  898. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
  899. }
  900. _impl_.target_type_.pipeline_query_ = nullptr;
  901. return temp;
  902. } else {
  903. return nullptr;
  904. }
  905. }
  906. inline const ::google::firestore::v1::Target_PipelineQueryTarget& Target::_internal_pipeline_query() const {
  907. return target_type_case() == kPipelineQuery ? *_impl_.target_type_.pipeline_query_ : reinterpret_cast<::google::firestore::v1::Target_PipelineQueryTarget&>(::google::firestore::v1::_Target_PipelineQueryTarget_default_instance_);
  908. }
  909. inline const ::google::firestore::v1::Target_PipelineQueryTarget& Target::pipeline_query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  910. // @@protoc_insertion_point(field_get:firestore.client.Target.pipeline_query)
  911. return _internal_pipeline_query();
  912. }
  913. inline ::google::firestore::v1::Target_PipelineQueryTarget* Target::unsafe_arena_release_pipeline_query() {
  914. // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.pipeline_query)
  915. if (target_type_case() == kPipelineQuery) {
  916. clear_has_target_type();
  917. auto* temp = _impl_.target_type_.pipeline_query_;
  918. _impl_.target_type_.pipeline_query_ = nullptr;
  919. return temp;
  920. } else {
  921. return nullptr;
  922. }
  923. }
  924. inline void Target::unsafe_arena_set_allocated_pipeline_query(::google::firestore::v1::Target_PipelineQueryTarget* value) {
  925. // We rely on the oneof clear method to free the earlier contents
  926. // of this oneof. We can directly use the pointer we're given to
  927. // set the new value.
  928. clear_target_type();
  929. if (value) {
  930. set_has_pipeline_query();
  931. _impl_.target_type_.pipeline_query_ = value;
  932. }
  933. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.pipeline_query)
  934. }
  935. inline ::google::firestore::v1::Target_PipelineQueryTarget* Target::_internal_mutable_pipeline_query() {
  936. if (target_type_case() != kPipelineQuery) {
  937. clear_target_type();
  938. set_has_pipeline_query();
  939. _impl_.target_type_.pipeline_query_ = CreateMaybeMessage<::google::firestore::v1::Target_PipelineQueryTarget>(GetArena());
  940. }
  941. return _impl_.target_type_.pipeline_query_;
  942. }
  943. inline ::google::firestore::v1::Target_PipelineQueryTarget* Target::mutable_pipeline_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  944. ::google::firestore::v1::Target_PipelineQueryTarget* _msg = _internal_mutable_pipeline_query();
  945. // @@protoc_insertion_point(field_mutable:firestore.client.Target.pipeline_query)
  946. return _msg;
  947. }
  948. // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
  949. inline bool Target::has_last_limbo_free_snapshot_version() const {
  950. bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
  951. PROTOBUF_ASSUME(!value || _impl_.last_limbo_free_snapshot_version_ != nullptr);
  952. return value;
  953. }
  954. inline const ::google::protobuf::Timestamp& Target::_internal_last_limbo_free_snapshot_version() const {
  955. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  956. const ::google::protobuf::Timestamp* p = _impl_.last_limbo_free_snapshot_version_;
  957. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  958. }
  959. inline const ::google::protobuf::Timestamp& Target::last_limbo_free_snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  960. // @@protoc_insertion_point(field_get:firestore.client.Target.last_limbo_free_snapshot_version)
  961. return _internal_last_limbo_free_snapshot_version();
  962. }
  963. inline void Target::unsafe_arena_set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value) {
  964. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  965. if (GetArena() == nullptr) {
  966. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_limbo_free_snapshot_version_);
  967. }
  968. _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  969. if (value != nullptr) {
  970. _impl_._has_bits_[0] |= 0x00000002u;
  971. } else {
  972. _impl_._has_bits_[0] &= ~0x00000002u;
  973. }
  974. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
  975. }
  976. inline ::google::protobuf::Timestamp* Target::release_last_limbo_free_snapshot_version() {
  977. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  978. _impl_._has_bits_[0] &= ~0x00000002u;
  979. ::google::protobuf::Timestamp* released = _impl_.last_limbo_free_snapshot_version_;
  980. _impl_.last_limbo_free_snapshot_version_ = nullptr;
  981. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  982. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  983. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  984. if (GetArena() == nullptr) {
  985. delete old;
  986. }
  987. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  988. if (GetArena() != nullptr) {
  989. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  990. }
  991. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  992. return released;
  993. }
  994. inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_last_limbo_free_snapshot_version() {
  995. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  996. // @@protoc_insertion_point(field_release:firestore.client.Target.last_limbo_free_snapshot_version)
  997. _impl_._has_bits_[0] &= ~0x00000002u;
  998. ::google::protobuf::Timestamp* temp = _impl_.last_limbo_free_snapshot_version_;
  999. _impl_.last_limbo_free_snapshot_version_ = nullptr;
  1000. return temp;
  1001. }
  1002. inline ::google::protobuf::Timestamp* Target::_internal_mutable_last_limbo_free_snapshot_version() {
  1003. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1004. _impl_._has_bits_[0] |= 0x00000002u;
  1005. if (_impl_.last_limbo_free_snapshot_version_ == nullptr) {
  1006. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1007. _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1008. }
  1009. return _impl_.last_limbo_free_snapshot_version_;
  1010. }
  1011. inline ::google::protobuf::Timestamp* Target::mutable_last_limbo_free_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1012. ::google::protobuf::Timestamp* _msg = _internal_mutable_last_limbo_free_snapshot_version();
  1013. // @@protoc_insertion_point(field_mutable:firestore.client.Target.last_limbo_free_snapshot_version)
  1014. return _msg;
  1015. }
  1016. inline void Target::set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value) {
  1017. ::google::protobuf::Arena* message_arena = GetArena();
  1018. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1019. if (message_arena == nullptr) {
  1020. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_limbo_free_snapshot_version_);
  1021. }
  1022. if (value != nullptr) {
  1023. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1024. if (message_arena != submessage_arena) {
  1025. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1026. }
  1027. _impl_._has_bits_[0] |= 0x00000002u;
  1028. } else {
  1029. _impl_._has_bits_[0] &= ~0x00000002u;
  1030. }
  1031. _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1032. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
  1033. }
  1034. inline bool Target::has_target_type() const {
  1035. return target_type_case() != TARGET_TYPE_NOT_SET;
  1036. }
  1037. inline void Target::clear_has_target_type() {
  1038. _impl_._oneof_case_[0] = TARGET_TYPE_NOT_SET;
  1039. }
  1040. inline Target::TargetTypeCase Target::target_type_case() const {
  1041. return Target::TargetTypeCase(_impl_._oneof_case_[0]);
  1042. }
  1043. // -------------------------------------------------------------------
  1044. // TargetGlobal
  1045. // int32 highest_target_id = 1;
  1046. inline void TargetGlobal::clear_highest_target_id() {
  1047. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1048. _impl_.highest_target_id_ = 0;
  1049. }
  1050. inline ::int32_t TargetGlobal::highest_target_id() const {
  1051. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
  1052. return _internal_highest_target_id();
  1053. }
  1054. inline void TargetGlobal::set_highest_target_id(::int32_t value) {
  1055. _internal_set_highest_target_id(value);
  1056. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
  1057. }
  1058. inline ::int32_t TargetGlobal::_internal_highest_target_id() const {
  1059. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1060. return _impl_.highest_target_id_;
  1061. }
  1062. inline void TargetGlobal::_internal_set_highest_target_id(::int32_t value) {
  1063. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1064. ;
  1065. _impl_.highest_target_id_ = value;
  1066. }
  1067. // int64 highest_listen_sequence_number = 2;
  1068. inline void TargetGlobal::clear_highest_listen_sequence_number() {
  1069. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1070. _impl_.highest_listen_sequence_number_ = ::int64_t{0};
  1071. }
  1072. inline ::int64_t TargetGlobal::highest_listen_sequence_number() const {
  1073. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
  1074. return _internal_highest_listen_sequence_number();
  1075. }
  1076. inline void TargetGlobal::set_highest_listen_sequence_number(::int64_t value) {
  1077. _internal_set_highest_listen_sequence_number(value);
  1078. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
  1079. }
  1080. inline ::int64_t TargetGlobal::_internal_highest_listen_sequence_number() const {
  1081. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1082. return _impl_.highest_listen_sequence_number_;
  1083. }
  1084. inline void TargetGlobal::_internal_set_highest_listen_sequence_number(::int64_t value) {
  1085. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1086. ;
  1087. _impl_.highest_listen_sequence_number_ = value;
  1088. }
  1089. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  1090. inline bool TargetGlobal::has_last_remote_snapshot_version() const {
  1091. bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
  1092. PROTOBUF_ASSUME(!value || _impl_.last_remote_snapshot_version_ != nullptr);
  1093. return value;
  1094. }
  1095. inline const ::google::protobuf::Timestamp& TargetGlobal::_internal_last_remote_snapshot_version() const {
  1096. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1097. const ::google::protobuf::Timestamp* p = _impl_.last_remote_snapshot_version_;
  1098. return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
  1099. }
  1100. inline const ::google::protobuf::Timestamp& TargetGlobal::last_remote_snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1101. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1102. return _internal_last_remote_snapshot_version();
  1103. }
  1104. inline void TargetGlobal::unsafe_arena_set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value) {
  1105. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1106. if (GetArena() == nullptr) {
  1107. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_remote_snapshot_version_);
  1108. }
  1109. _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1110. if (value != nullptr) {
  1111. _impl_._has_bits_[0] |= 0x00000001u;
  1112. } else {
  1113. _impl_._has_bits_[0] &= ~0x00000001u;
  1114. }
  1115. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1116. }
  1117. inline ::google::protobuf::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
  1118. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1119. _impl_._has_bits_[0] &= ~0x00000001u;
  1120. ::google::protobuf::Timestamp* released = _impl_.last_remote_snapshot_version_;
  1121. _impl_.last_remote_snapshot_version_ = nullptr;
  1122. #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
  1123. auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
  1124. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1125. if (GetArena() == nullptr) {
  1126. delete old;
  1127. }
  1128. #else // PROTOBUF_FORCE_COPY_IN_RELEASE
  1129. if (GetArena() != nullptr) {
  1130. released = ::google::protobuf::internal::DuplicateIfNonNull(released);
  1131. }
  1132. #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
  1133. return released;
  1134. }
  1135. inline ::google::protobuf::Timestamp* TargetGlobal::unsafe_arena_release_last_remote_snapshot_version() {
  1136. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1137. // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1138. _impl_._has_bits_[0] &= ~0x00000001u;
  1139. ::google::protobuf::Timestamp* temp = _impl_.last_remote_snapshot_version_;
  1140. _impl_.last_remote_snapshot_version_ = nullptr;
  1141. return temp;
  1142. }
  1143. inline ::google::protobuf::Timestamp* TargetGlobal::_internal_mutable_last_remote_snapshot_version() {
  1144. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1145. _impl_._has_bits_[0] |= 0x00000001u;
  1146. if (_impl_.last_remote_snapshot_version_ == nullptr) {
  1147. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
  1148. _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
  1149. }
  1150. return _impl_.last_remote_snapshot_version_;
  1151. }
  1152. inline ::google::protobuf::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  1153. ::google::protobuf::Timestamp* _msg = _internal_mutable_last_remote_snapshot_version();
  1154. // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1155. return _msg;
  1156. }
  1157. inline void TargetGlobal::set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value) {
  1158. ::google::protobuf::Arena* message_arena = GetArena();
  1159. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1160. if (message_arena == nullptr) {
  1161. delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_remote_snapshot_version_);
  1162. }
  1163. if (value != nullptr) {
  1164. ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
  1165. if (message_arena != submessage_arena) {
  1166. value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
  1167. }
  1168. _impl_._has_bits_[0] |= 0x00000001u;
  1169. } else {
  1170. _impl_._has_bits_[0] &= ~0x00000001u;
  1171. }
  1172. _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
  1173. // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  1174. }
  1175. // int32 target_count = 4;
  1176. inline void TargetGlobal::clear_target_count() {
  1177. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1178. _impl_.target_count_ = 0;
  1179. }
  1180. inline ::int32_t TargetGlobal::target_count() const {
  1181. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
  1182. return _internal_target_count();
  1183. }
  1184. inline void TargetGlobal::set_target_count(::int32_t value) {
  1185. _internal_set_target_count(value);
  1186. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
  1187. }
  1188. inline ::int32_t TargetGlobal::_internal_target_count() const {
  1189. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  1190. return _impl_.target_count_;
  1191. }
  1192. inline void TargetGlobal::_internal_set_target_count(::int32_t value) {
  1193. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1194. ;
  1195. _impl_.target_count_ = value;
  1196. }
  1197. #ifdef __GNUC__
  1198. #pragma GCC diagnostic pop
  1199. #endif // __GNUC__
  1200. // @@protoc_insertion_point(namespace_scope)
  1201. } // namespace client
  1202. } // namespace firestore
  1203. // @@protoc_insertion_point(global_scope)
  1204. #include "google/protobuf/port_undef.inc"
  1205. #endif // GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto_2epb_2eh