blob: 943dc5acf3dc38a58863c2eecf8d860f01012ea7 [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/protobuf/type.proto
// Protobuf C++ Version: 6.33.0-rc2
#ifndef google_2fprotobuf_2ftype_2eproto_2epb_2eh
#define google_2fprotobuf_2ftype_2eproto_2epb_2eh
#include <limits>
#include <string>
#include <type_traits>
#include <utility>
#include "google/protobuf/runtime_version.h"
#if PROTOBUF_VERSION != 6033000
#error "Protobuf C++ gencode is built with an incompatible version of"
#error "Protobuf C++ headers/runtime. See"
#error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
#endif
#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/message_lite.h"
#include "google/protobuf/repeated_field.h" // IWYU pragma: export
#include "google/protobuf/extension_set.h" // IWYU pragma: export
#include "google/protobuf/generated_enum_reflection.h"
#include "google/protobuf/unknown_field_set.h"
#include "google/protobuf/any.pb.h"
#include "google/protobuf/source_context.pb.h"
// @@protoc_insertion_point(includes)
// Must be included last.
#include "google/protobuf/port_def.inc"
#define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto PROTOBUF_EXPORT
namespace google {
namespace protobuf {
namespace internal {
template <typename T>
::absl::string_view GetAnyMessageName();
} // namespace internal
} // namespace protobuf
} // namespace google
// Internal implementation detail -- do not use these members.
struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftype_2eproto {
static const ::uint32_t offsets[];
};
extern "C" {
PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftype_2eproto;
} // extern "C"
namespace google {
namespace protobuf {
enum Field_Cardinality : int;
PROTOBUF_EXPORT extern const uint32_t Field_Cardinality_internal_data_[];
enum Field_Kind : int;
PROTOBUF_EXPORT extern const uint32_t Field_Kind_internal_data_[];
enum Syntax : int;
PROTOBUF_EXPORT extern const uint32_t Syntax_internal_data_[];
class Enum;
struct EnumDefaultTypeInternal;
PROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Enum_class_data_;
class EnumValue;
struct EnumValueDefaultTypeInternal;
PROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull EnumValue_class_data_;
class Field;
struct FieldDefaultTypeInternal;
PROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Field_class_data_;
class Option;
struct OptionDefaultTypeInternal;
PROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Option_class_data_;
class Type;
struct TypeDefaultTypeInternal;
PROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_;
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Type_class_data_;
template <>
internal::EnumTraitsT<::google::protobuf::Field_Cardinality_internal_data_>
internal::EnumTraitsImpl::value<::google::protobuf::Field_Cardinality>;
template <>
internal::EnumTraitsT<::google::protobuf::Field_Kind_internal_data_>
internal::EnumTraitsImpl::value<::google::protobuf::Field_Kind>;
template <>
internal::EnumTraitsT<::google::protobuf::Syntax_internal_data_>
internal::EnumTraitsImpl::value<::google::protobuf::Syntax>;
} // namespace protobuf
} // namespace google
namespace google {
namespace protobuf {
enum Field_Kind : int {
Field_Kind_TYPE_UNKNOWN = 0,
Field_Kind_TYPE_DOUBLE = 1,
Field_Kind_TYPE_FLOAT = 2,
Field_Kind_TYPE_INT64 = 3,
Field_Kind_TYPE_UINT64 = 4,
Field_Kind_TYPE_INT32 = 5,
Field_Kind_TYPE_FIXED64 = 6,
Field_Kind_TYPE_FIXED32 = 7,
Field_Kind_TYPE_BOOL = 8,
Field_Kind_TYPE_STRING = 9,
Field_Kind_TYPE_GROUP = 10,
Field_Kind_TYPE_MESSAGE = 11,
Field_Kind_TYPE_BYTES = 12,
Field_Kind_TYPE_UINT32 = 13,
Field_Kind_TYPE_ENUM = 14,
Field_Kind_TYPE_SFIXED32 = 15,
Field_Kind_TYPE_SFIXED64 = 16,
Field_Kind_TYPE_SINT32 = 17,
Field_Kind_TYPE_SINT64 = 18,
Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
PROTOBUF_EXPORT extern const uint32_t Field_Kind_internal_data_[];
inline constexpr Field_Kind Field_Kind_Kind_MIN =
static_cast<Field_Kind>(0);
inline constexpr Field_Kind Field_Kind_Kind_MAX =
static_cast<Field_Kind>(18);
inline bool Field_Kind_IsValid(int value) {
return 0 <= value && value <= 18;
}
inline constexpr int Field_Kind_Kind_ARRAYSIZE = 18 + 1;
PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Field_Kind_descriptor();
template <typename T>
const ::std::string& Field_Kind_Name(T value) {
static_assert(::std::is_same<T, Field_Kind>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to Kind_Name().");
return Field_Kind_Name(static_cast<Field_Kind>(value));
}
template <>
inline const ::std::string& Field_Kind_Name(Field_Kind value) {
return ::google::protobuf::internal::NameOfDenseEnum<Field_Kind_descriptor, 0, 18>(
static_cast<int>(value));
}
inline bool Field_Kind_Parse(
::absl::string_view name, Field_Kind* PROTOBUF_NONNULL value) {
return ::google::protobuf::internal::ParseNamedEnum<Field_Kind>(Field_Kind_descriptor(), name,
value);
}
enum Field_Cardinality : int {
Field_Cardinality_CARDINALITY_UNKNOWN = 0,
Field_Cardinality_CARDINALITY_OPTIONAL = 1,
Field_Cardinality_CARDINALITY_REQUIRED = 2,
Field_Cardinality_CARDINALITY_REPEATED = 3,
Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
PROTOBUF_EXPORT extern const uint32_t Field_Cardinality_internal_data_[];
inline constexpr Field_Cardinality Field_Cardinality_Cardinality_MIN =
static_cast<Field_Cardinality>(0);
inline constexpr Field_Cardinality Field_Cardinality_Cardinality_MAX =
static_cast<Field_Cardinality>(3);
inline bool Field_Cardinality_IsValid(int value) {
return 0 <= value && value <= 3;
}
inline constexpr int Field_Cardinality_Cardinality_ARRAYSIZE = 3 + 1;
PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Field_Cardinality_descriptor();
template <typename T>
const ::std::string& Field_Cardinality_Name(T value) {
static_assert(::std::is_same<T, Field_Cardinality>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to Cardinality_Name().");
return Field_Cardinality_Name(static_cast<Field_Cardinality>(value));
}
template <>
inline const ::std::string& Field_Cardinality_Name(Field_Cardinality value) {
return ::google::protobuf::internal::NameOfDenseEnum<Field_Cardinality_descriptor, 0, 3>(
static_cast<int>(value));
}
inline bool Field_Cardinality_Parse(
::absl::string_view name, Field_Cardinality* PROTOBUF_NONNULL value) {
return ::google::protobuf::internal::ParseNamedEnum<Field_Cardinality>(Field_Cardinality_descriptor(), name,
value);
}
enum Syntax : int {
SYNTAX_PROTO2 = 0,
SYNTAX_PROTO3 = 1,
SYNTAX_EDITIONS = 2,
Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::min(),
Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ =
::std::numeric_limits<::int32_t>::max(),
};
PROTOBUF_EXPORT extern const uint32_t Syntax_internal_data_[];
inline constexpr Syntax Syntax_MIN =
static_cast<Syntax>(0);
inline constexpr Syntax Syntax_MAX =
static_cast<Syntax>(2);
inline bool Syntax_IsValid(int value) {
return 0 <= value && value <= 2;
}
inline constexpr int Syntax_ARRAYSIZE = 2 + 1;
PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Syntax_descriptor();
template <typename T>
const ::std::string& Syntax_Name(T value) {
static_assert(::std::is_same<T, Syntax>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to Syntax_Name().");
return Syntax_Name(static_cast<Syntax>(value));
}
template <>
inline const ::std::string& Syntax_Name(Syntax value) {
return ::google::protobuf::internal::NameOfDenseEnum<Syntax_descriptor, 0, 2>(
static_cast<int>(value));
}
inline bool Syntax_Parse(
::absl::string_view name, Syntax* PROTOBUF_NONNULL value) {
return ::google::protobuf::internal::ParseNamedEnum<Syntax>(Syntax_descriptor(), name,
value);
}
// ===================================================================
// -------------------------------------------------------------------
class PROTOBUF_EXPORT Option final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.Option) */ {
public:
inline Option() : Option(nullptr) {}
~Option() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(Option* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(Option));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR Option(::google::protobuf::internal::ConstantInitialized);
inline Option(const Option& from) : Option(nullptr, from) {}
inline Option(Option&& from) noexcept
: Option(nullptr, ::std::move(from)) {}
inline Option& operator=(const Option& from) {
CopyFrom(from);
return *this;
}
inline Option& operator=(Option&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Option& default_instance() {
return *reinterpret_cast<const Option*>(
&_Option_default_instance_);
}
static constexpr int kIndexInFileMessages = 4;
friend void swap(Option& a, Option& b) { a.Swap(&b); }
inline void Swap(Option* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Option* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Option* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<Option>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Option& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Option& from) { Option::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(Option* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "google.protobuf.Option"; }
explicit Option(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
Option(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Option& from);
Option(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Option&& from) noexcept
: Option(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kNameFieldNumber = 1,
kValueFieldNumber = 2,
};
// string name = 1;
void clear_name() ;
const ::std::string& name() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_name();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_name() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_name();
public:
// .google.protobuf.Any value = 2;
bool has_value() const;
void clear_value() ;
const ::google::protobuf::Any& value() const;
[[nodiscard]] ::google::protobuf::Any* PROTOBUF_NULLABLE release_value();
::google::protobuf::Any* PROTOBUF_NONNULL mutable_value();
void set_allocated_value(::google::protobuf::Any* PROTOBUF_NULLABLE value);
void unsafe_arena_set_allocated_value(::google::protobuf::Any* PROTOBUF_NULLABLE value);
::google::protobuf::Any* PROTOBUF_NULLABLE unsafe_arena_release_value();
private:
const ::google::protobuf::Any& _internal_value() const;
::google::protobuf::Any* PROTOBUF_NONNULL _internal_mutable_value();
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Option)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<1, 2,
1, 35,
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* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const Option& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::Any* PROTOBUF_NULLABLE value_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Option_class_data_;
// -------------------------------------------------------------------
class PROTOBUF_EXPORT Field final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.Field) */ {
public:
inline Field() : Field(nullptr) {}
~Field() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(Field* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(Field));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR Field(::google::protobuf::internal::ConstantInitialized);
inline Field(const Field& from) : Field(nullptr, from) {}
inline Field(Field&& from) noexcept
: Field(nullptr, ::std::move(from)) {}
inline Field& operator=(const Field& from) {
CopyFrom(from);
return *this;
}
inline Field& operator=(Field&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Field& default_instance() {
return *reinterpret_cast<const Field*>(
&_Field_default_instance_);
}
static constexpr int kIndexInFileMessages = 1;
friend void swap(Field& a, Field& b) { a.Swap(&b); }
inline void Swap(Field* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Field* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Field* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<Field>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Field& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Field& from) { Field::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(Field* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "google.protobuf.Field"; }
explicit Field(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
Field(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Field& from);
Field(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Field&& from) noexcept
: Field(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
using Kind = Field_Kind;
static constexpr Kind TYPE_UNKNOWN = Field_Kind_TYPE_UNKNOWN;
static constexpr Kind TYPE_DOUBLE = Field_Kind_TYPE_DOUBLE;
static constexpr Kind TYPE_FLOAT = Field_Kind_TYPE_FLOAT;
static constexpr Kind TYPE_INT64 = Field_Kind_TYPE_INT64;
static constexpr Kind TYPE_UINT64 = Field_Kind_TYPE_UINT64;
static constexpr Kind TYPE_INT32 = Field_Kind_TYPE_INT32;
static constexpr Kind TYPE_FIXED64 = Field_Kind_TYPE_FIXED64;
static constexpr Kind TYPE_FIXED32 = Field_Kind_TYPE_FIXED32;
static constexpr Kind TYPE_BOOL = Field_Kind_TYPE_BOOL;
static constexpr Kind TYPE_STRING = Field_Kind_TYPE_STRING;
static constexpr Kind TYPE_GROUP = Field_Kind_TYPE_GROUP;
static constexpr Kind TYPE_MESSAGE = Field_Kind_TYPE_MESSAGE;
static constexpr Kind TYPE_BYTES = Field_Kind_TYPE_BYTES;
static constexpr Kind TYPE_UINT32 = Field_Kind_TYPE_UINT32;
static constexpr Kind TYPE_ENUM = Field_Kind_TYPE_ENUM;
static constexpr Kind TYPE_SFIXED32 = Field_Kind_TYPE_SFIXED32;
static constexpr Kind TYPE_SFIXED64 = Field_Kind_TYPE_SFIXED64;
static constexpr Kind TYPE_SINT32 = Field_Kind_TYPE_SINT32;
static constexpr Kind TYPE_SINT64 = Field_Kind_TYPE_SINT64;
static inline bool Kind_IsValid(int value) {
return Field_Kind_IsValid(value);
}
static constexpr Kind Kind_MIN = Field_Kind_Kind_MIN;
static constexpr Kind Kind_MAX = Field_Kind_Kind_MAX;
static constexpr int Kind_ARRAYSIZE = Field_Kind_Kind_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Kind_descriptor() {
return Field_Kind_descriptor();
}
template <typename T>
static inline const ::std::string& Kind_Name(T value) {
return Field_Kind_Name(value);
}
static inline bool Kind_Parse(
::absl::string_view name, Kind* PROTOBUF_NONNULL value) {
return Field_Kind_Parse(name, value);
}
using Cardinality = Field_Cardinality;
static constexpr Cardinality CARDINALITY_UNKNOWN = Field_Cardinality_CARDINALITY_UNKNOWN;
static constexpr Cardinality CARDINALITY_OPTIONAL = Field_Cardinality_CARDINALITY_OPTIONAL;
static constexpr Cardinality CARDINALITY_REQUIRED = Field_Cardinality_CARDINALITY_REQUIRED;
static constexpr Cardinality CARDINALITY_REPEATED = Field_Cardinality_CARDINALITY_REPEATED;
static inline bool Cardinality_IsValid(int value) {
return Field_Cardinality_IsValid(value);
}
static constexpr Cardinality Cardinality_MIN = Field_Cardinality_Cardinality_MIN;
static constexpr Cardinality Cardinality_MAX = Field_Cardinality_Cardinality_MAX;
static constexpr int Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Cardinality_descriptor() {
return Field_Cardinality_descriptor();
}
template <typename T>
static inline const ::std::string& Cardinality_Name(T value) {
return Field_Cardinality_Name(value);
}
static inline bool Cardinality_Parse(
::absl::string_view name, Cardinality* PROTOBUF_NONNULL value) {
return Field_Cardinality_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kOptionsFieldNumber = 9,
kNameFieldNumber = 4,
kTypeUrlFieldNumber = 6,
kJsonNameFieldNumber = 10,
kDefaultValueFieldNumber = 11,
kKindFieldNumber = 1,
kCardinalityFieldNumber = 2,
kNumberFieldNumber = 3,
kOneofIndexFieldNumber = 7,
kPackedFieldNumber = 8,
};
// repeated .google.protobuf.Option options = 9;
int options_size() const;
private:
int _internal_options_size() const;
public:
void clear_options() ;
::google::protobuf::Option* PROTOBUF_NONNULL mutable_options(int index);
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL mutable_options();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL _internal_mutable_options();
public:
const ::google::protobuf::Option& options(int index) const;
::google::protobuf::Option* PROTOBUF_NONNULL add_options();
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
// string name = 4;
void clear_name() ;
const ::std::string& name() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_name();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_name() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_name();
public:
// string type_url = 6;
void clear_type_url() ;
const ::std::string& type_url() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_type_url(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_type_url();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type_url();
void set_allocated_type_url(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_type_url() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_type_url(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_type_url();
public:
// string json_name = 10;
void clear_json_name() ;
const ::std::string& json_name() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_json_name(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_json_name();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_json_name();
void set_allocated_json_name(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_json_name() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_json_name();
public:
// string default_value = 11;
void clear_default_value() ;
const ::std::string& default_value() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_default_value(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_default_value();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_default_value();
void set_allocated_default_value(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_default_value() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_default_value();
public:
// .google.protobuf.Field.Kind kind = 1;
void clear_kind() ;
::google::protobuf::Field_Kind kind() const;
void set_kind(::google::protobuf::Field_Kind value);
private:
::google::protobuf::Field_Kind _internal_kind() const;
void _internal_set_kind(::google::protobuf::Field_Kind value);
public:
// .google.protobuf.Field.Cardinality cardinality = 2;
void clear_cardinality() ;
::google::protobuf::Field_Cardinality cardinality() const;
void set_cardinality(::google::protobuf::Field_Cardinality value);
private:
::google::protobuf::Field_Cardinality _internal_cardinality() const;
void _internal_set_cardinality(::google::protobuf::Field_Cardinality value);
public:
// int32 number = 3;
void clear_number() ;
::int32_t number() const;
void set_number(::int32_t value);
private:
::int32_t _internal_number() const;
void _internal_set_number(::int32_t value);
public:
// int32 oneof_index = 7;
void clear_oneof_index() ;
::int32_t oneof_index() const;
void set_oneof_index(::int32_t value);
private:
::int32_t _internal_oneof_index() const;
void _internal_set_oneof_index(::int32_t value);
public:
// bool packed = 8;
void clear_packed() ;
bool packed() const;
void set_packed(bool value);
private:
bool _internal_packed() const;
void _internal_set_packed(bool value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Field)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<4, 10,
1, 72,
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* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const Field& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr type_url_;
::google::protobuf::internal::ArenaStringPtr json_name_;
::google::protobuf::internal::ArenaStringPtr default_value_;
int kind_;
int cardinality_;
::int32_t number_;
::int32_t oneof_index_;
bool packed_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Field_class_data_;
// -------------------------------------------------------------------
class PROTOBUF_EXPORT EnumValue final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.EnumValue) */ {
public:
inline EnumValue() : EnumValue(nullptr) {}
~EnumValue() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(EnumValue* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(EnumValue));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR EnumValue(::google::protobuf::internal::ConstantInitialized);
inline EnumValue(const EnumValue& from) : EnumValue(nullptr, from) {}
inline EnumValue(EnumValue&& from) noexcept
: EnumValue(nullptr, ::std::move(from)) {}
inline EnumValue& operator=(const EnumValue& from) {
CopyFrom(from);
return *this;
}
inline EnumValue& operator=(EnumValue&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const EnumValue& default_instance() {
return *reinterpret_cast<const EnumValue*>(
&_EnumValue_default_instance_);
}
static constexpr int kIndexInFileMessages = 3;
friend void swap(EnumValue& a, EnumValue& b) { a.Swap(&b); }
inline void Swap(EnumValue* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(EnumValue* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
EnumValue* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<EnumValue>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const EnumValue& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const EnumValue& from) { EnumValue::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(EnumValue* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "google.protobuf.EnumValue"; }
explicit EnumValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
EnumValue(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const EnumValue& from);
EnumValue(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, EnumValue&& from) noexcept
: EnumValue(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kOptionsFieldNumber = 3,
kNameFieldNumber = 1,
kNumberFieldNumber = 2,
};
// repeated .google.protobuf.Option options = 3;
int options_size() const;
private:
int _internal_options_size() const;
public:
void clear_options() ;
::google::protobuf::Option* PROTOBUF_NONNULL mutable_options(int index);
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL mutable_options();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL _internal_mutable_options();
public:
const ::google::protobuf::Option& options(int index) const;
::google::protobuf::Option* PROTOBUF_NONNULL add_options();
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
// string name = 1;
void clear_name() ;
const ::std::string& name() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_name();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_name() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_name();
public:
// int32 number = 2;
void clear_number() ;
::int32_t number() const;
void set_number(::int32_t value);
private:
::int32_t _internal_number() const;
void _internal_set_number(::int32_t value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.EnumValue)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<2, 3,
1, 38,
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* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const EnumValue& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
::google::protobuf::internal::ArenaStringPtr name_;
::int32_t number_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull EnumValue_class_data_;
// -------------------------------------------------------------------
class PROTOBUF_EXPORT Type final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.Type) */ {
public:
inline Type() : Type(nullptr) {}
~Type() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(Type* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(Type));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR Type(::google::protobuf::internal::ConstantInitialized);
inline Type(const Type& from) : Type(nullptr, from) {}
inline Type(Type&& from) noexcept
: Type(nullptr, ::std::move(from)) {}
inline Type& operator=(const Type& from) {
CopyFrom(from);
return *this;
}
inline Type& operator=(Type&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Type& default_instance() {
return *reinterpret_cast<const Type*>(
&_Type_default_instance_);
}
static constexpr int kIndexInFileMessages = 0;
friend void swap(Type& a, Type& b) { a.Swap(&b); }
inline void Swap(Type* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Type* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Type* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<Type>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Type& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Type& from) { Type::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(Type* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "google.protobuf.Type"; }
explicit Type(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
Type(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Type& from);
Type(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Type&& from) noexcept
: Type(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kFieldsFieldNumber = 2,
kOneofsFieldNumber = 3,
kOptionsFieldNumber = 4,
kNameFieldNumber = 1,
kEditionFieldNumber = 7,
kSourceContextFieldNumber = 5,
kSyntaxFieldNumber = 6,
};
// repeated .google.protobuf.Field fields = 2;
int fields_size() const;
private:
int _internal_fields_size() const;
public:
void clear_fields() ;
::google::protobuf::Field* PROTOBUF_NONNULL mutable_fields(int index);
::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* PROTOBUF_NONNULL mutable_fields();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& _internal_fields() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* PROTOBUF_NONNULL _internal_mutable_fields();
public:
const ::google::protobuf::Field& fields(int index) const;
::google::protobuf::Field* PROTOBUF_NONNULL add_fields();
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& fields() const;
// repeated string oneofs = 3;
int oneofs_size() const;
private:
int _internal_oneofs_size() const;
public:
void clear_oneofs() ;
const ::std::string& oneofs(int index) const;
::std::string* PROTOBUF_NONNULL mutable_oneofs(int index);
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_oneofs(int index, Arg_&& value, Args_... args);
::std::string* PROTOBUF_NONNULL add_oneofs();
template <typename Arg_ = const ::std::string&, typename... Args_>
void add_oneofs(Arg_&& value, Args_... args);
const ::google::protobuf::RepeatedPtrField<::std::string>& oneofs() const;
::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL mutable_oneofs();
private:
const ::google::protobuf::RepeatedPtrField<::std::string>& _internal_oneofs() const;
::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL _internal_mutable_oneofs();
public:
// repeated .google.protobuf.Option options = 4;
int options_size() const;
private:
int _internal_options_size() const;
public:
void clear_options() ;
::google::protobuf::Option* PROTOBUF_NONNULL mutable_options(int index);
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL mutable_options();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL _internal_mutable_options();
public:
const ::google::protobuf::Option& options(int index) const;
::google::protobuf::Option* PROTOBUF_NONNULL add_options();
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
// string name = 1;
void clear_name() ;
const ::std::string& name() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_name();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_name() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_name();
public:
// string edition = 7;
void clear_edition() ;
const ::std::string& edition() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_edition(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_edition();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_edition();
void set_allocated_edition(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_edition() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_edition(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_edition();
public:
// .google.protobuf.SourceContext source_context = 5;
bool has_source_context() const;
void clear_source_context() ;
const ::google::protobuf::SourceContext& source_context() const;
[[nodiscard]] ::google::protobuf::SourceContext* PROTOBUF_NULLABLE release_source_context();
::google::protobuf::SourceContext* PROTOBUF_NONNULL mutable_source_context();
void set_allocated_source_context(::google::protobuf::SourceContext* PROTOBUF_NULLABLE value);
void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* PROTOBUF_NULLABLE value);
::google::protobuf::SourceContext* PROTOBUF_NULLABLE unsafe_arena_release_source_context();
private:
const ::google::protobuf::SourceContext& _internal_source_context() const;
::google::protobuf::SourceContext* PROTOBUF_NONNULL _internal_mutable_source_context();
public:
// .google.protobuf.Syntax syntax = 6;
void clear_syntax() ;
::google::protobuf::Syntax syntax() const;
void set_syntax(::google::protobuf::Syntax value);
private:
::google::protobuf::Syntax _internal_syntax() const;
void _internal_set_syntax(::google::protobuf::Syntax value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Type)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<3, 7,
3, 46,
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* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const Type& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > fields_;
::google::protobuf::RepeatedPtrField<::std::string> oneofs_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr edition_;
::google::protobuf::SourceContext* PROTOBUF_NULLABLE source_context_;
int syntax_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Type_class_data_;
// -------------------------------------------------------------------
class PROTOBUF_EXPORT Enum final : public ::google::protobuf::Message
/* @@protoc_insertion_point(class_definition:google.protobuf.Enum) */ {
public:
inline Enum() : Enum(nullptr) {}
~Enum() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
void operator delete(Enum* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
SharedDtor(*msg);
::google::protobuf::internal::SizedDelete(msg, sizeof(Enum));
}
#endif
template <typename = void>
explicit PROTOBUF_CONSTEXPR Enum(::google::protobuf::internal::ConstantInitialized);
inline Enum(const Enum& from) : Enum(nullptr, from) {}
inline Enum(Enum&& from) noexcept
: Enum(nullptr, ::std::move(from)) {}
inline Enum& operator=(const Enum& from) {
CopyFrom(from);
return *this;
}
inline Enum& operator=(Enum&& from) noexcept {
if (this == &from) return *this;
if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
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* PROTOBUF_NONNULL mutable_unknown_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
return GetDescriptor();
}
static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Enum& default_instance() {
return *reinterpret_cast<const Enum*>(
&_Enum_default_instance_);
}
static constexpr int kIndexInFileMessages = 2;
friend void swap(Enum& a, Enum& b) { a.Swap(&b); }
inline void Swap(Enum* PROTOBUF_NONNULL other) {
if (other == this) return;
if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
InternalSwap(other);
} else {
::google::protobuf::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Enum* PROTOBUF_NONNULL other) {
if (other == this) return;
ABSL_DCHECK(GetArena() == other->GetArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Enum* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
return ::google::protobuf::Message::DefaultConstruct<Enum>(arena);
}
using ::google::protobuf::Message::CopyFrom;
void CopyFrom(const Enum& from);
using ::google::protobuf::Message::MergeFrom;
void MergeFrom(const Enum& from) { Enum::MergeImpl(*this, from); }
private:
static void MergeImpl(::google::protobuf::MessageLite& to_msg,
const ::google::protobuf::MessageLite& from_msg);
public:
bool IsInitialized() const {
return true;
}
ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
#if defined(PROTOBUF_CUSTOM_VTABLE)
private:
static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
public:
::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
return _InternalSerialize(*this, target, stream);
}
#else // PROTOBUF_CUSTOM_VTABLE
::size_t ByteSizeLong() const final;
::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
::uint8_t* PROTOBUF_NONNULL target,
::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
#endif // PROTOBUF_CUSTOM_VTABLE
int GetCachedSize() const { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static void SharedDtor(MessageLite& self);
void InternalSwap(Enum* PROTOBUF_NONNULL other);
private:
template <typename T>
friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
static ::absl::string_view FullMessageName() { return "google.protobuf.Enum"; }
explicit Enum(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
Enum(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Enum& from);
Enum(
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Enum&& from) noexcept
: Enum(arena) {
*this = ::std::move(from);
}
const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
static void* PROTOBUF_NONNULL PlacementNew_(
const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
static constexpr auto InternalNewImpl_();
public:
static constexpr auto InternalGenerateClassData_();
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kEnumvalueFieldNumber = 2,
kOptionsFieldNumber = 3,
kNameFieldNumber = 1,
kEditionFieldNumber = 6,
kSourceContextFieldNumber = 4,
kSyntaxFieldNumber = 5,
};
// repeated .google.protobuf.EnumValue enumvalue = 2;
int enumvalue_size() const;
private:
int _internal_enumvalue_size() const;
public:
void clear_enumvalue() ;
::google::protobuf::EnumValue* PROTOBUF_NONNULL mutable_enumvalue(int index);
::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* PROTOBUF_NONNULL mutable_enumvalue();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& _internal_enumvalue() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* PROTOBUF_NONNULL _internal_mutable_enumvalue();
public:
const ::google::protobuf::EnumValue& enumvalue(int index) const;
::google::protobuf::EnumValue* PROTOBUF_NONNULL add_enumvalue();
const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& enumvalue() const;
// repeated .google.protobuf.Option options = 3;
int options_size() const;
private:
int _internal_options_size() const;
public:
void clear_options() ;
::google::protobuf::Option* PROTOBUF_NONNULL mutable_options(int index);
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL mutable_options();
private:
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL _internal_mutable_options();
public:
const ::google::protobuf::Option& options(int index) const;
::google::protobuf::Option* PROTOBUF_NONNULL add_options();
const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
// string name = 1;
void clear_name() ;
const ::std::string& name() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_name(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_name();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_name();
void set_allocated_name(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_name() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_name(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_name();
public:
// string edition = 6;
void clear_edition() ;
const ::std::string& edition() const;
template <typename Arg_ = const ::std::string&, typename... Args_>
void set_edition(Arg_&& arg, Args_... args);
::std::string* PROTOBUF_NONNULL mutable_edition();
[[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_edition();
void set_allocated_edition(::std::string* PROTOBUF_NULLABLE value);
private:
const ::std::string& _internal_edition() const;
PROTOBUF_ALWAYS_INLINE void _internal_set_edition(const ::std::string& value);
::std::string* PROTOBUF_NONNULL _internal_mutable_edition();
public:
// .google.protobuf.SourceContext source_context = 4;
bool has_source_context() const;
void clear_source_context() ;
const ::google::protobuf::SourceContext& source_context() const;
[[nodiscard]] ::google::protobuf::SourceContext* PROTOBUF_NULLABLE release_source_context();
::google::protobuf::SourceContext* PROTOBUF_NONNULL mutable_source_context();
void set_allocated_source_context(::google::protobuf::SourceContext* PROTOBUF_NULLABLE value);
void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* PROTOBUF_NULLABLE value);
::google::protobuf::SourceContext* PROTOBUF_NULLABLE unsafe_arena_release_source_context();
private:
const ::google::protobuf::SourceContext& _internal_source_context() const;
::google::protobuf::SourceContext* PROTOBUF_NONNULL _internal_mutable_source_context();
public:
// .google.protobuf.Syntax syntax = 5;
void clear_syntax() ;
::google::protobuf::Syntax syntax() const;
void set_syntax(::google::protobuf::Syntax value);
private:
::google::protobuf::Syntax _internal_syntax() const;
void _internal_set_syntax(::google::protobuf::Syntax value);
public:
// @@protoc_insertion_point(class_scope:google.protobuf.Enum)
private:
class _Internal;
friend class ::google::protobuf::internal::TcParser;
static const ::google::protobuf::internal::TcParseTable<3, 6,
3, 40,
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* PROTOBUF_NULLABLE arena);
inline explicit Impl_(
::google::protobuf::internal::InternalVisibility visibility,
::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
const Enum& from_msg);
::google::protobuf::internal::HasBits<1> _has_bits_;
::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > enumvalue_;
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
::google::protobuf::internal::ArenaStringPtr name_;
::google::protobuf::internal::ArenaStringPtr edition_;
::google::protobuf::SourceContext* PROTOBUF_NULLABLE source_context_;
int syntax_;
PROTOBUF_TSAN_DECLARE_MEMBER
};
union { Impl_ _impl_; };
friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
};
PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Enum_class_data_;
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// -------------------------------------------------------------------
// Type
// string name = 1;
inline void Type::clear_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000008U);
}
inline const ::std::string& Type::name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Type.name)
return _internal_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Type::set_name(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Type.name)
}
inline ::std::string* PROTOBUF_NONNULL Type::mutable_name()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
::std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
return _s;
}
inline const ::std::string& Type::_internal_name() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.name_.Get();
}
inline void Type::_internal_set_name(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Type::_internal_mutable_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Type::release_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Type.name)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
auto* released = _impl_.name_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.name_.Set("", GetArena());
}
return released;
}
inline void Type::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
_impl_.name_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
}
// repeated .google.protobuf.Field fields = 2;
inline int Type::_internal_fields_size() const {
return _internal_fields().size();
}
inline int Type::fields_size() const {
return _internal_fields_size();
}
inline void Type::clear_fields() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.fields_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000001U);
}
inline ::google::protobuf::Field* PROTOBUF_NONNULL Type::mutable_fields(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields)
return _internal_mutable_fields()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* PROTOBUF_NONNULL Type::mutable_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_fields();
}
inline const ::google::protobuf::Field& Type::fields(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
return _internal_fields().Get(index);
}
inline ::google::protobuf::Field* PROTOBUF_NONNULL Type::add_fields()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::Field* _add =
_internal_mutable_fields()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_add:google.protobuf.Type.fields)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& Type::fields() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.Type.fields)
return _internal_fields();
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>&
Type::_internal_fields() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.fields_;
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* PROTOBUF_NONNULL
Type::_internal_mutable_fields() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.fields_;
}
// repeated string oneofs = 3;
inline int Type::_internal_oneofs_size() const {
return _internal_oneofs().size();
}
inline int Type::oneofs_size() const {
return _internal_oneofs_size();
}
inline void Type::clear_oneofs() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.oneofs_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000002U);
}
inline ::std::string* PROTOBUF_NONNULL Type::add_oneofs()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::std::string* _s =
_internal_mutable_oneofs()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
// @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
return _s;
}
inline const ::std::string& Type::oneofs(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
return _internal_oneofs().Get(index);
}
inline ::std::string* PROTOBUF_NONNULL Type::mutable_oneofs(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
return _internal_mutable_oneofs()->Mutable(index);
}
template <typename Arg_, typename... Args_>
inline void Type::set_oneofs(int index, Arg_&& value, Args_... args) {
::google::protobuf::internal::AssignToString(*_internal_mutable_oneofs()->Mutable(index), ::std::forward<Arg_>(value),
args... );
// @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
}
template <typename Arg_, typename... Args_>
inline void Type::add_oneofs(Arg_&& value, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::internal::AddToRepeatedPtrField(
::google::protobuf::MessageLite::internal_visibility(), GetArena(),
*_internal_mutable_oneofs(), ::std::forward<Arg_>(value),
args... );
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
// @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>& Type::oneofs()
const ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
return _internal_oneofs();
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
Type::mutable_oneofs() ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_oneofs();
}
inline const ::google::protobuf::RepeatedPtrField<::std::string>&
Type::_internal_oneofs() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.oneofs_;
}
inline ::google::protobuf::RepeatedPtrField<::std::string>* PROTOBUF_NONNULL
Type::_internal_mutable_oneofs() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.oneofs_;
}
// repeated .google.protobuf.Option options = 4;
inline int Type::_internal_options_size() const {
return _internal_options().size();
}
inline int Type::options_size() const {
return _internal_options_size();
}
inline void Type::clear_options() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.options_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000004U);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL Type::mutable_options(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.options)
return _internal_mutable_options()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL Type::mutable_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_options();
}
inline const ::google::protobuf::Option& Type::options(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Type.options)
return _internal_options().Get(index);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL Type::add_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::Option* _add =
_internal_mutable_options()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000004U);
// @@protoc_insertion_point(field_add:google.protobuf.Type.options)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& Type::options() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.Type.options)
return _internal_options();
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
Type::_internal_options() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.options_;
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL
Type::_internal_mutable_options() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.options_;
}
// .google.protobuf.SourceContext source_context = 5;
inline bool Type::has_source_context() const {
bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000020U);
PROTOBUF_ASSUME(!value || _impl_.source_context_ != nullptr);
return value;
}
inline const ::google::protobuf::SourceContext& Type::_internal_source_context() const {
::google::protobuf::internal::TSanRead(&_impl_);
const ::google::protobuf::SourceContext* p = _impl_.source_context_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
}
inline const ::google::protobuf::SourceContext& Type::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
return _internal_source_context();
}
inline void Type::unsafe_arena_set_allocated_source_context(
::google::protobuf::SourceContext* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (GetArena() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.source_context)
}
inline ::google::protobuf::SourceContext* PROTOBUF_NULLABLE Type::release_source_context() {
::google::protobuf::internal::TSanWrite(&_impl_);
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
::google::protobuf::SourceContext* released = _impl_.source_context_;
_impl_.source_context_ = nullptr;
if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
if (GetArena() == nullptr) {
delete old;
}
} else {
if (GetArena() != nullptr) {
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
}
}
return released;
}
inline ::google::protobuf::SourceContext* PROTOBUF_NULLABLE Type::unsafe_arena_release_source_context() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
::google::protobuf::SourceContext* temp = _impl_.source_context_;
_impl_.source_context_ = nullptr;
return temp;
}
inline ::google::protobuf::SourceContext* PROTOBUF_NONNULL Type::_internal_mutable_source_context() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.source_context_ == nullptr) {
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
}
return _impl_.source_context_;
}
inline ::google::protobuf::SourceContext* PROTOBUF_NONNULL Type::mutable_source_context()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
::google::protobuf::SourceContext* _msg = _internal_mutable_source_context();
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
return _msg;
}
inline void Type::set_allocated_source_context(::google::protobuf::SourceContext* PROTOBUF_NULLABLE value) {
::google::protobuf::Arena* message_arena = GetArena();
::google::protobuf::internal::TSanWrite(&_impl_);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
if (value != nullptr) {
::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
if (message_arena != submessage_arena) {
value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
}
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000020U);
}
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_context)
}
// .google.protobuf.Syntax syntax = 6;
inline void Type::clear_syntax() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.syntax_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000040U);
}
inline ::google::protobuf::Syntax Type::syntax() const {
// @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
return _internal_syntax();
}
inline void Type::set_syntax(::google::protobuf::Syntax value) {
_internal_set_syntax(value);
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
// @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
}
inline ::google::protobuf::Syntax Type::_internal_syntax() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
}
inline void Type::_internal_set_syntax(::google::protobuf::Syntax value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.syntax_ = value;
}
// string edition = 7;
inline void Type::clear_edition() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.edition_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000010U);
}
inline const ::std::string& Type::edition() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Type.edition)
return _internal_edition();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Type::set_edition(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
_impl_.edition_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Type.edition)
}
inline ::std::string* PROTOBUF_NONNULL Type::mutable_edition()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
::std::string* _s = _internal_mutable_edition();
// @@protoc_insertion_point(field_mutable:google.protobuf.Type.edition)
return _s;
}
inline const ::std::string& Type::_internal_edition() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.edition_.Get();
}
inline void Type::_internal_set_edition(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.edition_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Type::_internal_mutable_edition() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.edition_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Type::release_edition() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Type.edition)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
auto* released = _impl_.edition_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.edition_.Set("", GetArena());
}
return released;
}
inline void Type::set_allocated_edition(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
_impl_.edition_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.edition_.IsDefault()) {
_impl_.edition_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.edition)
}
// -------------------------------------------------------------------
// Field
// .google.protobuf.Field.Kind kind = 1;
inline void Field::clear_kind() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.kind_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000020U);
}
inline ::google::protobuf::Field_Kind Field::kind() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
return _internal_kind();
}
inline void Field::set_kind(::google::protobuf::Field_Kind value) {
_internal_set_kind(value);
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
// @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
}
inline ::google::protobuf::Field_Kind Field::_internal_kind() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::google::protobuf::Field_Kind>(_impl_.kind_);
}
inline void Field::_internal_set_kind(::google::protobuf::Field_Kind value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.kind_ = value;
}
// .google.protobuf.Field.Cardinality cardinality = 2;
inline void Field::clear_cardinality() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.cardinality_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000040U);
}
inline ::google::protobuf::Field_Cardinality Field::cardinality() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
return _internal_cardinality();
}
inline void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
_internal_set_cardinality(value);
SetHasBit(_impl_._has_bits_[0], 0x00000040U);
// @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
}
inline ::google::protobuf::Field_Cardinality Field::_internal_cardinality() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::google::protobuf::Field_Cardinality>(_impl_.cardinality_);
}
inline void Field::_internal_set_cardinality(::google::protobuf::Field_Cardinality value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.cardinality_ = value;
}
// int32 number = 3;
inline void Field::clear_number() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.number_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000080U);
}
inline ::int32_t Field::number() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.number)
return _internal_number();
}
inline void Field::set_number(::int32_t value) {
_internal_set_number(value);
SetHasBit(_impl_._has_bits_[0], 0x00000080U);
// @@protoc_insertion_point(field_set:google.protobuf.Field.number)
}
inline ::int32_t Field::_internal_number() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.number_;
}
inline void Field::_internal_set_number(::int32_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.number_ = value;
}
// string name = 4;
inline void Field::clear_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000002U);
}
inline const ::std::string& Field::name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Field.name)
return _internal_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Field::set_name(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Field.name)
}
inline ::std::string* PROTOBUF_NONNULL Field::mutable_name()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
::std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
return _s;
}
inline const ::std::string& Field::_internal_name() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.name_.Get();
}
inline void Field::_internal_set_name(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Field::_internal_mutable_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Field::release_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Field.name)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
auto* released = _impl_.name_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.name_.Set("", GetArena());
}
return released;
}
inline void Field::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
_impl_.name_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
}
// string type_url = 6;
inline void Field::clear_type_url() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.type_url_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000004U);
}
inline const ::std::string& Field::type_url() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
return _internal_type_url();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Field::set_type_url(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
_impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
}
inline ::std::string* PROTOBUF_NONNULL Field::mutable_type_url()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
::std::string* _s = _internal_mutable_type_url();
// @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
return _s;
}
inline const ::std::string& Field::_internal_type_url() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.type_url_.Get();
}
inline void Field::_internal_set_type_url(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.type_url_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Field::_internal_mutable_type_url() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.type_url_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Field::release_type_url() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
auto* released = _impl_.type_url_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.type_url_.Set("", GetArena());
}
return released;
}
inline void Field::set_allocated_type_url(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
_impl_.type_url_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_url_.IsDefault()) {
_impl_.type_url_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url)
}
// int32 oneof_index = 7;
inline void Field::clear_oneof_index() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.oneof_index_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000100U);
}
inline ::int32_t Field::oneof_index() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
return _internal_oneof_index();
}
inline void Field::set_oneof_index(::int32_t value) {
_internal_set_oneof_index(value);
SetHasBit(_impl_._has_bits_[0], 0x00000100U);
// @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
}
inline ::int32_t Field::_internal_oneof_index() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.oneof_index_;
}
inline void Field::_internal_set_oneof_index(::int32_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.oneof_index_ = value;
}
// bool packed = 8;
inline void Field::clear_packed() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.packed_ = false;
ClearHasBit(_impl_._has_bits_[0],
0x00000200U);
}
inline bool Field::packed() const {
// @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
return _internal_packed();
}
inline void Field::set_packed(bool value) {
_internal_set_packed(value);
SetHasBit(_impl_._has_bits_[0], 0x00000200U);
// @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
}
inline bool Field::_internal_packed() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.packed_;
}
inline void Field::_internal_set_packed(bool value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.packed_ = value;
}
// repeated .google.protobuf.Option options = 9;
inline int Field::_internal_options_size() const {
return _internal_options().size();
}
inline int Field::options_size() const {
return _internal_options_size();
}
inline void Field::clear_options() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.options_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000001U);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL Field::mutable_options(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.Field.options)
return _internal_mutable_options()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL Field::mutable_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_options();
}
inline const ::google::protobuf::Option& Field::options(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Field.options)
return _internal_options().Get(index);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL Field::add_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::Option* _add =
_internal_mutable_options()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_add:google.protobuf.Field.options)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& Field::options() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.Field.options)
return _internal_options();
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
Field::_internal_options() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.options_;
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL
Field::_internal_mutable_options() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.options_;
}
// string json_name = 10;
inline void Field::clear_json_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.json_name_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000008U);
}
inline const ::std::string& Field::json_name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
return _internal_json_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Field::set_json_name(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
_impl_.json_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
}
inline ::std::string* PROTOBUF_NONNULL Field::mutable_json_name()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
::std::string* _s = _internal_mutable_json_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
return _s;
}
inline const ::std::string& Field::_internal_json_name() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.json_name_.Get();
}
inline void Field::_internal_set_json_name(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.json_name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Field::_internal_mutable_json_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.json_name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Field::release_json_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
auto* released = _impl_.json_name_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.json_name_.Set("", GetArena());
}
return released;
}
inline void Field::set_allocated_json_name(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
_impl_.json_name_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.json_name_.IsDefault()) {
_impl_.json_name_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name)
}
// string default_value = 11;
inline void Field::clear_default_value() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.default_value_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000010U);
}
inline const ::std::string& Field::default_value() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
return _internal_default_value();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Field::set_default_value(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
_impl_.default_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
}
inline ::std::string* PROTOBUF_NONNULL Field::mutable_default_value()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
::std::string* _s = _internal_mutable_default_value();
// @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
return _s;
}
inline const ::std::string& Field::_internal_default_value() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.default_value_.Get();
}
inline void Field::_internal_set_default_value(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.default_value_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Field::_internal_mutable_default_value() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.default_value_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Field::release_default_value() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000010U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
auto* released = _impl_.default_value_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.default_value_.Set("", GetArena());
}
return released;
}
inline void Field::set_allocated_default_value(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
_impl_.default_value_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.default_value_.IsDefault()) {
_impl_.default_value_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value)
}
// -------------------------------------------------------------------
// Enum
// string name = 1;
inline void Enum::clear_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000004U);
}
inline const ::std::string& Enum::name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
return _internal_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Enum::set_name(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
}
inline ::std::string* PROTOBUF_NONNULL Enum::mutable_name()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
::std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
return _s;
}
inline const ::std::string& Enum::_internal_name() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.name_.Get();
}
inline void Enum::_internal_set_name(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Enum::_internal_mutable_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Enum::release_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000004U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
auto* released = _impl_.name_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.name_.Set("", GetArena());
}
return released;
}
inline void Enum::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000004U);
}
_impl_.name_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
}
// repeated .google.protobuf.EnumValue enumvalue = 2;
inline int Enum::_internal_enumvalue_size() const {
return _internal_enumvalue().size();
}
inline int Enum::enumvalue_size() const {
return _internal_enumvalue_size();
}
inline void Enum::clear_enumvalue() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.enumvalue_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000001U);
}
inline ::google::protobuf::EnumValue* PROTOBUF_NONNULL Enum::mutable_enumvalue(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue)
return _internal_mutable_enumvalue()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* PROTOBUF_NONNULL Enum::mutable_enumvalue()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_enumvalue();
}
inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
return _internal_enumvalue().Get(index);
}
inline ::google::protobuf::EnumValue* PROTOBUF_NONNULL Enum::add_enumvalue()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::EnumValue* _add =
_internal_mutable_enumvalue()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& Enum::enumvalue() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue)
return _internal_enumvalue();
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>&
Enum::_internal_enumvalue() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.enumvalue_;
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* PROTOBUF_NONNULL
Enum::_internal_mutable_enumvalue() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.enumvalue_;
}
// repeated .google.protobuf.Option options = 3;
inline int Enum::_internal_options_size() const {
return _internal_options().size();
}
inline int Enum::options_size() const {
return _internal_options_size();
}
inline void Enum::clear_options() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.options_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000002U);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL Enum::mutable_options(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options)
return _internal_mutable_options()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL Enum::mutable_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_options();
}
inline const ::google::protobuf::Option& Enum::options(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.options)
return _internal_options().Get(index);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL Enum::add_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::Option* _add =
_internal_mutable_options()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000002U);
// @@protoc_insertion_point(field_add:google.protobuf.Enum.options)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& Enum::options() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
return _internal_options();
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
Enum::_internal_options() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.options_;
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL
Enum::_internal_mutable_options() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.options_;
}
// .google.protobuf.SourceContext source_context = 4;
inline bool Enum::has_source_context() const {
bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000010U);
PROTOBUF_ASSUME(!value || _impl_.source_context_ != nullptr);
return value;
}
inline const ::google::protobuf::SourceContext& Enum::_internal_source_context() const {
::google::protobuf::internal::TSanRead(&_impl_);
const ::google::protobuf::SourceContext* p = _impl_.source_context_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
}
inline const ::google::protobuf::SourceContext& Enum::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
return _internal_source_context();
}
inline void Enum::unsafe_arena_set_allocated_source_context(
::google::protobuf::SourceContext* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (GetArena() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.source_context)
}
inline ::google::protobuf::SourceContext* PROTOBUF_NULLABLE Enum::release_source_context() {
::google::protobuf::internal::TSanWrite(&_impl_);
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
::google::protobuf::SourceContext* released = _impl_.source_context_;
_impl_.source_context_ = nullptr;
if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
if (GetArena() == nullptr) {
delete old;
}
} else {
if (GetArena() != nullptr) {
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
}
}
return released;
}
inline ::google::protobuf::SourceContext* PROTOBUF_NULLABLE Enum::unsafe_arena_release_source_context() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
::google::protobuf::SourceContext* temp = _impl_.source_context_;
_impl_.source_context_ = nullptr;
return temp;
}
inline ::google::protobuf::SourceContext* PROTOBUF_NONNULL Enum::_internal_mutable_source_context() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.source_context_ == nullptr) {
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
}
return _impl_.source_context_;
}
inline ::google::protobuf::SourceContext* PROTOBUF_NONNULL Enum::mutable_source_context()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
::google::protobuf::SourceContext* _msg = _internal_mutable_source_context();
// @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
return _msg;
}
inline void Enum::set_allocated_source_context(::google::protobuf::SourceContext* PROTOBUF_NULLABLE value) {
::google::protobuf::Arena* message_arena = GetArena();
::google::protobuf::internal::TSanWrite(&_impl_);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
}
if (value != nullptr) {
::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
if (message_arena != submessage_arena) {
value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
}
SetHasBit(_impl_._has_bits_[0], 0x00000010U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000010U);
}
_impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_context)
}
// .google.protobuf.Syntax syntax = 5;
inline void Enum::clear_syntax() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.syntax_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000020U);
}
inline ::google::protobuf::Syntax Enum::syntax() const {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
return _internal_syntax();
}
inline void Enum::set_syntax(::google::protobuf::Syntax value) {
_internal_set_syntax(value);
SetHasBit(_impl_._has_bits_[0], 0x00000020U);
// @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
}
inline ::google::protobuf::Syntax Enum::_internal_syntax() const {
::google::protobuf::internal::TSanRead(&_impl_);
return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
}
inline void Enum::_internal_set_syntax(::google::protobuf::Syntax value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.syntax_ = value;
}
// string edition = 6;
inline void Enum::clear_edition() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.edition_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000008U);
}
inline const ::std::string& Enum::edition() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Enum.edition)
return _internal_edition();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Enum::set_edition(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
_impl_.edition_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Enum.edition)
}
inline ::std::string* PROTOBUF_NONNULL Enum::mutable_edition()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
::std::string* _s = _internal_mutable_edition();
// @@protoc_insertion_point(field_mutable:google.protobuf.Enum.edition)
return _s;
}
inline const ::std::string& Enum::_internal_edition() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.edition_.Get();
}
inline void Enum::_internal_set_edition(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.edition_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Enum::_internal_mutable_edition() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.edition_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Enum::release_edition() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Enum.edition)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000008U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
auto* released = _impl_.edition_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.edition_.Set("", GetArena());
}
return released;
}
inline void Enum::set_allocated_edition(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000008U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000008U);
}
_impl_.edition_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.edition_.IsDefault()) {
_impl_.edition_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.edition)
}
// -------------------------------------------------------------------
// EnumValue
// string name = 1;
inline void EnumValue::clear_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000002U);
}
inline const ::std::string& EnumValue::name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
return _internal_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void EnumValue::set_name(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
}
inline ::std::string* PROTOBUF_NONNULL EnumValue::mutable_name()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
::std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
return _s;
}
inline const ::std::string& EnumValue::_internal_name() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.name_.Get();
}
inline void EnumValue::_internal_set_name(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL EnumValue::_internal_mutable_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE EnumValue::release_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000002U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
auto* released = _impl_.name_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.name_.Set("", GetArena());
}
return released;
}
inline void EnumValue::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
_impl_.name_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name)
}
// int32 number = 2;
inline void EnumValue::clear_number() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.number_ = 0;
ClearHasBit(_impl_._has_bits_[0],
0x00000004U);
}
inline ::int32_t EnumValue::number() const {
// @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
return _internal_number();
}
inline void EnumValue::set_number(::int32_t value) {
_internal_set_number(value);
SetHasBit(_impl_._has_bits_[0], 0x00000004U);
// @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
}
inline ::int32_t EnumValue::_internal_number() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.number_;
}
inline void EnumValue::_internal_set_number(::int32_t value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.number_ = value;
}
// repeated .google.protobuf.Option options = 3;
inline int EnumValue::_internal_options_size() const {
return _internal_options().size();
}
inline int EnumValue::options_size() const {
return _internal_options_size();
}
inline void EnumValue::clear_options() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.options_.Clear();
ClearHasBitForRepeated(_impl_._has_bits_[0],
0x00000001U);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL EnumValue::mutable_options(int index)
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options)
return _internal_mutable_options()->Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL EnumValue::mutable_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options)
::google::protobuf::internal::TSanWrite(&_impl_);
return _internal_mutable_options();
}
inline const ::google::protobuf::Option& EnumValue::options(int index) const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options)
return _internal_options().Get(index);
}
inline ::google::protobuf::Option* PROTOBUF_NONNULL EnumValue::add_options()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
::google::protobuf::internal::TSanWrite(&_impl_);
::google::protobuf::Option* _add =
_internal_mutable_options()->InternalAddWithArena(
::google::protobuf::MessageLite::internal_visibility(), GetArena());
SetHasBitForRepeated(_impl_._has_bits_[0], 0x00000001U);
// @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options)
return _add;
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& EnumValue::options() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
return _internal_options();
}
inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
EnumValue::_internal_options() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.options_;
}
inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* PROTOBUF_NONNULL
EnumValue::_internal_mutable_options() {
::google::protobuf::internal::TSanRead(&_impl_);
return &_impl_.options_;
}
// -------------------------------------------------------------------
// Option
// string name = 1;
inline void Option::clear_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.ClearToEmpty();
ClearHasBit(_impl_._has_bits_[0],
0x00000001U);
}
inline const ::std::string& Option::name() const
ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Option.name)
return _internal_name();
}
template <typename Arg_, typename... Args_>
PROTOBUF_ALWAYS_INLINE void Option::set_name(Arg_&& arg, Args_... args) {
::google::protobuf::internal::TSanWrite(&_impl_);
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
_impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
// @@protoc_insertion_point(field_set:google.protobuf.Option.name)
}
inline ::std::string* PROTOBUF_NONNULL Option::mutable_name()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
::std::string* _s = _internal_mutable_name();
// @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
return _s;
}
inline const ::std::string& Option::_internal_name() const {
::google::protobuf::internal::TSanRead(&_impl_);
return _impl_.name_.Get();
}
inline void Option::_internal_set_name(const ::std::string& value) {
::google::protobuf::internal::TSanWrite(&_impl_);
_impl_.name_.Set(value, GetArena());
}
inline ::std::string* PROTOBUF_NONNULL Option::_internal_mutable_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
return _impl_.name_.Mutable( GetArena());
}
inline ::std::string* PROTOBUF_NULLABLE Option::release_name() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Option.name)
if (!CheckHasBit(_impl_._has_bits_[0], 0x00000001U)) {
return nullptr;
}
ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
auto* released = _impl_.name_.Release();
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
_impl_.name_.Set("", GetArena());
}
return released;
}
inline void Option::set_allocated_name(::std::string* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000001U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000001U);
}
_impl_.name_.SetAllocated(value, GetArena());
if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.name_.IsDefault()) {
_impl_.name_.Set("", GetArena());
}
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
}
// .google.protobuf.Any value = 2;
inline bool Option::has_value() const {
bool value = CheckHasBit(_impl_._has_bits_[0], 0x00000002U);
PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr);
return value;
}
inline const ::google::protobuf::Any& Option::_internal_value() const {
::google::protobuf::internal::TSanRead(&_impl_);
const ::google::protobuf::Any* p = _impl_.value_;
return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_);
}
inline const ::google::protobuf::Any& Option::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
// @@protoc_insertion_point(field_get:google.protobuf.Option.value)
return _internal_value();
}
inline void Option::unsafe_arena_set_allocated_value(
::google::protobuf::Any* PROTOBUF_NULLABLE value) {
::google::protobuf::internal::TSanWrite(&_impl_);
if (GetArena() == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
}
_impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(value);
if (value != nullptr) {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.value)
}
inline ::google::protobuf::Any* PROTOBUF_NULLABLE Option::release_value() {
::google::protobuf::internal::TSanWrite(&_impl_);
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
::google::protobuf::Any* released = _impl_.value_;
_impl_.value_ = nullptr;
if (::google::protobuf::internal::DebugHardenForceCopyInRelease()) {
auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
if (GetArena() == nullptr) {
delete old;
}
} else {
if (GetArena() != nullptr) {
released = ::google::protobuf::internal::DuplicateIfNonNull(released);
}
}
return released;
}
inline ::google::protobuf::Any* PROTOBUF_NULLABLE Option::unsafe_arena_release_value() {
::google::protobuf::internal::TSanWrite(&_impl_);
// @@protoc_insertion_point(field_release:google.protobuf.Option.value)
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
::google::protobuf::Any* temp = _impl_.value_;
_impl_.value_ = nullptr;
return temp;
}
inline ::google::protobuf::Any* PROTOBUF_NONNULL Option::_internal_mutable_value() {
::google::protobuf::internal::TSanWrite(&_impl_);
if (_impl_.value_ == nullptr) {
auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena());
_impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(p);
}
return _impl_.value_;
}
inline ::google::protobuf::Any* PROTOBUF_NONNULL Option::mutable_value()
ABSL_ATTRIBUTE_LIFETIME_BOUND {
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
::google::protobuf::Any* _msg = _internal_mutable_value();
// @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
return _msg;
}
inline void Option::set_allocated_value(::google::protobuf::Any* PROTOBUF_NULLABLE value) {
::google::protobuf::Arena* message_arena = GetArena();
::google::protobuf::internal::TSanWrite(&_impl_);
if (message_arena == nullptr) {
delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
}
if (value != nullptr) {
::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::Message*>(value)->GetArena();
if (message_arena != submessage_arena) {
value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
}
SetHasBit(_impl_._has_bits_[0], 0x00000002U);
} else {
ClearHasBit(_impl_._has_bits_[0], 0x00000002U);
}
_impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(value);
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// @@protoc_insertion_point(namespace_scope)
} // namespace protobuf
} // namespace google
namespace google {
namespace protobuf {
template <>
struct is_proto_enum<::google::protobuf::Field_Kind> : std::true_type {};
template <>
inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::google::protobuf::Field_Kind>() {
return ::google::protobuf::Field_Kind_descriptor();
}
template <>
struct is_proto_enum<::google::protobuf::Field_Cardinality> : std::true_type {};
template <>
inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::google::protobuf::Field_Cardinality>() {
return ::google::protobuf::Field_Cardinality_descriptor();
}
template <>
struct is_proto_enum<::google::protobuf::Syntax> : std::true_type {};
template <>
inline const EnumDescriptor* PROTOBUF_NONNULL GetEnumDescriptor<::google::protobuf::Syntax>() {
return ::google::protobuf::Syntax_descriptor();
}
} // namespace protobuf
} // namespace google
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
#endif // google_2fprotobuf_2ftype_2eproto_2epb_2eh