target.pb.h 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  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. kLastListenSequenceNumberFieldNumber = 4,
  192. kTargetIdFieldNumber = 1,
  193. kQueryFieldNumber = 5,
  194. kDocumentsFieldNumber = 6,
  195. };
  196. // bytes resume_token = 3;
  197. void clear_resume_token();
  198. const std::string& resume_token() const;
  199. void set_resume_token(const std::string& value);
  200. void set_resume_token(std::string&& value);
  201. void set_resume_token(const char* value);
  202. void set_resume_token(const void* value, size_t size);
  203. std::string* mutable_resume_token();
  204. std::string* release_resume_token();
  205. void set_allocated_resume_token(std::string* resume_token);
  206. // .google.protobuf.Timestamp snapshot_version = 2;
  207. bool has_snapshot_version() const;
  208. void clear_snapshot_version();
  209. const PROTOBUF_NAMESPACE_ID::Timestamp& snapshot_version() const;
  210. PROTOBUF_NAMESPACE_ID::Timestamp* release_snapshot_version();
  211. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_snapshot_version();
  212. void set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version);
  213. // int64 last_listen_sequence_number = 4;
  214. void clear_last_listen_sequence_number();
  215. ::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number() const;
  216. void set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
  217. // int32 target_id = 1;
  218. void clear_target_id();
  219. ::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
  220. void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  221. // .google.firestore.v1.Target.QueryTarget query = 5;
  222. bool has_query() const;
  223. void clear_query();
  224. const ::google::firestore::v1::Target_QueryTarget& query() const;
  225. ::google::firestore::v1::Target_QueryTarget* release_query();
  226. ::google::firestore::v1::Target_QueryTarget* mutable_query();
  227. void set_allocated_query(::google::firestore::v1::Target_QueryTarget* query);
  228. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  229. bool has_documents() const;
  230. void clear_documents();
  231. const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
  232. ::google::firestore::v1::Target_DocumentsTarget* release_documents();
  233. ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
  234. void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* documents);
  235. void clear_target_type();
  236. TargetTypeCase target_type_case() const;
  237. // @@protoc_insertion_point(class_scope:firestore.client.Target)
  238. private:
  239. class _Internal;
  240. void set_has_query();
  241. void set_has_documents();
  242. inline bool has_target_type() const;
  243. inline void clear_has_target_type();
  244. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  245. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
  246. PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version_;
  247. ::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number_;
  248. ::PROTOBUF_NAMESPACE_ID::int32 target_id_;
  249. union TargetTypeUnion {
  250. TargetTypeUnion() {}
  251. ::google::firestore::v1::Target_QueryTarget* query_;
  252. ::google::firestore::v1::Target_DocumentsTarget* documents_;
  253. } target_type_;
  254. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  255. ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
  256. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  257. };
  258. // -------------------------------------------------------------------
  259. class TargetGlobal :
  260. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
  261. public:
  262. TargetGlobal();
  263. virtual ~TargetGlobal();
  264. TargetGlobal(const TargetGlobal& from);
  265. TargetGlobal(TargetGlobal&& from) noexcept
  266. : TargetGlobal() {
  267. *this = ::std::move(from);
  268. }
  269. inline TargetGlobal& operator=(const TargetGlobal& from) {
  270. CopyFrom(from);
  271. return *this;
  272. }
  273. inline TargetGlobal& operator=(TargetGlobal&& from) noexcept {
  274. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  275. if (this != &from) InternalSwap(&from);
  276. } else {
  277. CopyFrom(from);
  278. }
  279. return *this;
  280. }
  281. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  282. return GetDescriptor();
  283. }
  284. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  285. return GetMetadataStatic().descriptor;
  286. }
  287. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  288. return GetMetadataStatic().reflection;
  289. }
  290. static const TargetGlobal& default_instance();
  291. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  292. static inline const TargetGlobal* internal_default_instance() {
  293. return reinterpret_cast<const TargetGlobal*>(
  294. &_TargetGlobal_default_instance_);
  295. }
  296. static constexpr int kIndexInFileMessages =
  297. 1;
  298. friend void swap(TargetGlobal& a, TargetGlobal& b) {
  299. a.Swap(&b);
  300. }
  301. inline void Swap(TargetGlobal* other) {
  302. if (other == this) return;
  303. InternalSwap(other);
  304. }
  305. // implements Message ----------------------------------------------
  306. inline TargetGlobal* New() const final {
  307. return CreateMaybeMessage<TargetGlobal>(nullptr);
  308. }
  309. TargetGlobal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  310. return CreateMaybeMessage<TargetGlobal>(arena);
  311. }
  312. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  313. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  314. void CopyFrom(const TargetGlobal& from);
  315. void MergeFrom(const TargetGlobal& from);
  316. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  317. bool IsInitialized() const final;
  318. size_t ByteSizeLong() const final;
  319. #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  320. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  321. #else
  322. bool MergePartialFromCodedStream(
  323. ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
  324. #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
  325. void SerializeWithCachedSizes(
  326. ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
  327. ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
  328. ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
  329. int GetCachedSize() const final { return _cached_size_.Get(); }
  330. private:
  331. inline void SharedCtor();
  332. inline void SharedDtor();
  333. void SetCachedSize(int size) const final;
  334. void InternalSwap(TargetGlobal* other);
  335. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  336. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  337. return "firestore.client.TargetGlobal";
  338. }
  339. private:
  340. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  341. return nullptr;
  342. }
  343. inline void* MaybeArenaPtr() const {
  344. return nullptr;
  345. }
  346. public:
  347. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  348. private:
  349. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  350. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2ftarget_2eproto);
  351. return ::descriptor_table_firestore_2flocal_2ftarget_2eproto.file_level_metadata[kIndexInFileMessages];
  352. }
  353. public:
  354. // nested types ----------------------------------------------------
  355. // accessors -------------------------------------------------------
  356. enum : int {
  357. kLastRemoteSnapshotVersionFieldNumber = 3,
  358. kHighestListenSequenceNumberFieldNumber = 2,
  359. kHighestTargetIdFieldNumber = 1,
  360. kTargetCountFieldNumber = 4,
  361. };
  362. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  363. bool has_last_remote_snapshot_version() const;
  364. void clear_last_remote_snapshot_version();
  365. const PROTOBUF_NAMESPACE_ID::Timestamp& last_remote_snapshot_version() const;
  366. PROTOBUF_NAMESPACE_ID::Timestamp* release_last_remote_snapshot_version();
  367. PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_remote_snapshot_version();
  368. void set_allocated_last_remote_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version);
  369. // int64 highest_listen_sequence_number = 2;
  370. void clear_highest_listen_sequence_number();
  371. ::PROTOBUF_NAMESPACE_ID::int64 highest_listen_sequence_number() const;
  372. void set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
  373. // int32 highest_target_id = 1;
  374. void clear_highest_target_id();
  375. ::PROTOBUF_NAMESPACE_ID::int32 highest_target_id() const;
  376. void set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
  377. // int32 target_count = 4;
  378. void clear_target_count();
  379. ::PROTOBUF_NAMESPACE_ID::int32 target_count() const;
  380. void set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value);
  381. // @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
  382. private:
  383. class _Internal;
  384. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  385. PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version_;
  386. ::PROTOBUF_NAMESPACE_ID::int64 highest_listen_sequence_number_;
  387. ::PROTOBUF_NAMESPACE_ID::int32 highest_target_id_;
  388. ::PROTOBUF_NAMESPACE_ID::int32 target_count_;
  389. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  390. friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
  391. };
  392. // ===================================================================
  393. // ===================================================================
  394. #ifdef __GNUC__
  395. #pragma GCC diagnostic push
  396. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  397. #endif // __GNUC__
  398. // Target
  399. // int32 target_id = 1;
  400. inline void Target::clear_target_id() {
  401. target_id_ = 0;
  402. }
  403. inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
  404. // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
  405. return target_id_;
  406. }
  407. inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  408. target_id_ = value;
  409. // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
  410. }
  411. // .google.protobuf.Timestamp snapshot_version = 2;
  412. inline bool Target::has_snapshot_version() const {
  413. return this != internal_default_instance() && snapshot_version_ != nullptr;
  414. }
  415. inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::snapshot_version() const {
  416. const PROTOBUF_NAMESPACE_ID::Timestamp* p = snapshot_version_;
  417. // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
  418. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  419. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  420. }
  421. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_snapshot_version() {
  422. // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
  423. PROTOBUF_NAMESPACE_ID::Timestamp* temp = snapshot_version_;
  424. snapshot_version_ = nullptr;
  425. return temp;
  426. }
  427. inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_snapshot_version() {
  428. if (snapshot_version_ == nullptr) {
  429. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  430. snapshot_version_ = p;
  431. }
  432. // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
  433. return snapshot_version_;
  434. }
  435. inline void Target::set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version) {
  436. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  437. if (message_arena == nullptr) {
  438. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(snapshot_version_);
  439. }
  440. if (snapshot_version) {
  441. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  442. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(snapshot_version)->GetArena();
  443. if (message_arena != submessage_arena) {
  444. snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  445. message_arena, snapshot_version, submessage_arena);
  446. }
  447. } else {
  448. }
  449. snapshot_version_ = snapshot_version;
  450. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
  451. }
  452. // bytes resume_token = 3;
  453. inline void Target::clear_resume_token() {
  454. resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  455. }
  456. inline const std::string& Target::resume_token() const {
  457. // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
  458. return resume_token_.GetNoArena();
  459. }
  460. inline void Target::set_resume_token(const std::string& value) {
  461. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  462. // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
  463. }
  464. inline void Target::set_resume_token(std::string&& value) {
  465. resume_token_.SetNoArena(
  466. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  467. // @@protoc_insertion_point(field_set_rvalue:firestore.client.Target.resume_token)
  468. }
  469. inline void Target::set_resume_token(const char* value) {
  470. GOOGLE_DCHECK(value != nullptr);
  471. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  472. // @@protoc_insertion_point(field_set_char:firestore.client.Target.resume_token)
  473. }
  474. inline void Target::set_resume_token(const void* value, size_t size) {
  475. resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  476. ::std::string(reinterpret_cast<const char*>(value), size));
  477. // @@protoc_insertion_point(field_set_pointer:firestore.client.Target.resume_token)
  478. }
  479. inline std::string* Target::mutable_resume_token() {
  480. // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
  481. return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  482. }
  483. inline std::string* Target::release_resume_token() {
  484. // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
  485. return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  486. }
  487. inline void Target::set_allocated_resume_token(std::string* resume_token) {
  488. if (resume_token != nullptr) {
  489. } else {
  490. }
  491. resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
  492. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
  493. }
  494. // int64 last_listen_sequence_number = 4;
  495. inline void Target::clear_last_listen_sequence_number() {
  496. last_listen_sequence_number_ = PROTOBUF_LONGLONG(0);
  497. }
  498. inline ::PROTOBUF_NAMESPACE_ID::int64 Target::last_listen_sequence_number() const {
  499. // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
  500. return last_listen_sequence_number_;
  501. }
  502. inline void Target::set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
  503. last_listen_sequence_number_ = value;
  504. // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
  505. }
  506. // .google.firestore.v1.Target.QueryTarget query = 5;
  507. inline bool Target::has_query() const {
  508. return target_type_case() == kQuery;
  509. }
  510. inline void Target::set_has_query() {
  511. _oneof_case_[0] = kQuery;
  512. }
  513. inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
  514. // @@protoc_insertion_point(field_release:firestore.client.Target.query)
  515. if (has_query()) {
  516. clear_has_target_type();
  517. ::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
  518. target_type_.query_ = nullptr;
  519. return temp;
  520. } else {
  521. return nullptr;
  522. }
  523. }
  524. inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const {
  525. // @@protoc_insertion_point(field_get:firestore.client.Target.query)
  526. return has_query()
  527. ? *target_type_.query_
  528. : *reinterpret_cast< ::google::firestore::v1::Target_QueryTarget*>(&::google::firestore::v1::_Target_QueryTarget_default_instance_);
  529. }
  530. inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
  531. if (!has_query()) {
  532. clear_target_type();
  533. set_has_query();
  534. target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
  535. GetArenaNoVirtual());
  536. }
  537. // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
  538. return target_type_.query_;
  539. }
  540. // .google.firestore.v1.Target.DocumentsTarget documents = 6;
  541. inline bool Target::has_documents() const {
  542. return target_type_case() == kDocuments;
  543. }
  544. inline void Target::set_has_documents() {
  545. _oneof_case_[0] = kDocuments;
  546. }
  547. inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
  548. // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
  549. if (has_documents()) {
  550. clear_has_target_type();
  551. ::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
  552. target_type_.documents_ = nullptr;
  553. return temp;
  554. } else {
  555. return nullptr;
  556. }
  557. }
  558. inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const {
  559. // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
  560. return has_documents()
  561. ? *target_type_.documents_
  562. : *reinterpret_cast< ::google::firestore::v1::Target_DocumentsTarget*>(&::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
  563. }
  564. inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
  565. if (!has_documents()) {
  566. clear_target_type();
  567. set_has_documents();
  568. target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
  569. GetArenaNoVirtual());
  570. }
  571. // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
  572. return target_type_.documents_;
  573. }
  574. inline bool Target::has_target_type() const {
  575. return target_type_case() != TARGET_TYPE_NOT_SET;
  576. }
  577. inline void Target::clear_has_target_type() {
  578. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  579. }
  580. inline Target::TargetTypeCase Target::target_type_case() const {
  581. return Target::TargetTypeCase(_oneof_case_[0]);
  582. }
  583. // -------------------------------------------------------------------
  584. // TargetGlobal
  585. // int32 highest_target_id = 1;
  586. inline void TargetGlobal::clear_highest_target_id() {
  587. highest_target_id_ = 0;
  588. }
  589. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::highest_target_id() const {
  590. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
  591. return highest_target_id_;
  592. }
  593. inline void TargetGlobal::set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
  594. highest_target_id_ = value;
  595. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
  596. }
  597. // int64 highest_listen_sequence_number = 2;
  598. inline void TargetGlobal::clear_highest_listen_sequence_number() {
  599. highest_listen_sequence_number_ = PROTOBUF_LONGLONG(0);
  600. }
  601. inline ::PROTOBUF_NAMESPACE_ID::int64 TargetGlobal::highest_listen_sequence_number() const {
  602. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
  603. return highest_listen_sequence_number_;
  604. }
  605. inline void TargetGlobal::set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
  606. highest_listen_sequence_number_ = value;
  607. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
  608. }
  609. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  610. inline bool TargetGlobal::has_last_remote_snapshot_version() const {
  611. return this != internal_default_instance() && last_remote_snapshot_version_ != nullptr;
  612. }
  613. inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetGlobal::last_remote_snapshot_version() const {
  614. const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_remote_snapshot_version_;
  615. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
  616. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
  617. &PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
  618. }
  619. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
  620. // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
  621. PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_remote_snapshot_version_;
  622. last_remote_snapshot_version_ = nullptr;
  623. return temp;
  624. }
  625. inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() {
  626. if (last_remote_snapshot_version_ == nullptr) {
  627. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
  628. last_remote_snapshot_version_ = p;
  629. }
  630. // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
  631. return last_remote_snapshot_version_;
  632. }
  633. inline void TargetGlobal::set_allocated_last_remote_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version) {
  634. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
  635. if (message_arena == nullptr) {
  636. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_remote_snapshot_version_);
  637. }
  638. if (last_remote_snapshot_version) {
  639. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  640. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_remote_snapshot_version)->GetArena();
  641. if (message_arena != submessage_arena) {
  642. last_remote_snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  643. message_arena, last_remote_snapshot_version, submessage_arena);
  644. }
  645. } else {
  646. }
  647. last_remote_snapshot_version_ = last_remote_snapshot_version;
  648. // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  649. }
  650. // int32 target_count = 4;
  651. inline void TargetGlobal::clear_target_count() {
  652. target_count_ = 0;
  653. }
  654. inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::target_count() const {
  655. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
  656. return target_count_;
  657. }
  658. inline void TargetGlobal::set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
  659. target_count_ = value;
  660. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
  661. }
  662. #ifdef __GNUC__
  663. #pragma GCC diagnostic pop
  664. #endif // __GNUC__
  665. // -------------------------------------------------------------------
  666. // @@protoc_insertion_point(namespace_scope)
  667. } // namespace client
  668. } // namespace firestore
  669. // @@protoc_insertion_point(global_scope)
  670. #include <google/protobuf/port_undef.inc>
  671. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto