Go to the documentation of this file.
31 #ifndef GOOGLE_PROTOBUF_ANY_H__
32 #define GOOGLE_PROTOBUF_ANY_H__
36 #include <google/protobuf/stubs/common.h>
37 #include <google/protobuf/arenastring.h>
38 #include <google/protobuf/message_lite.h>
40 #include <google/protobuf/port_def.inc>
55 StringPiece type_url_prefix);
58 class PROTOBUF_EXPORT AnyMetadata {
72 T::FullMessageName());
88 T::FullMessageName());
100 return InternalUnpackTo(T::FullMessageName(),
message);
108 template <
typename T>
110 return InternalIs(T::FullMessageName());
154 #include <google/protobuf/port_undef.inc>
156 #endif // GOOGLE_PROTOBUF_ANY_H__
const Descriptor::ReservedRange value
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
bool ParseAnyTypeUrl(const std::string &type_url, std::string *full_type_name)
const char kAnyFullTypeName[]
#define T(upbtypeconst, upbtype, ctype, default_value)
grpc_core::ScopedArenaPtr arena
const char kTypeGoogleApisComPrefix[]
bool GetAnyFieldDescriptors(const Message &message, const FieldDescriptor **type_url_field, const FieldDescriptor **value_field)
ValueType
Type of the value held by a Value object.
const char kTypeGoogleProdComPrefix[]
std::string GetTypeUrl(StringPiece message_name, StringPiece type_url_prefix)
static const char * type_name(int type)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:41