| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234 |
- /*
- * Copyright 2024 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: firestore/local/target.proto
- // Protobuf C++ Version: 4.25.1
- #ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto_2epb_2eh
- #define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto_2epb_2eh
- #include <limits>
- #include <string>
- #include <type_traits>
- #include <utility>
- #include "google/protobuf/port_def.inc"
- #if PROTOBUF_VERSION < 4025000
- #error "This file was generated by a newer version of protoc which is"
- #error "incompatible with your Protocol Buffer headers. Please update"
- #error "your headers."
- #endif // PROTOBUF_VERSION
- #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
- #error "This file was generated by an older version of protoc which is"
- #error "incompatible with your Protocol Buffer headers. Please"
- #error "regenerate this file with a newer version of protoc."
- #endif // PROTOBUF_MIN_PROTOC_VERSION
- #include "google/protobuf/port_undef.inc"
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/arena.h"
- #include "google/protobuf/arenastring.h"
- #include "google/protobuf/generated_message_tctable_decl.h"
- #include "google/protobuf/generated_message_util.h"
- #include "google/protobuf/metadata_lite.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/message.h"
- #include "google/protobuf/repeated_field.h" // IWYU pragma: export
- #include "google/protobuf/extension_set.h" // IWYU pragma: export
- #include "google/protobuf/unknown_field_set.h"
- #include "google/firestore/v1/firestore.pb.h"
- #include "google/protobuf/timestamp.pb.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- #define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2ftarget_2eproto
- namespace google {
- namespace protobuf {
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- } // namespace protobuf
- } // namespace google
- // Internal implementation detail -- do not use these members.
- struct TableStruct_firestore_2flocal_2ftarget_2eproto {
- static const ::uint32_t offsets[];
- };
- extern const ::google::protobuf::internal::DescriptorTable
- descriptor_table_firestore_2flocal_2ftarget_2eproto;
- namespace firestore {
- namespace client {
- class Target;
- struct TargetDefaultTypeInternal;
- extern TargetDefaultTypeInternal _Target_default_instance_;
- class TargetGlobal;
- struct TargetGlobalDefaultTypeInternal;
- extern TargetGlobalDefaultTypeInternal _TargetGlobal_default_instance_;
- } // namespace client
- } // namespace firestore
- namespace google {
- namespace protobuf {
- } // namespace protobuf
- } // namespace google
- namespace firestore {
- namespace client {
- // ===================================================================
- // -------------------------------------------------------------------
- class TargetGlobal final :
- public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
- public:
- inline TargetGlobal() : TargetGlobal(nullptr) {}
- ~TargetGlobal() override;
- template<typename = void>
- explicit PROTOBUF_CONSTEXPR TargetGlobal(::google::protobuf::internal::ConstantInitialized);
- inline TargetGlobal(const TargetGlobal& from)
- : TargetGlobal(nullptr, from) {}
- TargetGlobal(TargetGlobal&& from) noexcept
- : TargetGlobal() {
- *this = ::std::move(from);
- }
- inline TargetGlobal& operator=(const TargetGlobal& from) {
- CopyFrom(from);
- return *this;
- }
- inline TargetGlobal& operator=(TargetGlobal&& from) noexcept {
- if (this == &from) return *this;
- if (GetArena() == from.GetArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
- ABSL_ATTRIBUTE_LIFETIME_BOUND {
- return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
- ABSL_ATTRIBUTE_LIFETIME_BOUND {
- return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
- }
- static const ::google::protobuf::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::google::protobuf::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::google::protobuf::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const TargetGlobal& default_instance() {
- return *internal_default_instance();
- }
- static inline const TargetGlobal* internal_default_instance() {
- return reinterpret_cast<const TargetGlobal*>(
- &_TargetGlobal_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(TargetGlobal& a, TargetGlobal& b) {
- a.Swap(&b);
- }
- inline void Swap(TargetGlobal* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetArena() != nullptr &&
- GetArena() == other->GetArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetArena() == other->GetArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::google::protobuf::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(TargetGlobal* other) {
- if (other == this) return;
- ABSL_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- TargetGlobal* New(::google::protobuf::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<TargetGlobal>(arena);
- }
- using ::google::protobuf::Message::CopyFrom;
- void CopyFrom(const TargetGlobal& from);
- using ::google::protobuf::Message::MergeFrom;
- void MergeFrom( const TargetGlobal& from) {
- TargetGlobal::MergeImpl(*this, from);
- }
- private:
- static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- ::size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
- ::uint8_t* _InternalSerialize(
- ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const { return _impl_._cached_size_.Get(); }
- private:
- ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
- void SharedCtor(::google::protobuf::Arena* arena);
- void SharedDtor();
- void InternalSwap(TargetGlobal* other);
- private:
- friend class ::google::protobuf::internal::AnyMetadata;
- static ::absl::string_view FullMessageName() {
- return "firestore.client.TargetGlobal";
- }
- protected:
- explicit TargetGlobal(::google::protobuf::Arena* arena);
- TargetGlobal(::google::protobuf::Arena* arena, const TargetGlobal& from);
- public:
- static const ClassData _class_data_;
- const ::google::protobuf::Message::ClassData*GetClassData() const final;
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kLastRemoteSnapshotVersionFieldNumber = 3,
- kHighestListenSequenceNumberFieldNumber = 2,
- kHighestTargetIdFieldNumber = 1,
- kTargetCountFieldNumber = 4,
- };
- // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
- bool has_last_remote_snapshot_version() const;
- void clear_last_remote_snapshot_version() ;
- const ::google::protobuf::Timestamp& last_remote_snapshot_version() const;
- PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_remote_snapshot_version();
- ::google::protobuf::Timestamp* mutable_last_remote_snapshot_version();
- void set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value);
- void unsafe_arena_set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value);
- ::google::protobuf::Timestamp* unsafe_arena_release_last_remote_snapshot_version();
- private:
- const ::google::protobuf::Timestamp& _internal_last_remote_snapshot_version() const;
- ::google::protobuf::Timestamp* _internal_mutable_last_remote_snapshot_version();
- public:
- // int64 highest_listen_sequence_number = 2;
- void clear_highest_listen_sequence_number() ;
- ::int64_t highest_listen_sequence_number() const;
- void set_highest_listen_sequence_number(::int64_t value);
- private:
- ::int64_t _internal_highest_listen_sequence_number() const;
- void _internal_set_highest_listen_sequence_number(::int64_t value);
- public:
- // int32 highest_target_id = 1;
- void clear_highest_target_id() ;
- ::int32_t highest_target_id() const;
- void set_highest_target_id(::int32_t value);
- private:
- ::int32_t _internal_highest_target_id() const;
- void _internal_set_highest_target_id(::int32_t value);
- public:
- // int32 target_count = 4;
- void clear_target_count() ;
- ::int32_t target_count() const;
- void set_target_count(::int32_t value);
- private:
- ::int32_t _internal_target_count() const;
- void _internal_set_target_count(::int32_t value);
- public:
- // @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
- private:
- class _Internal;
- friend class ::google::protobuf::internal::TcParser;
- static const ::google::protobuf::internal::TcParseTable<
- 2, 4, 1,
- 0, 2>
- _table_;
- friend class ::google::protobuf::MessageLite;
- friend class ::google::protobuf::Arena;
- template <typename T>
- friend class ::google::protobuf::Arena::InternalHelper;
- using InternalArenaConstructable_ = void;
- using DestructorSkippable_ = void;
- struct Impl_ {
- inline explicit constexpr Impl_(
- ::google::protobuf::internal::ConstantInitialized) noexcept;
- inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena);
- inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena, const Impl_& from);
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::Timestamp* last_remote_snapshot_version_;
- ::int64_t highest_listen_sequence_number_;
- ::int32_t highest_target_id_;
- ::int32_t target_count_;
- PROTOBUF_TSAN_DECLARE_MEMBER
- };
- union { Impl_ _impl_; };
- friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
- };// -------------------------------------------------------------------
- class Target final :
- public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:firestore.client.Target) */ {
- public:
- inline Target() : Target(nullptr) {}
- ~Target() override;
- template<typename = void>
- explicit PROTOBUF_CONSTEXPR Target(::google::protobuf::internal::ConstantInitialized);
- inline Target(const Target& from)
- : Target(nullptr, from) {}
- Target(Target&& from) noexcept
- : Target() {
- *this = ::std::move(from);
- }
- inline Target& operator=(const Target& from) {
- CopyFrom(from);
- return *this;
- }
- inline Target& operator=(Target&& from) noexcept {
- if (this == &from) return *this;
- if (GetArena() == from.GetArena()
- #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
- && GetArena() != nullptr
- #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
- ) {
- InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
- ABSL_ATTRIBUTE_LIFETIME_BOUND {
- return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
- ABSL_ATTRIBUTE_LIFETIME_BOUND {
- return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
- }
- static const ::google::protobuf::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::google::protobuf::Descriptor* GetDescriptor() {
- return default_instance().GetMetadata().descriptor;
- }
- static const ::google::protobuf::Reflection* GetReflection() {
- return default_instance().GetMetadata().reflection;
- }
- static const Target& default_instance() {
- return *internal_default_instance();
- }
- enum TargetTypeCase {
- kQuery = 5,
- kDocuments = 6,
- TARGET_TYPE_NOT_SET = 0,
- };
- static inline const Target* internal_default_instance() {
- return reinterpret_cast<const Target*>(
- &_Target_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Target& a, Target& b) {
- a.Swap(&b);
- }
- inline void Swap(Target* other) {
- if (other == this) return;
- #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetArena() != nullptr &&
- GetArena() == other->GetArena()) {
- #else // PROTOBUF_FORCE_COPY_IN_SWAP
- if (GetArena() == other->GetArena()) {
- #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
- InternalSwap(other);
- } else {
- ::google::protobuf::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Target* other) {
- if (other == this) return;
- ABSL_DCHECK(GetArena() == other->GetArena());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- Target* New(::google::protobuf::Arena* arena = nullptr) const final {
- return CreateMaybeMessage<Target>(arena);
- }
- using ::google::protobuf::Message::CopyFrom;
- void CopyFrom(const Target& from);
- using ::google::protobuf::Message::MergeFrom;
- void MergeFrom( const Target& from) {
- Target::MergeImpl(*this, from);
- }
- private:
- static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
- public:
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- ::size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
- ::uint8_t* _InternalSerialize(
- ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const { return _impl_._cached_size_.Get(); }
- private:
- ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
- void SharedCtor(::google::protobuf::Arena* arena);
- void SharedDtor();
- void InternalSwap(Target* other);
- private:
- friend class ::google::protobuf::internal::AnyMetadata;
- static ::absl::string_view FullMessageName() {
- return "firestore.client.Target";
- }
- protected:
- explicit Target(::google::protobuf::Arena* arena);
- Target(::google::protobuf::Arena* arena, const Target& from);
- public:
- static const ClassData _class_data_;
- const ::google::protobuf::Message::ClassData*GetClassData() const final;
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kResumeTokenFieldNumber = 3,
- kSnapshotVersionFieldNumber = 2,
- kLastLimboFreeSnapshotVersionFieldNumber = 7,
- kLastListenSequenceNumberFieldNumber = 4,
- kTargetIdFieldNumber = 1,
- kQueryFieldNumber = 5,
- kDocumentsFieldNumber = 6,
- };
- // bytes resume_token = 3;
- void clear_resume_token() ;
- const std::string& resume_token() const;
- template <typename Arg_ = const std::string&, typename... Args_>
- void set_resume_token(Arg_&& arg, Args_... args);
- std::string* mutable_resume_token();
- PROTOBUF_NODISCARD std::string* release_resume_token();
- void set_allocated_resume_token(std::string* value);
- private:
- const std::string& _internal_resume_token() const;
- inline PROTOBUF_ALWAYS_INLINE void _internal_set_resume_token(
- const std::string& value);
- std::string* _internal_mutable_resume_token();
- public:
- // .google.protobuf.Timestamp snapshot_version = 2;
- bool has_snapshot_version() const;
- void clear_snapshot_version() ;
- const ::google::protobuf::Timestamp& snapshot_version() const;
- PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_snapshot_version();
- ::google::protobuf::Timestamp* mutable_snapshot_version();
- void set_allocated_snapshot_version(::google::protobuf::Timestamp* value);
- void unsafe_arena_set_allocated_snapshot_version(::google::protobuf::Timestamp* value);
- ::google::protobuf::Timestamp* unsafe_arena_release_snapshot_version();
- private:
- const ::google::protobuf::Timestamp& _internal_snapshot_version() const;
- ::google::protobuf::Timestamp* _internal_mutable_snapshot_version();
- public:
- // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
- bool has_last_limbo_free_snapshot_version() const;
- void clear_last_limbo_free_snapshot_version() ;
- const ::google::protobuf::Timestamp& last_limbo_free_snapshot_version() const;
- PROTOBUF_NODISCARD ::google::protobuf::Timestamp* release_last_limbo_free_snapshot_version();
- ::google::protobuf::Timestamp* mutable_last_limbo_free_snapshot_version();
- void set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value);
- void unsafe_arena_set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value);
- ::google::protobuf::Timestamp* unsafe_arena_release_last_limbo_free_snapshot_version();
- private:
- const ::google::protobuf::Timestamp& _internal_last_limbo_free_snapshot_version() const;
- ::google::protobuf::Timestamp* _internal_mutable_last_limbo_free_snapshot_version();
- public:
- // int64 last_listen_sequence_number = 4;
- void clear_last_listen_sequence_number() ;
- ::int64_t last_listen_sequence_number() const;
- void set_last_listen_sequence_number(::int64_t value);
- private:
- ::int64_t _internal_last_listen_sequence_number() const;
- void _internal_set_last_listen_sequence_number(::int64_t value);
- public:
- // int32 target_id = 1;
- void clear_target_id() ;
- ::int32_t target_id() const;
- void set_target_id(::int32_t value);
- private:
- ::int32_t _internal_target_id() const;
- void _internal_set_target_id(::int32_t value);
- public:
- // .google.firestore.v1.Target.QueryTarget query = 5;
- bool has_query() const;
- private:
- bool _internal_has_query() const;
- public:
- void clear_query() ;
- const ::google::firestore::v1::Target_QueryTarget& query() const;
- PROTOBUF_NODISCARD ::google::firestore::v1::Target_QueryTarget* release_query();
- ::google::firestore::v1::Target_QueryTarget* mutable_query();
- void set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
- void unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value);
- ::google::firestore::v1::Target_QueryTarget* unsafe_arena_release_query();
- private:
- const ::google::firestore::v1::Target_QueryTarget& _internal_query() const;
- ::google::firestore::v1::Target_QueryTarget* _internal_mutable_query();
- public:
- // .google.firestore.v1.Target.DocumentsTarget documents = 6;
- bool has_documents() const;
- private:
- bool _internal_has_documents() const;
- public:
- void clear_documents() ;
- const ::google::firestore::v1::Target_DocumentsTarget& documents() const;
- PROTOBUF_NODISCARD ::google::firestore::v1::Target_DocumentsTarget* release_documents();
- ::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
- void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
- void unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value);
- ::google::firestore::v1::Target_DocumentsTarget* unsafe_arena_release_documents();
- private:
- const ::google::firestore::v1::Target_DocumentsTarget& _internal_documents() const;
- ::google::firestore::v1::Target_DocumentsTarget* _internal_mutable_documents();
- public:
- void clear_target_type();
- TargetTypeCase target_type_case() const;
- // @@protoc_insertion_point(class_scope:firestore.client.Target)
- private:
- class _Internal;
- void set_has_query();
- void set_has_documents();
- inline bool has_target_type() const;
- inline void clear_has_target_type();
- friend class ::google::protobuf::internal::TcParser;
- static const ::google::protobuf::internal::TcParseTable<
- 3, 7, 4,
- 0, 2>
- _table_;
- friend class ::google::protobuf::MessageLite;
- friend class ::google::protobuf::Arena;
- template <typename T>
- friend class ::google::protobuf::Arena::InternalHelper;
- using InternalArenaConstructable_ = void;
- using DestructorSkippable_ = void;
- struct Impl_ {
- inline explicit constexpr Impl_(
- ::google::protobuf::internal::ConstantInitialized) noexcept;
- inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena);
- inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
- ::google::protobuf::Arena* arena, const Impl_& from);
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr resume_token_;
- ::google::protobuf::Timestamp* snapshot_version_;
- ::google::protobuf::Timestamp* last_limbo_free_snapshot_version_;
- ::int64_t last_listen_sequence_number_;
- ::int32_t target_id_;
- union TargetTypeUnion {
- constexpr TargetTypeUnion() : _constinit_{} {}
- ::google::protobuf::internal::ConstantInitialized _constinit_;
- ::google::firestore::v1::Target_QueryTarget* query_;
- ::google::firestore::v1::Target_DocumentsTarget* documents_;
- } target_type_;
- ::uint32_t _oneof_case_[1];
- PROTOBUF_TSAN_DECLARE_MEMBER
- };
- union { Impl_ _impl_; };
- friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // Target
- // int32 target_id = 1;
- inline void Target::clear_target_id() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.target_id_ = 0;
- }
- inline ::int32_t Target::target_id() const {
- // @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
- return _internal_target_id();
- }
- inline void Target::set_target_id(::int32_t value) {
- _internal_set_target_id(value);
- // @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
- }
- inline ::int32_t Target::_internal_target_id() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- return _impl_.target_id_;
- }
- inline void Target::_internal_set_target_id(::int32_t value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.target_id_ = value;
- }
- // .google.protobuf.Timestamp snapshot_version = 2;
- inline bool Target::has_snapshot_version() const {
- bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
- PROTOBUF_ASSUME(!value || _impl_.snapshot_version_ != nullptr);
- return value;
- }
- inline const ::google::protobuf::Timestamp& Target::_internal_snapshot_version() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- const ::google::protobuf::Timestamp* p = _impl_.snapshot_version_;
- return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
- }
- inline const ::google::protobuf::Timestamp& Target::snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
- // @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
- return _internal_snapshot_version();
- }
- inline void Target::unsafe_arena_set_allocated_snapshot_version(::google::protobuf::Timestamp* value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.snapshot_version_);
- }
- _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
- if (value != nullptr) {
- _impl_._has_bits_[0] |= 0x00000001u;
- } else {
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.snapshot_version)
- }
- inline ::google::protobuf::Timestamp* Target::release_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_._has_bits_[0] &= ~0x00000001u;
- ::google::protobuf::Timestamp* released = _impl_.snapshot_version_;
- _impl_.snapshot_version_ = nullptr;
- #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
- auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
- released = ::google::protobuf::internal::DuplicateIfNonNull(released);
- if (GetArena() == nullptr) {
- delete old;
- }
- #else // PROTOBUF_FORCE_COPY_IN_RELEASE
- if (GetArena() != nullptr) {
- released = ::google::protobuf::internal::DuplicateIfNonNull(released);
- }
- #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
- return released;
- }
- inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- // @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
- _impl_._has_bits_[0] &= ~0x00000001u;
- ::google::protobuf::Timestamp* temp = _impl_.snapshot_version_;
- _impl_.snapshot_version_ = nullptr;
- return temp;
- }
- inline ::google::protobuf::Timestamp* Target::_internal_mutable_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_._has_bits_[0] |= 0x00000001u;
- if (_impl_.snapshot_version_ == nullptr) {
- auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
- _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
- }
- return _impl_.snapshot_version_;
- }
- inline ::google::protobuf::Timestamp* Target::mutable_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
- ::google::protobuf::Timestamp* _msg = _internal_mutable_snapshot_version();
- // @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
- return _msg;
- }
- inline void Target::set_allocated_snapshot_version(::google::protobuf::Timestamp* value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (message_arena == nullptr) {
- delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.snapshot_version_);
- }
- if (value != nullptr) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
- if (message_arena != submessage_arena) {
- value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
- }
- _impl_._has_bits_[0] |= 0x00000001u;
- } else {
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- _impl_.snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
- // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
- }
- // bytes resume_token = 3;
- inline void Target::clear_resume_token() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.resume_token_.ClearToEmpty();
- }
- inline const std::string& Target::resume_token() const
- ABSL_ATTRIBUTE_LIFETIME_BOUND {
- // @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
- return _internal_resume_token();
- }
- template <typename Arg_, typename... Args_>
- inline PROTOBUF_ALWAYS_INLINE void Target::set_resume_token(Arg_&& arg,
- Args_... args) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.resume_token_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
- // @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
- }
- inline std::string* Target::mutable_resume_token() ABSL_ATTRIBUTE_LIFETIME_BOUND {
- std::string* _s = _internal_mutable_resume_token();
- // @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
- return _s;
- }
- inline const std::string& Target::_internal_resume_token() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- return _impl_.resume_token_.Get();
- }
- inline void Target::_internal_set_resume_token(const std::string& value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.resume_token_.Set(value, GetArena());
- }
- inline std::string* Target::_internal_mutable_resume_token() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- return _impl_.resume_token_.Mutable( GetArena());
- }
- inline std::string* Target::release_resume_token() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- // @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
- return _impl_.resume_token_.Release();
- }
- inline void Target::set_allocated_resume_token(std::string* value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.resume_token_.SetAllocated(value, GetArena());
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (_impl_.resume_token_.IsDefault()) {
- _impl_.resume_token_.Set("", GetArena());
- }
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.resume_token)
- }
- // int64 last_listen_sequence_number = 4;
- inline void Target::clear_last_listen_sequence_number() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.last_listen_sequence_number_ = ::int64_t{0};
- }
- inline ::int64_t Target::last_listen_sequence_number() const {
- // @@protoc_insertion_point(field_get:firestore.client.Target.last_listen_sequence_number)
- return _internal_last_listen_sequence_number();
- }
- inline void Target::set_last_listen_sequence_number(::int64_t value) {
- _internal_set_last_listen_sequence_number(value);
- // @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
- }
- inline ::int64_t Target::_internal_last_listen_sequence_number() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- return _impl_.last_listen_sequence_number_;
- }
- inline void Target::_internal_set_last_listen_sequence_number(::int64_t value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.last_listen_sequence_number_ = value;
- }
- // .google.firestore.v1.Target.QueryTarget query = 5;
- inline bool Target::has_query() const {
- return target_type_case() == kQuery;
- }
- inline bool Target::_internal_has_query() const {
- return target_type_case() == kQuery;
- }
- inline void Target::set_has_query() {
- _impl_._oneof_case_[0] = kQuery;
- }
- inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
- // @@protoc_insertion_point(field_release:firestore.client.Target.query)
- if (target_type_case() == kQuery) {
- clear_has_target_type();
- auto* temp = _impl_.target_type_.query_;
- if (GetArena() != nullptr) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- _impl_.target_type_.query_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
- return target_type_case() == kQuery ? *_impl_.target_type_.query_ : reinterpret_cast<::google::firestore::v1::Target_QueryTarget&>(::google::firestore::v1::_Target_QueryTarget_default_instance_);
- }
- inline const ::google::firestore::v1::Target_QueryTarget& Target::query() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
- // @@protoc_insertion_point(field_get:firestore.client.Target.query)
- return _internal_query();
- }
- inline ::google::firestore::v1::Target_QueryTarget* Target::unsafe_arena_release_query() {
- // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.query)
- if (target_type_case() == kQuery) {
- clear_has_target_type();
- auto* temp = _impl_.target_type_.query_;
- _impl_.target_type_.query_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline void Target::unsafe_arena_set_allocated_query(::google::firestore::v1::Target_QueryTarget* value) {
- // We rely on the oneof clear method to free the earlier contents
- // of this oneof. We can directly use the pointer we're given to
- // set the new value.
- clear_target_type();
- if (value) {
- set_has_query();
- _impl_.target_type_.query_ = value;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.query)
- }
- inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
- if (target_type_case() != kQuery) {
- clear_target_type();
- set_has_query();
- _impl_.target_type_.query_ = CreateMaybeMessage<::google::firestore::v1::Target_QueryTarget>(GetArena());
- }
- return _impl_.target_type_.query_;
- }
- inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() ABSL_ATTRIBUTE_LIFETIME_BOUND {
- ::google::firestore::v1::Target_QueryTarget* _msg = _internal_mutable_query();
- // @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
- return _msg;
- }
- // .google.firestore.v1.Target.DocumentsTarget documents = 6;
- inline bool Target::has_documents() const {
- return target_type_case() == kDocuments;
- }
- inline bool Target::_internal_has_documents() const {
- return target_type_case() == kDocuments;
- }
- inline void Target::set_has_documents() {
- _impl_._oneof_case_[0] = kDocuments;
- }
- inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
- // @@protoc_insertion_point(field_release:firestore.client.Target.documents)
- if (target_type_case() == kDocuments) {
- clear_has_target_type();
- auto* temp = _impl_.target_type_.documents_;
- if (GetArena() != nullptr) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
- }
- _impl_.target_type_.documents_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
- return target_type_case() == kDocuments ? *_impl_.target_type_.documents_ : reinterpret_cast<::google::firestore::v1::Target_DocumentsTarget&>(::google::firestore::v1::_Target_DocumentsTarget_default_instance_);
- }
- inline const ::google::firestore::v1::Target_DocumentsTarget& Target::documents() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
- // @@protoc_insertion_point(field_get:firestore.client.Target.documents)
- return _internal_documents();
- }
- inline ::google::firestore::v1::Target_DocumentsTarget* Target::unsafe_arena_release_documents() {
- // @@protoc_insertion_point(field_unsafe_arena_release:firestore.client.Target.documents)
- if (target_type_case() == kDocuments) {
- clear_has_target_type();
- auto* temp = _impl_.target_type_.documents_;
- _impl_.target_type_.documents_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline void Target::unsafe_arena_set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* value) {
- // We rely on the oneof clear method to free the earlier contents
- // of this oneof. We can directly use the pointer we're given to
- // set the new value.
- clear_target_type();
- if (value) {
- set_has_documents();
- _impl_.target_type_.documents_ = value;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.documents)
- }
- inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
- if (target_type_case() != kDocuments) {
- clear_target_type();
- set_has_documents();
- _impl_.target_type_.documents_ = CreateMaybeMessage<::google::firestore::v1::Target_DocumentsTarget>(GetArena());
- }
- return _impl_.target_type_.documents_;
- }
- inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() ABSL_ATTRIBUTE_LIFETIME_BOUND {
- ::google::firestore::v1::Target_DocumentsTarget* _msg = _internal_mutable_documents();
- // @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
- return _msg;
- }
- // .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
- inline bool Target::has_last_limbo_free_snapshot_version() const {
- bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
- PROTOBUF_ASSUME(!value || _impl_.last_limbo_free_snapshot_version_ != nullptr);
- return value;
- }
- inline const ::google::protobuf::Timestamp& Target::_internal_last_limbo_free_snapshot_version() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- const ::google::protobuf::Timestamp* p = _impl_.last_limbo_free_snapshot_version_;
- return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
- }
- inline const ::google::protobuf::Timestamp& Target::last_limbo_free_snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
- // @@protoc_insertion_point(field_get:firestore.client.Target.last_limbo_free_snapshot_version)
- return _internal_last_limbo_free_snapshot_version();
- }
- inline void Target::unsafe_arena_set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_limbo_free_snapshot_version_);
- }
- _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
- if (value != nullptr) {
- _impl_._has_bits_[0] |= 0x00000002u;
- } else {
- _impl_._has_bits_[0] &= ~0x00000002u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
- }
- inline ::google::protobuf::Timestamp* Target::release_last_limbo_free_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_._has_bits_[0] &= ~0x00000002u;
- ::google::protobuf::Timestamp* released = _impl_.last_limbo_free_snapshot_version_;
- _impl_.last_limbo_free_snapshot_version_ = nullptr;
- #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
- auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
- released = ::google::protobuf::internal::DuplicateIfNonNull(released);
- if (GetArena() == nullptr) {
- delete old;
- }
- #else // PROTOBUF_FORCE_COPY_IN_RELEASE
- if (GetArena() != nullptr) {
- released = ::google::protobuf::internal::DuplicateIfNonNull(released);
- }
- #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
- return released;
- }
- inline ::google::protobuf::Timestamp* Target::unsafe_arena_release_last_limbo_free_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- // @@protoc_insertion_point(field_release:firestore.client.Target.last_limbo_free_snapshot_version)
- _impl_._has_bits_[0] &= ~0x00000002u;
- ::google::protobuf::Timestamp* temp = _impl_.last_limbo_free_snapshot_version_;
- _impl_.last_limbo_free_snapshot_version_ = nullptr;
- return temp;
- }
- inline ::google::protobuf::Timestamp* Target::_internal_mutable_last_limbo_free_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_._has_bits_[0] |= 0x00000002u;
- if (_impl_.last_limbo_free_snapshot_version_ == nullptr) {
- auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
- _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
- }
- return _impl_.last_limbo_free_snapshot_version_;
- }
- inline ::google::protobuf::Timestamp* Target::mutable_last_limbo_free_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
- ::google::protobuf::Timestamp* _msg = _internal_mutable_last_limbo_free_snapshot_version();
- // @@protoc_insertion_point(field_mutable:firestore.client.Target.last_limbo_free_snapshot_version)
- return _msg;
- }
- inline void Target::set_allocated_last_limbo_free_snapshot_version(::google::protobuf::Timestamp* value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (message_arena == nullptr) {
- delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_limbo_free_snapshot_version_);
- }
- if (value != nullptr) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
- if (message_arena != submessage_arena) {
- value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
- }
- _impl_._has_bits_[0] |= 0x00000002u;
- } else {
- _impl_._has_bits_[0] &= ~0x00000002u;
- }
- _impl_.last_limbo_free_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
- // @@protoc_insertion_point(field_set_allocated:firestore.client.Target.last_limbo_free_snapshot_version)
- }
- inline bool Target::has_target_type() const {
- return target_type_case() != TARGET_TYPE_NOT_SET;
- }
- inline void Target::clear_has_target_type() {
- _impl_._oneof_case_[0] = TARGET_TYPE_NOT_SET;
- }
- inline Target::TargetTypeCase Target::target_type_case() const {
- return Target::TargetTypeCase(_impl_._oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // TargetGlobal
- // int32 highest_target_id = 1;
- inline void TargetGlobal::clear_highest_target_id() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.highest_target_id_ = 0;
- }
- inline ::int32_t TargetGlobal::highest_target_id() const {
- // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
- return _internal_highest_target_id();
- }
- inline void TargetGlobal::set_highest_target_id(::int32_t value) {
- _internal_set_highest_target_id(value);
- // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
- }
- inline ::int32_t TargetGlobal::_internal_highest_target_id() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- return _impl_.highest_target_id_;
- }
- inline void TargetGlobal::_internal_set_highest_target_id(::int32_t value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.highest_target_id_ = value;
- }
- // int64 highest_listen_sequence_number = 2;
- inline void TargetGlobal::clear_highest_listen_sequence_number() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.highest_listen_sequence_number_ = ::int64_t{0};
- }
- inline ::int64_t TargetGlobal::highest_listen_sequence_number() const {
- // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_listen_sequence_number)
- return _internal_highest_listen_sequence_number();
- }
- inline void TargetGlobal::set_highest_listen_sequence_number(::int64_t value) {
- _internal_set_highest_listen_sequence_number(value);
- // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
- }
- inline ::int64_t TargetGlobal::_internal_highest_listen_sequence_number() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- return _impl_.highest_listen_sequence_number_;
- }
- inline void TargetGlobal::_internal_set_highest_listen_sequence_number(::int64_t value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.highest_listen_sequence_number_ = value;
- }
- // .google.protobuf.Timestamp last_remote_snapshot_version = 3;
- inline bool TargetGlobal::has_last_remote_snapshot_version() const {
- bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
- PROTOBUF_ASSUME(!value || _impl_.last_remote_snapshot_version_ != nullptr);
- return value;
- }
- inline const ::google::protobuf::Timestamp& TargetGlobal::_internal_last_remote_snapshot_version() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- const ::google::protobuf::Timestamp* p = _impl_.last_remote_snapshot_version_;
- return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Timestamp&>(::google::protobuf::_Timestamp_default_instance_);
- }
- inline const ::google::protobuf::Timestamp& TargetGlobal::last_remote_snapshot_version() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
- // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
- return _internal_last_remote_snapshot_version();
- }
- inline void TargetGlobal::unsafe_arena_set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (GetArena() == nullptr) {
- delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_remote_snapshot_version_);
- }
- _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
- if (value != nullptr) {
- _impl_._has_bits_[0] |= 0x00000001u;
- } else {
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
- }
- inline ::google::protobuf::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_._has_bits_[0] &= ~0x00000001u;
- ::google::protobuf::Timestamp* released = _impl_.last_remote_snapshot_version_;
- _impl_.last_remote_snapshot_version_ = nullptr;
- #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
- auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
- released = ::google::protobuf::internal::DuplicateIfNonNull(released);
- if (GetArena() == nullptr) {
- delete old;
- }
- #else // PROTOBUF_FORCE_COPY_IN_RELEASE
- if (GetArena() != nullptr) {
- released = ::google::protobuf::internal::DuplicateIfNonNull(released);
- }
- #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
- return released;
- }
- inline ::google::protobuf::Timestamp* TargetGlobal::unsafe_arena_release_last_remote_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- // @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
- _impl_._has_bits_[0] &= ~0x00000001u;
- ::google::protobuf::Timestamp* temp = _impl_.last_remote_snapshot_version_;
- _impl_.last_remote_snapshot_version_ = nullptr;
- return temp;
- }
- inline ::google::protobuf::Timestamp* TargetGlobal::_internal_mutable_last_remote_snapshot_version() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_._has_bits_[0] |= 0x00000001u;
- if (_impl_.last_remote_snapshot_version_ == nullptr) {
- auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArena());
- _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(p);
- }
- return _impl_.last_remote_snapshot_version_;
- }
- inline ::google::protobuf::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() ABSL_ATTRIBUTE_LIFETIME_BOUND {
- ::google::protobuf::Timestamp* _msg = _internal_mutable_last_remote_snapshot_version();
- // @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
- return _msg;
- }
- inline void TargetGlobal::set_allocated_last_remote_snapshot_version(::google::protobuf::Timestamp* value) {
- ::google::protobuf::Arena* message_arena = GetArena();
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- if (message_arena == nullptr) {
- delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.last_remote_snapshot_version_);
- }
- if (value != nullptr) {
- ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
- if (message_arena != submessage_arena) {
- value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
- }
- _impl_._has_bits_[0] |= 0x00000001u;
- } else {
- _impl_._has_bits_[0] &= ~0x00000001u;
- }
- _impl_.last_remote_snapshot_version_ = reinterpret_cast<::google::protobuf::Timestamp*>(value);
- // @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
- }
- // int32 target_count = 4;
- inline void TargetGlobal::clear_target_count() {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- _impl_.target_count_ = 0;
- }
- inline ::int32_t TargetGlobal::target_count() const {
- // @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
- return _internal_target_count();
- }
- inline void TargetGlobal::set_target_count(::int32_t value) {
- _internal_set_target_count(value);
- // @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
- }
- inline ::int32_t TargetGlobal::_internal_target_count() const {
- PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
- return _impl_.target_count_;
- }
- inline void TargetGlobal::_internal_set_target_count(::int32_t value) {
- PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
- ;
- _impl_.target_count_ = value;
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // @@protoc_insertion_point(namespace_scope)
- } // namespace client
- } // namespace firestore
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
- #endif // GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto_2epb_2eh
|