Classes | Namespaces | Macros | Functions
bloaty/third_party/protobuf/src/google/protobuf/message.cc File Reference
#include <iostream>
#include <stack>
#include <unordered_map>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/message.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/parse_context.h>
#include <google/protobuf/reflection_internal.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/map_field.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/stubs/stl_util.h>
#include <google/protobuf/stubs/hash.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for bloaty/third_party/protobuf/src/google/protobuf/message.cc:

Go to the source code of this file.

Classes

class  google::protobuf.internal::ReflectionAccessor
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define HANDLE_PACKED_TYPE(TYPE, CPPTYPE, METHOD_NAME)
 
#define HANDLE_PRIMITIVE_TYPE(TYPE, type)
 
#define HANDLE_TYPE(TYPE, CPPTYPE, CPPTYPE_METHOD)
 
#define STORE_TYPE(CPPTYPE_METHOD)
 

Functions

Messagegoogle::protobuf::GetGroup (int field_number, const FieldDescriptor *field, Message *msg, const Reflection *reflection)
 
const char * google::protobuf::ParseLenDelim (int field_number, const FieldDescriptor *field, Message *msg, const Reflection *reflection, const char *ptr, internal::ParseContext *ctx)
 
const char * google::protobuf::ParsePackedField (const FieldDescriptor *field, Message *msg, const Reflection *reflection, const char *ptr, internal::ParseContext *ctx)
 
bool google::protobuf::ReflectiveValidator (const void *arg, int val)
 
void google.protobuf.internal::RegisterFileLevelMetadata (const DescriptorTable *table)
 
void google::protobuf::SetField (uint64 val, const FieldDescriptor *field, Message *msg, const Reflection *reflection)
 

Macro Definition Documentation

◆ HANDLE_PACKED_TYPE

#define HANDLE_PACKED_TYPE (   TYPE,
  CPPTYPE,
  METHOD_NAME 
)
Value:
case FieldDescriptor::TYPE_##TYPE: \
return internal::Packed##METHOD_NAME##Parser( \
reflection->MutableRepeatedField<CPPTYPE>(msg, field), ptr, ctx)

◆ HANDLE_PRIMITIVE_TYPE

#define HANDLE_PRIMITIVE_TYPE (   TYPE,
  type 
)
Value:
case FieldDescriptor::CPPTYPE_##TYPE: \
return GetSingleton<internal::RepeatedFieldPrimitiveAccessor<type> >();

◆ HANDLE_TYPE

#define HANDLE_TYPE (   TYPE,
  CPPTYPE,
  CPPTYPE_METHOD 
)
Value:
case FieldDescriptor::TYPE_##TYPE: { \
CPPTYPE value = val; \
STORE_TYPE(CPPTYPE_METHOD); \
break; \
}

◆ STORE_TYPE

#define STORE_TYPE (   CPPTYPE_METHOD)
Value:
if (field->is_repeated()) { \
reflection->Add##CPPTYPE_METHOD(msg, field, value); \
} else { \
reflection->Set##CPPTYPE_METHOD(msg, field, value); \
} \
while (0)

Variable Documentation

◆ file_map_

std::unordered_map<const char*, const google::protobuf::internal::DescriptorTable*, hash<const char*>, streq> file_map_
private

◆ mutex_

internal::WrappedMutex mutex_
private

◆ type_map_

std::unordered_map<const Descriptor*, const Message*> type_map_
private
ptr
char * ptr
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:45
ctx
Definition: benchmark-async.c:30
msg
std::string msg
Definition: client_interceptors_end2end_test.cc:372
value
const char * value
Definition: hpack_parser_table.cc:165
field
const FieldDescriptor * field
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/parser_unittest.cc:2692
TYPE
#define TYPE(u, l)
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/upb.c:8202
if
if(p->owned &&p->wrapped !=NULL)
Definition: call.c:42


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:23