target.pb.h 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  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 PROTOBUF_firestore_2flocal_2ftarget_2eproto__INCLUDED
  19. #define PROTOBUF_firestore_2flocal_2ftarget_2eproto__INCLUDED
  20. #include <string>
  21. #include <google/protobuf/stubs/common.h>
  22. #if GOOGLE_PROTOBUF_VERSION < 3005000
  23. #error This file was generated by a newer version of protoc which is
  24. #error incompatible with your Protocol Buffer headers. Please update
  25. #error your headers.
  26. #endif
  27. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  28. #error This file was generated by an older version of protoc which is
  29. #error incompatible with your Protocol Buffer headers. Please
  30. #error regenerate this file with a newer version of protoc.
  31. #endif
  32. #include <google/protobuf/io/coded_stream.h>
  33. #include <google/protobuf/arena.h>
  34. #include <google/protobuf/arenastring.h>
  35. #include <google/protobuf/generated_message_table_driven.h>
  36. #include <google/protobuf/generated_message_util.h>
  37. #include <google/protobuf/metadata.h>
  38. #include <google/protobuf/message.h>
  39. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  40. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  41. #include <google/protobuf/unknown_field_set.h>
  42. #include "google/firestore/v1beta1/firestore.pb.h"
  43. #include <google/protobuf/timestamp.pb.h>
  44. // @@protoc_insertion_point(includes)
  45. namespace protobuf_firestore_2flocal_2ftarget_2eproto {
  46. // Internal implementation detail -- do not use these members.
  47. struct TableStruct {
  48. static const ::google::protobuf::internal::ParseTableField entries[];
  49. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  50. static const ::google::protobuf::internal::ParseTable schema[2];
  51. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  52. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  53. static const ::google::protobuf::uint32 offsets[];
  54. };
  55. void AddDescriptors();
  56. void InitDefaultsTargetImpl();
  57. void InitDefaultsTarget();
  58. void InitDefaultsTargetGlobalImpl();
  59. void InitDefaultsTargetGlobal();
  60. inline void InitDefaults() {
  61. InitDefaultsTarget();
  62. InitDefaultsTargetGlobal();
  63. }
  64. } // namespace protobuf_firestore_2flocal_2ftarget_2eproto
  65. namespace firestore {
  66. namespace client {
  67. class Target;
  68. class TargetDefaultTypeInternal;
  69. extern TargetDefaultTypeInternal _Target_default_instance_;
  70. class TargetGlobal;
  71. class TargetGlobalDefaultTypeInternal;
  72. extern TargetGlobalDefaultTypeInternal _TargetGlobal_default_instance_;
  73. } // namespace client
  74. } // namespace firestore
  75. namespace firestore {
  76. namespace client {
  77. // ===================================================================
  78. class Target : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.Target) */ {
  79. public:
  80. Target();
  81. virtual ~Target();
  82. Target(const Target& from);
  83. inline Target& operator=(const Target& from) {
  84. CopyFrom(from);
  85. return *this;
  86. }
  87. #if LANG_CXX11
  88. Target(Target&& from) noexcept
  89. : Target() {
  90. *this = ::std::move(from);
  91. }
  92. inline Target& operator=(Target&& from) noexcept {
  93. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  94. if (this != &from) InternalSwap(&from);
  95. } else {
  96. CopyFrom(from);
  97. }
  98. return *this;
  99. }
  100. #endif
  101. static const ::google::protobuf::Descriptor* descriptor();
  102. static const Target& default_instance();
  103. enum TargetTypeCase {
  104. kQuery = 5,
  105. kDocuments = 6,
  106. TARGET_TYPE_NOT_SET = 0,
  107. };
  108. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  109. static inline const Target* internal_default_instance() {
  110. return reinterpret_cast<const Target*>(
  111. &_Target_default_instance_);
  112. }
  113. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  114. 0;
  115. void Swap(Target* other);
  116. friend void swap(Target& a, Target& b) {
  117. a.Swap(&b);
  118. }
  119. // implements Message ----------------------------------------------
  120. inline Target* New() const PROTOBUF_FINAL { return New(NULL); }
  121. Target* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  122. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  123. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  124. void CopyFrom(const Target& from);
  125. void MergeFrom(const Target& from);
  126. void Clear() PROTOBUF_FINAL;
  127. bool IsInitialized() const PROTOBUF_FINAL;
  128. size_t ByteSizeLong() const PROTOBUF_FINAL;
  129. bool MergePartialFromCodedStream(
  130. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  131. void SerializeWithCachedSizes(
  132. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  133. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  134. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  135. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  136. private:
  137. void SharedCtor();
  138. void SharedDtor();
  139. void SetCachedSize(int size) const PROTOBUF_FINAL;
  140. void InternalSwap(Target* other);
  141. private:
  142. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  143. return NULL;
  144. }
  145. inline void* MaybeArenaPtr() const {
  146. return NULL;
  147. }
  148. public:
  149. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  150. // nested types ----------------------------------------------------
  151. // accessors -------------------------------------------------------
  152. // bytes resume_token = 3;
  153. void clear_resume_token();
  154. static const int kResumeTokenFieldNumber = 3;
  155. const ::std::string& resume_token() const;
  156. void set_resume_token(const ::std::string& value);
  157. #if LANG_CXX11
  158. void set_resume_token(::std::string&& value);
  159. #endif
  160. void set_resume_token(const char* value);
  161. void set_resume_token(const void* value, size_t size);
  162. ::std::string* mutable_resume_token();
  163. ::std::string* release_resume_token();
  164. void set_allocated_resume_token(::std::string* resume_token);
  165. // .google.protobuf.Timestamp snapshot_version = 2;
  166. bool has_snapshot_version() const;
  167. void clear_snapshot_version();
  168. static const int kSnapshotVersionFieldNumber = 2;
  169. const ::google::protobuf::Timestamp& snapshot_version() const;
  170. ::google::protobuf::Timestamp* release_snapshot_version();
  171. ::google::protobuf::Timestamp* mutable_snapshot_version();
  172. void set_allocated_snapshot_version(::google::protobuf::Timestamp* snapshot_version);
  173. // int64 last_listen_sequence_number = 4;
  174. void clear_last_listen_sequence_number();
  175. static const int kLastListenSequenceNumberFieldNumber = 4;
  176. ::google::protobuf::int64 last_listen_sequence_number() const;
  177. void set_last_listen_sequence_number(::google::protobuf::int64 value);
  178. // int32 target_id = 1;
  179. void clear_target_id();
  180. static const int kTargetIdFieldNumber = 1;
  181. ::google::protobuf::int32 target_id() const;
  182. void set_target_id(::google::protobuf::int32 value);
  183. // .google.firestore.v1beta1.Target.QueryTarget query = 5;
  184. bool has_query() const;
  185. void clear_query();
  186. static const int kQueryFieldNumber = 5;
  187. const ::google::firestore::v1beta1::Target_QueryTarget& query() const;
  188. ::google::firestore::v1beta1::Target_QueryTarget* release_query();
  189. ::google::firestore::v1beta1::Target_QueryTarget* mutable_query();
  190. void set_allocated_query(::google::firestore::v1beta1::Target_QueryTarget* query);
  191. // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
  192. bool has_documents() const;
  193. void clear_documents();
  194. static const int kDocumentsFieldNumber = 6;
  195. const ::google::firestore::v1beta1::Target_DocumentsTarget& documents() const;
  196. ::google::firestore::v1beta1::Target_DocumentsTarget* release_documents();
  197. ::google::firestore::v1beta1::Target_DocumentsTarget* mutable_documents();
  198. void set_allocated_documents(::google::firestore::v1beta1::Target_DocumentsTarget* documents);
  199. TargetTypeCase target_type_case() const;
  200. // @@protoc_insertion_point(class_scope:firestore.client.Target)
  201. private:
  202. void set_has_query();
  203. void set_has_documents();
  204. inline bool has_target_type() const;
  205. void clear_target_type();
  206. inline void clear_has_target_type();
  207. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  208. ::google::protobuf::internal::ArenaStringPtr resume_token_;
  209. ::google::protobuf::Timestamp* snapshot_version_;
  210. ::google::protobuf::int64 last_listen_sequence_number_;
  211. ::google::protobuf::int32 target_id_;
  212. union TargetTypeUnion {
  213. TargetTypeUnion() {}
  214. ::google::firestore::v1beta1::Target_QueryTarget* query_;
  215. ::google::firestore::v1beta1::Target_DocumentsTarget* documents_;
  216. } target_type_;
  217. mutable int _cached_size_;
  218. ::google::protobuf::uint32 _oneof_case_[1];
  219. friend struct ::protobuf_firestore_2flocal_2ftarget_2eproto::TableStruct;
  220. friend void ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTargetImpl();
  221. };
  222. // -------------------------------------------------------------------
  223. class TargetGlobal : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
  224. public:
  225. TargetGlobal();
  226. virtual ~TargetGlobal();
  227. TargetGlobal(const TargetGlobal& from);
  228. inline TargetGlobal& operator=(const TargetGlobal& from) {
  229. CopyFrom(from);
  230. return *this;
  231. }
  232. #if LANG_CXX11
  233. TargetGlobal(TargetGlobal&& from) noexcept
  234. : TargetGlobal() {
  235. *this = ::std::move(from);
  236. }
  237. inline TargetGlobal& operator=(TargetGlobal&& from) noexcept {
  238. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  239. if (this != &from) InternalSwap(&from);
  240. } else {
  241. CopyFrom(from);
  242. }
  243. return *this;
  244. }
  245. #endif
  246. static const ::google::protobuf::Descriptor* descriptor();
  247. static const TargetGlobal& default_instance();
  248. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  249. static inline const TargetGlobal* internal_default_instance() {
  250. return reinterpret_cast<const TargetGlobal*>(
  251. &_TargetGlobal_default_instance_);
  252. }
  253. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  254. 1;
  255. void Swap(TargetGlobal* other);
  256. friend void swap(TargetGlobal& a, TargetGlobal& b) {
  257. a.Swap(&b);
  258. }
  259. // implements Message ----------------------------------------------
  260. inline TargetGlobal* New() const PROTOBUF_FINAL { return New(NULL); }
  261. TargetGlobal* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  262. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  263. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  264. void CopyFrom(const TargetGlobal& from);
  265. void MergeFrom(const TargetGlobal& from);
  266. void Clear() PROTOBUF_FINAL;
  267. bool IsInitialized() const PROTOBUF_FINAL;
  268. size_t ByteSizeLong() const PROTOBUF_FINAL;
  269. bool MergePartialFromCodedStream(
  270. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  271. void SerializeWithCachedSizes(
  272. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  273. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  274. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  275. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  276. private:
  277. void SharedCtor();
  278. void SharedDtor();
  279. void SetCachedSize(int size) const PROTOBUF_FINAL;
  280. void InternalSwap(TargetGlobal* other);
  281. private:
  282. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  283. return NULL;
  284. }
  285. inline void* MaybeArenaPtr() const {
  286. return NULL;
  287. }
  288. public:
  289. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  290. // nested types ----------------------------------------------------
  291. // accessors -------------------------------------------------------
  292. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  293. bool has_last_remote_snapshot_version() const;
  294. void clear_last_remote_snapshot_version();
  295. static const int kLastRemoteSnapshotVersionFieldNumber = 3;
  296. const ::google::protobuf::Timestamp& last_remote_snapshot_version() const;
  297. ::google::protobuf::Timestamp* release_last_remote_snapshot_version();
  298. ::google::protobuf::Timestamp* mutable_last_remote_snapshot_version();
  299. void set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* last_remote_snapshot_version);
  300. // int64 highest_listen_sequence_number = 2;
  301. void clear_highest_listen_sequence_number();
  302. static const int kHighestListenSequenceNumberFieldNumber = 2;
  303. ::google::protobuf::int64 highest_listen_sequence_number() const;
  304. void set_highest_listen_sequence_number(::google::protobuf::int64 value);
  305. // int32 highest_target_id = 1;
  306. void clear_highest_target_id();
  307. static const int kHighestTargetIdFieldNumber = 1;
  308. ::google::protobuf::int32 highest_target_id() const;
  309. void set_highest_target_id(::google::protobuf::int32 value);
  310. // int32 target_count = 4;
  311. void clear_target_count();
  312. static const int kTargetCountFieldNumber = 4;
  313. ::google::protobuf::int32 target_count() const;
  314. void set_target_count(::google::protobuf::int32 value);
  315. // @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
  316. private:
  317. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  318. ::google::protobuf::Timestamp* last_remote_snapshot_version_;
  319. ::google::protobuf::int64 highest_listen_sequence_number_;
  320. ::google::protobuf::int32 highest_target_id_;
  321. ::google::protobuf::int32 target_count_;
  322. mutable int _cached_size_;
  323. friend struct ::protobuf_firestore_2flocal_2ftarget_2eproto::TableStruct;
  324. friend void ::protobuf_firestore_2flocal_2ftarget_2eproto::InitDefaultsTargetGlobalImpl();
  325. };
  326. // ===================================================================
  327. // ===================================================================
  328. #ifdef __GNUC__
  329. #pragma GCC diagnostic push
  330. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  331. #endif // __GNUC__
  332. // Target
  333. // int32 target_id = 1;
  334. inline void Target::clear_target_id() {
  335. target_id_ = 0;
  336. }
  337. inline ::google::protobuf::int32 Target::target_id() const {
  338. // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
  339. return target_id_;
  340. }
  341. inline void Target::set_target_id(::google::protobuf::int32 value) {
  342. target_id_ = value;
  343. // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
  344. }
  345. // .google.protobuf.Timestamp snapshot_version = 2;
  346. inline bool Target::has_snapshot_version() const {
  347. return this != internal_default_instance() && snapshot_version_ != NULL;
  348. }
  349. inline const ::google::protobuf::Timestamp& Target::snapshot_version() const {
  350. const ::google::protobuf::Timestamp* p = snapshot_version_;
  351. // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
  352. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  353. &::google::protobuf::_Timestamp_default_instance_);
  354. }
  355. inline ::google::protobuf::Timestamp* Target::release_snapshot_version() {
  356. // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
  357. ::google::protobuf::Timestamp* temp = snapshot_version_;
  358. snapshot_version_ = NULL;
  359. return temp;
  360. }
  361. inline ::google::protobuf::Timestamp* Target::mutable_snapshot_version() {
  362. if (snapshot_version_ == NULL) {
  363. snapshot_version_ = new ::google::protobuf::Timestamp;
  364. }
  365. // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
  366. return snapshot_version_;
  367. }
  368. inline void Target::set_allocated_snapshot_version(::google::protobuf::Timestamp* snapshot_version) {
  369. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  370. if (message_arena == NULL) {
  371. delete reinterpret_cast< ::google::protobuf::MessageLite*>(snapshot_version_);
  372. }
  373. if (snapshot_version) {
  374. ::google::protobuf::Arena* submessage_arena =
  375. reinterpret_cast< ::google::protobuf::MessageLite*>(snapshot_version)->GetArena();
  376. if (message_arena != submessage_arena) {
  377. snapshot_version = ::google::protobuf::internal::GetOwnedMessage(
  378. message_arena, snapshot_version, submessage_arena);
  379. }
  380. } else {
  381. }
  382. snapshot_version_ = snapshot_version;
  383. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
  384. }
  385. // bytes resume_token = 3;
  386. inline void Target::clear_resume_token() {
  387. resume_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  388. }
  389. inline const ::std::string& Target::resume_token() const {
  390. // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
  391. return resume_token_.GetNoArena();
  392. }
  393. inline void Target::set_resume_token(const ::std::string& value) {
  394. resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
  395. // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
  396. }
  397. #if LANG_CXX11
  398. inline void Target::set_resume_token(::std::string&& value) {
  399. resume_token_.SetNoArena(
  400. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  401. // @@protoc_insertion_point(field_set_rvalue:firestore.client.Target.resume_token)
  402. }
  403. #endif
  404. inline void Target::set_resume_token(const char* value) {
  405. GOOGLE_DCHECK(value != NULL);
  406. resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  407. // @@protoc_insertion_point(field_set_char:firestore.client.Target.resume_token)
  408. }
  409. inline void Target::set_resume_token(const void* value, size_t size) {
  410. resume_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  411. ::std::string(reinterpret_cast<const char*>(value), size));
  412. // @@protoc_insertion_point(field_set_pointer:firestore.client.Target.resume_token)
  413. }
  414. inline ::std::string* Target::mutable_resume_token() {
  415. // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
  416. return resume_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  417. }
  418. inline ::std::string* Target::release_resume_token() {
  419. // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
  420. return resume_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  421. }
  422. inline void Target::set_allocated_resume_token(::std::string* resume_token) {
  423. if (resume_token != NULL) {
  424. } else {
  425. }
  426. resume_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resume_token);
  427. // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
  428. }
  429. // int64 last_listen_sequence_number = 4;
  430. inline void Target::clear_last_listen_sequence_number() {
  431. last_listen_sequence_number_ = GOOGLE_LONGLONG(0);
  432. }
  433. inline ::google::protobuf::int64 Target::last_listen_sequence_number() const {
  434. // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
  435. return last_listen_sequence_number_;
  436. }
  437. inline void Target::set_last_listen_sequence_number(::google::protobuf::int64 value) {
  438. last_listen_sequence_number_ = value;
  439. // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
  440. }
  441. // .google.firestore.v1beta1.Target.QueryTarget query = 5;
  442. inline bool Target::has_query() const {
  443. return target_type_case() == kQuery;
  444. }
  445. inline void Target::set_has_query() {
  446. _oneof_case_[0] = kQuery;
  447. }
  448. inline ::google::firestore::v1beta1::Target_QueryTarget* Target::release_query() {
  449. // @@protoc_insertion_point(field_release:firestore.client.Target.query)
  450. if (has_query()) {
  451. clear_has_target_type();
  452. ::google::firestore::v1beta1::Target_QueryTarget* temp = target_type_.query_;
  453. target_type_.query_ = NULL;
  454. return temp;
  455. } else {
  456. return NULL;
  457. }
  458. }
  459. inline const ::google::firestore::v1beta1::Target_QueryTarget& Target::query() const {
  460. // @@protoc_insertion_point(field_get:firestore.client.Target.query)
  461. return has_query()
  462. ? *target_type_.query_
  463. : *reinterpret_cast< ::google::firestore::v1beta1::Target_QueryTarget*>(&::google::firestore::v1beta1::_Target_QueryTarget_default_instance_);
  464. }
  465. inline ::google::firestore::v1beta1::Target_QueryTarget* Target::mutable_query() {
  466. if (!has_query()) {
  467. clear_target_type();
  468. set_has_query();
  469. target_type_.query_ = new ::google::firestore::v1beta1::Target_QueryTarget;
  470. }
  471. // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
  472. return target_type_.query_;
  473. }
  474. // .google.firestore.v1beta1.Target.DocumentsTarget documents = 6;
  475. inline bool Target::has_documents() const {
  476. return target_type_case() == kDocuments;
  477. }
  478. inline void Target::set_has_documents() {
  479. _oneof_case_[0] = kDocuments;
  480. }
  481. inline ::google::firestore::v1beta1::Target_DocumentsTarget* Target::release_documents() {
  482. // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
  483. if (has_documents()) {
  484. clear_has_target_type();
  485. ::google::firestore::v1beta1::Target_DocumentsTarget* temp = target_type_.documents_;
  486. target_type_.documents_ = NULL;
  487. return temp;
  488. } else {
  489. return NULL;
  490. }
  491. }
  492. inline const ::google::firestore::v1beta1::Target_DocumentsTarget& Target::documents() const {
  493. // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
  494. return has_documents()
  495. ? *target_type_.documents_
  496. : *reinterpret_cast< ::google::firestore::v1beta1::Target_DocumentsTarget*>(&::google::firestore::v1beta1::_Target_DocumentsTarget_default_instance_);
  497. }
  498. inline ::google::firestore::v1beta1::Target_DocumentsTarget* Target::mutable_documents() {
  499. if (!has_documents()) {
  500. clear_target_type();
  501. set_has_documents();
  502. target_type_.documents_ = new ::google::firestore::v1beta1::Target_DocumentsTarget;
  503. }
  504. // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
  505. return target_type_.documents_;
  506. }
  507. inline bool Target::has_target_type() const {
  508. return target_type_case() != TARGET_TYPE_NOT_SET;
  509. }
  510. inline void Target::clear_has_target_type() {
  511. _oneof_case_[0] = TARGET_TYPE_NOT_SET;
  512. }
  513. inline Target::TargetTypeCase Target::target_type_case() const {
  514. return Target::TargetTypeCase(_oneof_case_[0]);
  515. }
  516. // -------------------------------------------------------------------
  517. // TargetGlobal
  518. // int32 highest_target_id = 1;
  519. inline void TargetGlobal::clear_highest_target_id() {
  520. highest_target_id_ = 0;
  521. }
  522. inline ::google::protobuf::int32 TargetGlobal::highest_target_id() const {
  523. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
  524. return highest_target_id_;
  525. }
  526. inline void TargetGlobal::set_highest_target_id(::google::protobuf::int32 value) {
  527. highest_target_id_ = value;
  528. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
  529. }
  530. // int64 highest_listen_sequence_number = 2;
  531. inline void TargetGlobal::clear_highest_listen_sequence_number() {
  532. highest_listen_sequence_number_ = GOOGLE_LONGLONG(0);
  533. }
  534. inline ::google::protobuf::int64 TargetGlobal::highest_listen_sequence_number() const {
  535. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
  536. return highest_listen_sequence_number_;
  537. }
  538. inline void TargetGlobal::set_highest_listen_sequence_number(::google::protobuf::int64 value) {
  539. highest_listen_sequence_number_ = value;
  540. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
  541. }
  542. // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
  543. inline bool TargetGlobal::has_last_remote_snapshot_version() const {
  544. return this != internal_default_instance() && last_remote_snapshot_version_ != NULL;
  545. }
  546. inline const ::google::protobuf::Timestamp& TargetGlobal::last_remote_snapshot_version() const {
  547. const ::google::protobuf::Timestamp* p = last_remote_snapshot_version_;
  548. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
  549. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  550. &::google::protobuf::_Timestamp_default_instance_);
  551. }
  552. inline ::google::protobuf::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
  553. // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
  554. ::google::protobuf::Timestamp* temp = last_remote_snapshot_version_;
  555. last_remote_snapshot_version_ = NULL;
  556. return temp;
  557. }
  558. inline ::google::protobuf::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() {
  559. if (last_remote_snapshot_version_ == NULL) {
  560. last_remote_snapshot_version_ = new ::google::protobuf::Timestamp;
  561. }
  562. // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
  563. return last_remote_snapshot_version_;
  564. }
  565. inline void TargetGlobal::set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* last_remote_snapshot_version) {
  566. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  567. if (message_arena == NULL) {
  568. delete reinterpret_cast< ::google::protobuf::MessageLite*>(last_remote_snapshot_version_);
  569. }
  570. if (last_remote_snapshot_version) {
  571. ::google::protobuf::Arena* submessage_arena =
  572. reinterpret_cast< ::google::protobuf::MessageLite*>(last_remote_snapshot_version)->GetArena();
  573. if (message_arena != submessage_arena) {
  574. last_remote_snapshot_version = ::google::protobuf::internal::GetOwnedMessage(
  575. message_arena, last_remote_snapshot_version, submessage_arena);
  576. }
  577. } else {
  578. }
  579. last_remote_snapshot_version_ = last_remote_snapshot_version;
  580. // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
  581. }
  582. // int32 target_count = 4;
  583. inline void TargetGlobal::clear_target_count() {
  584. target_count_ = 0;
  585. }
  586. inline ::google::protobuf::int32 TargetGlobal::target_count() const {
  587. // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
  588. return target_count_;
  589. }
  590. inline void TargetGlobal::set_target_count(::google::protobuf::int32 value) {
  591. target_count_ = value;
  592. // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
  593. }
  594. #ifdef __GNUC__
  595. #pragma GCC diagnostic pop
  596. #endif // __GNUC__
  597. // -------------------------------------------------------------------
  598. // @@protoc_insertion_point(namespace_scope)
  599. } // namespace client
  600. } // namespace firestore
  601. // @@protoc_insertion_point(global_scope)
  602. #endif // PROTOBUF_firestore_2flocal_2ftarget_2eproto__INCLUDED