Go to the documentation of this file.
17 #include <google/protobuf/port_def.inc>
18 PROTOBUF_NAMESPACE_OPEN
21 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Any>
_instance;
23 PROTOBUF_NAMESPACE_CLOSE
32 PROTOBUF_NAMESPACE_ID::Any::InitAsDefaultInstance();
60 "\n\031google/protobuf/any.proto\022\017google.prot"
61 "obuf\"&\n\003Any\022\020\n\010type_url\030\001 \001(\t\022\r\n\005value\030\002"
62 " \001(\014Bo\n\023com.google.protobufB\010AnyProtoP\001Z"
63 "%github.com/golang/protobuf/ptypes/any\242\002"
64 "\003GPB\252\002\036Google.Protobuf.WellKnownTypesb\006p"
83 PROTOBUF_NAMESPACE_OPEN
102 const ::PROTOBUF_NAMESPACE_ID::Message&
message,
106 message, type_url_field, value_field);
119 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr), _any_metadata_(&type_url_, &
value_) {
124 : ::PROTOBUF_NAMESPACE_ID::Message(),
125 _internal_metadata_(nullptr),
126 _any_metadata_(&type_url_, &
value_) {
133 if (!from.
value().empty()) {
168 (
void) cached_has_bits;
175 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
176 const char*
Any::_InternalParse(
const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
177 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
178 while (!ctx->Done(&ptr)) {
188 }
else goto handle_unusual;
195 }
else goto handle_unusual;
199 if ((tag & 7) == 4 || tag == 0) {
200 ctx->SetLastTag(tag);
204 CHK_(ptr !=
nullptr);
216 #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
218 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream*
input) {
219 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
223 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool>
p =
input->ReadTagWithCutoffNoLastTag(127u);
225 if (!
p.second)
goto handle_unusual;
226 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
230 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
232 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
234 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
235 "google.protobuf.Any.type_url"));
245 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadBytes(
272 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
275 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream*
output)
const {
278 (
void) cached_has_bits;
282 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
284 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
285 "google.protobuf.Any.type_url");
286 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
292 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesMaybeAliased(
293 2, this->
value(), output);
297 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
307 (
void) cached_has_bits;
311 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
313 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
314 "google.protobuf.Any.type_url");
316 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
323 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBytesToArray(
324 2, this->
value(), target);
328 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
337 size_t total_size = 0;
341 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
346 (
void) cached_has_bits;
351 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
358 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
371 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Any>(
387 (
void) cached_has_bits;
393 if (from.
value().size() > 0) {
401 if (&from ==
this)
return;
408 if (&from ==
this)
return;
432 PROTOBUF_NAMESPACE_CLOSE
433 PROTOBUF_NAMESPACE_OPEN
435 return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::Any >(arena);
437 PROTOBUF_NAMESPACE_CLOSE
440 #include <google/protobuf/port_undef.inc>
const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fany_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold)
static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]
inline ::PROTOBUF_NAMESPACE_ID::Arena * GetArenaNoVirtual() const
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_
GLenum GLuint GLenum GLsizei length
static void InitAsDefaultInstance()
PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo< 0 > scc_info_Any_google_2fprotobuf_2fany_2eproto
bool ParseAnyTypeUrl(const std::string &type_url, std::string *full_type_name)
void OnShutdownDestroyMessage(const void *ptr)
void SetCachedSize(int size) const final
PROTOBUF_NAMESPACE_OPEN class AnyDefaultTypeInternal _Any_default_instance_
void InitSCC(SCCInfoBase *scc)
GLsizei const GLchar *const * string
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final
static bool GetAnyFieldDescriptors(const ::PROTOBUF_NAMESPACE_ID::Message &message, const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor **type_url_field, const ::PROTOBUF_NAMESPACE_ID::FieldDescriptor **value_field)
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const ** file_level_service_descriptors_google_2fprotobuf_2fany_2eproto
const ::PROTOBUF_NAMESPACE_ID::Message *const file_default_instances[]
size_t ByteSizeLong() const final
struct EnumDescriptor EnumDescriptor
const char * InlineGreedyStringParserUTF8(std::string *s, const char *ptr, ParseContext *ctx, const char *field_name)
static bool descriptor_table_google_2fprotobuf_2fany_2eproto_initialized
static bool dynamic_init_dummy_google_2fprotobuf_2fany_2eproto
static bool ParseAnyTypeUrl(const string &type_url, std::string *full_type_name)
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final
::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase *const descriptor_table_google_2fprotobuf_2fany_2eproto_sccs[1]
::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata _any_metadata_
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_
#define GOOGLE_PROTOBUF_VERIFY_VERSION
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable *const descriptor_table_google_2fprotobuf_2fany_2eproto_deps[1]
static PROTOBUF_NAMESPACE_CLOSE void InitDefaultsscc_info_Any_google_2fprotobuf_2fany_2eproto()
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed< Any > _instance
bool GetAnyFieldDescriptors(const Message &message, const FieldDescriptor **type_url_field, const FieldDescriptor **value_field)
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
void swap(Json::Value &a, Json::Value &b)
Specialize std::swap() for Json::Value.
void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
bool MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream *input) final
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const ** file_level_enum_descriptors_google_2fprotobuf_2fany_2eproto
static const Any & default_instance()
::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fany_2eproto_once
GLsizei GLsizei GLchar * source
static const Any * internal_default_instance()
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic()
const std::string & value() const
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fany_2eproto
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
bool IsInitialized() const final
int ToCachedSize(size_t size)
void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message &from) final
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fany_2eproto[1]
void PackFrom(const ::PROTOBUF_NAMESPACE_ID::Message &message)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
std::string * mutable_value()
struct FieldDescriptor FieldDescriptor
void InternalSwap(Any *other)
std::string * mutable_type_url()
const char * InlineGreedyStringParser(std::string *s, const char *ptr, ParseContext *ctx)
::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_
void SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream *output) const final
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_OPEN PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Any * Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Any >(Arena *arena)
const upb_json_parsermethod const upb_symtab upb_sink * output
const std::string & type_url() const
::PROTOBUF_NAMESPACE_ID::uint8 * InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 *target) const final
GLenum GLuint GLenum GLsizei const GLchar * message
def Merge(text, message, allow_unknown_extension=False, allow_field_number=False, descriptor_pool=None, allow_unknown_field=False)
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_
bool UnpackTo(::PROTOBUF_NAMESPACE_ID::Message *message) const
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:47