File indexing completed on 2025-01-31 10:12:28
0001
0002
0003
0004
0005
0006 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto_2epb_2eh
0007 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto_2epb_2eh
0008
0009 #include <limits>
0010 #include <string>
0011 #include <type_traits>
0012 #include <utility>
0013
0014 #include "google/protobuf/runtime_version.h"
0015 #if PROTOBUF_VERSION != 5028002
0016 #error "Protobuf C++ gencode is built with an incompatible version of"
0017 #error "Protobuf C++ headers/runtime. See"
0018 #error "https://protobuf.dev/support/cross-version-runtime-guarantee/#cpp"
0019 #endif
0020 #include "google/protobuf/io/coded_stream.h"
0021 #include "google/protobuf/arena.h"
0022 #include "google/protobuf/arenastring.h"
0023 #include "google/protobuf/generated_message_tctable_decl.h"
0024 #include "google/protobuf/generated_message_util.h"
0025 #include "google/protobuf/metadata_lite.h"
0026 #include "google/protobuf/generated_message_reflection.h"
0027 #include "google/protobuf/message.h"
0028 #include "google/protobuf/repeated_field.h" // IWYU pragma: export
0029 #include "google/protobuf/extension_set.h" // IWYU pragma: export
0030 #include "google/protobuf/generated_enum_reflection.h"
0031 #include "google/protobuf/unknown_field_set.h"
0032 #include "google/protobuf/any.pb.h"
0033 #include "google/protobuf/source_context.pb.h"
0034
0035
0036
0037 #include "google/protobuf/port_def.inc"
0038
0039 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto PROTOBUF_EXPORT
0040
0041 namespace google {
0042 namespace protobuf {
0043 namespace internal {
0044 class AnyMetadata;
0045 }
0046 }
0047 }
0048
0049
0050 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftype_2eproto {
0051 static const ::uint32_t offsets[];
0052 };
0053 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable
0054 descriptor_table_google_2fprotobuf_2ftype_2eproto;
0055 namespace google {
0056 namespace protobuf {
0057 class Enum;
0058 struct EnumDefaultTypeInternal;
0059 PROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_;
0060 class EnumValue;
0061 struct EnumValueDefaultTypeInternal;
0062 PROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instance_;
0063 class Field;
0064 struct FieldDefaultTypeInternal;
0065 PROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_;
0066 class Option;
0067 struct OptionDefaultTypeInternal;
0068 PROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_;
0069 class Type;
0070 struct TypeDefaultTypeInternal;
0071 PROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_;
0072 }
0073 }
0074
0075 namespace google {
0076 namespace protobuf {
0077 enum Field_Kind : int {
0078 Field_Kind_TYPE_UNKNOWN = 0,
0079 Field_Kind_TYPE_DOUBLE = 1,
0080 Field_Kind_TYPE_FLOAT = 2,
0081 Field_Kind_TYPE_INT64 = 3,
0082 Field_Kind_TYPE_UINT64 = 4,
0083 Field_Kind_TYPE_INT32 = 5,
0084 Field_Kind_TYPE_FIXED64 = 6,
0085 Field_Kind_TYPE_FIXED32 = 7,
0086 Field_Kind_TYPE_BOOL = 8,
0087 Field_Kind_TYPE_STRING = 9,
0088 Field_Kind_TYPE_GROUP = 10,
0089 Field_Kind_TYPE_MESSAGE = 11,
0090 Field_Kind_TYPE_BYTES = 12,
0091 Field_Kind_TYPE_UINT32 = 13,
0092 Field_Kind_TYPE_ENUM = 14,
0093 Field_Kind_TYPE_SFIXED32 = 15,
0094 Field_Kind_TYPE_SFIXED64 = 16,
0095 Field_Kind_TYPE_SINT32 = 17,
0096 Field_Kind_TYPE_SINT64 = 18,
0097 Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ =
0098 std::numeric_limits<::int32_t>::min(),
0099 Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ =
0100 std::numeric_limits<::int32_t>::max(),
0101 };
0102
0103 PROTOBUF_EXPORT bool Field_Kind_IsValid(int value);
0104 PROTOBUF_EXPORT extern const uint32_t Field_Kind_internal_data_[];
0105 constexpr Field_Kind Field_Kind_Kind_MIN = static_cast<Field_Kind>(0);
0106 constexpr Field_Kind Field_Kind_Kind_MAX = static_cast<Field_Kind>(18);
0107 constexpr int Field_Kind_Kind_ARRAYSIZE = 18 + 1;
0108 PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor*
0109 Field_Kind_descriptor();
0110 template <typename T>
0111 const std::string& Field_Kind_Name(T value) {
0112 static_assert(std::is_same<T, Field_Kind>::value ||
0113 std::is_integral<T>::value,
0114 "Incorrect type passed to Kind_Name().");
0115 return Field_Kind_Name(static_cast<Field_Kind>(value));
0116 }
0117 template <>
0118 inline const std::string& Field_Kind_Name(Field_Kind value) {
0119 return ::google::protobuf::internal::NameOfDenseEnum<Field_Kind_descriptor,
0120 0, 18>(
0121 static_cast<int>(value));
0122 }
0123 inline bool Field_Kind_Parse(absl::string_view name, Field_Kind* value) {
0124 return ::google::protobuf::internal::ParseNamedEnum<Field_Kind>(
0125 Field_Kind_descriptor(), name, value);
0126 }
0127 enum Field_Cardinality : int {
0128 Field_Cardinality_CARDINALITY_UNKNOWN = 0,
0129 Field_Cardinality_CARDINALITY_OPTIONAL = 1,
0130 Field_Cardinality_CARDINALITY_REQUIRED = 2,
0131 Field_Cardinality_CARDINALITY_REPEATED = 3,
0132 Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ =
0133 std::numeric_limits<::int32_t>::min(),
0134 Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ =
0135 std::numeric_limits<::int32_t>::max(),
0136 };
0137
0138 PROTOBUF_EXPORT bool Field_Cardinality_IsValid(int value);
0139 PROTOBUF_EXPORT extern const uint32_t Field_Cardinality_internal_data_[];
0140 constexpr Field_Cardinality Field_Cardinality_Cardinality_MIN = static_cast<Field_Cardinality>(0);
0141 constexpr Field_Cardinality Field_Cardinality_Cardinality_MAX = static_cast<Field_Cardinality>(3);
0142 constexpr int Field_Cardinality_Cardinality_ARRAYSIZE = 3 + 1;
0143 PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor*
0144 Field_Cardinality_descriptor();
0145 template <typename T>
0146 const std::string& Field_Cardinality_Name(T value) {
0147 static_assert(std::is_same<T, Field_Cardinality>::value ||
0148 std::is_integral<T>::value,
0149 "Incorrect type passed to Cardinality_Name().");
0150 return Field_Cardinality_Name(static_cast<Field_Cardinality>(value));
0151 }
0152 template <>
0153 inline const std::string& Field_Cardinality_Name(Field_Cardinality value) {
0154 return ::google::protobuf::internal::NameOfDenseEnum<Field_Cardinality_descriptor,
0155 0, 3>(
0156 static_cast<int>(value));
0157 }
0158 inline bool Field_Cardinality_Parse(absl::string_view name, Field_Cardinality* value) {
0159 return ::google::protobuf::internal::ParseNamedEnum<Field_Cardinality>(
0160 Field_Cardinality_descriptor(), name, value);
0161 }
0162 enum Syntax : int {
0163 SYNTAX_PROTO2 = 0,
0164 SYNTAX_PROTO3 = 1,
0165 SYNTAX_EDITIONS = 2,
0166 Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ =
0167 std::numeric_limits<::int32_t>::min(),
0168 Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ =
0169 std::numeric_limits<::int32_t>::max(),
0170 };
0171
0172 PROTOBUF_EXPORT bool Syntax_IsValid(int value);
0173 PROTOBUF_EXPORT extern const uint32_t Syntax_internal_data_[];
0174 constexpr Syntax Syntax_MIN = static_cast<Syntax>(0);
0175 constexpr Syntax Syntax_MAX = static_cast<Syntax>(2);
0176 constexpr int Syntax_ARRAYSIZE = 2 + 1;
0177 PROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor*
0178 Syntax_descriptor();
0179 template <typename T>
0180 const std::string& Syntax_Name(T value) {
0181 static_assert(std::is_same<T, Syntax>::value ||
0182 std::is_integral<T>::value,
0183 "Incorrect type passed to Syntax_Name().");
0184 return Syntax_Name(static_cast<Syntax>(value));
0185 }
0186 template <>
0187 inline const std::string& Syntax_Name(Syntax value) {
0188 return ::google::protobuf::internal::NameOfDenseEnum<Syntax_descriptor,
0189 0, 2>(
0190 static_cast<int>(value));
0191 }
0192 inline bool Syntax_Parse(absl::string_view name, Syntax* value) {
0193 return ::google::protobuf::internal::ParseNamedEnum<Syntax>(
0194 Syntax_descriptor(), name, value);
0195 }
0196
0197
0198
0199
0200
0201
0202 class PROTOBUF_EXPORT Option final : public ::google::protobuf::Message
0203 {
0204 public:
0205 inline Option() : Option(nullptr) {}
0206 ~Option() PROTOBUF_FINAL;
0207 template <typename = void>
0208 explicit PROTOBUF_CONSTEXPR Option(
0209 ::google::protobuf::internal::ConstantInitialized);
0210
0211 inline Option(const Option& from) : Option(nullptr, from) {}
0212 inline Option(Option&& from) noexcept
0213 : Option(nullptr, std::move(from)) {}
0214 inline Option& operator=(const Option& from) {
0215 CopyFrom(from);
0216 return *this;
0217 }
0218 inline Option& operator=(Option&& from) noexcept {
0219 if (this == &from) return *this;
0220 if (GetArena() == from.GetArena()
0221 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
0222 && GetArena() != nullptr
0223 #endif
0224 ) {
0225 InternalSwap(&from);
0226 } else {
0227 CopyFrom(from);
0228 }
0229 return *this;
0230 }
0231
0232 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0233 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0234 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0235 }
0236 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
0237 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0238 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0239 }
0240
0241 static const ::google::protobuf::Descriptor* descriptor() {
0242 return GetDescriptor();
0243 }
0244 static const ::google::protobuf::Descriptor* GetDescriptor() {
0245 return default_instance().GetMetadata().descriptor;
0246 }
0247 static const ::google::protobuf::Reflection* GetReflection() {
0248 return default_instance().GetMetadata().reflection;
0249 }
0250 static const Option& default_instance() {
0251 return *internal_default_instance();
0252 }
0253 static inline const Option* internal_default_instance() {
0254 return reinterpret_cast<const Option*>(
0255 &_Option_default_instance_);
0256 }
0257 static constexpr int kIndexInFileMessages = 4;
0258 friend void swap(Option& a, Option& b) { a.Swap(&b); }
0259 inline void Swap(Option* other) {
0260 if (other == this) return;
0261 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0262 if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0263 #else
0264 if (GetArena() == other->GetArena()) {
0265 #endif
0266 InternalSwap(other);
0267 } else {
0268 ::google::protobuf::internal::GenericSwap(this, other);
0269 }
0270 }
0271 void UnsafeArenaSwap(Option* other) {
0272 if (other == this) return;
0273 ABSL_DCHECK(GetArena() == other->GetArena());
0274 InternalSwap(other);
0275 }
0276
0277
0278
0279 Option* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0280 return ::google::protobuf::Message::DefaultConstruct<Option>(arena);
0281 }
0282 using ::google::protobuf::Message::CopyFrom;
0283 void CopyFrom(const Option& from);
0284 using ::google::protobuf::Message::MergeFrom;
0285 void MergeFrom(const Option& from) { Option::MergeImpl(*this, from); }
0286
0287 private:
0288 static void MergeImpl(
0289 ::google::protobuf::MessageLite& to_msg,
0290 const ::google::protobuf::MessageLite& from_msg);
0291
0292 public:
0293 bool IsInitialized() const {
0294 return true;
0295 }
0296 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0297 #if defined(PROTOBUF_CUSTOM_VTABLE)
0298 private:
0299 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0300 static ::uint8_t* _InternalSerialize(
0301 const MessageLite& msg, ::uint8_t* target,
0302 ::google::protobuf::io::EpsCopyOutputStream* stream);
0303
0304 public:
0305 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0306 ::uint8_t* _InternalSerialize(
0307 ::uint8_t* target,
0308 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
0309 return _InternalSerialize(*this, target, stream);
0310 }
0311 #else
0312 ::size_t ByteSizeLong() const final;
0313 ::uint8_t* _InternalSerialize(
0314 ::uint8_t* target,
0315 ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0316 #endif
0317 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0318
0319 private:
0320 void SharedCtor(::google::protobuf::Arena* arena);
0321 void SharedDtor();
0322 void InternalSwap(Option* other);
0323 private:
0324 friend class ::google::protobuf::internal::AnyMetadata;
0325 static ::absl::string_view FullMessageName() { return "google.protobuf.Option"; }
0326
0327 protected:
0328 explicit Option(::google::protobuf::Arena* arena);
0329 Option(::google::protobuf::Arena* arena, const Option& from);
0330 Option(::google::protobuf::Arena* arena, Option&& from) noexcept
0331 : Option(arena) {
0332 *this = ::std::move(from);
0333 }
0334 const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
0335 static const ::google::protobuf::Message::ClassDataFull _class_data_;
0336
0337 public:
0338 ::google::protobuf::Metadata GetMetadata() const;
0339
0340
0341
0342 enum : int {
0343 kNameFieldNumber = 1,
0344 kValueFieldNumber = 2,
0345 };
0346
0347 void clear_name() ;
0348 const std::string& name() const;
0349 template <typename Arg_ = const std::string&, typename... Args_>
0350 void set_name(Arg_&& arg, Args_... args);
0351 std::string* mutable_name();
0352 PROTOBUF_NODISCARD std::string* release_name();
0353 void set_allocated_name(std::string* value);
0354
0355 private:
0356 const std::string& _internal_name() const;
0357 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
0358 const std::string& value);
0359 std::string* _internal_mutable_name();
0360
0361 public:
0362
0363 bool has_value() const;
0364 void clear_value() ;
0365 const ::google::protobuf::Any& value() const;
0366 PROTOBUF_NODISCARD ::google::protobuf::Any* release_value();
0367 ::google::protobuf::Any* mutable_value();
0368 void set_allocated_value(::google::protobuf::Any* value);
0369 void unsafe_arena_set_allocated_value(::google::protobuf::Any* value);
0370 ::google::protobuf::Any* unsafe_arena_release_value();
0371
0372 private:
0373 const ::google::protobuf::Any& _internal_value() const;
0374 ::google::protobuf::Any* _internal_mutable_value();
0375
0376 public:
0377
0378 private:
0379 class _Internal;
0380 friend class ::google::protobuf::internal::TcParser;
0381 static const ::google::protobuf::internal::TcParseTable<
0382 1, 2, 1,
0383 35, 2>
0384 _table_;
0385
0386
0387 friend class ::google::protobuf::MessageLite;
0388 friend class ::google::protobuf::Arena;
0389 template <typename T>
0390 friend class ::google::protobuf::Arena::InternalHelper;
0391 using InternalArenaConstructable_ = void;
0392 using DestructorSkippable_ = void;
0393 struct Impl_ {
0394 inline explicit constexpr Impl_(
0395 ::google::protobuf::internal::ConstantInitialized) noexcept;
0396 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0397 ::google::protobuf::Arena* arena);
0398 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0399 ::google::protobuf::Arena* arena, const Impl_& from,
0400 const Option& from_msg);
0401 ::google::protobuf::internal::HasBits<1> _has_bits_;
0402 mutable ::google::protobuf::internal::CachedSize _cached_size_;
0403 ::google::protobuf::internal::ArenaStringPtr name_;
0404 ::google::protobuf::Any* value_;
0405 PROTOBUF_TSAN_DECLARE_MEMBER
0406 };
0407 union { Impl_ _impl_; };
0408 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
0409 };
0410
0411
0412 class PROTOBUF_EXPORT Field final : public ::google::protobuf::Message
0413 {
0414 public:
0415 inline Field() : Field(nullptr) {}
0416 ~Field() PROTOBUF_FINAL;
0417 template <typename = void>
0418 explicit PROTOBUF_CONSTEXPR Field(
0419 ::google::protobuf::internal::ConstantInitialized);
0420
0421 inline Field(const Field& from) : Field(nullptr, from) {}
0422 inline Field(Field&& from) noexcept
0423 : Field(nullptr, std::move(from)) {}
0424 inline Field& operator=(const Field& from) {
0425 CopyFrom(from);
0426 return *this;
0427 }
0428 inline Field& operator=(Field&& from) noexcept {
0429 if (this == &from) return *this;
0430 if (GetArena() == from.GetArena()
0431 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
0432 && GetArena() != nullptr
0433 #endif
0434 ) {
0435 InternalSwap(&from);
0436 } else {
0437 CopyFrom(from);
0438 }
0439 return *this;
0440 }
0441
0442 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0443 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0444 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0445 }
0446 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
0447 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0448 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0449 }
0450
0451 static const ::google::protobuf::Descriptor* descriptor() {
0452 return GetDescriptor();
0453 }
0454 static const ::google::protobuf::Descriptor* GetDescriptor() {
0455 return default_instance().GetMetadata().descriptor;
0456 }
0457 static const ::google::protobuf::Reflection* GetReflection() {
0458 return default_instance().GetMetadata().reflection;
0459 }
0460 static const Field& default_instance() {
0461 return *internal_default_instance();
0462 }
0463 static inline const Field* internal_default_instance() {
0464 return reinterpret_cast<const Field*>(
0465 &_Field_default_instance_);
0466 }
0467 static constexpr int kIndexInFileMessages = 1;
0468 friend void swap(Field& a, Field& b) { a.Swap(&b); }
0469 inline void Swap(Field* other) {
0470 if (other == this) return;
0471 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0472 if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0473 #else
0474 if (GetArena() == other->GetArena()) {
0475 #endif
0476 InternalSwap(other);
0477 } else {
0478 ::google::protobuf::internal::GenericSwap(this, other);
0479 }
0480 }
0481 void UnsafeArenaSwap(Field* other) {
0482 if (other == this) return;
0483 ABSL_DCHECK(GetArena() == other->GetArena());
0484 InternalSwap(other);
0485 }
0486
0487
0488
0489 Field* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0490 return ::google::protobuf::Message::DefaultConstruct<Field>(arena);
0491 }
0492 using ::google::protobuf::Message::CopyFrom;
0493 void CopyFrom(const Field& from);
0494 using ::google::protobuf::Message::MergeFrom;
0495 void MergeFrom(const Field& from) { Field::MergeImpl(*this, from); }
0496
0497 private:
0498 static void MergeImpl(
0499 ::google::protobuf::MessageLite& to_msg,
0500 const ::google::protobuf::MessageLite& from_msg);
0501
0502 public:
0503 bool IsInitialized() const {
0504 return true;
0505 }
0506 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0507 #if defined(PROTOBUF_CUSTOM_VTABLE)
0508 private:
0509 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0510 static ::uint8_t* _InternalSerialize(
0511 const MessageLite& msg, ::uint8_t* target,
0512 ::google::protobuf::io::EpsCopyOutputStream* stream);
0513
0514 public:
0515 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0516 ::uint8_t* _InternalSerialize(
0517 ::uint8_t* target,
0518 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
0519 return _InternalSerialize(*this, target, stream);
0520 }
0521 #else
0522 ::size_t ByteSizeLong() const final;
0523 ::uint8_t* _InternalSerialize(
0524 ::uint8_t* target,
0525 ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0526 #endif
0527 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0528
0529 private:
0530 void SharedCtor(::google::protobuf::Arena* arena);
0531 void SharedDtor();
0532 void InternalSwap(Field* other);
0533 private:
0534 friend class ::google::protobuf::internal::AnyMetadata;
0535 static ::absl::string_view FullMessageName() { return "google.protobuf.Field"; }
0536
0537 protected:
0538 explicit Field(::google::protobuf::Arena* arena);
0539 Field(::google::protobuf::Arena* arena, const Field& from);
0540 Field(::google::protobuf::Arena* arena, Field&& from) noexcept
0541 : Field(arena) {
0542 *this = ::std::move(from);
0543 }
0544 const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
0545 static const ::google::protobuf::Message::ClassDataFull _class_data_;
0546
0547 public:
0548 ::google::protobuf::Metadata GetMetadata() const;
0549
0550 using Kind = Field_Kind;
0551 static constexpr Kind TYPE_UNKNOWN = Field_Kind_TYPE_UNKNOWN;
0552 static constexpr Kind TYPE_DOUBLE = Field_Kind_TYPE_DOUBLE;
0553 static constexpr Kind TYPE_FLOAT = Field_Kind_TYPE_FLOAT;
0554 static constexpr Kind TYPE_INT64 = Field_Kind_TYPE_INT64;
0555 static constexpr Kind TYPE_UINT64 = Field_Kind_TYPE_UINT64;
0556 static constexpr Kind TYPE_INT32 = Field_Kind_TYPE_INT32;
0557 static constexpr Kind TYPE_FIXED64 = Field_Kind_TYPE_FIXED64;
0558 static constexpr Kind TYPE_FIXED32 = Field_Kind_TYPE_FIXED32;
0559 static constexpr Kind TYPE_BOOL = Field_Kind_TYPE_BOOL;
0560 static constexpr Kind TYPE_STRING = Field_Kind_TYPE_STRING;
0561 static constexpr Kind TYPE_GROUP = Field_Kind_TYPE_GROUP;
0562 static constexpr Kind TYPE_MESSAGE = Field_Kind_TYPE_MESSAGE;
0563 static constexpr Kind TYPE_BYTES = Field_Kind_TYPE_BYTES;
0564 static constexpr Kind TYPE_UINT32 = Field_Kind_TYPE_UINT32;
0565 static constexpr Kind TYPE_ENUM = Field_Kind_TYPE_ENUM;
0566 static constexpr Kind TYPE_SFIXED32 = Field_Kind_TYPE_SFIXED32;
0567 static constexpr Kind TYPE_SFIXED64 = Field_Kind_TYPE_SFIXED64;
0568 static constexpr Kind TYPE_SINT32 = Field_Kind_TYPE_SINT32;
0569 static constexpr Kind TYPE_SINT64 = Field_Kind_TYPE_SINT64;
0570 static inline bool Kind_IsValid(int value) {
0571 return Field_Kind_IsValid(value);
0572 }
0573 static constexpr Kind Kind_MIN = Field_Kind_Kind_MIN;
0574 static constexpr Kind Kind_MAX = Field_Kind_Kind_MAX;
0575 static constexpr int Kind_ARRAYSIZE = Field_Kind_Kind_ARRAYSIZE;
0576 static inline const ::google::protobuf::EnumDescriptor* Kind_descriptor() {
0577 return Field_Kind_descriptor();
0578 }
0579 template <typename T>
0580 static inline const std::string& Kind_Name(T value) {
0581 return Field_Kind_Name(value);
0582 }
0583 static inline bool Kind_Parse(absl::string_view name, Kind* value) {
0584 return Field_Kind_Parse(name, value);
0585 }
0586 using Cardinality = Field_Cardinality;
0587 static constexpr Cardinality CARDINALITY_UNKNOWN = Field_Cardinality_CARDINALITY_UNKNOWN;
0588 static constexpr Cardinality CARDINALITY_OPTIONAL = Field_Cardinality_CARDINALITY_OPTIONAL;
0589 static constexpr Cardinality CARDINALITY_REQUIRED = Field_Cardinality_CARDINALITY_REQUIRED;
0590 static constexpr Cardinality CARDINALITY_REPEATED = Field_Cardinality_CARDINALITY_REPEATED;
0591 static inline bool Cardinality_IsValid(int value) {
0592 return Field_Cardinality_IsValid(value);
0593 }
0594 static constexpr Cardinality Cardinality_MIN = Field_Cardinality_Cardinality_MIN;
0595 static constexpr Cardinality Cardinality_MAX = Field_Cardinality_Cardinality_MAX;
0596 static constexpr int Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_ARRAYSIZE;
0597 static inline const ::google::protobuf::EnumDescriptor* Cardinality_descriptor() {
0598 return Field_Cardinality_descriptor();
0599 }
0600 template <typename T>
0601 static inline const std::string& Cardinality_Name(T value) {
0602 return Field_Cardinality_Name(value);
0603 }
0604 static inline bool Cardinality_Parse(absl::string_view name, Cardinality* value) {
0605 return Field_Cardinality_Parse(name, value);
0606 }
0607
0608
0609 enum : int {
0610 kOptionsFieldNumber = 9,
0611 kNameFieldNumber = 4,
0612 kTypeUrlFieldNumber = 6,
0613 kJsonNameFieldNumber = 10,
0614 kDefaultValueFieldNumber = 11,
0615 kKindFieldNumber = 1,
0616 kCardinalityFieldNumber = 2,
0617 kNumberFieldNumber = 3,
0618 kOneofIndexFieldNumber = 7,
0619 kPackedFieldNumber = 8,
0620 };
0621
0622 int options_size() const;
0623 private:
0624 int _internal_options_size() const;
0625
0626 public:
0627 void clear_options() ;
0628 ::google::protobuf::Option* mutable_options(int index);
0629 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* mutable_options();
0630
0631 private:
0632 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
0633 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options();
0634 public:
0635 const ::google::protobuf::Option& options(int index) const;
0636 ::google::protobuf::Option* add_options();
0637 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
0638
0639 void clear_name() ;
0640 const std::string& name() const;
0641 template <typename Arg_ = const std::string&, typename... Args_>
0642 void set_name(Arg_&& arg, Args_... args);
0643 std::string* mutable_name();
0644 PROTOBUF_NODISCARD std::string* release_name();
0645 void set_allocated_name(std::string* value);
0646
0647 private:
0648 const std::string& _internal_name() const;
0649 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
0650 const std::string& value);
0651 std::string* _internal_mutable_name();
0652
0653 public:
0654
0655 void clear_type_url() ;
0656 const std::string& type_url() const;
0657 template <typename Arg_ = const std::string&, typename... Args_>
0658 void set_type_url(Arg_&& arg, Args_... args);
0659 std::string* mutable_type_url();
0660 PROTOBUF_NODISCARD std::string* release_type_url();
0661 void set_allocated_type_url(std::string* value);
0662
0663 private:
0664 const std::string& _internal_type_url() const;
0665 inline PROTOBUF_ALWAYS_INLINE void _internal_set_type_url(
0666 const std::string& value);
0667 std::string* _internal_mutable_type_url();
0668
0669 public:
0670
0671 void clear_json_name() ;
0672 const std::string& json_name() const;
0673 template <typename Arg_ = const std::string&, typename... Args_>
0674 void set_json_name(Arg_&& arg, Args_... args);
0675 std::string* mutable_json_name();
0676 PROTOBUF_NODISCARD std::string* release_json_name();
0677 void set_allocated_json_name(std::string* value);
0678
0679 private:
0680 const std::string& _internal_json_name() const;
0681 inline PROTOBUF_ALWAYS_INLINE void _internal_set_json_name(
0682 const std::string& value);
0683 std::string* _internal_mutable_json_name();
0684
0685 public:
0686
0687 void clear_default_value() ;
0688 const std::string& default_value() const;
0689 template <typename Arg_ = const std::string&, typename... Args_>
0690 void set_default_value(Arg_&& arg, Args_... args);
0691 std::string* mutable_default_value();
0692 PROTOBUF_NODISCARD std::string* release_default_value();
0693 void set_allocated_default_value(std::string* value);
0694
0695 private:
0696 const std::string& _internal_default_value() const;
0697 inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_value(
0698 const std::string& value);
0699 std::string* _internal_mutable_default_value();
0700
0701 public:
0702
0703 void clear_kind() ;
0704 ::google::protobuf::Field_Kind kind() const;
0705 void set_kind(::google::protobuf::Field_Kind value);
0706
0707 private:
0708 ::google::protobuf::Field_Kind _internal_kind() const;
0709 void _internal_set_kind(::google::protobuf::Field_Kind value);
0710
0711 public:
0712
0713 void clear_cardinality() ;
0714 ::google::protobuf::Field_Cardinality cardinality() const;
0715 void set_cardinality(::google::protobuf::Field_Cardinality value);
0716
0717 private:
0718 ::google::protobuf::Field_Cardinality _internal_cardinality() const;
0719 void _internal_set_cardinality(::google::protobuf::Field_Cardinality value);
0720
0721 public:
0722
0723 void clear_number() ;
0724 ::int32_t number() const;
0725 void set_number(::int32_t value);
0726
0727 private:
0728 ::int32_t _internal_number() const;
0729 void _internal_set_number(::int32_t value);
0730
0731 public:
0732
0733 void clear_oneof_index() ;
0734 ::int32_t oneof_index() const;
0735 void set_oneof_index(::int32_t value);
0736
0737 private:
0738 ::int32_t _internal_oneof_index() const;
0739 void _internal_set_oneof_index(::int32_t value);
0740
0741 public:
0742
0743 void clear_packed() ;
0744 bool packed() const;
0745 void set_packed(bool value);
0746
0747 private:
0748 bool _internal_packed() const;
0749 void _internal_set_packed(bool value);
0750
0751 public:
0752
0753 private:
0754 class _Internal;
0755 friend class ::google::protobuf::internal::TcParser;
0756 static const ::google::protobuf::internal::TcParseTable<
0757 4, 10, 1,
0758 72, 2>
0759 _table_;
0760
0761
0762 friend class ::google::protobuf::MessageLite;
0763 friend class ::google::protobuf::Arena;
0764 template <typename T>
0765 friend class ::google::protobuf::Arena::InternalHelper;
0766 using InternalArenaConstructable_ = void;
0767 using DestructorSkippable_ = void;
0768 struct Impl_ {
0769 inline explicit constexpr Impl_(
0770 ::google::protobuf::internal::ConstantInitialized) noexcept;
0771 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0772 ::google::protobuf::Arena* arena);
0773 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
0774 ::google::protobuf::Arena* arena, const Impl_& from,
0775 const Field& from_msg);
0776 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
0777 ::google::protobuf::internal::ArenaStringPtr name_;
0778 ::google::protobuf::internal::ArenaStringPtr type_url_;
0779 ::google::protobuf::internal::ArenaStringPtr json_name_;
0780 ::google::protobuf::internal::ArenaStringPtr default_value_;
0781 int kind_;
0782 int cardinality_;
0783 ::int32_t number_;
0784 ::int32_t oneof_index_;
0785 bool packed_;
0786 mutable ::google::protobuf::internal::CachedSize _cached_size_;
0787 PROTOBUF_TSAN_DECLARE_MEMBER
0788 };
0789 union { Impl_ _impl_; };
0790 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
0791 };
0792
0793
0794 class PROTOBUF_EXPORT EnumValue final : public ::google::protobuf::Message
0795 {
0796 public:
0797 inline EnumValue() : EnumValue(nullptr) {}
0798 ~EnumValue() PROTOBUF_FINAL;
0799 template <typename = void>
0800 explicit PROTOBUF_CONSTEXPR EnumValue(
0801 ::google::protobuf::internal::ConstantInitialized);
0802
0803 inline EnumValue(const EnumValue& from) : EnumValue(nullptr, from) {}
0804 inline EnumValue(EnumValue&& from) noexcept
0805 : EnumValue(nullptr, std::move(from)) {}
0806 inline EnumValue& operator=(const EnumValue& from) {
0807 CopyFrom(from);
0808 return *this;
0809 }
0810 inline EnumValue& operator=(EnumValue&& from) noexcept {
0811 if (this == &from) return *this;
0812 if (GetArena() == from.GetArena()
0813 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
0814 && GetArena() != nullptr
0815 #endif
0816 ) {
0817 InternalSwap(&from);
0818 } else {
0819 CopyFrom(from);
0820 }
0821 return *this;
0822 }
0823
0824 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0825 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0826 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0827 }
0828 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
0829 ABSL_ATTRIBUTE_LIFETIME_BOUND {
0830 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0831 }
0832
0833 static const ::google::protobuf::Descriptor* descriptor() {
0834 return GetDescriptor();
0835 }
0836 static const ::google::protobuf::Descriptor* GetDescriptor() {
0837 return default_instance().GetMetadata().descriptor;
0838 }
0839 static const ::google::protobuf::Reflection* GetReflection() {
0840 return default_instance().GetMetadata().reflection;
0841 }
0842 static const EnumValue& default_instance() {
0843 return *internal_default_instance();
0844 }
0845 static inline const EnumValue* internal_default_instance() {
0846 return reinterpret_cast<const EnumValue*>(
0847 &_EnumValue_default_instance_);
0848 }
0849 static constexpr int kIndexInFileMessages = 3;
0850 friend void swap(EnumValue& a, EnumValue& b) { a.Swap(&b); }
0851 inline void Swap(EnumValue* other) {
0852 if (other == this) return;
0853 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
0854 if (GetArena() != nullptr && GetArena() == other->GetArena()) {
0855 #else
0856 if (GetArena() == other->GetArena()) {
0857 #endif
0858 InternalSwap(other);
0859 } else {
0860 ::google::protobuf::internal::GenericSwap(this, other);
0861 }
0862 }
0863 void UnsafeArenaSwap(EnumValue* other) {
0864 if (other == this) return;
0865 ABSL_DCHECK(GetArena() == other->GetArena());
0866 InternalSwap(other);
0867 }
0868
0869
0870
0871 EnumValue* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
0872 return ::google::protobuf::Message::DefaultConstruct<EnumValue>(arena);
0873 }
0874 using ::google::protobuf::Message::CopyFrom;
0875 void CopyFrom(const EnumValue& from);
0876 using ::google::protobuf::Message::MergeFrom;
0877 void MergeFrom(const EnumValue& from) { EnumValue::MergeImpl(*this, from); }
0878
0879 private:
0880 static void MergeImpl(
0881 ::google::protobuf::MessageLite& to_msg,
0882 const ::google::protobuf::MessageLite& from_msg);
0883
0884 public:
0885 bool IsInitialized() const {
0886 return true;
0887 }
0888 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0889 #if defined(PROTOBUF_CUSTOM_VTABLE)
0890 private:
0891 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0892 static ::uint8_t* _InternalSerialize(
0893 const MessageLite& msg, ::uint8_t* target,
0894 ::google::protobuf::io::EpsCopyOutputStream* stream);
0895
0896 public:
0897 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0898 ::uint8_t* _InternalSerialize(
0899 ::uint8_t* target,
0900 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
0901 return _InternalSerialize(*this, target, stream);
0902 }
0903 #else
0904 ::size_t ByteSizeLong() const final;
0905 ::uint8_t* _InternalSerialize(
0906 ::uint8_t* target,
0907 ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
0908 #endif
0909 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0910
0911 private:
0912 void SharedCtor(::google::protobuf::Arena* arena);
0913 void SharedDtor();
0914 void InternalSwap(EnumValue* other);
0915 private:
0916 friend class ::google::protobuf::internal::AnyMetadata;
0917 static ::absl::string_view FullMessageName() { return "google.protobuf.EnumValue"; }
0918
0919 protected:
0920 explicit EnumValue(::google::protobuf::Arena* arena);
0921 EnumValue(::google::protobuf::Arena* arena, const EnumValue& from);
0922 EnumValue(::google::protobuf::Arena* arena, EnumValue&& from) noexcept
0923 : EnumValue(arena) {
0924 *this = ::std::move(from);
0925 }
0926 const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
0927 static const ::google::protobuf::Message::ClassDataFull _class_data_;
0928
0929 public:
0930 ::google::protobuf::Metadata GetMetadata() const;
0931
0932
0933
0934 enum : int {
0935 kOptionsFieldNumber = 3,
0936 kNameFieldNumber = 1,
0937 kNumberFieldNumber = 2,
0938 };
0939
0940 int options_size() const;
0941 private:
0942 int _internal_options_size() const;
0943
0944 public:
0945 void clear_options() ;
0946 ::google::protobuf::Option* mutable_options(int index);
0947 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* mutable_options();
0948
0949 private:
0950 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
0951 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options();
0952 public:
0953 const ::google::protobuf::Option& options(int index) const;
0954 ::google::protobuf::Option* add_options();
0955 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
0956
0957 void clear_name() ;
0958 const std::string& name() const;
0959 template <typename Arg_ = const std::string&, typename... Args_>
0960 void set_name(Arg_&& arg, Args_... args);
0961 std::string* mutable_name();
0962 PROTOBUF_NODISCARD std::string* release_name();
0963 void set_allocated_name(std::string* value);
0964
0965 private:
0966 const std::string& _internal_name() const;
0967 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
0968 const std::string& value);
0969 std::string* _internal_mutable_name();
0970
0971 public:
0972
0973 void clear_number() ;
0974 ::int32_t number() const;
0975 void set_number(::int32_t value);
0976
0977 private:
0978 ::int32_t _internal_number() const;
0979 void _internal_set_number(::int32_t value);
0980
0981 public:
0982
0983 private:
0984 class _Internal;
0985 friend class ::google::protobuf::internal::TcParser;
0986 static const ::google::protobuf::internal::TcParseTable<
0987 2, 3, 1,
0988 38, 2>
0989 _table_;
0990
0991
0992 friend class ::google::protobuf::MessageLite;
0993 friend class ::google::protobuf::Arena;
0994 template <typename T>
0995 friend class ::google::protobuf::Arena::InternalHelper;
0996 using InternalArenaConstructable_ = void;
0997 using DestructorSkippable_ = void;
0998 struct Impl_ {
0999 inline explicit constexpr Impl_(
1000 ::google::protobuf::internal::ConstantInitialized) noexcept;
1001 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
1002 ::google::protobuf::Arena* arena);
1003 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
1004 ::google::protobuf::Arena* arena, const Impl_& from,
1005 const EnumValue& from_msg);
1006 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
1007 ::google::protobuf::internal::ArenaStringPtr name_;
1008 ::int32_t number_;
1009 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1010 PROTOBUF_TSAN_DECLARE_MEMBER
1011 };
1012 union { Impl_ _impl_; };
1013 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
1014 };
1015
1016
1017 class PROTOBUF_EXPORT Type final : public ::google::protobuf::Message
1018 {
1019 public:
1020 inline Type() : Type(nullptr) {}
1021 ~Type() PROTOBUF_FINAL;
1022 template <typename = void>
1023 explicit PROTOBUF_CONSTEXPR Type(
1024 ::google::protobuf::internal::ConstantInitialized);
1025
1026 inline Type(const Type& from) : Type(nullptr, from) {}
1027 inline Type(Type&& from) noexcept
1028 : Type(nullptr, std::move(from)) {}
1029 inline Type& operator=(const Type& from) {
1030 CopyFrom(from);
1031 return *this;
1032 }
1033 inline Type& operator=(Type&& from) noexcept {
1034 if (this == &from) return *this;
1035 if (GetArena() == from.GetArena()
1036 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1037 && GetArena() != nullptr
1038 #endif
1039 ) {
1040 InternalSwap(&from);
1041 } else {
1042 CopyFrom(from);
1043 }
1044 return *this;
1045 }
1046
1047 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1048 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1049 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1050 }
1051 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
1052 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1053 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1054 }
1055
1056 static const ::google::protobuf::Descriptor* descriptor() {
1057 return GetDescriptor();
1058 }
1059 static const ::google::protobuf::Descriptor* GetDescriptor() {
1060 return default_instance().GetMetadata().descriptor;
1061 }
1062 static const ::google::protobuf::Reflection* GetReflection() {
1063 return default_instance().GetMetadata().reflection;
1064 }
1065 static const Type& default_instance() {
1066 return *internal_default_instance();
1067 }
1068 static inline const Type* internal_default_instance() {
1069 return reinterpret_cast<const Type*>(
1070 &_Type_default_instance_);
1071 }
1072 static constexpr int kIndexInFileMessages = 0;
1073 friend void swap(Type& a, Type& b) { a.Swap(&b); }
1074 inline void Swap(Type* other) {
1075 if (other == this) return;
1076 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1077 if (GetArena() != nullptr && GetArena() == other->GetArena()) {
1078 #else
1079 if (GetArena() == other->GetArena()) {
1080 #endif
1081 InternalSwap(other);
1082 } else {
1083 ::google::protobuf::internal::GenericSwap(this, other);
1084 }
1085 }
1086 void UnsafeArenaSwap(Type* other) {
1087 if (other == this) return;
1088 ABSL_DCHECK(GetArena() == other->GetArena());
1089 InternalSwap(other);
1090 }
1091
1092
1093
1094 Type* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
1095 return ::google::protobuf::Message::DefaultConstruct<Type>(arena);
1096 }
1097 using ::google::protobuf::Message::CopyFrom;
1098 void CopyFrom(const Type& from);
1099 using ::google::protobuf::Message::MergeFrom;
1100 void MergeFrom(const Type& from) { Type::MergeImpl(*this, from); }
1101
1102 private:
1103 static void MergeImpl(
1104 ::google::protobuf::MessageLite& to_msg,
1105 const ::google::protobuf::MessageLite& from_msg);
1106
1107 public:
1108 bool IsInitialized() const {
1109 return true;
1110 }
1111 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1112 #if defined(PROTOBUF_CUSTOM_VTABLE)
1113 private:
1114 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1115 static ::uint8_t* _InternalSerialize(
1116 const MessageLite& msg, ::uint8_t* target,
1117 ::google::protobuf::io::EpsCopyOutputStream* stream);
1118
1119 public:
1120 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1121 ::uint8_t* _InternalSerialize(
1122 ::uint8_t* target,
1123 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
1124 return _InternalSerialize(*this, target, stream);
1125 }
1126 #else
1127 ::size_t ByteSizeLong() const final;
1128 ::uint8_t* _InternalSerialize(
1129 ::uint8_t* target,
1130 ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
1131 #endif
1132 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1133
1134 private:
1135 void SharedCtor(::google::protobuf::Arena* arena);
1136 void SharedDtor();
1137 void InternalSwap(Type* other);
1138 private:
1139 friend class ::google::protobuf::internal::AnyMetadata;
1140 static ::absl::string_view FullMessageName() { return "google.protobuf.Type"; }
1141
1142 protected:
1143 explicit Type(::google::protobuf::Arena* arena);
1144 Type(::google::protobuf::Arena* arena, const Type& from);
1145 Type(::google::protobuf::Arena* arena, Type&& from) noexcept
1146 : Type(arena) {
1147 *this = ::std::move(from);
1148 }
1149 const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
1150 static const ::google::protobuf::Message::ClassDataFull _class_data_;
1151
1152 public:
1153 ::google::protobuf::Metadata GetMetadata() const;
1154
1155
1156
1157 enum : int {
1158 kFieldsFieldNumber = 2,
1159 kOneofsFieldNumber = 3,
1160 kOptionsFieldNumber = 4,
1161 kNameFieldNumber = 1,
1162 kEditionFieldNumber = 7,
1163 kSourceContextFieldNumber = 5,
1164 kSyntaxFieldNumber = 6,
1165 };
1166
1167 int fields_size() const;
1168 private:
1169 int _internal_fields_size() const;
1170
1171 public:
1172 void clear_fields() ;
1173 ::google::protobuf::Field* mutable_fields(int index);
1174 ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* mutable_fields();
1175
1176 private:
1177 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& _internal_fields() const;
1178 ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* _internal_mutable_fields();
1179 public:
1180 const ::google::protobuf::Field& fields(int index) const;
1181 ::google::protobuf::Field* add_fields();
1182 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& fields() const;
1183
1184 int oneofs_size() const;
1185 private:
1186 int _internal_oneofs_size() const;
1187
1188 public:
1189 void clear_oneofs() ;
1190 const std::string& oneofs(int index) const;
1191 std::string* mutable_oneofs(int index);
1192 template <typename Arg_ = const std::string&, typename... Args_>
1193 void set_oneofs(int index, Arg_&& value, Args_... args);
1194 std::string* add_oneofs();
1195 template <typename Arg_ = const std::string&, typename... Args_>
1196 void add_oneofs(Arg_&& value, Args_... args);
1197 const ::google::protobuf::RepeatedPtrField<std::string>& oneofs() const;
1198 ::google::protobuf::RepeatedPtrField<std::string>* mutable_oneofs();
1199
1200 private:
1201 const ::google::protobuf::RepeatedPtrField<std::string>& _internal_oneofs() const;
1202 ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_oneofs();
1203
1204 public:
1205
1206 int options_size() const;
1207 private:
1208 int _internal_options_size() const;
1209
1210 public:
1211 void clear_options() ;
1212 ::google::protobuf::Option* mutable_options(int index);
1213 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* mutable_options();
1214
1215 private:
1216 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
1217 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options();
1218 public:
1219 const ::google::protobuf::Option& options(int index) const;
1220 ::google::protobuf::Option* add_options();
1221 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
1222
1223 void clear_name() ;
1224 const std::string& name() const;
1225 template <typename Arg_ = const std::string&, typename... Args_>
1226 void set_name(Arg_&& arg, Args_... args);
1227 std::string* mutable_name();
1228 PROTOBUF_NODISCARD std::string* release_name();
1229 void set_allocated_name(std::string* value);
1230
1231 private:
1232 const std::string& _internal_name() const;
1233 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
1234 const std::string& value);
1235 std::string* _internal_mutable_name();
1236
1237 public:
1238
1239 void clear_edition() ;
1240 const std::string& edition() const;
1241 template <typename Arg_ = const std::string&, typename... Args_>
1242 void set_edition(Arg_&& arg, Args_... args);
1243 std::string* mutable_edition();
1244 PROTOBUF_NODISCARD std::string* release_edition();
1245 void set_allocated_edition(std::string* value);
1246
1247 private:
1248 const std::string& _internal_edition() const;
1249 inline PROTOBUF_ALWAYS_INLINE void _internal_set_edition(
1250 const std::string& value);
1251 std::string* _internal_mutable_edition();
1252
1253 public:
1254
1255 bool has_source_context() const;
1256 void clear_source_context() ;
1257 const ::google::protobuf::SourceContext& source_context() const;
1258 PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context();
1259 ::google::protobuf::SourceContext* mutable_source_context();
1260 void set_allocated_source_context(::google::protobuf::SourceContext* value);
1261 void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value);
1262 ::google::protobuf::SourceContext* unsafe_arena_release_source_context();
1263
1264 private:
1265 const ::google::protobuf::SourceContext& _internal_source_context() const;
1266 ::google::protobuf::SourceContext* _internal_mutable_source_context();
1267
1268 public:
1269
1270 void clear_syntax() ;
1271 ::google::protobuf::Syntax syntax() const;
1272 void set_syntax(::google::protobuf::Syntax value);
1273
1274 private:
1275 ::google::protobuf::Syntax _internal_syntax() const;
1276 void _internal_set_syntax(::google::protobuf::Syntax value);
1277
1278 public:
1279
1280 private:
1281 class _Internal;
1282 friend class ::google::protobuf::internal::TcParser;
1283 static const ::google::protobuf::internal::TcParseTable<
1284 3, 7, 3,
1285 46, 2>
1286 _table_;
1287
1288
1289 friend class ::google::protobuf::MessageLite;
1290 friend class ::google::protobuf::Arena;
1291 template <typename T>
1292 friend class ::google::protobuf::Arena::InternalHelper;
1293 using InternalArenaConstructable_ = void;
1294 using DestructorSkippable_ = void;
1295 struct Impl_ {
1296 inline explicit constexpr Impl_(
1297 ::google::protobuf::internal::ConstantInitialized) noexcept;
1298 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
1299 ::google::protobuf::Arena* arena);
1300 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
1301 ::google::protobuf::Arena* arena, const Impl_& from,
1302 const Type& from_msg);
1303 ::google::protobuf::internal::HasBits<1> _has_bits_;
1304 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1305 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > fields_;
1306 ::google::protobuf::RepeatedPtrField<std::string> oneofs_;
1307 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
1308 ::google::protobuf::internal::ArenaStringPtr name_;
1309 ::google::protobuf::internal::ArenaStringPtr edition_;
1310 ::google::protobuf::SourceContext* source_context_;
1311 int syntax_;
1312 PROTOBUF_TSAN_DECLARE_MEMBER
1313 };
1314 union { Impl_ _impl_; };
1315 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
1316 };
1317
1318
1319 class PROTOBUF_EXPORT Enum final : public ::google::protobuf::Message
1320 {
1321 public:
1322 inline Enum() : Enum(nullptr) {}
1323 ~Enum() PROTOBUF_FINAL;
1324 template <typename = void>
1325 explicit PROTOBUF_CONSTEXPR Enum(
1326 ::google::protobuf::internal::ConstantInitialized);
1327
1328 inline Enum(const Enum& from) : Enum(nullptr, from) {}
1329 inline Enum(Enum&& from) noexcept
1330 : Enum(nullptr, std::move(from)) {}
1331 inline Enum& operator=(const Enum& from) {
1332 CopyFrom(from);
1333 return *this;
1334 }
1335 inline Enum& operator=(Enum&& from) noexcept {
1336 if (this == &from) return *this;
1337 if (GetArena() == from.GetArena()
1338 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1339 && GetArena() != nullptr
1340 #endif
1341 ) {
1342 InternalSwap(&from);
1343 } else {
1344 CopyFrom(from);
1345 }
1346 return *this;
1347 }
1348
1349 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
1350 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1351 return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
1352 }
1353 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
1354 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1355 return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
1356 }
1357
1358 static const ::google::protobuf::Descriptor* descriptor() {
1359 return GetDescriptor();
1360 }
1361 static const ::google::protobuf::Descriptor* GetDescriptor() {
1362 return default_instance().GetMetadata().descriptor;
1363 }
1364 static const ::google::protobuf::Reflection* GetReflection() {
1365 return default_instance().GetMetadata().reflection;
1366 }
1367 static const Enum& default_instance() {
1368 return *internal_default_instance();
1369 }
1370 static inline const Enum* internal_default_instance() {
1371 return reinterpret_cast<const Enum*>(
1372 &_Enum_default_instance_);
1373 }
1374 static constexpr int kIndexInFileMessages = 2;
1375 friend void swap(Enum& a, Enum& b) { a.Swap(&b); }
1376 inline void Swap(Enum* other) {
1377 if (other == this) return;
1378 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1379 if (GetArena() != nullptr && GetArena() == other->GetArena()) {
1380 #else
1381 if (GetArena() == other->GetArena()) {
1382 #endif
1383 InternalSwap(other);
1384 } else {
1385 ::google::protobuf::internal::GenericSwap(this, other);
1386 }
1387 }
1388 void UnsafeArenaSwap(Enum* other) {
1389 if (other == this) return;
1390 ABSL_DCHECK(GetArena() == other->GetArena());
1391 InternalSwap(other);
1392 }
1393
1394
1395
1396 Enum* New(::google::protobuf::Arena* arena = nullptr) const PROTOBUF_FINAL {
1397 return ::google::protobuf::Message::DefaultConstruct<Enum>(arena);
1398 }
1399 using ::google::protobuf::Message::CopyFrom;
1400 void CopyFrom(const Enum& from);
1401 using ::google::protobuf::Message::MergeFrom;
1402 void MergeFrom(const Enum& from) { Enum::MergeImpl(*this, from); }
1403
1404 private:
1405 static void MergeImpl(
1406 ::google::protobuf::MessageLite& to_msg,
1407 const ::google::protobuf::MessageLite& from_msg);
1408
1409 public:
1410 bool IsInitialized() const {
1411 return true;
1412 }
1413 ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
1414 #if defined(PROTOBUF_CUSTOM_VTABLE)
1415 private:
1416 static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
1417 static ::uint8_t* _InternalSerialize(
1418 const MessageLite& msg, ::uint8_t* target,
1419 ::google::protobuf::io::EpsCopyOutputStream* stream);
1420
1421 public:
1422 ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
1423 ::uint8_t* _InternalSerialize(
1424 ::uint8_t* target,
1425 ::google::protobuf::io::EpsCopyOutputStream* stream) const {
1426 return _InternalSerialize(*this, target, stream);
1427 }
1428 #else
1429 ::size_t ByteSizeLong() const final;
1430 ::uint8_t* _InternalSerialize(
1431 ::uint8_t* target,
1432 ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
1433 #endif
1434 int GetCachedSize() const { return _impl_._cached_size_.Get(); }
1435
1436 private:
1437 void SharedCtor(::google::protobuf::Arena* arena);
1438 void SharedDtor();
1439 void InternalSwap(Enum* other);
1440 private:
1441 friend class ::google::protobuf::internal::AnyMetadata;
1442 static ::absl::string_view FullMessageName() { return "google.protobuf.Enum"; }
1443
1444 protected:
1445 explicit Enum(::google::protobuf::Arena* arena);
1446 Enum(::google::protobuf::Arena* arena, const Enum& from);
1447 Enum(::google::protobuf::Arena* arena, Enum&& from) noexcept
1448 : Enum(arena) {
1449 *this = ::std::move(from);
1450 }
1451 const ::google::protobuf::Message::ClassData* GetClassData() const PROTOBUF_FINAL;
1452 static const ::google::protobuf::Message::ClassDataFull _class_data_;
1453
1454 public:
1455 ::google::protobuf::Metadata GetMetadata() const;
1456
1457
1458
1459 enum : int {
1460 kEnumvalueFieldNumber = 2,
1461 kOptionsFieldNumber = 3,
1462 kNameFieldNumber = 1,
1463 kEditionFieldNumber = 6,
1464 kSourceContextFieldNumber = 4,
1465 kSyntaxFieldNumber = 5,
1466 };
1467
1468 int enumvalue_size() const;
1469 private:
1470 int _internal_enumvalue_size() const;
1471
1472 public:
1473 void clear_enumvalue() ;
1474 ::google::protobuf::EnumValue* mutable_enumvalue(int index);
1475 ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* mutable_enumvalue();
1476
1477 private:
1478 const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& _internal_enumvalue() const;
1479 ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* _internal_mutable_enumvalue();
1480 public:
1481 const ::google::protobuf::EnumValue& enumvalue(int index) const;
1482 ::google::protobuf::EnumValue* add_enumvalue();
1483 const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& enumvalue() const;
1484
1485 int options_size() const;
1486 private:
1487 int _internal_options_size() const;
1488
1489 public:
1490 void clear_options() ;
1491 ::google::protobuf::Option* mutable_options(int index);
1492 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* mutable_options();
1493
1494 private:
1495 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& _internal_options() const;
1496 ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* _internal_mutable_options();
1497 public:
1498 const ::google::protobuf::Option& options(int index) const;
1499 ::google::protobuf::Option* add_options();
1500 const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& options() const;
1501
1502 void clear_name() ;
1503 const std::string& name() const;
1504 template <typename Arg_ = const std::string&, typename... Args_>
1505 void set_name(Arg_&& arg, Args_... args);
1506 std::string* mutable_name();
1507 PROTOBUF_NODISCARD std::string* release_name();
1508 void set_allocated_name(std::string* value);
1509
1510 private:
1511 const std::string& _internal_name() const;
1512 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(
1513 const std::string& value);
1514 std::string* _internal_mutable_name();
1515
1516 public:
1517
1518 void clear_edition() ;
1519 const std::string& edition() const;
1520 template <typename Arg_ = const std::string&, typename... Args_>
1521 void set_edition(Arg_&& arg, Args_... args);
1522 std::string* mutable_edition();
1523 PROTOBUF_NODISCARD std::string* release_edition();
1524 void set_allocated_edition(std::string* value);
1525
1526 private:
1527 const std::string& _internal_edition() const;
1528 inline PROTOBUF_ALWAYS_INLINE void _internal_set_edition(
1529 const std::string& value);
1530 std::string* _internal_mutable_edition();
1531
1532 public:
1533
1534 bool has_source_context() const;
1535 void clear_source_context() ;
1536 const ::google::protobuf::SourceContext& source_context() const;
1537 PROTOBUF_NODISCARD ::google::protobuf::SourceContext* release_source_context();
1538 ::google::protobuf::SourceContext* mutable_source_context();
1539 void set_allocated_source_context(::google::protobuf::SourceContext* value);
1540 void unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value);
1541 ::google::protobuf::SourceContext* unsafe_arena_release_source_context();
1542
1543 private:
1544 const ::google::protobuf::SourceContext& _internal_source_context() const;
1545 ::google::protobuf::SourceContext* _internal_mutable_source_context();
1546
1547 public:
1548
1549 void clear_syntax() ;
1550 ::google::protobuf::Syntax syntax() const;
1551 void set_syntax(::google::protobuf::Syntax value);
1552
1553 private:
1554 ::google::protobuf::Syntax _internal_syntax() const;
1555 void _internal_set_syntax(::google::protobuf::Syntax value);
1556
1557 public:
1558
1559 private:
1560 class _Internal;
1561 friend class ::google::protobuf::internal::TcParser;
1562 static const ::google::protobuf::internal::TcParseTable<
1563 3, 6, 3,
1564 40, 2>
1565 _table_;
1566
1567
1568 friend class ::google::protobuf::MessageLite;
1569 friend class ::google::protobuf::Arena;
1570 template <typename T>
1571 friend class ::google::protobuf::Arena::InternalHelper;
1572 using InternalArenaConstructable_ = void;
1573 using DestructorSkippable_ = void;
1574 struct Impl_ {
1575 inline explicit constexpr Impl_(
1576 ::google::protobuf::internal::ConstantInitialized) noexcept;
1577 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
1578 ::google::protobuf::Arena* arena);
1579 inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
1580 ::google::protobuf::Arena* arena, const Impl_& from,
1581 const Enum& from_msg);
1582 ::google::protobuf::internal::HasBits<1> _has_bits_;
1583 mutable ::google::protobuf::internal::CachedSize _cached_size_;
1584 ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > enumvalue_;
1585 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
1586 ::google::protobuf::internal::ArenaStringPtr name_;
1587 ::google::protobuf::internal::ArenaStringPtr edition_;
1588 ::google::protobuf::SourceContext* source_context_;
1589 int syntax_;
1590 PROTOBUF_TSAN_DECLARE_MEMBER
1591 };
1592 union { Impl_ _impl_; };
1593 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
1594 };
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604 #ifdef __GNUC__
1605 #pragma GCC diagnostic push
1606 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1607 #endif
1608
1609
1610
1611
1612
1613 inline void Type::clear_name() {
1614 ::google::protobuf::internal::TSanWrite(&_impl_);
1615 _impl_.name_.ClearToEmpty();
1616 }
1617 inline const std::string& Type::name() const
1618 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1619
1620 return _internal_name();
1621 }
1622 template <typename Arg_, typename... Args_>
1623 inline PROTOBUF_ALWAYS_INLINE void Type::set_name(Arg_&& arg,
1624 Args_... args) {
1625 ::google::protobuf::internal::TSanWrite(&_impl_);
1626 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1627
1628 }
1629 inline std::string* Type::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1630 std::string* _s = _internal_mutable_name();
1631
1632 return _s;
1633 }
1634 inline const std::string& Type::_internal_name() const {
1635 ::google::protobuf::internal::TSanRead(&_impl_);
1636 return _impl_.name_.Get();
1637 }
1638 inline void Type::_internal_set_name(const std::string& value) {
1639 ::google::protobuf::internal::TSanWrite(&_impl_);
1640 _impl_.name_.Set(value, GetArena());
1641 }
1642 inline std::string* Type::_internal_mutable_name() {
1643 ::google::protobuf::internal::TSanWrite(&_impl_);
1644 return _impl_.name_.Mutable( GetArena());
1645 }
1646 inline std::string* Type::release_name() {
1647 ::google::protobuf::internal::TSanWrite(&_impl_);
1648
1649 return _impl_.name_.Release();
1650 }
1651 inline void Type::set_allocated_name(std::string* value) {
1652 ::google::protobuf::internal::TSanWrite(&_impl_);
1653 _impl_.name_.SetAllocated(value, GetArena());
1654 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1655 if (_impl_.name_.IsDefault()) {
1656 _impl_.name_.Set("", GetArena());
1657 }
1658 #endif
1659
1660 }
1661
1662
1663 inline int Type::_internal_fields_size() const {
1664 return _internal_fields().size();
1665 }
1666 inline int Type::fields_size() const {
1667 return _internal_fields_size();
1668 }
1669 inline void Type::clear_fields() {
1670 ::google::protobuf::internal::TSanWrite(&_impl_);
1671 _impl_.fields_.Clear();
1672 }
1673 inline ::google::protobuf::Field* Type::mutable_fields(int index)
1674 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1675
1676 return _internal_mutable_fields()->Mutable(index);
1677 }
1678 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>* Type::mutable_fields()
1679 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1680
1681 ::google::protobuf::internal::TSanWrite(&_impl_);
1682 return _internal_mutable_fields();
1683 }
1684 inline const ::google::protobuf::Field& Type::fields(int index) const
1685 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1686
1687 return _internal_fields().Get(index);
1688 }
1689 inline ::google::protobuf::Field* Type::add_fields() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1690 ::google::protobuf::internal::TSanWrite(&_impl_);
1691 ::google::protobuf::Field* _add = _internal_mutable_fields()->Add();
1692
1693 return _add;
1694 }
1695 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>& Type::fields() const
1696 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1697
1698 return _internal_fields();
1699 }
1700 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>&
1701 Type::_internal_fields() const {
1702 ::google::protobuf::internal::TSanRead(&_impl_);
1703 return _impl_.fields_;
1704 }
1705 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Field>*
1706 Type::_internal_mutable_fields() {
1707 ::google::protobuf::internal::TSanRead(&_impl_);
1708 return &_impl_.fields_;
1709 }
1710
1711
1712 inline int Type::_internal_oneofs_size() const {
1713 return _internal_oneofs().size();
1714 }
1715 inline int Type::oneofs_size() const {
1716 return _internal_oneofs_size();
1717 }
1718 inline void Type::clear_oneofs() {
1719 ::google::protobuf::internal::TSanWrite(&_impl_);
1720 _impl_.oneofs_.Clear();
1721 }
1722 inline std::string* Type::add_oneofs() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1723 ::google::protobuf::internal::TSanWrite(&_impl_);
1724 std::string* _s = _internal_mutable_oneofs()->Add();
1725
1726 return _s;
1727 }
1728 inline const std::string& Type::oneofs(int index) const
1729 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1730
1731 return _internal_oneofs().Get(index);
1732 }
1733 inline std::string* Type::mutable_oneofs(int index)
1734 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1735
1736 return _internal_mutable_oneofs()->Mutable(index);
1737 }
1738 template <typename Arg_, typename... Args_>
1739 inline void Type::set_oneofs(int index, Arg_&& value, Args_... args) {
1740 ::google::protobuf::internal::AssignToString(
1741 *_internal_mutable_oneofs()->Mutable(index),
1742 std::forward<Arg_>(value), args... );
1743
1744 }
1745 template <typename Arg_, typename... Args_>
1746 inline void Type::add_oneofs(Arg_&& value, Args_... args) {
1747 ::google::protobuf::internal::TSanWrite(&_impl_);
1748 ::google::protobuf::internal::AddToRepeatedPtrField(*_internal_mutable_oneofs(),
1749 std::forward<Arg_>(value),
1750 args... );
1751
1752 }
1753 inline const ::google::protobuf::RepeatedPtrField<std::string>&
1754 Type::oneofs() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1755
1756 return _internal_oneofs();
1757 }
1758 inline ::google::protobuf::RepeatedPtrField<std::string>*
1759 Type::mutable_oneofs() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1760
1761 ::google::protobuf::internal::TSanWrite(&_impl_);
1762 return _internal_mutable_oneofs();
1763 }
1764 inline const ::google::protobuf::RepeatedPtrField<std::string>&
1765 Type::_internal_oneofs() const {
1766 ::google::protobuf::internal::TSanRead(&_impl_);
1767 return _impl_.oneofs_;
1768 }
1769 inline ::google::protobuf::RepeatedPtrField<std::string>*
1770 Type::_internal_mutable_oneofs() {
1771 ::google::protobuf::internal::TSanRead(&_impl_);
1772 return &_impl_.oneofs_;
1773 }
1774
1775
1776 inline int Type::_internal_options_size() const {
1777 return _internal_options().size();
1778 }
1779 inline int Type::options_size() const {
1780 return _internal_options_size();
1781 }
1782 inline void Type::clear_options() {
1783 ::google::protobuf::internal::TSanWrite(&_impl_);
1784 _impl_.options_.Clear();
1785 }
1786 inline ::google::protobuf::Option* Type::mutable_options(int index)
1787 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1788
1789 return _internal_mutable_options()->Mutable(index);
1790 }
1791 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* Type::mutable_options()
1792 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1793
1794 ::google::protobuf::internal::TSanWrite(&_impl_);
1795 return _internal_mutable_options();
1796 }
1797 inline const ::google::protobuf::Option& Type::options(int index) const
1798 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1799
1800 return _internal_options().Get(index);
1801 }
1802 inline ::google::protobuf::Option* Type::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1803 ::google::protobuf::internal::TSanWrite(&_impl_);
1804 ::google::protobuf::Option* _add = _internal_mutable_options()->Add();
1805
1806 return _add;
1807 }
1808 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& Type::options() const
1809 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1810
1811 return _internal_options();
1812 }
1813 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
1814 Type::_internal_options() const {
1815 ::google::protobuf::internal::TSanRead(&_impl_);
1816 return _impl_.options_;
1817 }
1818 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>*
1819 Type::_internal_mutable_options() {
1820 ::google::protobuf::internal::TSanRead(&_impl_);
1821 return &_impl_.options_;
1822 }
1823
1824
1825 inline bool Type::has_source_context() const {
1826 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
1827 PROTOBUF_ASSUME(!value || _impl_.source_context_ != nullptr);
1828 return value;
1829 }
1830 inline const ::google::protobuf::SourceContext& Type::_internal_source_context() const {
1831 ::google::protobuf::internal::TSanRead(&_impl_);
1832 const ::google::protobuf::SourceContext* p = _impl_.source_context_;
1833 return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
1834 }
1835 inline const ::google::protobuf::SourceContext& Type::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
1836
1837 return _internal_source_context();
1838 }
1839 inline void Type::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) {
1840 ::google::protobuf::internal::TSanWrite(&_impl_);
1841 if (GetArena() == nullptr) {
1842 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
1843 }
1844 _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
1845 if (value != nullptr) {
1846 _impl_._has_bits_[0] |= 0x00000001u;
1847 } else {
1848 _impl_._has_bits_[0] &= ~0x00000001u;
1849 }
1850
1851 }
1852 inline ::google::protobuf::SourceContext* Type::release_source_context() {
1853 ::google::protobuf::internal::TSanWrite(&_impl_);
1854
1855 _impl_._has_bits_[0] &= ~0x00000001u;
1856 ::google::protobuf::SourceContext* released = _impl_.source_context_;
1857 _impl_.source_context_ = nullptr;
1858 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1859 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
1860 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1861 if (GetArena() == nullptr) {
1862 delete old;
1863 }
1864 #else
1865 if (GetArena() != nullptr) {
1866 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
1867 }
1868 #endif
1869 return released;
1870 }
1871 inline ::google::protobuf::SourceContext* Type::unsafe_arena_release_source_context() {
1872 ::google::protobuf::internal::TSanWrite(&_impl_);
1873
1874
1875 _impl_._has_bits_[0] &= ~0x00000001u;
1876 ::google::protobuf::SourceContext* temp = _impl_.source_context_;
1877 _impl_.source_context_ = nullptr;
1878 return temp;
1879 }
1880 inline ::google::protobuf::SourceContext* Type::_internal_mutable_source_context() {
1881 ::google::protobuf::internal::TSanWrite(&_impl_);
1882 if (_impl_.source_context_ == nullptr) {
1883 auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
1884 _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
1885 }
1886 return _impl_.source_context_;
1887 }
1888 inline ::google::protobuf::SourceContext* Type::mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1889 _impl_._has_bits_[0] |= 0x00000001u;
1890 ::google::protobuf::SourceContext* _msg = _internal_mutable_source_context();
1891
1892 return _msg;
1893 }
1894 inline void Type::set_allocated_source_context(::google::protobuf::SourceContext* value) {
1895 ::google::protobuf::Arena* message_arena = GetArena();
1896 ::google::protobuf::internal::TSanWrite(&_impl_);
1897 if (message_arena == nullptr) {
1898 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
1899 }
1900
1901 if (value != nullptr) {
1902 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
1903 if (message_arena != submessage_arena) {
1904 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
1905 }
1906 _impl_._has_bits_[0] |= 0x00000001u;
1907 } else {
1908 _impl_._has_bits_[0] &= ~0x00000001u;
1909 }
1910
1911 _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
1912
1913 }
1914
1915
1916 inline void Type::clear_syntax() {
1917 ::google::protobuf::internal::TSanWrite(&_impl_);
1918 _impl_.syntax_ = 0;
1919 }
1920 inline ::google::protobuf::Syntax Type::syntax() const {
1921
1922 return _internal_syntax();
1923 }
1924 inline void Type::set_syntax(::google::protobuf::Syntax value) {
1925 _internal_set_syntax(value);
1926
1927 }
1928 inline ::google::protobuf::Syntax Type::_internal_syntax() const {
1929 ::google::protobuf::internal::TSanRead(&_impl_);
1930 return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
1931 }
1932 inline void Type::_internal_set_syntax(::google::protobuf::Syntax value) {
1933 ::google::protobuf::internal::TSanWrite(&_impl_);
1934 _impl_.syntax_ = value;
1935 }
1936
1937
1938 inline void Type::clear_edition() {
1939 ::google::protobuf::internal::TSanWrite(&_impl_);
1940 _impl_.edition_.ClearToEmpty();
1941 }
1942 inline const std::string& Type::edition() const
1943 ABSL_ATTRIBUTE_LIFETIME_BOUND {
1944
1945 return _internal_edition();
1946 }
1947 template <typename Arg_, typename... Args_>
1948 inline PROTOBUF_ALWAYS_INLINE void Type::set_edition(Arg_&& arg,
1949 Args_... args) {
1950 ::google::protobuf::internal::TSanWrite(&_impl_);
1951 _impl_.edition_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
1952
1953 }
1954 inline std::string* Type::mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND {
1955 std::string* _s = _internal_mutable_edition();
1956
1957 return _s;
1958 }
1959 inline const std::string& Type::_internal_edition() const {
1960 ::google::protobuf::internal::TSanRead(&_impl_);
1961 return _impl_.edition_.Get();
1962 }
1963 inline void Type::_internal_set_edition(const std::string& value) {
1964 ::google::protobuf::internal::TSanWrite(&_impl_);
1965 _impl_.edition_.Set(value, GetArena());
1966 }
1967 inline std::string* Type::_internal_mutable_edition() {
1968 ::google::protobuf::internal::TSanWrite(&_impl_);
1969 return _impl_.edition_.Mutable( GetArena());
1970 }
1971 inline std::string* Type::release_edition() {
1972 ::google::protobuf::internal::TSanWrite(&_impl_);
1973
1974 return _impl_.edition_.Release();
1975 }
1976 inline void Type::set_allocated_edition(std::string* value) {
1977 ::google::protobuf::internal::TSanWrite(&_impl_);
1978 _impl_.edition_.SetAllocated(value, GetArena());
1979 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1980 if (_impl_.edition_.IsDefault()) {
1981 _impl_.edition_.Set("", GetArena());
1982 }
1983 #endif
1984
1985 }
1986
1987
1988
1989
1990
1991
1992 inline void Field::clear_kind() {
1993 ::google::protobuf::internal::TSanWrite(&_impl_);
1994 _impl_.kind_ = 0;
1995 }
1996 inline ::google::protobuf::Field_Kind Field::kind() const {
1997
1998 return _internal_kind();
1999 }
2000 inline void Field::set_kind(::google::protobuf::Field_Kind value) {
2001 _internal_set_kind(value);
2002
2003 }
2004 inline ::google::protobuf::Field_Kind Field::_internal_kind() const {
2005 ::google::protobuf::internal::TSanRead(&_impl_);
2006 return static_cast<::google::protobuf::Field_Kind>(_impl_.kind_);
2007 }
2008 inline void Field::_internal_set_kind(::google::protobuf::Field_Kind value) {
2009 ::google::protobuf::internal::TSanWrite(&_impl_);
2010 _impl_.kind_ = value;
2011 }
2012
2013
2014 inline void Field::clear_cardinality() {
2015 ::google::protobuf::internal::TSanWrite(&_impl_);
2016 _impl_.cardinality_ = 0;
2017 }
2018 inline ::google::protobuf::Field_Cardinality Field::cardinality() const {
2019
2020 return _internal_cardinality();
2021 }
2022 inline void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
2023 _internal_set_cardinality(value);
2024
2025 }
2026 inline ::google::protobuf::Field_Cardinality Field::_internal_cardinality() const {
2027 ::google::protobuf::internal::TSanRead(&_impl_);
2028 return static_cast<::google::protobuf::Field_Cardinality>(_impl_.cardinality_);
2029 }
2030 inline void Field::_internal_set_cardinality(::google::protobuf::Field_Cardinality value) {
2031 ::google::protobuf::internal::TSanWrite(&_impl_);
2032 _impl_.cardinality_ = value;
2033 }
2034
2035
2036 inline void Field::clear_number() {
2037 ::google::protobuf::internal::TSanWrite(&_impl_);
2038 _impl_.number_ = 0;
2039 }
2040 inline ::int32_t Field::number() const {
2041
2042 return _internal_number();
2043 }
2044 inline void Field::set_number(::int32_t value) {
2045 _internal_set_number(value);
2046
2047 }
2048 inline ::int32_t Field::_internal_number() const {
2049 ::google::protobuf::internal::TSanRead(&_impl_);
2050 return _impl_.number_;
2051 }
2052 inline void Field::_internal_set_number(::int32_t value) {
2053 ::google::protobuf::internal::TSanWrite(&_impl_);
2054 _impl_.number_ = value;
2055 }
2056
2057
2058 inline void Field::clear_name() {
2059 ::google::protobuf::internal::TSanWrite(&_impl_);
2060 _impl_.name_.ClearToEmpty();
2061 }
2062 inline const std::string& Field::name() const
2063 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2064
2065 return _internal_name();
2066 }
2067 template <typename Arg_, typename... Args_>
2068 inline PROTOBUF_ALWAYS_INLINE void Field::set_name(Arg_&& arg,
2069 Args_... args) {
2070 ::google::protobuf::internal::TSanWrite(&_impl_);
2071 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2072
2073 }
2074 inline std::string* Field::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2075 std::string* _s = _internal_mutable_name();
2076
2077 return _s;
2078 }
2079 inline const std::string& Field::_internal_name() const {
2080 ::google::protobuf::internal::TSanRead(&_impl_);
2081 return _impl_.name_.Get();
2082 }
2083 inline void Field::_internal_set_name(const std::string& value) {
2084 ::google::protobuf::internal::TSanWrite(&_impl_);
2085 _impl_.name_.Set(value, GetArena());
2086 }
2087 inline std::string* Field::_internal_mutable_name() {
2088 ::google::protobuf::internal::TSanWrite(&_impl_);
2089 return _impl_.name_.Mutable( GetArena());
2090 }
2091 inline std::string* Field::release_name() {
2092 ::google::protobuf::internal::TSanWrite(&_impl_);
2093
2094 return _impl_.name_.Release();
2095 }
2096 inline void Field::set_allocated_name(std::string* value) {
2097 ::google::protobuf::internal::TSanWrite(&_impl_);
2098 _impl_.name_.SetAllocated(value, GetArena());
2099 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2100 if (_impl_.name_.IsDefault()) {
2101 _impl_.name_.Set("", GetArena());
2102 }
2103 #endif
2104
2105 }
2106
2107
2108 inline void Field::clear_type_url() {
2109 ::google::protobuf::internal::TSanWrite(&_impl_);
2110 _impl_.type_url_.ClearToEmpty();
2111 }
2112 inline const std::string& Field::type_url() const
2113 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2114
2115 return _internal_type_url();
2116 }
2117 template <typename Arg_, typename... Args_>
2118 inline PROTOBUF_ALWAYS_INLINE void Field::set_type_url(Arg_&& arg,
2119 Args_... args) {
2120 ::google::protobuf::internal::TSanWrite(&_impl_);
2121 _impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2122
2123 }
2124 inline std::string* Field::mutable_type_url() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2125 std::string* _s = _internal_mutable_type_url();
2126
2127 return _s;
2128 }
2129 inline const std::string& Field::_internal_type_url() const {
2130 ::google::protobuf::internal::TSanRead(&_impl_);
2131 return _impl_.type_url_.Get();
2132 }
2133 inline void Field::_internal_set_type_url(const std::string& value) {
2134 ::google::protobuf::internal::TSanWrite(&_impl_);
2135 _impl_.type_url_.Set(value, GetArena());
2136 }
2137 inline std::string* Field::_internal_mutable_type_url() {
2138 ::google::protobuf::internal::TSanWrite(&_impl_);
2139 return _impl_.type_url_.Mutable( GetArena());
2140 }
2141 inline std::string* Field::release_type_url() {
2142 ::google::protobuf::internal::TSanWrite(&_impl_);
2143
2144 return _impl_.type_url_.Release();
2145 }
2146 inline void Field::set_allocated_type_url(std::string* value) {
2147 ::google::protobuf::internal::TSanWrite(&_impl_);
2148 _impl_.type_url_.SetAllocated(value, GetArena());
2149 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2150 if (_impl_.type_url_.IsDefault()) {
2151 _impl_.type_url_.Set("", GetArena());
2152 }
2153 #endif
2154
2155 }
2156
2157
2158 inline void Field::clear_oneof_index() {
2159 ::google::protobuf::internal::TSanWrite(&_impl_);
2160 _impl_.oneof_index_ = 0;
2161 }
2162 inline ::int32_t Field::oneof_index() const {
2163
2164 return _internal_oneof_index();
2165 }
2166 inline void Field::set_oneof_index(::int32_t value) {
2167 _internal_set_oneof_index(value);
2168
2169 }
2170 inline ::int32_t Field::_internal_oneof_index() const {
2171 ::google::protobuf::internal::TSanRead(&_impl_);
2172 return _impl_.oneof_index_;
2173 }
2174 inline void Field::_internal_set_oneof_index(::int32_t value) {
2175 ::google::protobuf::internal::TSanWrite(&_impl_);
2176 _impl_.oneof_index_ = value;
2177 }
2178
2179
2180 inline void Field::clear_packed() {
2181 ::google::protobuf::internal::TSanWrite(&_impl_);
2182 _impl_.packed_ = false;
2183 }
2184 inline bool Field::packed() const {
2185
2186 return _internal_packed();
2187 }
2188 inline void Field::set_packed(bool value) {
2189 _internal_set_packed(value);
2190
2191 }
2192 inline bool Field::_internal_packed() const {
2193 ::google::protobuf::internal::TSanRead(&_impl_);
2194 return _impl_.packed_;
2195 }
2196 inline void Field::_internal_set_packed(bool value) {
2197 ::google::protobuf::internal::TSanWrite(&_impl_);
2198 _impl_.packed_ = value;
2199 }
2200
2201
2202 inline int Field::_internal_options_size() const {
2203 return _internal_options().size();
2204 }
2205 inline int Field::options_size() const {
2206 return _internal_options_size();
2207 }
2208 inline void Field::clear_options() {
2209 ::google::protobuf::internal::TSanWrite(&_impl_);
2210 _impl_.options_.Clear();
2211 }
2212 inline ::google::protobuf::Option* Field::mutable_options(int index)
2213 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2214
2215 return _internal_mutable_options()->Mutable(index);
2216 }
2217 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* Field::mutable_options()
2218 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2219
2220 ::google::protobuf::internal::TSanWrite(&_impl_);
2221 return _internal_mutable_options();
2222 }
2223 inline const ::google::protobuf::Option& Field::options(int index) const
2224 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2225
2226 return _internal_options().Get(index);
2227 }
2228 inline ::google::protobuf::Option* Field::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2229 ::google::protobuf::internal::TSanWrite(&_impl_);
2230 ::google::protobuf::Option* _add = _internal_mutable_options()->Add();
2231
2232 return _add;
2233 }
2234 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& Field::options() const
2235 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2236
2237 return _internal_options();
2238 }
2239 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
2240 Field::_internal_options() const {
2241 ::google::protobuf::internal::TSanRead(&_impl_);
2242 return _impl_.options_;
2243 }
2244 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>*
2245 Field::_internal_mutable_options() {
2246 ::google::protobuf::internal::TSanRead(&_impl_);
2247 return &_impl_.options_;
2248 }
2249
2250
2251 inline void Field::clear_json_name() {
2252 ::google::protobuf::internal::TSanWrite(&_impl_);
2253 _impl_.json_name_.ClearToEmpty();
2254 }
2255 inline const std::string& Field::json_name() const
2256 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2257
2258 return _internal_json_name();
2259 }
2260 template <typename Arg_, typename... Args_>
2261 inline PROTOBUF_ALWAYS_INLINE void Field::set_json_name(Arg_&& arg,
2262 Args_... args) {
2263 ::google::protobuf::internal::TSanWrite(&_impl_);
2264 _impl_.json_name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2265
2266 }
2267 inline std::string* Field::mutable_json_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2268 std::string* _s = _internal_mutable_json_name();
2269
2270 return _s;
2271 }
2272 inline const std::string& Field::_internal_json_name() const {
2273 ::google::protobuf::internal::TSanRead(&_impl_);
2274 return _impl_.json_name_.Get();
2275 }
2276 inline void Field::_internal_set_json_name(const std::string& value) {
2277 ::google::protobuf::internal::TSanWrite(&_impl_);
2278 _impl_.json_name_.Set(value, GetArena());
2279 }
2280 inline std::string* Field::_internal_mutable_json_name() {
2281 ::google::protobuf::internal::TSanWrite(&_impl_);
2282 return _impl_.json_name_.Mutable( GetArena());
2283 }
2284 inline std::string* Field::release_json_name() {
2285 ::google::protobuf::internal::TSanWrite(&_impl_);
2286
2287 return _impl_.json_name_.Release();
2288 }
2289 inline void Field::set_allocated_json_name(std::string* value) {
2290 ::google::protobuf::internal::TSanWrite(&_impl_);
2291 _impl_.json_name_.SetAllocated(value, GetArena());
2292 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2293 if (_impl_.json_name_.IsDefault()) {
2294 _impl_.json_name_.Set("", GetArena());
2295 }
2296 #endif
2297
2298 }
2299
2300
2301 inline void Field::clear_default_value() {
2302 ::google::protobuf::internal::TSanWrite(&_impl_);
2303 _impl_.default_value_.ClearToEmpty();
2304 }
2305 inline const std::string& Field::default_value() const
2306 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2307
2308 return _internal_default_value();
2309 }
2310 template <typename Arg_, typename... Args_>
2311 inline PROTOBUF_ALWAYS_INLINE void Field::set_default_value(Arg_&& arg,
2312 Args_... args) {
2313 ::google::protobuf::internal::TSanWrite(&_impl_);
2314 _impl_.default_value_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2315
2316 }
2317 inline std::string* Field::mutable_default_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2318 std::string* _s = _internal_mutable_default_value();
2319
2320 return _s;
2321 }
2322 inline const std::string& Field::_internal_default_value() const {
2323 ::google::protobuf::internal::TSanRead(&_impl_);
2324 return _impl_.default_value_.Get();
2325 }
2326 inline void Field::_internal_set_default_value(const std::string& value) {
2327 ::google::protobuf::internal::TSanWrite(&_impl_);
2328 _impl_.default_value_.Set(value, GetArena());
2329 }
2330 inline std::string* Field::_internal_mutable_default_value() {
2331 ::google::protobuf::internal::TSanWrite(&_impl_);
2332 return _impl_.default_value_.Mutable( GetArena());
2333 }
2334 inline std::string* Field::release_default_value() {
2335 ::google::protobuf::internal::TSanWrite(&_impl_);
2336
2337 return _impl_.default_value_.Release();
2338 }
2339 inline void Field::set_allocated_default_value(std::string* value) {
2340 ::google::protobuf::internal::TSanWrite(&_impl_);
2341 _impl_.default_value_.SetAllocated(value, GetArena());
2342 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2343 if (_impl_.default_value_.IsDefault()) {
2344 _impl_.default_value_.Set("", GetArena());
2345 }
2346 #endif
2347
2348 }
2349
2350
2351
2352
2353
2354
2355 inline void Enum::clear_name() {
2356 ::google::protobuf::internal::TSanWrite(&_impl_);
2357 _impl_.name_.ClearToEmpty();
2358 }
2359 inline const std::string& Enum::name() const
2360 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2361
2362 return _internal_name();
2363 }
2364 template <typename Arg_, typename... Args_>
2365 inline PROTOBUF_ALWAYS_INLINE void Enum::set_name(Arg_&& arg,
2366 Args_... args) {
2367 ::google::protobuf::internal::TSanWrite(&_impl_);
2368 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2369
2370 }
2371 inline std::string* Enum::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2372 std::string* _s = _internal_mutable_name();
2373
2374 return _s;
2375 }
2376 inline const std::string& Enum::_internal_name() const {
2377 ::google::protobuf::internal::TSanRead(&_impl_);
2378 return _impl_.name_.Get();
2379 }
2380 inline void Enum::_internal_set_name(const std::string& value) {
2381 ::google::protobuf::internal::TSanWrite(&_impl_);
2382 _impl_.name_.Set(value, GetArena());
2383 }
2384 inline std::string* Enum::_internal_mutable_name() {
2385 ::google::protobuf::internal::TSanWrite(&_impl_);
2386 return _impl_.name_.Mutable( GetArena());
2387 }
2388 inline std::string* Enum::release_name() {
2389 ::google::protobuf::internal::TSanWrite(&_impl_);
2390
2391 return _impl_.name_.Release();
2392 }
2393 inline void Enum::set_allocated_name(std::string* value) {
2394 ::google::protobuf::internal::TSanWrite(&_impl_);
2395 _impl_.name_.SetAllocated(value, GetArena());
2396 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2397 if (_impl_.name_.IsDefault()) {
2398 _impl_.name_.Set("", GetArena());
2399 }
2400 #endif
2401
2402 }
2403
2404
2405 inline int Enum::_internal_enumvalue_size() const {
2406 return _internal_enumvalue().size();
2407 }
2408 inline int Enum::enumvalue_size() const {
2409 return _internal_enumvalue_size();
2410 }
2411 inline void Enum::clear_enumvalue() {
2412 ::google::protobuf::internal::TSanWrite(&_impl_);
2413 _impl_.enumvalue_.Clear();
2414 }
2415 inline ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index)
2416 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2417
2418 return _internal_mutable_enumvalue()->Mutable(index);
2419 }
2420 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>* Enum::mutable_enumvalue()
2421 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2422
2423 ::google::protobuf::internal::TSanWrite(&_impl_);
2424 return _internal_mutable_enumvalue();
2425 }
2426 inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const
2427 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2428
2429 return _internal_enumvalue().Get(index);
2430 }
2431 inline ::google::protobuf::EnumValue* Enum::add_enumvalue() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2432 ::google::protobuf::internal::TSanWrite(&_impl_);
2433 ::google::protobuf::EnumValue* _add = _internal_mutable_enumvalue()->Add();
2434
2435 return _add;
2436 }
2437 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>& Enum::enumvalue() const
2438 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2439
2440 return _internal_enumvalue();
2441 }
2442 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>&
2443 Enum::_internal_enumvalue() const {
2444 ::google::protobuf::internal::TSanRead(&_impl_);
2445 return _impl_.enumvalue_;
2446 }
2447 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::EnumValue>*
2448 Enum::_internal_mutable_enumvalue() {
2449 ::google::protobuf::internal::TSanRead(&_impl_);
2450 return &_impl_.enumvalue_;
2451 }
2452
2453
2454 inline int Enum::_internal_options_size() const {
2455 return _internal_options().size();
2456 }
2457 inline int Enum::options_size() const {
2458 return _internal_options_size();
2459 }
2460 inline void Enum::clear_options() {
2461 ::google::protobuf::internal::TSanWrite(&_impl_);
2462 _impl_.options_.Clear();
2463 }
2464 inline ::google::protobuf::Option* Enum::mutable_options(int index)
2465 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2466
2467 return _internal_mutable_options()->Mutable(index);
2468 }
2469 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* Enum::mutable_options()
2470 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2471
2472 ::google::protobuf::internal::TSanWrite(&_impl_);
2473 return _internal_mutable_options();
2474 }
2475 inline const ::google::protobuf::Option& Enum::options(int index) const
2476 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2477
2478 return _internal_options().Get(index);
2479 }
2480 inline ::google::protobuf::Option* Enum::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2481 ::google::protobuf::internal::TSanWrite(&_impl_);
2482 ::google::protobuf::Option* _add = _internal_mutable_options()->Add();
2483
2484 return _add;
2485 }
2486 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& Enum::options() const
2487 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2488
2489 return _internal_options();
2490 }
2491 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
2492 Enum::_internal_options() const {
2493 ::google::protobuf::internal::TSanRead(&_impl_);
2494 return _impl_.options_;
2495 }
2496 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>*
2497 Enum::_internal_mutable_options() {
2498 ::google::protobuf::internal::TSanRead(&_impl_);
2499 return &_impl_.options_;
2500 }
2501
2502
2503 inline bool Enum::has_source_context() const {
2504 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
2505 PROTOBUF_ASSUME(!value || _impl_.source_context_ != nullptr);
2506 return value;
2507 }
2508 inline const ::google::protobuf::SourceContext& Enum::_internal_source_context() const {
2509 ::google::protobuf::internal::TSanRead(&_impl_);
2510 const ::google::protobuf::SourceContext* p = _impl_.source_context_;
2511 return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::SourceContext&>(::google::protobuf::_SourceContext_default_instance_);
2512 }
2513 inline const ::google::protobuf::SourceContext& Enum::source_context() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
2514
2515 return _internal_source_context();
2516 }
2517 inline void Enum::unsafe_arena_set_allocated_source_context(::google::protobuf::SourceContext* value) {
2518 ::google::protobuf::internal::TSanWrite(&_impl_);
2519 if (GetArena() == nullptr) {
2520 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
2521 }
2522 _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
2523 if (value != nullptr) {
2524 _impl_._has_bits_[0] |= 0x00000001u;
2525 } else {
2526 _impl_._has_bits_[0] &= ~0x00000001u;
2527 }
2528
2529 }
2530 inline ::google::protobuf::SourceContext* Enum::release_source_context() {
2531 ::google::protobuf::internal::TSanWrite(&_impl_);
2532
2533 _impl_._has_bits_[0] &= ~0x00000001u;
2534 ::google::protobuf::SourceContext* released = _impl_.source_context_;
2535 _impl_.source_context_ = nullptr;
2536 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2537 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
2538 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
2539 if (GetArena() == nullptr) {
2540 delete old;
2541 }
2542 #else
2543 if (GetArena() != nullptr) {
2544 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
2545 }
2546 #endif
2547 return released;
2548 }
2549 inline ::google::protobuf::SourceContext* Enum::unsafe_arena_release_source_context() {
2550 ::google::protobuf::internal::TSanWrite(&_impl_);
2551
2552
2553 _impl_._has_bits_[0] &= ~0x00000001u;
2554 ::google::protobuf::SourceContext* temp = _impl_.source_context_;
2555 _impl_.source_context_ = nullptr;
2556 return temp;
2557 }
2558 inline ::google::protobuf::SourceContext* Enum::_internal_mutable_source_context() {
2559 ::google::protobuf::internal::TSanWrite(&_impl_);
2560 if (_impl_.source_context_ == nullptr) {
2561 auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::SourceContext>(GetArena());
2562 _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(p);
2563 }
2564 return _impl_.source_context_;
2565 }
2566 inline ::google::protobuf::SourceContext* Enum::mutable_source_context() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2567 _impl_._has_bits_[0] |= 0x00000001u;
2568 ::google::protobuf::SourceContext* _msg = _internal_mutable_source_context();
2569
2570 return _msg;
2571 }
2572 inline void Enum::set_allocated_source_context(::google::protobuf::SourceContext* value) {
2573 ::google::protobuf::Arena* message_arena = GetArena();
2574 ::google::protobuf::internal::TSanWrite(&_impl_);
2575 if (message_arena == nullptr) {
2576 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.source_context_);
2577 }
2578
2579 if (value != nullptr) {
2580 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
2581 if (message_arena != submessage_arena) {
2582 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
2583 }
2584 _impl_._has_bits_[0] |= 0x00000001u;
2585 } else {
2586 _impl_._has_bits_[0] &= ~0x00000001u;
2587 }
2588
2589 _impl_.source_context_ = reinterpret_cast<::google::protobuf::SourceContext*>(value);
2590
2591 }
2592
2593
2594 inline void Enum::clear_syntax() {
2595 ::google::protobuf::internal::TSanWrite(&_impl_);
2596 _impl_.syntax_ = 0;
2597 }
2598 inline ::google::protobuf::Syntax Enum::syntax() const {
2599
2600 return _internal_syntax();
2601 }
2602 inline void Enum::set_syntax(::google::protobuf::Syntax value) {
2603 _internal_set_syntax(value);
2604
2605 }
2606 inline ::google::protobuf::Syntax Enum::_internal_syntax() const {
2607 ::google::protobuf::internal::TSanRead(&_impl_);
2608 return static_cast<::google::protobuf::Syntax>(_impl_.syntax_);
2609 }
2610 inline void Enum::_internal_set_syntax(::google::protobuf::Syntax value) {
2611 ::google::protobuf::internal::TSanWrite(&_impl_);
2612 _impl_.syntax_ = value;
2613 }
2614
2615
2616 inline void Enum::clear_edition() {
2617 ::google::protobuf::internal::TSanWrite(&_impl_);
2618 _impl_.edition_.ClearToEmpty();
2619 }
2620 inline const std::string& Enum::edition() const
2621 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2622
2623 return _internal_edition();
2624 }
2625 template <typename Arg_, typename... Args_>
2626 inline PROTOBUF_ALWAYS_INLINE void Enum::set_edition(Arg_&& arg,
2627 Args_... args) {
2628 ::google::protobuf::internal::TSanWrite(&_impl_);
2629 _impl_.edition_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2630
2631 }
2632 inline std::string* Enum::mutable_edition() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2633 std::string* _s = _internal_mutable_edition();
2634
2635 return _s;
2636 }
2637 inline const std::string& Enum::_internal_edition() const {
2638 ::google::protobuf::internal::TSanRead(&_impl_);
2639 return _impl_.edition_.Get();
2640 }
2641 inline void Enum::_internal_set_edition(const std::string& value) {
2642 ::google::protobuf::internal::TSanWrite(&_impl_);
2643 _impl_.edition_.Set(value, GetArena());
2644 }
2645 inline std::string* Enum::_internal_mutable_edition() {
2646 ::google::protobuf::internal::TSanWrite(&_impl_);
2647 return _impl_.edition_.Mutable( GetArena());
2648 }
2649 inline std::string* Enum::release_edition() {
2650 ::google::protobuf::internal::TSanWrite(&_impl_);
2651
2652 return _impl_.edition_.Release();
2653 }
2654 inline void Enum::set_allocated_edition(std::string* value) {
2655 ::google::protobuf::internal::TSanWrite(&_impl_);
2656 _impl_.edition_.SetAllocated(value, GetArena());
2657 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2658 if (_impl_.edition_.IsDefault()) {
2659 _impl_.edition_.Set("", GetArena());
2660 }
2661 #endif
2662
2663 }
2664
2665
2666
2667
2668
2669
2670 inline void EnumValue::clear_name() {
2671 ::google::protobuf::internal::TSanWrite(&_impl_);
2672 _impl_.name_.ClearToEmpty();
2673 }
2674 inline const std::string& EnumValue::name() const
2675 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2676
2677 return _internal_name();
2678 }
2679 template <typename Arg_, typename... Args_>
2680 inline PROTOBUF_ALWAYS_INLINE void EnumValue::set_name(Arg_&& arg,
2681 Args_... args) {
2682 ::google::protobuf::internal::TSanWrite(&_impl_);
2683 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2684
2685 }
2686 inline std::string* EnumValue::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2687 std::string* _s = _internal_mutable_name();
2688
2689 return _s;
2690 }
2691 inline const std::string& EnumValue::_internal_name() const {
2692 ::google::protobuf::internal::TSanRead(&_impl_);
2693 return _impl_.name_.Get();
2694 }
2695 inline void EnumValue::_internal_set_name(const std::string& value) {
2696 ::google::protobuf::internal::TSanWrite(&_impl_);
2697 _impl_.name_.Set(value, GetArena());
2698 }
2699 inline std::string* EnumValue::_internal_mutable_name() {
2700 ::google::protobuf::internal::TSanWrite(&_impl_);
2701 return _impl_.name_.Mutable( GetArena());
2702 }
2703 inline std::string* EnumValue::release_name() {
2704 ::google::protobuf::internal::TSanWrite(&_impl_);
2705
2706 return _impl_.name_.Release();
2707 }
2708 inline void EnumValue::set_allocated_name(std::string* value) {
2709 ::google::protobuf::internal::TSanWrite(&_impl_);
2710 _impl_.name_.SetAllocated(value, GetArena());
2711 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2712 if (_impl_.name_.IsDefault()) {
2713 _impl_.name_.Set("", GetArena());
2714 }
2715 #endif
2716
2717 }
2718
2719
2720 inline void EnumValue::clear_number() {
2721 ::google::protobuf::internal::TSanWrite(&_impl_);
2722 _impl_.number_ = 0;
2723 }
2724 inline ::int32_t EnumValue::number() const {
2725
2726 return _internal_number();
2727 }
2728 inline void EnumValue::set_number(::int32_t value) {
2729 _internal_set_number(value);
2730
2731 }
2732 inline ::int32_t EnumValue::_internal_number() const {
2733 ::google::protobuf::internal::TSanRead(&_impl_);
2734 return _impl_.number_;
2735 }
2736 inline void EnumValue::_internal_set_number(::int32_t value) {
2737 ::google::protobuf::internal::TSanWrite(&_impl_);
2738 _impl_.number_ = value;
2739 }
2740
2741
2742 inline int EnumValue::_internal_options_size() const {
2743 return _internal_options().size();
2744 }
2745 inline int EnumValue::options_size() const {
2746 return _internal_options_size();
2747 }
2748 inline void EnumValue::clear_options() {
2749 ::google::protobuf::internal::TSanWrite(&_impl_);
2750 _impl_.options_.Clear();
2751 }
2752 inline ::google::protobuf::Option* EnumValue::mutable_options(int index)
2753 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2754
2755 return _internal_mutable_options()->Mutable(index);
2756 }
2757 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>* EnumValue::mutable_options()
2758 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2759
2760 ::google::protobuf::internal::TSanWrite(&_impl_);
2761 return _internal_mutable_options();
2762 }
2763 inline const ::google::protobuf::Option& EnumValue::options(int index) const
2764 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2765
2766 return _internal_options().Get(index);
2767 }
2768 inline ::google::protobuf::Option* EnumValue::add_options() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2769 ::google::protobuf::internal::TSanWrite(&_impl_);
2770 ::google::protobuf::Option* _add = _internal_mutable_options()->Add();
2771
2772 return _add;
2773 }
2774 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>& EnumValue::options() const
2775 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2776
2777 return _internal_options();
2778 }
2779 inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>&
2780 EnumValue::_internal_options() const {
2781 ::google::protobuf::internal::TSanRead(&_impl_);
2782 return _impl_.options_;
2783 }
2784 inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Option>*
2785 EnumValue::_internal_mutable_options() {
2786 ::google::protobuf::internal::TSanRead(&_impl_);
2787 return &_impl_.options_;
2788 }
2789
2790
2791
2792
2793
2794
2795 inline void Option::clear_name() {
2796 ::google::protobuf::internal::TSanWrite(&_impl_);
2797 _impl_.name_.ClearToEmpty();
2798 }
2799 inline const std::string& Option::name() const
2800 ABSL_ATTRIBUTE_LIFETIME_BOUND {
2801
2802 return _internal_name();
2803 }
2804 template <typename Arg_, typename... Args_>
2805 inline PROTOBUF_ALWAYS_INLINE void Option::set_name(Arg_&& arg,
2806 Args_... args) {
2807 ::google::protobuf::internal::TSanWrite(&_impl_);
2808 _impl_.name_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
2809
2810 }
2811 inline std::string* Option::mutable_name() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2812 std::string* _s = _internal_mutable_name();
2813
2814 return _s;
2815 }
2816 inline const std::string& Option::_internal_name() const {
2817 ::google::protobuf::internal::TSanRead(&_impl_);
2818 return _impl_.name_.Get();
2819 }
2820 inline void Option::_internal_set_name(const std::string& value) {
2821 ::google::protobuf::internal::TSanWrite(&_impl_);
2822 _impl_.name_.Set(value, GetArena());
2823 }
2824 inline std::string* Option::_internal_mutable_name() {
2825 ::google::protobuf::internal::TSanWrite(&_impl_);
2826 return _impl_.name_.Mutable( GetArena());
2827 }
2828 inline std::string* Option::release_name() {
2829 ::google::protobuf::internal::TSanWrite(&_impl_);
2830
2831 return _impl_.name_.Release();
2832 }
2833 inline void Option::set_allocated_name(std::string* value) {
2834 ::google::protobuf::internal::TSanWrite(&_impl_);
2835 _impl_.name_.SetAllocated(value, GetArena());
2836 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
2837 if (_impl_.name_.IsDefault()) {
2838 _impl_.name_.Set("", GetArena());
2839 }
2840 #endif
2841
2842 }
2843
2844
2845 inline bool Option::has_value() const {
2846 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
2847 PROTOBUF_ASSUME(!value || _impl_.value_ != nullptr);
2848 return value;
2849 }
2850 inline const ::google::protobuf::Any& Option::_internal_value() const {
2851 ::google::protobuf::internal::TSanRead(&_impl_);
2852 const ::google::protobuf::Any* p = _impl_.value_;
2853 return p != nullptr ? *p : reinterpret_cast<const ::google::protobuf::Any&>(::google::protobuf::_Any_default_instance_);
2854 }
2855 inline const ::google::protobuf::Any& Option::value() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
2856
2857 return _internal_value();
2858 }
2859 inline void Option::unsafe_arena_set_allocated_value(::google::protobuf::Any* value) {
2860 ::google::protobuf::internal::TSanWrite(&_impl_);
2861 if (GetArena() == nullptr) {
2862 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
2863 }
2864 _impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(value);
2865 if (value != nullptr) {
2866 _impl_._has_bits_[0] |= 0x00000001u;
2867 } else {
2868 _impl_._has_bits_[0] &= ~0x00000001u;
2869 }
2870
2871 }
2872 inline ::google::protobuf::Any* Option::release_value() {
2873 ::google::protobuf::internal::TSanWrite(&_impl_);
2874
2875 _impl_._has_bits_[0] &= ~0x00000001u;
2876 ::google::protobuf::Any* released = _impl_.value_;
2877 _impl_.value_ = nullptr;
2878 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2879 auto* old = reinterpret_cast<::google::protobuf::MessageLite*>(released);
2880 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
2881 if (GetArena() == nullptr) {
2882 delete old;
2883 }
2884 #else
2885 if (GetArena() != nullptr) {
2886 released = ::google::protobuf::internal::DuplicateIfNonNull(released);
2887 }
2888 #endif
2889 return released;
2890 }
2891 inline ::google::protobuf::Any* Option::unsafe_arena_release_value() {
2892 ::google::protobuf::internal::TSanWrite(&_impl_);
2893
2894
2895 _impl_._has_bits_[0] &= ~0x00000001u;
2896 ::google::protobuf::Any* temp = _impl_.value_;
2897 _impl_.value_ = nullptr;
2898 return temp;
2899 }
2900 inline ::google::protobuf::Any* Option::_internal_mutable_value() {
2901 ::google::protobuf::internal::TSanWrite(&_impl_);
2902 if (_impl_.value_ == nullptr) {
2903 auto* p = ::google::protobuf::Message::DefaultConstruct<::google::protobuf::Any>(GetArena());
2904 _impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(p);
2905 }
2906 return _impl_.value_;
2907 }
2908 inline ::google::protobuf::Any* Option::mutable_value() ABSL_ATTRIBUTE_LIFETIME_BOUND {
2909 _impl_._has_bits_[0] |= 0x00000001u;
2910 ::google::protobuf::Any* _msg = _internal_mutable_value();
2911
2912 return _msg;
2913 }
2914 inline void Option::set_allocated_value(::google::protobuf::Any* value) {
2915 ::google::protobuf::Arena* message_arena = GetArena();
2916 ::google::protobuf::internal::TSanWrite(&_impl_);
2917 if (message_arena == nullptr) {
2918 delete reinterpret_cast<::google::protobuf::MessageLite*>(_impl_.value_);
2919 }
2920
2921 if (value != nullptr) {
2922 ::google::protobuf::Arena* submessage_arena = reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena();
2923 if (message_arena != submessage_arena) {
2924 value = ::google::protobuf::internal::GetOwnedMessage(message_arena, value, submessage_arena);
2925 }
2926 _impl_._has_bits_[0] |= 0x00000001u;
2927 } else {
2928 _impl_._has_bits_[0] &= ~0x00000001u;
2929 }
2930
2931 _impl_.value_ = reinterpret_cast<::google::protobuf::Any*>(value);
2932
2933 }
2934
2935 #ifdef __GNUC__
2936 #pragma GCC diagnostic pop
2937 #endif
2938
2939
2940 }
2941 }
2942
2943
2944 namespace google {
2945 namespace protobuf {
2946
2947 template <>
2948 struct is_proto_enum<::google::protobuf::Field_Kind> : std::true_type {};
2949 template <>
2950 inline const EnumDescriptor* GetEnumDescriptor<::google::protobuf::Field_Kind>() {
2951 return ::google::protobuf::Field_Kind_descriptor();
2952 }
2953 template <>
2954 struct is_proto_enum<::google::protobuf::Field_Cardinality> : std::true_type {};
2955 template <>
2956 inline const EnumDescriptor* GetEnumDescriptor<::google::protobuf::Field_Cardinality>() {
2957 return ::google::protobuf::Field_Cardinality_descriptor();
2958 }
2959 template <>
2960 struct is_proto_enum<::google::protobuf::Syntax> : std::true_type {};
2961 template <>
2962 inline const EnumDescriptor* GetEnumDescriptor<::google::protobuf::Syntax>() {
2963 return ::google::protobuf::Syntax_descriptor();
2964 }
2965
2966 }
2967 }
2968
2969
2970
2971 #include "google/protobuf/port_undef.inc"
2972
2973 #endif