mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-10 22:45:59 +05:45
457 lines
15 KiB
C++
457 lines
15 KiB
C++
/*
|
|
* 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: google/rpc/status.proto
|
|
// Protobuf C++ Version: 4.25.1
|
|
|
|
#ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh
|
|
#define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_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/protobuf/any.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
// Must be included last.
|
|
#include "google/protobuf/port_def.inc"
|
|
|
|
#define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fstatus_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_google_2frpc_2fstatus_2eproto {
|
|
static const ::uint32_t offsets[];
|
|
};
|
|
extern const ::google::protobuf::internal::DescriptorTable
|
|
descriptor_table_google_2frpc_2fstatus_2eproto;
|
|
namespace google {
|
|
namespace rpc {
|
|
class Status;
|
|
struct StatusDefaultTypeInternal;
|
|
extern StatusDefaultTypeInternal _Status_default_instance_;
|
|
} // namespace rpc
|
|
namespace protobuf {
|
|
} // namespace protobuf
|
|
} // namespace google
|
|
|
|
namespace google {
|
|
namespace rpc {
|
|
|
|
// ===================================================================
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
class Status final :
|
|
public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ {
|
|
public:
|
|
inline Status() : Status(nullptr) {}
|
|
~Status() override;
|
|
template<typename = void>
|
|
explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized);
|
|
|
|
inline Status(const Status& from)
|
|
: Status(nullptr, from) {}
|
|
Status(Status&& from) noexcept
|
|
: Status() {
|
|
*this = ::std::move(from);
|
|
}
|
|
|
|
inline Status& operator=(const Status& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
inline Status& operator=(Status&& 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 Status& default_instance() {
|
|
return *internal_default_instance();
|
|
}
|
|
static inline const Status* internal_default_instance() {
|
|
return reinterpret_cast<const Status*>(
|
|
&_Status_default_instance_);
|
|
}
|
|
static constexpr int kIndexInFileMessages =
|
|
0;
|
|
|
|
friend void swap(Status& a, Status& b) {
|
|
a.Swap(&b);
|
|
}
|
|
inline void Swap(Status* 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(Status* other) {
|
|
if (other == this) return;
|
|
ABSL_DCHECK(GetArena() == other->GetArena());
|
|
InternalSwap(other);
|
|
}
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
Status* New(::google::protobuf::Arena* arena = nullptr) const final {
|
|
return CreateMaybeMessage<Status>(arena);
|
|
}
|
|
using ::google::protobuf::Message::CopyFrom;
|
|
void CopyFrom(const Status& from);
|
|
using ::google::protobuf::Message::MergeFrom;
|
|
void MergeFrom( const Status& from) {
|
|
Status::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(Status* other);
|
|
|
|
private:
|
|
friend class ::google::protobuf::internal::AnyMetadata;
|
|
static ::absl::string_view FullMessageName() {
|
|
return "google.rpc.Status";
|
|
}
|
|
protected:
|
|
explicit Status(::google::protobuf::Arena* arena);
|
|
Status(::google::protobuf::Arena* arena, const Status& 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 {
|
|
kDetailsFieldNumber = 3,
|
|
kMessageFieldNumber = 2,
|
|
kCodeFieldNumber = 1,
|
|
};
|
|
// repeated .google.protobuf.Any details = 3;
|
|
int details_size() const;
|
|
private:
|
|
int _internal_details_size() const;
|
|
|
|
public:
|
|
void clear_details() ;
|
|
::google::protobuf::Any* mutable_details(int index);
|
|
::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >*
|
|
mutable_details();
|
|
private:
|
|
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& _internal_details() const;
|
|
::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* _internal_mutable_details();
|
|
public:
|
|
const ::google::protobuf::Any& details(int index) const;
|
|
::google::protobuf::Any* add_details();
|
|
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >&
|
|
details() const;
|
|
// string message = 2;
|
|
void clear_message() ;
|
|
const std::string& message() const;
|
|
template <typename Arg_ = const std::string&, typename... Args_>
|
|
void set_message(Arg_&& arg, Args_... args);
|
|
std::string* mutable_message();
|
|
PROTOBUF_NODISCARD std::string* release_message();
|
|
void set_allocated_message(std::string* value);
|
|
|
|
private:
|
|
const std::string& _internal_message() const;
|
|
inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(
|
|
const std::string& value);
|
|
std::string* _internal_mutable_message();
|
|
|
|
public:
|
|
// int32 code = 1;
|
|
void clear_code() ;
|
|
::int32_t code() const;
|
|
void set_code(::int32_t value);
|
|
|
|
private:
|
|
::int32_t _internal_code() const;
|
|
void _internal_set_code(::int32_t value);
|
|
|
|
public:
|
|
// @@protoc_insertion_point(class_scope:google.rpc.Status)
|
|
private:
|
|
class _Internal;
|
|
|
|
friend class ::google::protobuf::internal::TcParser;
|
|
static const ::google::protobuf::internal::TcParseTable<
|
|
2, 3, 1,
|
|
33, 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::RepeatedPtrField< ::google::protobuf::Any > details_;
|
|
::google::protobuf::internal::ArenaStringPtr message_;
|
|
::int32_t code_;
|
|
mutable ::google::protobuf::internal::CachedSize _cached_size_;
|
|
PROTOBUF_TSAN_DECLARE_MEMBER
|
|
};
|
|
union { Impl_ _impl_; };
|
|
friend struct ::TableStruct_google_2frpc_2fstatus_2eproto;
|
|
};
|
|
|
|
// ===================================================================
|
|
|
|
|
|
|
|
|
|
// ===================================================================
|
|
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic push
|
|
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
|
#endif // __GNUC__
|
|
// -------------------------------------------------------------------
|
|
|
|
// Status
|
|
|
|
// int32 code = 1;
|
|
inline void Status::clear_code() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.code_ = 0;
|
|
}
|
|
inline ::int32_t Status::code() const {
|
|
// @@protoc_insertion_point(field_get:google.rpc.Status.code)
|
|
return _internal_code();
|
|
}
|
|
inline void Status::set_code(::int32_t value) {
|
|
_internal_set_code(value);
|
|
// @@protoc_insertion_point(field_set:google.rpc.Status.code)
|
|
}
|
|
inline ::int32_t Status::_internal_code() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return _impl_.code_;
|
|
}
|
|
inline void Status::_internal_set_code(::int32_t value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
;
|
|
_impl_.code_ = value;
|
|
}
|
|
|
|
// string message = 2;
|
|
inline void Status::clear_message() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.message_.ClearToEmpty();
|
|
}
|
|
inline const std::string& Status::message() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:google.rpc.Status.message)
|
|
return _internal_message();
|
|
}
|
|
template <typename Arg_, typename... Args_>
|
|
inline PROTOBUF_ALWAYS_INLINE void Status::set_message(Arg_&& arg,
|
|
Args_... args) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
;
|
|
_impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
|
|
// @@protoc_insertion_point(field_set:google.rpc.Status.message)
|
|
}
|
|
inline std::string* Status::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
std::string* _s = _internal_mutable_message();
|
|
// @@protoc_insertion_point(field_mutable:google.rpc.Status.message)
|
|
return _s;
|
|
}
|
|
inline const std::string& Status::_internal_message() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return _impl_.message_.Get();
|
|
}
|
|
inline void Status::_internal_set_message(const std::string& value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
;
|
|
_impl_.message_.Set(value, GetArena());
|
|
}
|
|
inline std::string* Status::_internal_mutable_message() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
;
|
|
return _impl_.message_.Mutable( GetArena());
|
|
}
|
|
inline std::string* Status::release_message() {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
// @@protoc_insertion_point(field_release:google.rpc.Status.message)
|
|
return _impl_.message_.Release();
|
|
}
|
|
inline void Status::set_allocated_message(std::string* value) {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
_impl_.message_.SetAllocated(value, GetArena());
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (_impl_.message_.IsDefault()) {
|
|
_impl_.message_.Set("", GetArena());
|
|
}
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
// @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message)
|
|
}
|
|
|
|
// repeated .google.protobuf.Any details = 3;
|
|
inline int Status::_internal_details_size() const {
|
|
return _internal_details().size();
|
|
}
|
|
inline int Status::details_size() const {
|
|
return _internal_details_size();
|
|
}
|
|
inline ::google::protobuf::Any* Status::mutable_details(int index)
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_mutable:google.rpc.Status.details)
|
|
return _internal_mutable_details()->Mutable(index);
|
|
}
|
|
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* Status::mutable_details()
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details)
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
return _internal_mutable_details();
|
|
}
|
|
inline const ::google::protobuf::Any& Status::details(int index) const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_get:google.rpc.Status.details)
|
|
return _internal_details().Get(index);
|
|
}
|
|
inline ::google::protobuf::Any* Status::add_details() ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
|
|
::google::protobuf::Any* _add = _internal_mutable_details()->Add();
|
|
// @@protoc_insertion_point(field_add:google.rpc.Status.details)
|
|
return _add;
|
|
}
|
|
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& Status::details() const
|
|
ABSL_ATTRIBUTE_LIFETIME_BOUND {
|
|
// @@protoc_insertion_point(field_list:google.rpc.Status.details)
|
|
return _internal_details();
|
|
}
|
|
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>&
|
|
Status::_internal_details() const {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return _impl_.details_;
|
|
}
|
|
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>*
|
|
Status::_internal_mutable_details() {
|
|
PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
|
|
return &_impl_.details_;
|
|
}
|
|
|
|
#ifdef __GNUC__
|
|
#pragma GCC diagnostic pop
|
|
#endif // __GNUC__
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace rpc
|
|
} // namespace google
|
|
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#include "google/protobuf/port_undef.inc"
|
|
|
|
#endif // GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh
|