Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-17 09:15:28

0001 // Generated by the protocol buffer compiler.  DO NOT EDIT!
0002 // NO CHECKED-IN PROTOBUF GENCODE
0003 // source: google/protobuf/any.proto
0004 // Protobuf C++ Version: 6.32.1
0005 
0006 #ifndef google_2fprotobuf_2fany_2eproto_2epb_2eh
0007 #define google_2fprotobuf_2fany_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 != 6032001
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/message_lite.h"
0029 #include "google/protobuf/repeated_field.h"  // IWYU pragma: export
0030 #include "google/protobuf/extension_set.h"  // IWYU pragma: export
0031 #include "google/protobuf/unknown_field_set.h"
0032 // @@protoc_insertion_point(includes)
0033 
0034 // Must be included last.
0035 #include "google/protobuf/port_def.inc"
0036 
0037 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto PROTOBUF_EXPORT
0038 
0039 namespace google {
0040 namespace protobuf {
0041 namespace internal {
0042 template <typename T>
0043 ::absl::string_view GetAnyMessageName();
0044 }  // namespace internal
0045 }  // namespace protobuf
0046 }  // namespace google
0047 
0048 // Internal implementation detail -- do not use these members.
0049 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fany_2eproto {
0050   static const ::uint32_t offsets[];
0051 };
0052 extern "C" {
0053 PROTOBUF_EXPORT extern const ::google::protobuf::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fany_2eproto;
0054 }  // extern "C"
0055 namespace google {
0056 namespace protobuf {
0057 class Any;
0058 struct AnyDefaultTypeInternal;
0059 PROTOBUF_EXPORT extern AnyDefaultTypeInternal _Any_default_instance_;
0060 PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Any_class_data_;
0061 }  // namespace protobuf
0062 }  // namespace google
0063 
0064 namespace google {
0065 namespace protobuf {
0066 
0067 // ===================================================================
0068 
0069 
0070 // -------------------------------------------------------------------
0071 
0072 class PROTOBUF_EXPORT Any final : public ::google::protobuf::Message
0073 /* @@protoc_insertion_point(class_definition:google.protobuf.Any) */ {
0074  public:
0075   inline Any() : Any(nullptr) {}
0076   ~Any() PROTOBUF_FINAL;
0077 
0078 #if defined(PROTOBUF_CUSTOM_VTABLE)
0079   void operator delete(Any* PROTOBUF_NONNULL msg, ::std::destroying_delete_t) {
0080     SharedDtor(*msg);
0081     ::google::protobuf::internal::SizedDelete(msg, sizeof(Any));
0082   }
0083 #endif
0084 
0085   template <typename = void>
0086   explicit PROTOBUF_CONSTEXPR Any(::google::protobuf::internal::ConstantInitialized);
0087 
0088   inline Any(const Any& from) : Any(nullptr, from) {}
0089   inline Any(Any&& from) noexcept
0090       : Any(nullptr, ::std::move(from)) {}
0091   inline Any& operator=(const Any& from) {
0092     CopyFrom(from);
0093     return *this;
0094   }
0095   inline Any& operator=(Any&& from) noexcept {
0096     if (this == &from) return *this;
0097     if (::google::protobuf::internal::CanMoveWithInternalSwap(GetArena(), from.GetArena())) {
0098       InternalSwap(&from);
0099     } else {
0100       CopyFrom(from);
0101     }
0102     return *this;
0103   }
0104 
0105   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
0106       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0107     return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
0108   }
0109   inline ::google::protobuf::UnknownFieldSet* PROTOBUF_NONNULL mutable_unknown_fields()
0110       ABSL_ATTRIBUTE_LIFETIME_BOUND {
0111     return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
0112   }
0113 
0114   static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL descriptor() {
0115     return GetDescriptor();
0116   }
0117   static const ::google::protobuf::Descriptor* PROTOBUF_NONNULL GetDescriptor() {
0118     return default_instance().GetMetadata().descriptor;
0119   }
0120   static const ::google::protobuf::Reflection* PROTOBUF_NONNULL GetReflection() {
0121     return default_instance().GetMetadata().reflection;
0122   }
0123   static const Any& default_instance() {
0124     return *reinterpret_cast<const Any*>(
0125         &_Any_default_instance_);
0126   }
0127   static constexpr int kIndexInFileMessages = 0;
0128   // implements Any
0129   // -----------------------------------------------
0130 
0131   bool PackFrom(const ::google::protobuf::Message& message) {
0132     ABSL_DCHECK_NE(&message, this);
0133     return ::google::protobuf::internal::InternalPackFrom(message, mutable_type_url(),
0134                                    _internal_mutable_value());
0135   }
0136   bool PackFrom(const ::google::protobuf::Message& message,
0137                 ::absl::string_view type_url_prefix) {
0138     ABSL_DCHECK_NE(&message, this);
0139     return ::google::protobuf::internal::InternalPackFrom(message, type_url_prefix,
0140                                    mutable_type_url(),
0141                                    _internal_mutable_value());
0142   }
0143   bool UnpackTo(::google::protobuf::Message* PROTOBUF_NONNULL message) const {
0144     return ::google::protobuf::internal::InternalUnpackTo(_internal_type_url(),
0145                                    _internal_value(), message);
0146   }
0147   static bool GetAnyFieldDescriptors(
0148       const ::google::protobuf::Message& message,
0149       const ::google::protobuf::FieldDescriptor * PROTOBUF_NULLABLE *
0150           PROTOBUF_NONNULL type_url_field,
0151       const ::google::protobuf::FieldDescriptor * PROTOBUF_NULLABLE *
0152           PROTOBUF_NONNULL value_field);
0153   template <
0154       typename T,
0155       class = typename std::enable_if<!std::is_convertible<
0156           T, const ::google::protobuf::Message&>::value>::type>
0157   bool PackFrom(const T& message) {
0158     return ::google::protobuf::internal::InternalPackFrom<T>(
0159         message, mutable_type_url(), _internal_mutable_value());
0160   }
0161   template <
0162       typename T,
0163       class = typename std::enable_if<!std::is_convertible<
0164           T, const ::google::protobuf::Message&>::value>::type>
0165   bool PackFrom(const T& message,
0166                 ::absl::string_view type_url_prefix) {
0167     return ::google::protobuf::internal::InternalPackFrom<T>(
0168         message, type_url_prefix, mutable_type_url(),
0169         _internal_mutable_value());
0170   }
0171   template <
0172       typename T,
0173       class = typename std::enable_if<!std::is_convertible<
0174           T, const ::google::protobuf::Message&>::value>::type>
0175   bool UnpackTo(T* PROTOBUF_NONNULL message) const {
0176     return ::google::protobuf::internal::InternalUnpackTo<T>(
0177         _internal_type_url(), _internal_value(), message);
0178   }
0179 
0180   template <typename T>
0181   bool Is() const {
0182     return ::google::protobuf::internal::InternalIs<T>(_internal_type_url());
0183   }
0184   static bool ParseAnyTypeUrl(
0185       ::absl::string_view type_url,
0186       std::string* PROTOBUF_NONNULL full_type_name);
0187   friend void swap(Any& a, Any& b) { a.Swap(&b); }
0188   inline void Swap(Any* PROTOBUF_NONNULL other) {
0189     if (other == this) return;
0190     if (::google::protobuf::internal::CanUseInternalSwap(GetArena(), other->GetArena())) {
0191       InternalSwap(other);
0192     } else {
0193       ::google::protobuf::internal::GenericSwap(this, other);
0194     }
0195   }
0196   void UnsafeArenaSwap(Any* PROTOBUF_NONNULL other) {
0197     if (other == this) return;
0198     ABSL_DCHECK(GetArena() == other->GetArena());
0199     InternalSwap(other);
0200   }
0201 
0202   // implements Message ----------------------------------------------
0203 
0204   Any* PROTOBUF_NONNULL New(::google::protobuf::Arena* PROTOBUF_NULLABLE arena = nullptr) const {
0205     return ::google::protobuf::Message::DefaultConstruct<Any>(arena);
0206   }
0207   using ::google::protobuf::Message::CopyFrom;
0208   void CopyFrom(const Any& from);
0209   using ::google::protobuf::Message::MergeFrom;
0210   void MergeFrom(const Any& from) { Any::MergeImpl(*this, from); }
0211 
0212   private:
0213   static void MergeImpl(::google::protobuf::MessageLite& to_msg,
0214                         const ::google::protobuf::MessageLite& from_msg);
0215 
0216   public:
0217   bool IsInitialized() const {
0218     return true;
0219   }
0220   ABSL_ATTRIBUTE_REINITIALIZES void Clear() PROTOBUF_FINAL;
0221   #if defined(PROTOBUF_CUSTOM_VTABLE)
0222   private:
0223   static ::size_t ByteSizeLong(const ::google::protobuf::MessageLite& msg);
0224   static ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
0225       const ::google::protobuf::MessageLite& msg, ::uint8_t* PROTOBUF_NONNULL target,
0226       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream);
0227 
0228   public:
0229   ::size_t ByteSizeLong() const { return ByteSizeLong(*this); }
0230   ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
0231       ::uint8_t* PROTOBUF_NONNULL target,
0232       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
0233     return _InternalSerialize(*this, target, stream);
0234   }
0235   #else   // PROTOBUF_CUSTOM_VTABLE
0236   ::size_t ByteSizeLong() const final;
0237   ::uint8_t* PROTOBUF_NONNULL _InternalSerialize(
0238       ::uint8_t* PROTOBUF_NONNULL target,
0239       ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const final;
0240   #endif  // PROTOBUF_CUSTOM_VTABLE
0241   int GetCachedSize() const { return _impl_._cached_size_.Get(); }
0242 
0243   private:
0244   void SharedCtor(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0245   static void SharedDtor(MessageLite& self);
0246   void InternalSwap(Any* PROTOBUF_NONNULL other);
0247  private:
0248   template <typename T>
0249   friend ::absl::string_view(::google::protobuf::internal::GetAnyMessageName)();
0250   static ::absl::string_view FullMessageName() { return "google.protobuf.Any"; }
0251 
0252  protected:
0253   explicit Any(::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0254   Any(::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Any& from);
0255   Any(
0256       ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, Any&& from) noexcept
0257       : Any(arena) {
0258     *this = ::std::move(from);
0259   }
0260   const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL GetClassData() const PROTOBUF_FINAL;
0261   static void* PROTOBUF_NONNULL PlacementNew_(
0262       const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
0263       ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0264   static constexpr auto InternalNewImpl_();
0265 
0266  public:
0267   static constexpr auto InternalGenerateClassData_();
0268 
0269   ::google::protobuf::Metadata GetMetadata() const;
0270   // nested types ----------------------------------------------------
0271 
0272   // accessors -------------------------------------------------------
0273   enum : int {
0274     kTypeUrlFieldNumber = 1,
0275     kValueFieldNumber = 2,
0276   };
0277   // string type_url = 1;
0278   void clear_type_url() ;
0279   const ::std::string& type_url() const;
0280   template <typename Arg_ = const ::std::string&, typename... Args_>
0281   void set_type_url(Arg_&& arg, Args_... args);
0282   ::std::string* PROTOBUF_NONNULL mutable_type_url();
0283   [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_type_url();
0284   void set_allocated_type_url(::std::string* PROTOBUF_NULLABLE value);
0285 
0286   private:
0287   const ::std::string& _internal_type_url() const;
0288   PROTOBUF_ALWAYS_INLINE void _internal_set_type_url(const ::std::string& value);
0289   ::std::string* PROTOBUF_NONNULL _internal_mutable_type_url();
0290 
0291   public:
0292   // bytes value = 2;
0293   void clear_value() ;
0294   const ::std::string& value() const;
0295   template <typename Arg_ = const ::std::string&, typename... Args_>
0296   void set_value(Arg_&& arg, Args_... args);
0297   ::std::string* PROTOBUF_NONNULL mutable_value();
0298   [[nodiscard]] ::std::string* PROTOBUF_NULLABLE release_value();
0299   void set_allocated_value(::std::string* PROTOBUF_NULLABLE value);
0300 
0301   private:
0302   const ::std::string& _internal_value() const;
0303   PROTOBUF_ALWAYS_INLINE void _internal_set_value(const ::std::string& value);
0304   ::std::string* PROTOBUF_NONNULL _internal_mutable_value();
0305 
0306   public:
0307   // @@protoc_insertion_point(class_scope:google.protobuf.Any)
0308  private:
0309   class _Internal;
0310   friend class ::google::protobuf::internal::TcParser;
0311   static const ::google::protobuf::internal::TcParseTable<1, 2,
0312                                    0, 36,
0313                                    2>
0314       _table_;
0315 
0316   friend class ::google::protobuf::MessageLite;
0317   friend class ::google::protobuf::Arena;
0318   template <typename T>
0319   friend class ::google::protobuf::Arena::InternalHelper;
0320   using InternalArenaConstructable_ = void;
0321   using DestructorSkippable_ = void;
0322   struct Impl_ {
0323     inline explicit constexpr Impl_(::google::protobuf::internal::ConstantInitialized) noexcept;
0324     inline explicit Impl_(
0325         ::google::protobuf::internal::InternalVisibility visibility,
0326         ::google::protobuf::Arena* PROTOBUF_NULLABLE arena);
0327     inline explicit Impl_(
0328         ::google::protobuf::internal::InternalVisibility visibility,
0329         ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
0330         const Any& from_msg);
0331     ::google::protobuf::internal::HasBits<1> _has_bits_;
0332     ::google::protobuf::internal::CachedSize _cached_size_;
0333     ::google::protobuf::internal::ArenaStringPtr type_url_;
0334     ::google::protobuf::internal::ArenaStringPtr value_;
0335     PROTOBUF_TSAN_DECLARE_MEMBER
0336   };
0337   union { Impl_ _impl_; };
0338   friend struct ::TableStruct_google_2fprotobuf_2fany_2eproto;
0339 };
0340 
0341 PROTOBUF_EXPORT extern const ::google::protobuf::internal::ClassDataFull Any_class_data_;
0342 
0343 // ===================================================================
0344 
0345 
0346 
0347 
0348 // ===================================================================
0349 
0350 
0351 #ifdef __GNUC__
0352 #pragma GCC diagnostic push
0353 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
0354 #endif  // __GNUC__
0355 // -------------------------------------------------------------------
0356 
0357 // Any
0358 
0359 // string type_url = 1;
0360 inline void Any::clear_type_url() {
0361   ::google::protobuf::internal::TSanWrite(&_impl_);
0362   _impl_.type_url_.ClearToEmpty();
0363   _impl_._has_bits_[0] &= ~0x00000001U;
0364 }
0365 inline const ::std::string& Any::type_url() const
0366     ABSL_ATTRIBUTE_LIFETIME_BOUND {
0367   // @@protoc_insertion_point(field_get:google.protobuf.Any.type_url)
0368   return _internal_type_url();
0369 }
0370 template <typename Arg_, typename... Args_>
0371 PROTOBUF_ALWAYS_INLINE void Any::set_type_url(Arg_&& arg, Args_... args) {
0372   ::google::protobuf::internal::TSanWrite(&_impl_);
0373   _impl_._has_bits_[0] |= 0x00000001U;
0374   _impl_.type_url_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
0375   // @@protoc_insertion_point(field_set:google.protobuf.Any.type_url)
0376 }
0377 inline ::std::string* PROTOBUF_NONNULL Any::mutable_type_url()
0378     ABSL_ATTRIBUTE_LIFETIME_BOUND {
0379   ::std::string* _s = _internal_mutable_type_url();
0380   // @@protoc_insertion_point(field_mutable:google.protobuf.Any.type_url)
0381   return _s;
0382 }
0383 inline const ::std::string& Any::_internal_type_url() const {
0384   ::google::protobuf::internal::TSanRead(&_impl_);
0385   return _impl_.type_url_.Get();
0386 }
0387 inline void Any::_internal_set_type_url(const ::std::string& value) {
0388   ::google::protobuf::internal::TSanWrite(&_impl_);
0389   _impl_._has_bits_[0] |= 0x00000001U;
0390   _impl_.type_url_.Set(value, GetArena());
0391 }
0392 inline ::std::string* PROTOBUF_NONNULL Any::_internal_mutable_type_url() {
0393   ::google::protobuf::internal::TSanWrite(&_impl_);
0394   _impl_._has_bits_[0] |= 0x00000001U;
0395   return _impl_.type_url_.Mutable( GetArena());
0396 }
0397 inline ::std::string* PROTOBUF_NULLABLE Any::release_type_url() {
0398   ::google::protobuf::internal::TSanWrite(&_impl_);
0399   // @@protoc_insertion_point(field_release:google.protobuf.Any.type_url)
0400   if ((_impl_._has_bits_[0] & 0x00000001U) == 0) {
0401     return nullptr;
0402   }
0403   _impl_._has_bits_[0] &= ~0x00000001U;
0404   auto* released = _impl_.type_url_.Release();
0405   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
0406     _impl_.type_url_.Set("", GetArena());
0407   }
0408   return released;
0409 }
0410 inline void Any::set_allocated_type_url(::std::string* PROTOBUF_NULLABLE value) {
0411   ::google::protobuf::internal::TSanWrite(&_impl_);
0412   if (value != nullptr) {
0413     _impl_._has_bits_[0] |= 0x00000001U;
0414   } else {
0415     _impl_._has_bits_[0] &= ~0x00000001U;
0416   }
0417   _impl_.type_url_.SetAllocated(value, GetArena());
0418   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.type_url_.IsDefault()) {
0419     _impl_.type_url_.Set("", GetArena());
0420   }
0421   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.type_url)
0422 }
0423 
0424 // bytes value = 2;
0425 inline void Any::clear_value() {
0426   ::google::protobuf::internal::TSanWrite(&_impl_);
0427   _impl_.value_.ClearToEmpty();
0428   _impl_._has_bits_[0] &= ~0x00000002U;
0429 }
0430 inline const ::std::string& Any::value() const
0431     ABSL_ATTRIBUTE_LIFETIME_BOUND {
0432   // @@protoc_insertion_point(field_get:google.protobuf.Any.value)
0433   return _internal_value();
0434 }
0435 template <typename Arg_, typename... Args_>
0436 PROTOBUF_ALWAYS_INLINE void Any::set_value(Arg_&& arg, Args_... args) {
0437   ::google::protobuf::internal::TSanWrite(&_impl_);
0438   _impl_._has_bits_[0] |= 0x00000002U;
0439   _impl_.value_.SetBytes(static_cast<Arg_&&>(arg), args..., GetArena());
0440   // @@protoc_insertion_point(field_set:google.protobuf.Any.value)
0441 }
0442 inline ::std::string* PROTOBUF_NONNULL Any::mutable_value()
0443     ABSL_ATTRIBUTE_LIFETIME_BOUND {
0444   ::std::string* _s = _internal_mutable_value();
0445   // @@protoc_insertion_point(field_mutable:google.protobuf.Any.value)
0446   return _s;
0447 }
0448 inline const ::std::string& Any::_internal_value() const {
0449   ::google::protobuf::internal::TSanRead(&_impl_);
0450   return _impl_.value_.Get();
0451 }
0452 inline void Any::_internal_set_value(const ::std::string& value) {
0453   ::google::protobuf::internal::TSanWrite(&_impl_);
0454   _impl_._has_bits_[0] |= 0x00000002U;
0455   _impl_.value_.Set(value, GetArena());
0456 }
0457 inline ::std::string* PROTOBUF_NONNULL Any::_internal_mutable_value() {
0458   ::google::protobuf::internal::TSanWrite(&_impl_);
0459   _impl_._has_bits_[0] |= 0x00000002U;
0460   return _impl_.value_.Mutable( GetArena());
0461 }
0462 inline ::std::string* PROTOBUF_NULLABLE Any::release_value() {
0463   ::google::protobuf::internal::TSanWrite(&_impl_);
0464   // @@protoc_insertion_point(field_release:google.protobuf.Any.value)
0465   if ((_impl_._has_bits_[0] & 0x00000002U) == 0) {
0466     return nullptr;
0467   }
0468   _impl_._has_bits_[0] &= ~0x00000002U;
0469   auto* released = _impl_.value_.Release();
0470   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString()) {
0471     _impl_.value_.Set("", GetArena());
0472   }
0473   return released;
0474 }
0475 inline void Any::set_allocated_value(::std::string* PROTOBUF_NULLABLE value) {
0476   ::google::protobuf::internal::TSanWrite(&_impl_);
0477   if (value != nullptr) {
0478     _impl_._has_bits_[0] |= 0x00000002U;
0479   } else {
0480     _impl_._has_bits_[0] &= ~0x00000002U;
0481   }
0482   _impl_.value_.SetAllocated(value, GetArena());
0483   if (::google::protobuf::internal::DebugHardenForceCopyDefaultString() && _impl_.value_.IsDefault()) {
0484     _impl_.value_.Set("", GetArena());
0485   }
0486   // @@protoc_insertion_point(field_set_allocated:google.protobuf.Any.value)
0487 }
0488 
0489 #ifdef __GNUC__
0490 #pragma GCC diagnostic pop
0491 #endif  // __GNUC__
0492 
0493 // @@protoc_insertion_point(namespace_scope)
0494 }  // namespace protobuf
0495 }  // namespace google
0496 
0497 
0498 // @@protoc_insertion_point(global_scope)
0499 
0500 #include "google/protobuf/port_undef.inc"
0501 
0502 #endif  // google_2fprotobuf_2fany_2eproto_2epb_2eh