Files
firebase-ios-sdk/Firestore/Protos/cpp/firestore/local/target.pb.h
T
Gil 1df5574c4f Upgrade gRPC-C++ to 1.28.0 (#4312)
This unblocks nanopb changes proposed in #4264.

This upgrades everything in the gRPC constellation of dependencies to match gRPC at 1.28:

  * gRPC to 1.28.0 (note that gRPC 1.28.1, while released, is a fix for just the python binding and there's no gRPC-C++ CocoaPod at that version)
  * Abseil to 20200225 (as of gRPC 1.27 this is now a gRPC dependency too; there's a later patch but gRPC doesn't use it yet)
  * Protobuf C++ to 3.11.4 (only used for testing in Firestore)
  * C-Ares to 1.15.0
  * BoringSSL to match (no change between gRPC 1.27.0 and 1.28.0)

Also, this disables CFStream-based transport on Apple platforms. This works around b/133182964, wherein CFStream will occasionally fail to raise a has-bytes-available events, causing Firestore to appear to hang.
2020-04-22 14:03:34 -07:00

954 lines
38 KiB
C++

/*
* Copyright 2018 Google
*
* 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
#ifndef GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3011000
#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
#if 3011002 < 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
#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_table_driven.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/inlined_string_field.h>
#include <google/protobuf/metadata.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)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_firestore_2flocal_2ftarget_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_firestore_2flocal_2ftarget_2eproto {
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2]
PROTOBUF_SECTION_VARIABLE(protodesc_cold);
static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
};
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_firestore_2flocal_2ftarget_2eproto;
namespace firestore {
namespace client {
class Target;
class TargetDefaultTypeInternal;
extern TargetDefaultTypeInternal _Target_default_instance_;
class TargetGlobal;
class TargetGlobalDefaultTypeInternal;
extern TargetGlobalDefaultTypeInternal _TargetGlobal_default_instance_;
} // namespace client
} // namespace firestore
PROTOBUF_NAMESPACE_OPEN
template<> ::firestore::client::Target* Arena::CreateMaybeMessage<::firestore::client::Target>(Arena*);
template<> ::firestore::client::TargetGlobal* Arena::CreateMaybeMessage<::firestore::client::TargetGlobal>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace firestore {
namespace client {
// ===================================================================
class Target :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.Target) */ {
public:
Target();
virtual ~Target();
Target(const Target& 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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return GetMetadataStatic().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const Target& default_instance();
enum TargetTypeCase {
kQuery = 5,
kDocuments = 6,
TARGET_TYPE_NOT_SET = 0,
};
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
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;
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline Target* New() const final {
return CreateMaybeMessage<Target>(nullptr);
}
Target* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<Target>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const Target& from);
void MergeFrom(const Target& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Target* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "firestore.client.Target";
}
private:
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
return nullptr;
}
inline void* MaybeArenaPtr() const {
return nullptr;
}
public:
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2ftarget_2eproto);
return ::descriptor_table_firestore_2flocal_2ftarget_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// 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;
void set_resume_token(const std::string& value);
void set_resume_token(std::string&& value);
void set_resume_token(const char* value);
void set_resume_token(const void* value, size_t size);
std::string* mutable_resume_token();
std::string* release_resume_token();
void set_allocated_resume_token(std::string* resume_token);
private:
const std::string& _internal_resume_token() const;
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;
private:
bool _internal_has_snapshot_version() const;
public:
void clear_snapshot_version();
const PROTOBUF_NAMESPACE_ID::Timestamp& snapshot_version() const;
PROTOBUF_NAMESPACE_ID::Timestamp* release_snapshot_version();
PROTOBUF_NAMESPACE_ID::Timestamp* mutable_snapshot_version();
void set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version);
private:
const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_snapshot_version() const;
PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_snapshot_version();
public:
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
bool has_last_limbo_free_snapshot_version() const;
private:
bool _internal_has_last_limbo_free_snapshot_version() const;
public:
void clear_last_limbo_free_snapshot_version();
const PROTOBUF_NAMESPACE_ID::Timestamp& last_limbo_free_snapshot_version() const;
PROTOBUF_NAMESPACE_ID::Timestamp* release_last_limbo_free_snapshot_version();
PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_limbo_free_snapshot_version();
void set_allocated_last_limbo_free_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version);
private:
const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_limbo_free_snapshot_version() const;
PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_limbo_free_snapshot_version();
public:
// int64 last_listen_sequence_number = 4;
void clear_last_listen_sequence_number();
::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number() const;
void set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_last_listen_sequence_number() const;
void _internal_set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// int32 target_id = 1;
void clear_target_id();
::PROTOBUF_NAMESPACE_ID::int32 target_id() const;
void set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
private:
::PROTOBUF_NAMESPACE_ID::int32 _internal_target_id() const;
void _internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 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;
::google::firestore::v1::Target_QueryTarget* release_query();
::google::firestore::v1::Target_QueryTarget* mutable_query();
void set_allocated_query(::google::firestore::v1::Target_QueryTarget* 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;
::google::firestore::v1::Target_DocumentsTarget* release_documents();
::google::firestore::v1::Target_DocumentsTarget* mutable_documents();
void set_allocated_documents(::google::firestore::v1::Target_DocumentsTarget* 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();
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr resume_token_;
PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version_;
PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version_;
::PROTOBUF_NAMESPACE_ID::int64 last_listen_sequence_number_;
::PROTOBUF_NAMESPACE_ID::int32 target_id_;
union TargetTypeUnion {
TargetTypeUnion() {}
::google::firestore::v1::Target_QueryTarget* query_;
::google::firestore::v1::Target_DocumentsTarget* documents_;
} target_type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
friend struct ::TableStruct_firestore_2flocal_2ftarget_2eproto;
};
// -------------------------------------------------------------------
class TargetGlobal :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:firestore.client.TargetGlobal) */ {
public:
TargetGlobal();
virtual ~TargetGlobal();
TargetGlobal(const TargetGlobal& 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 (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return GetMetadataStatic().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return GetMetadataStatic().reflection;
}
static const TargetGlobal& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
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;
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline TargetGlobal* New() const final {
return CreateMaybeMessage<TargetGlobal>(nullptr);
}
TargetGlobal* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<TargetGlobal>(arena);
}
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
void CopyFrom(const TargetGlobal& from);
void MergeFrom(const TargetGlobal& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
inline void SharedCtor();
inline void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(TargetGlobal* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "firestore.client.TargetGlobal";
}
private:
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
return nullptr;
}
inline void* MaybeArenaPtr() const {
return nullptr;
}
public:
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
private:
static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_firestore_2flocal_2ftarget_2eproto);
return ::descriptor_table_firestore_2flocal_2ftarget_2eproto.file_level_metadata[kIndexInFileMessages];
}
public:
// 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;
private:
bool _internal_has_last_remote_snapshot_version() const;
public:
void clear_last_remote_snapshot_version();
const PROTOBUF_NAMESPACE_ID::Timestamp& last_remote_snapshot_version() const;
PROTOBUF_NAMESPACE_ID::Timestamp* release_last_remote_snapshot_version();
PROTOBUF_NAMESPACE_ID::Timestamp* mutable_last_remote_snapshot_version();
void set_allocated_last_remote_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version);
private:
const PROTOBUF_NAMESPACE_ID::Timestamp& _internal_last_remote_snapshot_version() const;
PROTOBUF_NAMESPACE_ID::Timestamp* _internal_mutable_last_remote_snapshot_version();
public:
// int64 highest_listen_sequence_number = 2;
void clear_highest_listen_sequence_number();
::PROTOBUF_NAMESPACE_ID::int64 highest_listen_sequence_number() const;
void set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_highest_listen_sequence_number() const;
void _internal_set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// int32 highest_target_id = 1;
void clear_highest_target_id();
::PROTOBUF_NAMESPACE_ID::int32 highest_target_id() const;
void set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
private:
::PROTOBUF_NAMESPACE_ID::int32 _internal_highest_target_id() const;
void _internal_set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value);
public:
// int32 target_count = 4;
void clear_target_count();
::PROTOBUF_NAMESPACE_ID::int32 target_count() const;
void set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value);
private:
::PROTOBUF_NAMESPACE_ID::int32 _internal_target_count() const;
void _internal_set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value);
public:
// @@protoc_insertion_point(class_scope:firestore.client.TargetGlobal)
private:
class _Internal;
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version_;
::PROTOBUF_NAMESPACE_ID::int64 highest_listen_sequence_number_;
::PROTOBUF_NAMESPACE_ID::int32 highest_target_id_;
::PROTOBUF_NAMESPACE_ID::int32 target_count_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
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() {
target_id_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 Target::_internal_target_id() const {
return target_id_;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 Target::target_id() const {
// @@protoc_insertion_point(field_get:firestore.client.Target.target_id)
return _internal_target_id();
}
inline void Target::_internal_set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
target_id_ = value;
}
inline void Target::set_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
_internal_set_target_id(value);
// @@protoc_insertion_point(field_set:firestore.client.Target.target_id)
}
// .google.protobuf.Timestamp snapshot_version = 2;
inline bool Target::_internal_has_snapshot_version() const {
return this != internal_default_instance() && snapshot_version_ != nullptr;
}
inline bool Target::has_snapshot_version() const {
return _internal_has_snapshot_version();
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::_internal_snapshot_version() const {
const PROTOBUF_NAMESPACE_ID::Timestamp* p = snapshot_version_;
return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::snapshot_version() const {
// @@protoc_insertion_point(field_get:firestore.client.Target.snapshot_version)
return _internal_snapshot_version();
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_snapshot_version() {
// @@protoc_insertion_point(field_release:firestore.client.Target.snapshot_version)
PROTOBUF_NAMESPACE_ID::Timestamp* temp = snapshot_version_;
snapshot_version_ = nullptr;
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::_internal_mutable_snapshot_version() {
if (snapshot_version_ == nullptr) {
auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
snapshot_version_ = p;
}
return snapshot_version_;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_snapshot_version() {
// @@protoc_insertion_point(field_mutable:firestore.client.Target.snapshot_version)
return _internal_mutable_snapshot_version();
}
inline void Target::set_allocated_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* snapshot_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(snapshot_version_);
}
if (snapshot_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(snapshot_version)->GetArena();
if (message_arena != submessage_arena) {
snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, snapshot_version, submessage_arena);
}
} else {
}
snapshot_version_ = snapshot_version;
// @@protoc_insertion_point(field_set_allocated:firestore.client.Target.snapshot_version)
}
// bytes resume_token = 3;
inline void Target::clear_resume_token() {
resume_token_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline const std::string& Target::resume_token() const {
// @@protoc_insertion_point(field_get:firestore.client.Target.resume_token)
return _internal_resume_token();
}
inline void Target::set_resume_token(const std::string& value) {
_internal_set_resume_token(value);
// @@protoc_insertion_point(field_set:firestore.client.Target.resume_token)
}
inline std::string* Target::mutable_resume_token() {
// @@protoc_insertion_point(field_mutable:firestore.client.Target.resume_token)
return _internal_mutable_resume_token();
}
inline const std::string& Target::_internal_resume_token() const {
return resume_token_.GetNoArena();
}
inline void Target::_internal_set_resume_token(const std::string& value) {
resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void Target::set_resume_token(std::string&& value) {
resume_token_.SetNoArena(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:firestore.client.Target.resume_token)
}
inline void Target::set_resume_token(const char* value) {
GOOGLE_DCHECK(value != nullptr);
resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:firestore.client.Target.resume_token)
}
inline void Target::set_resume_token(const void* value, size_t size) {
resume_token_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:firestore.client.Target.resume_token)
}
inline std::string* Target::_internal_mutable_resume_token() {
return resume_token_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* Target::release_resume_token() {
// @@protoc_insertion_point(field_release:firestore.client.Target.resume_token)
return resume_token_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline void Target::set_allocated_resume_token(std::string* resume_token) {
if (resume_token != nullptr) {
} else {
}
resume_token_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), resume_token);
// @@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() {
last_listen_sequence_number_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 Target::_internal_last_listen_sequence_number() const {
return last_listen_sequence_number_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 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::_internal_set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
last_listen_sequence_number_ = value;
}
inline void Target::set_last_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_last_listen_sequence_number(value);
// @@protoc_insertion_point(field_set:firestore.client.Target.last_listen_sequence_number)
}
// .google.firestore.v1.Target.QueryTarget query = 5;
inline bool Target::_internal_has_query() const {
return target_type_case() == kQuery;
}
inline bool Target::has_query() const {
return _internal_has_query();
}
inline void Target::set_has_query() {
_oneof_case_[0] = kQuery;
}
inline ::google::firestore::v1::Target_QueryTarget* Target::release_query() {
// @@protoc_insertion_point(field_release:firestore.client.Target.query)
if (_internal_has_query()) {
clear_has_target_type();
::google::firestore::v1::Target_QueryTarget* temp = target_type_.query_;
target_type_.query_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::google::firestore::v1::Target_QueryTarget& Target::_internal_query() const {
return _internal_has_query()
? *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 {
// @@protoc_insertion_point(field_get:firestore.client.Target.query)
return _internal_query();
}
inline ::google::firestore::v1::Target_QueryTarget* Target::_internal_mutable_query() {
if (!_internal_has_query()) {
clear_target_type();
set_has_query();
target_type_.query_ = CreateMaybeMessage< ::google::firestore::v1::Target_QueryTarget >(
GetArenaNoVirtual());
}
return target_type_.query_;
}
inline ::google::firestore::v1::Target_QueryTarget* Target::mutable_query() {
// @@protoc_insertion_point(field_mutable:firestore.client.Target.query)
return _internal_mutable_query();
}
// .google.firestore.v1.Target.DocumentsTarget documents = 6;
inline bool Target::_internal_has_documents() const {
return target_type_case() == kDocuments;
}
inline bool Target::has_documents() const {
return _internal_has_documents();
}
inline void Target::set_has_documents() {
_oneof_case_[0] = kDocuments;
}
inline ::google::firestore::v1::Target_DocumentsTarget* Target::release_documents() {
// @@protoc_insertion_point(field_release:firestore.client.Target.documents)
if (_internal_has_documents()) {
clear_has_target_type();
::google::firestore::v1::Target_DocumentsTarget* temp = target_type_.documents_;
target_type_.documents_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::google::firestore::v1::Target_DocumentsTarget& Target::_internal_documents() const {
return _internal_has_documents()
? *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 {
// @@protoc_insertion_point(field_get:firestore.client.Target.documents)
return _internal_documents();
}
inline ::google::firestore::v1::Target_DocumentsTarget* Target::_internal_mutable_documents() {
if (!_internal_has_documents()) {
clear_target_type();
set_has_documents();
target_type_.documents_ = CreateMaybeMessage< ::google::firestore::v1::Target_DocumentsTarget >(
GetArenaNoVirtual());
}
return target_type_.documents_;
}
inline ::google::firestore::v1::Target_DocumentsTarget* Target::mutable_documents() {
// @@protoc_insertion_point(field_mutable:firestore.client.Target.documents)
return _internal_mutable_documents();
}
// .google.protobuf.Timestamp last_limbo_free_snapshot_version = 7;
inline bool Target::_internal_has_last_limbo_free_snapshot_version() const {
return this != internal_default_instance() && last_limbo_free_snapshot_version_ != nullptr;
}
inline bool Target::has_last_limbo_free_snapshot_version() const {
return _internal_has_last_limbo_free_snapshot_version();
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::_internal_last_limbo_free_snapshot_version() const {
const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_limbo_free_snapshot_version_;
return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& Target::last_limbo_free_snapshot_version() const {
// @@protoc_insertion_point(field_get:firestore.client.Target.last_limbo_free_snapshot_version)
return _internal_last_limbo_free_snapshot_version();
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::release_last_limbo_free_snapshot_version() {
// @@protoc_insertion_point(field_release:firestore.client.Target.last_limbo_free_snapshot_version)
PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_limbo_free_snapshot_version_;
last_limbo_free_snapshot_version_ = nullptr;
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::_internal_mutable_last_limbo_free_snapshot_version() {
if (last_limbo_free_snapshot_version_ == nullptr) {
auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
last_limbo_free_snapshot_version_ = p;
}
return last_limbo_free_snapshot_version_;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* Target::mutable_last_limbo_free_snapshot_version() {
// @@protoc_insertion_point(field_mutable:firestore.client.Target.last_limbo_free_snapshot_version)
return _internal_mutable_last_limbo_free_snapshot_version();
}
inline void Target::set_allocated_last_limbo_free_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_limbo_free_snapshot_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_limbo_free_snapshot_version_);
}
if (last_limbo_free_snapshot_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_limbo_free_snapshot_version)->GetArena();
if (message_arena != submessage_arena) {
last_limbo_free_snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, last_limbo_free_snapshot_version, submessage_arena);
}
} else {
}
last_limbo_free_snapshot_version_ = last_limbo_free_snapshot_version;
// @@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() {
_oneof_case_[0] = TARGET_TYPE_NOT_SET;
}
inline Target::TargetTypeCase Target::target_type_case() const {
return Target::TargetTypeCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// TargetGlobal
// int32 highest_target_id = 1;
inline void TargetGlobal::clear_highest_target_id() {
highest_target_id_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::_internal_highest_target_id() const {
return highest_target_id_;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::highest_target_id() const {
// @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.highest_target_id)
return _internal_highest_target_id();
}
inline void TargetGlobal::_internal_set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
highest_target_id_ = value;
}
inline void TargetGlobal::set_highest_target_id(::PROTOBUF_NAMESPACE_ID::int32 value) {
_internal_set_highest_target_id(value);
// @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_target_id)
}
// int64 highest_listen_sequence_number = 2;
inline void TargetGlobal::clear_highest_listen_sequence_number() {
highest_listen_sequence_number_ = PROTOBUF_LONGLONG(0);
}
inline ::PROTOBUF_NAMESPACE_ID::int64 TargetGlobal::_internal_highest_listen_sequence_number() const {
return highest_listen_sequence_number_;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 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::_internal_set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
highest_listen_sequence_number_ = value;
}
inline void TargetGlobal::set_highest_listen_sequence_number(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_highest_listen_sequence_number(value);
// @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.highest_listen_sequence_number)
}
// .google.protobuf.Timestamp last_remote_snapshot_version = 3;
inline bool TargetGlobal::_internal_has_last_remote_snapshot_version() const {
return this != internal_default_instance() && last_remote_snapshot_version_ != nullptr;
}
inline bool TargetGlobal::has_last_remote_snapshot_version() const {
return _internal_has_last_remote_snapshot_version();
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetGlobal::_internal_last_remote_snapshot_version() const {
const PROTOBUF_NAMESPACE_ID::Timestamp* p = last_remote_snapshot_version_;
return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Timestamp*>(
&PROTOBUF_NAMESPACE_ID::_Timestamp_default_instance_);
}
inline const PROTOBUF_NAMESPACE_ID::Timestamp& TargetGlobal::last_remote_snapshot_version() const {
// @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.last_remote_snapshot_version)
return _internal_last_remote_snapshot_version();
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::release_last_remote_snapshot_version() {
// @@protoc_insertion_point(field_release:firestore.client.TargetGlobal.last_remote_snapshot_version)
PROTOBUF_NAMESPACE_ID::Timestamp* temp = last_remote_snapshot_version_;
last_remote_snapshot_version_ = nullptr;
return temp;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::_internal_mutable_last_remote_snapshot_version() {
if (last_remote_snapshot_version_ == nullptr) {
auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Timestamp>(GetArenaNoVirtual());
last_remote_snapshot_version_ = p;
}
return last_remote_snapshot_version_;
}
inline PROTOBUF_NAMESPACE_ID::Timestamp* TargetGlobal::mutable_last_remote_snapshot_version() {
// @@protoc_insertion_point(field_mutable:firestore.client.TargetGlobal.last_remote_snapshot_version)
return _internal_mutable_last_remote_snapshot_version();
}
inline void TargetGlobal::set_allocated_last_remote_snapshot_version(PROTOBUF_NAMESPACE_ID::Timestamp* last_remote_snapshot_version) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_remote_snapshot_version_);
}
if (last_remote_snapshot_version) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(last_remote_snapshot_version)->GetArena();
if (message_arena != submessage_arena) {
last_remote_snapshot_version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, last_remote_snapshot_version, submessage_arena);
}
} else {
}
last_remote_snapshot_version_ = last_remote_snapshot_version;
// @@protoc_insertion_point(field_set_allocated:firestore.client.TargetGlobal.last_remote_snapshot_version)
}
// int32 target_count = 4;
inline void TargetGlobal::clear_target_count() {
target_count_ = 0;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::_internal_target_count() const {
return target_count_;
}
inline ::PROTOBUF_NAMESPACE_ID::int32 TargetGlobal::target_count() const {
// @@protoc_insertion_point(field_get:firestore.client.TargetGlobal.target_count)
return _internal_target_count();
}
inline void TargetGlobal::_internal_set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
target_count_ = value;
}
inline void TargetGlobal::set_target_count(::PROTOBUF_NAMESPACE_ID::int32 value) {
_internal_set_target_count(value);
// @@protoc_insertion_point(field_set:firestore.client.TargetGlobal.target_count)
}
#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_GOOGLE_PROTOBUF_INCLUDED_firestore_2flocal_2ftarget_2eproto