protobuf/src/google/protobuf/generated_message_reflection.h
Go to the documentation of this file.
1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved.
3 // https://developers.google.com/protocol-buffers/
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are
7 // met:
8 //
9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above
12 // copyright notice, this list of conditions and the following disclaimer
13 // in the documentation and/or other materials provided with the
14 // distribution.
15 // * Neither the name of Google Inc. nor the names of its
16 // contributors may be used to endorse or promote products derived from
17 // this software without specific prior written permission.
18 //
19 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 
31 // Author: kenton@google.com (Kenton Varda)
32 // Based on original Protocol Buffers design by
33 // Sanjay Ghemawat, Jeff Dean, and others.
34 //
35 // This header is logically internal, but is made public because it is used
36 // from protocol-compiler-generated code, which may reside in other components.
37 
38 #ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__
39 #define GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__
40 
41 #include <string>
42 #include <vector>
43 #include <google/protobuf/stubs/casts.h>
44 #include <google/protobuf/stubs/common.h>
45 #include <google/protobuf/descriptor.h>
46 #include <google/protobuf/generated_enum_reflection.h>
47 #include <google/protobuf/stubs/once.h>
48 #include <google/protobuf/port.h>
49 #include <google/protobuf/unknown_field_set.h>
50 
51 
52 #include <google/protobuf/port_def.inc>
53 
54 #ifdef SWIG
55 #error "You cannot SWIG proto headers"
56 #endif
57 
58 namespace google {
59 namespace protobuf {
60 class MapKey;
61 class MapValueRef;
62 class MessageLayoutInspector;
63 class Message;
64 struct Metadata;
65 } // namespace protobuf
66 } // namespace google
67 
68 namespace google {
69 namespace protobuf {
70 namespace internal {
71 class DefaultEmptyOneof;
72 // Defined in other files.
73 class ExtensionSet; // extension_set.h
74 class WeakFieldMap; // weak_field_map.h
75 
76 // This struct describes the internal layout of the message, hence this is
77 // used to act on the message reflectively.
78 // default_instance: The default instance of the message. This is only
79 // used to obtain pointers to default instances of embedded
80 // messages, which GetMessage() will return if the particular
81 // sub-message has not been initialized yet. (Thus, all
82 // embedded message fields *must* have non-null pointers
83 // in the default instance.)
84 // offsets: An array of ints giving the byte offsets.
85 // For each oneof or weak field, the offset is relative to the
86 // default_instance. These can be computed at compile time
87 // using the
88 // PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET()
89 // macro. For each none oneof field, the offset is related to
90 // the start of the message object. These can be computed at
91 // compile time using the
92 // PROTO2_GENERATED_MESSAGE_FIELD_OFFSET() macro.
93 // Besides offsets for all fields, this array also contains
94 // offsets for oneof unions. The offset of the i-th oneof union
95 // is offsets[descriptor->field_count() + i].
96 // has_bit_indices: Mapping from field indexes to their index in the has
97 // bit array.
98 // has_bits_offset: Offset in the message of an array of uint32s of size
99 // descriptor->field_count()/32, rounded up. This is a
100 // bitfield where each bit indicates whether or not the
101 // corresponding field of the message has been initialized.
102 // The bit for field index i is obtained by the expression:
103 // has_bits[i / 32] & (1 << (i % 32))
104 // unknown_fields_offset: Offset in the message of the UnknownFieldSet for
105 // the message.
106 // extensions_offset: Offset in the message of the ExtensionSet for the
107 // message, or -1 if the message type has no extension
108 // ranges.
109 // oneof_case_offset: Offset in the message of an array of uint32s of
110 // size descriptor->oneof_decl_count(). Each uint32_t
111 // indicates what field is set for each oneof.
112 // object_size: The size of a message object of this type, as measured
113 // by sizeof().
114 // arena_offset: If a message doesn't have a unknown_field_set that stores
115 // the arena, it must have a direct pointer to the arena.
116 // weak_field_map_offset: If the message proto has weak fields, this is the
117 // offset of _weak_field_map_ in the generated proto. Otherwise
118 // -1.
119 struct ReflectionSchema {
120  public:
121  // Size of a google::protobuf::Message object of this type.
122  uint32_t GetObjectSize() const { return static_cast<uint32_t>(object_size_); }
123 
124  bool InRealOneof(const FieldDescriptor* field) const {
125  return field->containing_oneof() &&
126  !field->containing_oneof()->is_synthetic();
127  }
128 
129  // Offset of a non-oneof field. Getting a field offset is slightly more
130  // efficient when we know statically that it is not a oneof field.
133  return OffsetValue(offsets_[field->index()], field->type());
134  }
135 
136  // Offset of any field.
138  if (InRealOneof(field)) {
139  size_t offset =
140  static_cast<size_t>(field->containing_type()->field_count() +
141  field->containing_oneof()->index());
142  return OffsetValue(offsets_[offset], field->type());
143  } else {
145  }
146  }
147 
148  bool IsFieldInlined(const FieldDescriptor* field) const {
149  return Inlined(offsets_[field->index()], field->type());
150  }
151 
152  uint32_t GetOneofCaseOffset(const OneofDescriptor* oneof_descriptor) const {
153  return static_cast<uint32_t>(oneof_case_offset_) +
154  static_cast<uint32_t>(
155  static_cast<size_t>(oneof_descriptor->index()) *
156  sizeof(uint32_t));
157  }
158 
159  bool HasHasbits() const { return has_bits_offset_ != -1; }
160 
161  // Bit index within the bit array of hasbits. Bit order is low-to-high.
163  if (has_bits_offset_ == -1) return static_cast<uint32_t>(-1);
165  return has_bit_indices_[field->index()];
166  }
167 
168  // Byte offset of the hasbits array.
171  return static_cast<uint32_t>(has_bits_offset_);
172  }
173 
174  bool HasInlinedString() const { return inlined_string_donated_offset_ != -1; }
175 
176  // Bit index within the bit array of _inlined_string_donated_. Bit order is
177  // low-to-high.
180  return inlined_string_indices_[field->index()];
181  }
182 
183  // Byte offset of the _inlined_string_donated_ array.
186  return static_cast<uint32_t>(inlined_string_donated_offset_);
187  }
188 
189  // The offset of the InternalMetadataWithArena member.
190  // For Lite this will actually be an InternalMetadataWithArenaLite.
191  // The schema doesn't contain enough information to distinguish between
192  // these two cases.
194  return static_cast<uint32_t>(metadata_offset_);
195  }
196 
197  // Whether this message has an ExtensionSet.
198  bool HasExtensionSet() const { return extensions_offset_ != -1; }
199 
200  // The offset of the ExtensionSet in this message.
203  return static_cast<uint32_t>(extensions_offset_);
204  }
205 
206  // The off set of WeakFieldMap when the message contains weak fields.
207  // The default is 0 for now.
209 
210  bool IsDefaultInstance(const Message& message) const {
211  return &message == default_instance_;
212  }
213 
214  // Returns a pointer to the default value for this field. The size and type
215  // of the underlying data depends on the field's type.
216  const void* GetFieldDefault(const FieldDescriptor* field) const {
217  return reinterpret_cast<const uint8_t*>(default_instance_) +
218  OffsetValue(offsets_[field->index()], field->type());
219  }
220 
221  // Returns true if the field is implicitly backed by LazyField.
224  (void)field;
225  return false;
226  }
227 
228  // Returns true if the field's accessor is called by any external code (aka,
229  // non proto library code).
230  bool IsFieldUsed(const FieldDescriptor* field) const {
231  (void)field;
232  return true;
233  }
234 
235  bool IsFieldStripped(const FieldDescriptor* field) const {
236  (void)field;
237  return false;
238  }
239 
241  (void)descriptor;
242  return false;
243  }
244 
245 
246  bool HasWeakFields() const { return weak_field_map_offset_ > 0; }
247 
248  // These members are intended to be private, but we cannot actually make them
249  // private because this prevents us from using aggregate initialization of
250  // them, ie.
251  //
252  // ReflectionSchema schema = {a, b, c, d, e, ...};
253  // private:
254  const Message* default_instance_;
257  int has_bits_offset_;
258  int metadata_offset_;
259  int extensions_offset_;
260  int oneof_case_offset_;
261  int object_size_;
265 
266  // We tag offset values to provide additional data about fields (such as
267  // "unused" or "lazy" or "inlined").
272  return v & 0x7FFFFFFEu;
273  }
274  return v & 0x7FFFFFFFu;
275  }
276 
280  return (v & 1u) != 0u;
281  } else {
282  // Non string/byte fields are not inlined.
283  return false;
284  }
285  }
286 };
287 
288 // Structs that the code generator emits directly to describe a message.
289 // These should never used directly except to build a ReflectionSchema
290 // object.
291 //
292 // EXPERIMENTAL: these are changing rapidly, and may completely disappear
293 // or merge with ReflectionSchema.
294 struct MigrationSchema {
298  int object_size;
299 };
300 
301 // This struct tries to reduce unnecessary padding.
302 // The num_xxx might not be close to their respective pointer, but this saves
303 // padding.
304 struct PROTOBUF_EXPORT DescriptorTable {
305  mutable bool is_initialized;
306  bool is_eager;
307  int size; // of serialized descriptor
308  const char* descriptor;
309  const char* filename;
310  once_flag* once;
311  const DescriptorTable* const* deps;
312  int num_deps;
313  int num_messages;
314  const MigrationSchema* schemas;
315  const Message* const* default_instances;
317  // update the following descriptor arrays.
318  Metadata* file_level_metadata;
319  const EnumDescriptor** file_level_enum_descriptors;
320  const ServiceDescriptor** file_level_service_descriptors;
321 };
322 
323 enum {
324  // Tag used on offsets for fields that don't have a real offset.
325  // For example, weak message fields go into the WeakFieldMap and not in an
326  // actual field.
328 };
329 
330 // AssignDescriptors() pulls the compiled FileDescriptor from the DescriptorPool
331 // and uses it to populate all of the global variables which store pointers to
332 // the descriptor objects. It also constructs the reflection objects. It is
333 // called the first time anyone calls descriptor() or GetReflection() on one of
334 // the types defined in the file. AssignDescriptors() is thread-safe.
335 void PROTOBUF_EXPORT AssignDescriptors(const DescriptorTable* table,
336  bool eager = false);
337 
338 // Overload used to implement GetMetadataStatic in the generated code.
339 // See comments in compiler/cpp/internal/file.cc as to why.
340 // It takes a `Metadata` and returns it to allow for tail calls and reduce
341 // binary size.
342 Metadata PROTOBUF_EXPORT AssignDescriptors(const DescriptorTable* (*table)(),
344  const Metadata& metadata);
345 
346 // These cannot be in lite so we put them in the reflection.
347 PROTOBUF_EXPORT void UnknownFieldSetSerializer(const uint8_t* base,
349  uint32_t has_offset,
351 
352 struct PROTOBUF_EXPORT AddDescriptorsRunner {
353  explicit AddDescriptorsRunner(const DescriptorTable* table);
354 };
355 
356 } // namespace internal
357 } // namespace protobuf
358 } // namespace google
359 
360 #include <google/protobuf/port_undef.inc>
361 
362 #endif // GOOGLE_PROTOBUF_GENERATED_MESSAGE_REFLECTION_H__
google::protobuf.internal::ReflectionSchema::GetOneofCaseOffset
uint32_t GetOneofCaseOffset(const OneofDescriptor *oneof_descriptor) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:152
google::protobuf::FieldDescriptor::Type
Type
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:521
google::protobuf.internal::ReflectionSchema::Inlined
static bool Inlined(uint32 v, FieldDescriptor::Type type)
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:242
google::protobuf.internal::ReflectionSchema::HasInlinedString
bool HasInlinedString() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:174
google::protobuf.internal::ReflectionSchema::object_size_
int object_size_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:228
deps
static _upb_DefPool_Init * deps[4]
Definition: certs.upbdefs.c:72
google::protobuf.internal::ReflectionSchema::metadata_offset_
int metadata_offset_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:225
filename
const char * filename
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:135
google::protobuf::FieldDescriptor
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:515
metadata
Definition: cq_verifier.cc:48
google::protobuf.internal::ReflectionSchema::default_instance_
const Message * default_instance_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:221
google::protobuf.internal::ReflectionSchema::IsEagerlyVerifiedLazyField
bool IsEagerlyVerifiedLazyField(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:222
google::protobuf.internal::ReflectionSchema::IsFieldStripped
bool IsFieldStripped(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:235
google::protobuf.internal::ReflectionSchema::inlined_string_donated_offset_
int inlined_string_donated_offset_
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:264
google::protobuf.internal::ReflectionSchema::Inlined
static bool Inlined(uint32_t v, FieldDescriptor::Type type)
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:277
google::protobuf.internal::ReflectionSchema::IsFieldInlined
bool IsFieldInlined(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:148
google::protobuf.internal::ReflectionSchema::GetFieldDefault
const void * GetFieldDefault(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:216
GOOGLE_DCHECK
#define GOOGLE_DCHECK
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/logging.h:194
google::protobuf.internal::ReflectionSchema::GetFieldOffsetNonOneof
uint32_t GetFieldOffsetNonOneof(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:131
google::protobuf::FieldDescriptor::TYPE_BYTES
@ TYPE_BYTES
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:538
u
OPENSSL_EXPORT pem_password_cb void * u
Definition: pem.h:351
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
google::protobuf::OneofDescriptor
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:843
google::protobuf.internal::ReflectionSchema::OffsetValue
static uint32 OffsetValue(uint32 v, FieldDescriptor::Type type)
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:233
google::protobuf.internal::ReflectionSchema::GetWeakFieldMapOffset
int GetWeakFieldMapOffset() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:208
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
google::protobuf.internal::ReflectionSchema::OffsetValue
static uint32_t OffsetValue(uint32_t v, FieldDescriptor::Type type)
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:268
google::protobuf.internal::ReflectionSchema::has_bits_offset_
int has_bits_offset_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:224
google::protobuf.internal::ReflectionSchema::GetMetadataOffset
uint32_t GetMetadataOffset() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:193
google::protobuf.internal::MigrationSchema::object_size
int object_size
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:262
google::protobuf.internal::ReflectionSchema::HasBitIndex
uint32_t HasBitIndex(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:162
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
google::protobuf.internal::MigrationSchema::has_bit_indices_index
int32_t has_bit_indices_index
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:296
google::protobuf::ServiceDescriptor
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:1152
google::protobuf.internal::ReflectionSchema::GetObjectSize
uint32_t GetObjectSize() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:122
google::protobuf.internal::ReflectionSchema::offsets_
const uint32 * offsets_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:222
google::protobuf.internal::once_flag
std::once_flag once_flag
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/once.h:43
google::protobuf.internal::ReflectionSchema::HasBitsOffset
uint32_t HasBitsOffset() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:169
google::protobuf.internal::ReflectionSchema::InlinedStringIndex
uint32_t InlinedStringIndex(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:178
tag
static void * tag(intptr_t t)
Definition: bad_client.cc:318
gmock_output_test.output
output
Definition: bloaty/third_party/googletest/googlemock/test/gmock_output_test.py:175
google::protobuf.internal::ReflectionSchema::has_bit_indices_
const uint32_t * has_bit_indices_
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:256
google::protobuf.internal::ReflectionSchema::inlined_string_indices_
const uint32_t * inlined_string_indices_
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:263
setup.v
v
Definition: third_party/bloaty/third_party/capstone/bindings/python/setup.py:42
google::protobuf.internal::ReflectionSchema::InlinedStringDonatedOffset
uint32_t InlinedStringDonatedOffset() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:184
google::protobuf.internal::ReflectionSchema::GetExtensionSetOffset
uint32_t GetExtensionSetOffset() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:201
google::protobuf.internal::ReflectionSchema::IsMessageStripped
bool IsMessageStripped(const Descriptor *descriptor) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:240
google::protobuf.internal::UnknownFieldSetSerializer
void UnknownFieldSetSerializer(const uint8 *base, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.cc:2423
google::protobuf.internal::DescriptorTable::is_eager
bool is_eager
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:306
google::protobuf.internal::ReflectionSchema::HasWeakFields
bool HasWeakFields() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:246
gen_synthetic_protos.base
base
Definition: gen_synthetic_protos.py:31
google::protobuf.internal::DescriptorTable
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:265
google::protobuf.internal::kInvalidFieldOffsetTag
@ kInvalidFieldOffsetTag
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:327
google::protobuf.internal::ReflectionSchema::weak_field_map_offset_
int weak_field_map_offset_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:229
google::protobuf.internal::DescriptorTable::offsets
const uint32_t * offsets
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:316
google::protobuf::io::CodedOutputStream
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/coded_stream.h:1044
google::protobuf.internal::ReflectionSchema::IsFieldUsed
bool IsFieldUsed(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:230
google::protobuf.internal::ReflectionSchema::oneof_case_offset_
int oneof_case_offset_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:227
google::protobuf::Metadata
Definition: bloaty/third_party/protobuf/src/google/protobuf/message.h:190
google::protobuf.internal::ReflectionSchema::GetFieldOffsetNonOneof
uint32 GetFieldOffsetNonOneof(const FieldDescriptor *field) const
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:132
once
absl::once_flag once
Definition: bm_opencensus_plugin.cc:38
google::protobuf.internal::MigrationSchema::inlined_string_indices_index
int32_t inlined_string_indices_index
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:297
google::protobuf.internal::ReflectionSchema::HasHasbits
bool HasHasbits() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:159
google::protobuf::Message
Definition: bloaty/third_party/protobuf/src/google/protobuf/message.h:205
field
const FieldDescriptor * field
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/parser_unittest.cc:2692
google::protobuf.internal::MigrationSchema
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:259
google::protobuf::OneofDescriptor::index
int index() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:2103
google::protobuf::Descriptor
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:231
google::protobuf::FieldDescriptor::TYPE_MESSAGE
@ TYPE_MESSAGE
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:536
GOOGLE_DCHECK_EQ
#define GOOGLE_DCHECK_EQ
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/logging.h:196
google::protobuf.internal::ReflectionSchema::offsets_
const uint32_t * offsets_
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:255
google::protobuf.internal::DescriptorTable::is_initialized
bool is_initialized
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:305
google::protobuf.internal::ReflectionSchema::GetFieldOffset
uint32_t GetFieldOffset(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:137
google::protobuf.internal::AddDescriptorsRunner
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:352
internal
Definition: benchmark/test/output_test_helper.cc:20
table
uint8_t table[256]
Definition: hpack_parser.cc:456
google::protobuf.internal::AssignDescriptors
void AssignDescriptors(const DescriptorTable *table)
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.cc:2404
grpc_binder::Metadata
std::vector< std::pair< std::string, std::string > > Metadata
Definition: transaction.h:38
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
google::protobuf.internal::ReflectionSchema::HasExtensionSet
bool HasExtensionSet() const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:198
google::protobuf.internal::ReflectionSchema::IsDefaultInstance
bool IsDefaultInstance(const Message &message) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:210
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
google::protobuf.internal::ReflectionSchema::has_bit_indices_
const uint32 * has_bit_indices_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:223
google::protobuf.internal::ReflectionSchema::extensions_offset_
int extensions_offset_
Definition: bloaty/third_party/protobuf/src/google/protobuf/generated_message_reflection.h:226
int32_t
signed int int32_t
Definition: stdint-msvc2008.h:77
google::protobuf::EnumDescriptor
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:918
descriptor
static const char descriptor[1336]
Definition: certs.upbdefs.c:16
google::protobuf::FieldDescriptor::TYPE_STRING
@ TYPE_STRING
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:534
google
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:11
Message
Definition: protobuf/php/ext/google/protobuf/message.c:53
google::protobuf.internal::MigrationSchema::offsets_index
int32_t offsets_index
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:295
offset
voidpf uLong offset
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:142
google::protobuf.internal::ReflectionSchema::InRealOneof
bool InRealOneof(const FieldDescriptor *field) const
Definition: protobuf/src/google/protobuf/generated_message_reflection.h:124


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:26