Go to the documentation of this file.
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3009000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
37 #include <google/protobuf/port_def.inc>
38 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto PROTOBUF_EXPORT
39 PROTOBUF_NAMESPACE_OPEN
43 PROTOBUF_NAMESPACE_CLOSE
47 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
49 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
53 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
54 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
58 PROTOBUF_NAMESPACE_OPEN
62 PROTOBUF_NAMESPACE_CLOSE
63 PROTOBUF_NAMESPACE_OPEN
65 PROTOBUF_NAMESPACE_CLOSE
66 PROTOBUF_NAMESPACE_OPEN
70 class PROTOBUF_EXPORT
Any :
71 public ::PROTOBUF_NAMESPACE_ID::Message {
79 *
this = ::std::move(from);
88 if (
this != &from) InternalSwap(&from);
99 return GetMetadataStatic().descriptor;
102 return GetMetadataStatic().reflection;
104 static const Any& default_instance();
106 static void InitAsDefaultInstance();
108 return reinterpret_cast<const Any*
>(
111 static constexpr
int kIndexInFileMessages =
116 void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message&
message);
117 void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message&
message,
119 bool UnpackTo(::PROTOBUF_NAMESPACE_ID::Message*
message)
const;
121 const ::PROTOBUF_NAMESPACE_ID::Message&
message,
124 template<
typename T>
bool Is()
const {
125 return _any_metadata_.Is<
T>();
133 if (other ==
this)
return;
140 return CreateMaybeMessage<Any>(
nullptr);
143 Any*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena)
const final {
144 return CreateMaybeMessage<Any>(arena);
146 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
147 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from)
final;
150 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
153 size_t ByteSizeLong()
const final;
154 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
155 const char*
_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx)
final;
158 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input)
final;
159 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
160 void SerializeWithCachedSizes(
161 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const final;
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(
int size)
const final;
170 void InternalSwap(
Any* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
173 return "google.protobuf.Any";
184 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata()
const final;
186 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
198 kTypeUrlFieldNumber = 1,
199 kValueFieldNumber = 2,
202 void clear_type_url();
206 void set_type_url(
const char*
value);
207 void set_type_url(
const char*
value,
size_t size);
217 void set_value(
const char*
value);
218 void set_value(
const void*
value,
size_t size);
228 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr
type_url_;
229 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr
value_;
232 friend struct ::TableStruct_google_2fprotobuf_2fany_2eproto;
240 #pragma GCC diagnostic push
241 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
302 return value_.GetNoArena();
338 if (
value !=
nullptr) {
348 #pragma GCC diagnostic pop
353 PROTOBUF_NAMESPACE_CLOSE
357 #include <google/protobuf/port_undef.inc>
358 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fany_2eproto
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fany_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual() const
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_
void set_value(const std::string &value)
std::string * release_type_url()
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * GetDescriptor()
bool ParseAnyTypeUrl(const std::string &type_url, std::string *full_type_name)
Any * New(::PROTOBUF_NAMESPACE_ID::Arena *arena) const final
static PyObject * CopyFrom(CMessage *self, PyObject *arg)
GLsizei const GLchar *const * string
static const ::PROTOBUF_NAMESPACE_ID::Reflection * GetReflection()
#define T(upbtypeconst, upbtype, ctype, default_value)
int GetCachedSize() const final
GLboolean GLboolean GLboolean b
static const ::PROTOBUF_NAMESPACE_ID::Descriptor * descriptor()
const PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fany_2eproto
bool MergePartialFromCodedStream(MessageLite *msg, const ParseTable &table, io::CodedInputStream *input)
::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata _any_metadata_
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
PROTOBUF_EXPORT AnyDefaultTypeInternal _Any_default_instance_
void set_type_url(const std::string &value)
bool GetAnyFieldDescriptors(const Message &message, const FieldDescriptor **type_url_field, const FieldDescriptor **value_field)
Any & operator=(const Any &from)
struct Descriptor Descriptor
static const Any * internal_default_instance()
const std::string & value() const
friend void swap(Any &a, Any &b)
Any & operator=(Any &&from) noexcept
void set_allocated_type_url(std::string *type_url)
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
std::string * mutable_value()
void AssignDescriptors(const DescriptorTable *table)
struct FieldDescriptor FieldDescriptor
void set_allocated_value(std::string *value)
GLsizei const GLfloat * value
std::string * release_value()
std::string * mutable_type_url()
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
void * MaybeArenaPtr() const
const upb_json_parsermethod const upb_symtab upb_sink * output
const std::string & type_url() const
::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName()
GLboolean GLboolean GLboolean GLboolean a
GLenum GLuint GLenum GLsizei const GLchar * message
static ParentDescriptor GetDescriptor(PyContainer *self)
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:47