target.pb.h 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: firestore/local/target.proto
  18. #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto
  20. #include <limits>
  21. #include <string>
  22. #include <google/protobuf/port_def.inc>
  23. #if PROTOBUF_VERSION < 3009000
  24. #error This file was generated by a newer version of protoc which is
  25. #error incompatible with your Protocol Buffer headers. Please update
  26. #error your headers.
  27. #endif
  28. #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
  29. #error This file was generated by an older version of protoc which is
  30. #error incompatible with your Protocol Buffer headers. Please
  31. #error regenerate this file with a newer version of protoc.
  32. #endif
  33. #include <google/protobuf/port_undef.inc>
  34. #include <google/protobuf/io/coded_stream.h>
  35. #include <google/protobuf/arena.h>
  36. #include <google/protobuf/arenastring.h>
  37. #include <google/protobuf/generated_message_table_driven.h>
  38. #include <google/protobuf/generated_message_util.h>
  39. #include <google/protobuf/inlined_string_field.h>
  40. #include <google/protobuf/metadata.h>
  41. #include <google/protobuf/generated_message_reflection.h>
  42. #include <google/protobuf/message.h>
  43. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  44. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  45. #include <google/protobuf/unknown_field_set.h>
  46. #include "google/firestore/v1/firestore.pb.h"
  47. #include <google/protobuf/timestamp.pb.h>
  48. // @@protoc_insertion_point(includes)
  49. #include <google/protobuf/port_def.inc>
  50. #define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2ftarget_2eproto
  51. PROTOBUF_NAMESPACE_OPEN
  52. namespace internal {
  53. class AnyMetadata;
  54. } // namespace internal
  55. PROTOBUF_NAMESPACE_CLOSE
  56. // Internal implementation detail -- do not use these members.
  57. struct TableStruct_firestore_2flocal_2ftarget_2eproto {
  58. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  59. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  60. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  61. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  62. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
  63. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  65. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  66. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  67. };
  68. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_firestore_2flocal_2ftarget_2eproto;
  69. namespace firestore {
  70. namespace client {
  71. class Target;
  72. class TargetDefaultTypeInternal;
  73. extern TargetDefaultTypeInternal _Target_default_instance_;
  74. class TargetGlobal;
  75. class TargetGlobalDefaultTypeInternal;
  76. extern TargetGlobalDefaultTypeInternal _TargetGlobal_default_instance_;
  77. } // namespace client
  78. } // namespace firestore
  79. PROTOBUF_NAMESPACE_OPEN
  80. template<> ::firestore::client::Target* Arena::CreateMaybeMessage<::firestore::client::Target>(Arena*);
  81. template<> ::firestore::client::TargetGlobal* Arena::CreateMaybeMessage<::firestore::client::TargetGlobal>(Arena*);
  82. PROTOBUF_NAMESPACE_CLOSE
  83. namespace firestore {
  84. namespace client {
  85. // ===================================================================
  86. class Target :
  87. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.Target) */ {
  88. public:
  89. Target();
  90. virtual ~Target();
  91. Target(const Target& from);
  92. Target(Target&& from) noexcept
  93. : Target() {
  94. *this = ::std::move(from);
  95. }
  96. inline Target& operator=(const Target& from) {
  97. CopyFrom(from);
  98. return *this;
  99. }
  100. inline Target& operator=(Target&& from) noexcept {
  101. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  102. if (this != &from) InternalSwap(&from);
  103. } else {
  104. CopyFrom(from);
  105. }
  106. return *this;
  107. }
  108. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  109. return GetDescriptor();
  110. }
  111. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  112. return GetMetadataStatic().descriptor;
  113. }
  114. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  115. return GetMetadataStatic().reflection;
  116. }
  117. static const Target& default_instance();
  118. enum TargetTypeCase {
  119. kQuery = 5,
  120. kDocuments = 6,
  121. TARGET_TYPE_NOT_SET = 0,
  122. };
  123. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  124. static inline const Target* internal_default_instance() {
  125. return reinterpret_cast<const Target*>(
  126. &_Target_default_instance_);
  127. }
  128. static constexpr int kIndexInFileMessages =
  129. 0;
  130. friend void swap(Target& a, Target& b) {
  131. a.Swap(&b);
  132. }
  133. inline void Swap(Target* other) {
  134. if (other == this) return;
  135. InternalSwap(other);
  136. }
  137. // implements Message ----------------------------------------------
  138. inline Target* New() const final {
  139. return CreateMaybeMessage<Target>(nullptr);
  140. }
  141. Target* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  142. return CreateMaybeMessage<Target>(arena);
  143. }
  144. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  145. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  146. void CopyFrom(const Target& from);
  147. void MergeFrom(const Target& from);
  148. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  149. bool IsInitialized() const final;
  150. size_t ByteSizeLong() const final;
  151. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  152. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  153. #else
  154. bool MergePartialFromCodedStream(
  155. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  156. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  157. void SerializeWithCachedSizes(
  158. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  159. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  160. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  161. int GetCachedSize() const final { return _cached_size_.Get(); }
  162. private:
  163. inline void SharedCtor();
  164. inline void SharedDtor();
  165. void SetCachedSize(int size) const final;
  166. void InternalSwap(Target* other);
  167. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  168. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  169. return "firestore.client.Target";
  170. }
  171. private:
  172. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  173. return nullptr;
  174. }
  175. inline void* MaybeArenaPtr() const {
  176. return nullptr;
  177. }
  178. public:
  179. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  180. private:
  181. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  182. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2ftarget_2eproto);
  183. return ::descriptor_table_firestore_2flocal_2ftarget_2eproto.file_level_metadata[kIndexInFileMessages];
  184. }
  185. public:
  186. // nested types ----------------------------------------------------
  187. // accessors -------------------------------------------------------
  188. enum : int {
  189. kResumeTokenFieldNumber = 3,
  190. kSnapshotVersionFieldNumber = 2,
  191. kLastLimboFreeSnapshotVersionFieldNumber = 7,
  192. kLastListenSequenceNumberFieldNumber = 4,
  193. kTargetIdFieldNumber = 1,
  194. kQueryFieldNumber = 5,
  195. kDocumentsFieldNumber = 6,
  196. };
  197. // bytes resume_token = 3;
  198. void clear_resume_token();
  199. const std::string& resume_token() const;
  200. void set_resume_token(const std::string& value);
  201. void set_resume_token(std::string&& value);
  202. void set_resume_token(const char* value);
  203. void set_resume_token(const void* value, size_t size);
  204. std::string* mutable_resume_token();
  205. std::string* release_resume_token();
  206. void set_allocated_resume_token(std::string* resume_token);
  207. // .google.protobuf.Timestamp snapshot_version = 2;
  208. bool has_snapshot_version() const;
  209. void clear_snapshot_version();
  210. const PROTOBUF_NAMESPACE_ID::Timestamp& snapshot_version() const;
  211. PROTOBUF_NAMESPACE_ID::Timestamp* release_snapshot_version();
  212. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_snapshot_version();
  213. void set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version);
  214. // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
  215. bool has_last_limbo_free_snapshot_version() const;
  216. void clear_last_limbo_free_snapshot_version();
  217. const PROTOBUF_NAMESPACE_ID::Timestamp& last_limbo_free_snapshot_version() const;
  218. PROTOBUF_NAMESPACE_ID::Timestamp* release_last_limbo_free_snapshot_version();
  219. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_limbo_free_snapshot_version();
  220. void set_allocated_last_limbo_free_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version);
  221. // int64 last_listen_sequence_number = 4;
  222. void clear_last_listen_sequence_number();
  223. ::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number() const;
  224. void set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
  225. // int32 target_id = 1;
  226. void clear_target_id();
  227. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  228. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  229. // .google.firestore.v1.Target.QueryTarget query = 5;
  230. bool has_query() const;
  231. void clear_query();
  232. const ::google::firestore::v1::Target_QueryTarget& query() const;
  233. ::google::firestore::v1::Target_QueryTarget* release_query();
  234. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  235. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* query);
  236. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  237. bool has_documents() const;
  238. void clear_documents();
  239. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  240. ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  241. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  242. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents);
  243. void clear_target_type();
  244. TargetTypeCase target_type_case() const;
  245. // @@protoc_insertion_point(class_scope:firestore.client.Target)
  246. private:
  247. class _Internal;
  248. void set_has_query();
  249. void set_has_documents();
  250. inline bool has_target_type() const;
  251. inline void clear_has_target_type();
  252. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  253. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  254. PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version_;
  255. PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version_;
  256. ::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number_;
  257. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  258. union TargetTypeUnion {
  259. TargetTypeUnion() {}
  260. ::google::firestore::v1::Target_QueryTarget* query_;
  261. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  262. } target_type_;
  263. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  264. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  265. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  266. };
  267. // -------------------------------------------------------------------
  268. class TargetGlobal :
  269. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
  270. public:
  271. TargetGlobal();
  272. virtual ~TargetGlobal();
  273. TargetGlobal(const TargetGlobal& from);
  274. TargetGlobal(TargetGlobal&& from) noexcept
  275. : TargetGlobal() {
  276. *this = ::std::move(from);
  277. }
  278. inline TargetGlobal& operator=(const TargetGlobal& from) {
  279. CopyFrom(from);
  280. return *this;
  281. }
  282. inline TargetGlobal& operator=(TargetGlobal&& from) noexcept {
  283. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  284. if (this != &from) InternalSwap(&from);
  285. } else {
  286. CopyFrom(from);
  287. }
  288. return *this;
  289. }
  290. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  291. return GetDescriptor();
  292. }
  293. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  294. return GetMetadataStatic().descriptor;
  295. }
  296. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  297. return GetMetadataStatic().reflection;
  298. }
  299. static const TargetGlobal& default_instance();
  300. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  301. static inline const TargetGlobal* internal_default_instance() {
  302. return reinterpret_cast<const TargetGlobal*>(
  303. &_TargetGlobal_default_instance_);
  304. }
  305. static constexpr int kIndexInFileMessages =
  306. 1;
  307. friend void swap(TargetGlobal& a, TargetGlobal& b) {
  308. a.Swap(&b);
  309. }
  310. inline void Swap(TargetGlobal* other) {
  311. if (other == this) return;
  312. InternalSwap(other);
  313. }
  314. // implements Message ----------------------------------------------
  315. inline TargetGlobal* New() const final {
  316. return CreateMaybeMessage<TargetGlobal>(nullptr);
  317. }
  318. TargetGlobal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  319. return CreateMaybeMessage<TargetGlobal>(arena);
  320. }
  321. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  322. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  323. void CopyFrom(const TargetGlobal& from);
  324. void MergeFrom(const TargetGlobal& from);
  325. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  326. bool IsInitialized() const final;
  327. size_t ByteSizeLong() const final;
  328. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  329. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  330. #else
  331. bool MergePartialFromCodedStream(
  332. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  333. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  334. void SerializeWithCachedSizes(
  335. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  336. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  337. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  338. int GetCachedSize() const final { return _cached_size_.Get(); }
  339. private:
  340. inline void SharedCtor();
  341. inline void SharedDtor();
  342. void SetCachedSize(int size) const final;
  343. void InternalSwap(TargetGlobal* other);
  344. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  345. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  346. return "firestore.client.TargetGlobal";
  347. }
  348. private:
  349. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  350. return nullptr;
  351. }
  352. inline void* MaybeArenaPtr() const {
  353. return nullptr;
  354. }
  355. public:
  356. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  357. private:
  358. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  359. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2ftarget_2eproto);
  360. return ::descriptor_table_firestore_2flocal_2ftarget_2eproto.file_level_metadata[kIndexInFileMessages];
  361. }
  362. public:
  363. // nested types ----------------------------------------------------
  364. // accessors -------------------------------------------------------
  365. enum : int {
  366. kLastRemoteSnapshotVersionFieldNumber = 3,
  367. kHighestListenSequenceNumberFieldNumber = 2,
  368. kHighestTargetIdFieldNumber = 1,
  369. kTargetCountFieldNumber = 4,
  370. };
  371. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  372. bool has_last_remote_snapshot_version() const;
  373. void clear_last_remote_snapshot_version();
  374. const PROTOBUF_NAMESPACE_ID::Timestamp& last_remote_snapshot_version() const;
  375. PROTOBUF_NAMESPACE_ID::Timestamp* release_last_remote_snapshot_version();
  376. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_remote_snapshot_version();
  377. void set_allocated_last_remote_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version);
  378. // int64 highest_listen_sequence_number = 2;
  379. void clear_highest_listen_sequence_number();
  380. ::PROTOBUF_NAMESPACE_ID::int64 highest_listen_sequence_number() const;
  381. void set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
  382. // int32 highest_target_id = 1;
  383. void clear_highest_target_id();
  384. ::PROTOBUF_NAMESPACE_ID::int32 highest_target_id() const;
  385. void set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  386. // int32 target_count = 4;
  387. void clear_target_count();
  388. ::PROTOBUF_NAMESPACE_ID::int32 target_count() const;
  389. void set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  390. // @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
  391. private:
  392. class _Internal;
  393. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  394. PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version_;
  395. ::PROTOBUF_NAMESPACE_ID::int64 highest_listen_sequence_number_;
  396. ::PROTOBUF_NAMESPACE_ID::int32 highest_target_id_;
  397. ::PROTOBUF_NAMESPACE_ID::int32 target_count_;
  398. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  399. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  400. };
  401. // ===================================================================
  402. // ===================================================================
  403. #ifdef __GNUC__
  404. #pragma GCC diagnostic push
  405. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  406. #endif // __GNUC__
  407. // Target
  408. // int32 target_id = 1;
  409. inline void Target::clear_target_id() {
  410. target_id_ = 0;
  411. }
  412. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
  413. // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
  414. return target_id_;
  415. }
  416. inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  417. target_id_ = value;
  418. // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
  419. }
  420. // .google.protobuf.Timestamp snapshot_version = 2;
  421. inline bool Target::has_snapshot_version() const {
  422. return this != internal_default_instance() && snapshot_version_ != nullptr;
  423. }
  424. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::snapshot_version() const {
  425. const PROTOBUF_NAMESPACE_ID::Timestamp* p = snapshot_version_;
  426. // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
  427. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  428. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  429. }
  430. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_snapshot_version() {
  431. // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
  432. PROTOBUF_NAMESPACE_ID::Timestamp* temp = snapshot_version_;
  433. snapshot_version_ = nullptr;
  434. return temp;
  435. }
  436. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_snapshot_version() {
  437. if (snapshot_version_ == nullptr) {
  438. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  439. snapshot_version_ = p;
  440. }
  441. // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
  442. return snapshot_version_;
  443. }
  444. inline void Target::set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version) {
  445. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  446. if (message_arena == nullptr) {
  447. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(snapshot_version_);
  448. }
  449. if (snapshot_version) {
  450. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  451. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(snapshot_version)->GetArena();
  452. if (message_arena != submessage_arena) {
  453. snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  454. message_arena, snapshot_version, submessage_arena);
  455. }
  456. } else {
  457. }
  458. snapshot_version_ = snapshot_version;
  459. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
  460. }
  461. // bytes resume_token = 3;
  462. inline void Target::clear_resume_token() {
  463. resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  464. }
  465. inline const std::string& Target::resume_token() const {
  466. // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
  467. return resume_token_.GetNoArena();
  468. }
  469. inline void Target::set_resume_token(const std::string& value) {
  470. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  471. // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
  472. }
  473. inline void Target::set_resume_token(std::string&& value) {
  474. resume_token_.SetNoArena(
  475. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  476. // @@protoc_insertion_point(field_set_rvalue:firestore.client.Target.resume_token)
  477. }
  478. inline void Target::set_resume_token(const char* value) {
  479. GOOGLE_DCHECK(value != nullptr);
  480. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  481. // @@protoc_insertion_point(field_set_char:firestore.client.Target.resume_token)
  482. }
  483. inline void Target::set_resume_token(const void* value, size_t size) {
  484. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  485. ::std::string(reinterpret_cast<const char*>(value), size));
  486. // @@protoc_insertion_point(field_set_pointer:firestore.client.Target.resume_token)
  487. }
  488. inline std::string* Target::mutable_resume_token() {
  489. // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
  490. return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  491. }
  492. inline std::string* Target::release_resume_token() {
  493. // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
  494. return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  495. }
  496. inline void Target::set_allocated_resume_token(std::string* resume_token) {
  497. if (resume_token != nullptr) {
  498. } else {
  499. }
  500. resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
  501. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
  502. }
  503. // int64 last_listen_sequence_number = 4;
  504. inline void Target::clear_last_listen_sequence_number() {
  505. last_listen_sequence_number_ = PROTOBUF_LONGLONG(0);
  506. }
  507. inline ::PROTOBUF_NAMESPACE_ID::int64 Target::last_listen_sequence_number() const {
  508. // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
  509. return last_listen_sequence_number_;
  510. }
  511. inline void Target::set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
  512. last_listen_sequence_number_ = value;
  513. // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
  514. }
  515. // .google.firestore.v1.Target.QueryTarget query = 5;
  516. inline bool Target::has_query() const {
  517. return target_type_case() == kQuery;
  518. }
  519. inline void Target::set_has_query() {
  520. _oneof_case_[0] = kQuery;
  521. }
  522. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  523. // @@protoc_insertion_point(field_release:firestore.client.Target.query)
  524. if (has_query()) {
  525. clear_has_target_type();
  526. ::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
  527. target_type_.query_ = nullptr;
  528. return temp;
  529. } else {
  530. return nullptr;
  531. }
  532. }
  533. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const {
  534. // @@protoc_insertion_point(field_get:firestore.client.Target.query)
  535. return has_query()
  536. ? *target_type_.query_
  537. : *reinterpret_cast< ::google::firestore::v1::Target_QueryTarget*>(&::google::firestore::v1::_Target_QueryTarget_default_instance_);
  538. }
  539. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
  540. if (!has_query()) {
  541. clear_target_type();
  542. set_has_query();
  543. target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
  544. GetArenaNoVirtual());
  545. }
  546. // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
  547. return target_type_.query_;
  548. }
  549. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  550. inline bool Target::has_documents() const {
  551. return target_type_case() == kDocuments;
  552. }
  553. inline void Target::set_has_documents() {
  554. _oneof_case_[0] = kDocuments;
  555. }
  556. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  557. // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
  558. if (has_documents()) {
  559. clear_has_target_type();
  560. ::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
  561. target_type_.documents_ = nullptr;
  562. return temp;
  563. } else {
  564. return nullptr;
  565. }
  566. }
  567. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const {
  568. // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
  569. return has_documents()
  570. ? *target_type_.documents_
  571. : *reinterpret_cast< ::google::firestore::v1::Target_DocumentsTarget*>(&::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  572. }
  573. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
  574. if (!has_documents()) {
  575. clear_target_type();
  576. set_has_documents();
  577. target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
  578. GetArenaNoVirtual());
  579. }
  580. // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
  581. return target_type_.documents_;
  582. }
  583. // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
  584. inline bool Target::has_last_limbo_free_snapshot_version() const {
  585. return this != internal_default_instance() && last_limbo_free_snapshot_version_ != nullptr;
  586. }
  587. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::last_limbo_free_snapshot_version() const {
  588. const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_limbo_free_snapshot_version_;
  589. // @@protoc_insertion_point(field_get:firestore.client.Target.last_limbo_free_snapshot_version)
  590. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  591. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  592. }
  593. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_last_limbo_free_snapshot_version() {
  594. // @@protoc_insertion_point(field_release:firestore.client.Target.last_limbo_free_snapshot_version)
  595. PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_limbo_free_snapshot_version_;
  596. last_limbo_free_snapshot_version_ = nullptr;
  597. return temp;
  598. }
  599. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_last_limbo_free_snapshot_version() {
  600. if (last_limbo_free_snapshot_version_ == nullptr) {
  601. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  602. last_limbo_free_snapshot_version_ = p;
  603. }
  604. // @@protoc_insertion_point(field_mutable:firestore.client.Target.last_limbo_free_snapshot_version)
  605. return last_limbo_free_snapshot_version_;
  606. }
  607. inline void Target::set_allocated_last_limbo_free_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version) {
  608. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  609. if (message_arena == nullptr) {
  610. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_limbo_free_snapshot_version_);
  611. }
  612. if (last_limbo_free_snapshot_version) {
  613. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  614. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_limbo_free_snapshot_version)->GetArena();
  615. if (message_arena != submessage_arena) {
  616. last_limbo_free_snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  617. message_arena, last_limbo_free_snapshot_version, submessage_arena);
  618. }
  619. } else {
  620. }
  621. last_limbo_free_snapshot_version_ = last_limbo_free_snapshot_version;
  622. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
  623. }
  624. inline bool Target::has_target_type() const {
  625. return target_type_case() != TARGET_TYPE_NOT_SET;
  626. }
  627. inline void Target::clear_has_target_type() {
  628. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  629. }
  630. inline Target::TargetTypeCase Target::target_type_case() const {
  631. return Target::TargetTypeCase(_oneof_case_[0]);
  632. }
  633. // -------------------------------------------------------------------
  634. // TargetGlobal
  635. // int32 highest_target_id = 1;
  636. inline void TargetGlobal::clear_highest_target_id() {
  637. highest_target_id_ = 0;
  638. }
  639. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::highest_target_id() const {
  640. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
  641. return highest_target_id_;
  642. }
  643. inline void TargetGlobal::set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  644. highest_target_id_ = value;
  645. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
  646. }
  647. // int64 highest_listen_sequence_number = 2;
  648. inline void TargetGlobal::clear_highest_listen_sequence_number() {
  649. highest_listen_sequence_number_ = PROTOBUF_LONGLONG(0);
  650. }
  651. inline ::PROTOBUF_NAMESPACE_ID::int64 TargetGlobal::highest_listen_sequence_number() const {
  652. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
  653. return highest_listen_sequence_number_;
  654. }
  655. inline void TargetGlobal::set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
  656. highest_listen_sequence_number_ = value;
  657. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
  658. }
  659. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  660. inline bool TargetGlobal::has_last_remote_snapshot_version() const {
  661. return this != internal_default_instance() && last_remote_snapshot_version_ != nullptr;
  662. }
  663. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetGlobal::last_remote_snapshot_version() const {
  664. const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_remote_snapshot_version_;
  665. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
  666. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  667. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  668. }
  669. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
  670. // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
  671. PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_remote_snapshot_version_;
  672. last_remote_snapshot_version_ = nullptr;
  673. return temp;
  674. }
  675. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() {
  676. if (last_remote_snapshot_version_ == nullptr) {
  677. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  678. last_remote_snapshot_version_ = p;
  679. }
  680. // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
  681. return last_remote_snapshot_version_;
  682. }
  683. inline void TargetGlobal::set_allocated_last_remote_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version) {
  684. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  685. if (message_arena == nullptr) {
  686. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_remote_snapshot_version_);
  687. }
  688. if (last_remote_snapshot_version) {
  689. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  690. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_remote_snapshot_version)->GetArena();
  691. if (message_arena != submessage_arena) {
  692. last_remote_snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  693. message_arena, last_remote_snapshot_version, submessage_arena);
  694. }
  695. } else {
  696. }
  697. last_remote_snapshot_version_ = last_remote_snapshot_version;
  698. // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  699. }
  700. // int32 target_count = 4;
  701. inline void TargetGlobal::clear_target_count() {
  702. target_count_ = 0;
  703. }
  704. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::target_count() const {
  705. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
  706. return target_count_;
  707. }
  708. inline void TargetGlobal::set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  709. target_count_ = value;
  710. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
  711. }
  712. #ifdef __GNUC__
  713. #pragma GCC diagnostic pop
  714. #endif // __GNUC__
  715. // -------------------------------------------------------------------
  716. // @@protoc_insertion_point(namespace_scope)
  717. } // namespace client
  718. } // namespace firestore
  719. // @@protoc_insertion_point(global_scope)
  720. #include <google/protobuf/port_undef.inc>
  721. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto