protobuf/src/google/protobuf/unknown_field_set.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 // Contains classes used to keep track of unrecognized fields seen while
36 // parsing a protocol message.
37 
38 #ifndef GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
39 #define GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
40 
41 #include <assert.h>
42 
43 #include <string>
44 #include <vector>
45 
46 #include <google/protobuf/stubs/common.h>
47 #include <google/protobuf/stubs/logging.h>
48 #include <google/protobuf/parse_context.h>
49 #include <google/protobuf/io/coded_stream.h>
50 #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
51 #include <google/protobuf/message_lite.h>
52 #include <google/protobuf/port.h>
53 
54 #include <google/protobuf/port_def.inc>
55 
56 #ifdef SWIG
57 #error "You cannot SWIG proto headers"
58 #endif
59 
60 namespace google {
61 namespace protobuf {
62 namespace internal {
63 class InternalMetadata; // metadata_lite.h
64 class WireFormat; // wire_format.h
65 class MessageSetFieldSkipperUsingCord;
66 // extension_set_heavy.cc
67 } // namespace internal
68 
69 class Message; // message.h
70 class UnknownField; // below
71 
72 // An UnknownFieldSet contains fields that were encountered while parsing a
73 // message but were not defined by its type. Keeping track of these can be
74 // useful, especially in that they may be written if the message is serialized
75 // again without being cleared in between. This means that software which
76 // simply receives messages and forwards them to other servers does not need
77 // to be updated every time a new field is added to the message definition.
78 //
79 // To get the UnknownFieldSet attached to any message, call
80 // Reflection::GetUnknownFields().
81 //
82 // This class is necessarily tied to the protocol buffer wire format, unlike
83 // the Reflection interface which is independent of any serialization scheme.
84 class PROTOBUF_EXPORT UnknownFieldSet {
85  public:
87  ~UnknownFieldSet();
88 
89  // Remove all fields.
90  inline void Clear();
91 
92  // Remove all fields and deallocate internal data objects
93  void ClearAndFreeMemory();
94 
95  // Is this set empty?
96  inline bool empty() const;
97 
98  // Merge the contents of some other UnknownFieldSet with this one.
99  void MergeFrom(const UnknownFieldSet& other);
100 
101  // Similar to above, but this function will destroy the contents of other.
102  void MergeFromAndDestroy(UnknownFieldSet* other);
103 
104  // Merge the contents an UnknownFieldSet with the UnknownFieldSet in
105  // *metadata, if there is one. If *metadata doesn't have an UnknownFieldSet
106  // then add one to it and make it be a copy of the first arg.
107  static void MergeToInternalMetadata(const UnknownFieldSet& other,
108  internal::InternalMetadata* metadata);
109 
110  // Swaps the contents of some other UnknownFieldSet with this one.
111  inline void Swap(UnknownFieldSet* x);
112 
113  // Computes (an estimate of) the total number of bytes currently used for
114  // storing the unknown fields in memory. Does NOT include
115  // sizeof(*this) in the calculation.
116  size_t SpaceUsedExcludingSelfLong() const;
117 
119  return internal::ToIntSize(SpaceUsedExcludingSelfLong());
120  }
121 
122  // Version of SpaceUsed() including sizeof(*this).
123  size_t SpaceUsedLong() const;
124 
125  int SpaceUsed() const { return internal::ToIntSize(SpaceUsedLong()); }
126 
127  // Returns the number of fields present in the UnknownFieldSet.
128  inline int field_count() const;
129  // Get a field in the set, where 0 <= index < field_count(). The fields
130  // appear in the order in which they were added.
131  inline const UnknownField& field(int index) const;
132  // Get a mutable pointer to a field in the set, where
133  // 0 <= index < field_count(). The fields appear in the order in which
134  // they were added.
135  inline UnknownField* mutable_field(int index);
136 
137  // Adding fields ---------------------------------------------------
138 
139  void AddVarint(int number, uint64_t value);
140  void AddFixed32(int number, uint32_t value);
141  void AddFixed64(int number, uint64_t value);
142  void AddLengthDelimited(int number, const std::string& value);
143  std::string* AddLengthDelimited(int number);
144  UnknownFieldSet* AddGroup(int number);
145 
146  // Adds an unknown field from another set.
147  void AddField(const UnknownField& field);
148 
149  // Delete fields with indices in the range [start .. start+num-1].
150  // Caution: implementation moves all fields with indices [start+num .. ].
151  void DeleteSubrange(int start, int num);
152 
153  // Delete all fields with a specific field number. The order of left fields
154  // is preserved.
155  // Caution: implementation moves all fields after the first deleted field.
156  void DeleteByNumber(int number);
157 
158  // Parsing helpers -------------------------------------------------
159  // These work exactly like the similarly-named methods of Message.
160 
161  bool MergeFromCodedStream(io::CodedInputStream* input);
162  bool ParseFromCodedStream(io::CodedInputStream* input);
163  bool ParseFromZeroCopyStream(io::ZeroCopyInputStream* input);
164  bool ParseFromArray(const void* data, int size);
165  inline bool ParseFromString(const std::string& data) {
166  return ParseFromArray(data.data(), static_cast<int>(data.size()));
167  }
168 
169  // Merges this message's unknown field data (if any). This works whether
170  // the message is a lite or full proto (for legacy reasons, lite and full
171  // return different types for MessageType::unknown_fields()).
172  template <typename MessageType>
173  bool MergeFromMessage(const MessageType& message);
174 
175  static const UnknownFieldSet& default_instance();
176 
177  private:
178  // For InternalMergeFrom
179  friend class UnknownField;
180  // Merges from other UnknownFieldSet. This method assumes, that this object
181  // is newly created and has no fields.
182  void InternalMergeFrom(const UnknownFieldSet& other);
183  void ClearFallback();
184 
185  template <typename MessageType,
186  typename std::enable_if<
188  bool InternalMergeFromMessage(const MessageType& message) {
189  MergeFrom(message.GetReflection()->GetUnknownFields(message));
190  return true;
191  }
192 
193  template <typename MessageType,
194  typename std::enable_if<
197  int>::type = 0>
198  bool InternalMergeFromMessage(const MessageType& message) {
199  const auto& unknown_fields = message.unknown_fields();
200  io::ArrayInputStream array_stream(unknown_fields.data(),
201  unknown_fields.size());
202  io::CodedInputStream coded_stream(&array_stream);
203  return MergeFromCodedStream(&coded_stream);
204  }
205 
206  std::vector<UnknownField> fields_;
208 };
209 
210 namespace internal {
211 
212 inline void WriteVarint(uint32_t num, uint64_t val, UnknownFieldSet* unknown) {
213  unknown->AddVarint(num, val);
214 }
215 inline void WriteLengthDelimited(uint32_t num, StringPiece val,
216  UnknownFieldSet* unknown) {
217  unknown->AddLengthDelimited(num)->assign(val.data(), val.size());
218 }
219 
220 PROTOBUF_EXPORT
221 const char* UnknownGroupParse(UnknownFieldSet* unknown, const char* ptr,
222  ParseContext* ctx);
223 PROTOBUF_EXPORT
224 const char* UnknownFieldParse(uint64_t tag, UnknownFieldSet* unknown,
225  const char* ptr, ParseContext* ctx);
226 
227 } // namespace internal
228 
229 // Represents one field in an UnknownFieldSet.
230 class PROTOBUF_EXPORT UnknownField {
231  public:
232  enum Type {
233  TYPE_VARINT,
234  TYPE_FIXED32,
235  TYPE_FIXED64,
236  TYPE_LENGTH_DELIMITED,
237  TYPE_GROUP
238  };
239 
240  // The field's field number, as seen on the wire.
241  inline int number() const;
242 
243  // The field type.
244  inline Type type() const;
245 
246  // Accessors -------------------------------------------------------
247  // Each method works only for UnknownFields of the corresponding type.
248 
249  inline uint64_t varint() const;
250  inline uint32_t fixed32() const;
251  inline uint64_t fixed64() const;
252  inline const std::string& length_delimited() const;
253  inline const UnknownFieldSet& group() const;
254 
255  inline void set_varint(uint64_t value);
256  inline void set_fixed32(uint32_t value);
257  inline void set_fixed64(uint64_t value);
258  inline void set_length_delimited(const std::string& value);
259  inline std::string* mutable_length_delimited();
260  inline UnknownFieldSet* mutable_group();
261 
262  // Serialization API.
263  // These methods can take advantage of the underlying implementation and may
264  // archieve a better performance than using getters to retrieve the data and
265  // do the serialization yourself.
267  output->SetCur(InternalSerializeLengthDelimitedNoTag(output->Cur(),
268  output->EpsCopy()));
269  }
270 
271  inline size_t GetLengthDelimitedSize() const;
272  uint8_t* InternalSerializeLengthDelimitedNoTag(
274 
275 
276  // If this UnknownField contains a pointer, delete it.
277  void Delete();
278 
279  // Make a deep copy of any pointers in this UnknownField.
280  void DeepCopy(const UnknownField& other);
281 
282  // Set the wire type of this UnknownField. Should only be used when this
283  // UnknownField is being created.
284  inline void SetType(Type type);
285 
286  union LengthDelimited {
287  std::string* string_value;
288  };
289 
292  union {
296  mutable union LengthDelimited length_delimited_;
297  UnknownFieldSet* group_;
298  } data_;
299 };
300 
301 // ===================================================================
302 // inline implementations
303 
305 
307 
308 inline void UnknownFieldSet::ClearAndFreeMemory() { Clear(); }
309 
310 inline void UnknownFieldSet::Clear() {
311  if (!fields_.empty()) {
312  ClearFallback();
313  }
314 }
315 
316 inline bool UnknownFieldSet::empty() const { return fields_.empty(); }
317 
319  fields_.swap(x->fields_);
320 }
321 
322 inline int UnknownFieldSet::field_count() const {
323  return static_cast<int>(fields_.size());
324 }
325 inline const UnknownField& UnknownFieldSet::field(int index) const {
326  return (fields_)[static_cast<size_t>(index)];
327 }
329  return &(fields_)[static_cast<size_t>(index)];
330 }
331 
333  const std::string& value) {
334  AddLengthDelimited(number)->assign(value);
335 }
336 
337 
338 
339 
340 inline int UnknownField::number() const { return static_cast<int>(number_); }
341 inline UnknownField::Type UnknownField::type() const {
342  return static_cast<Type>(type_);
343 }
344 
345 inline uint64_t UnknownField::varint() const {
346  assert(type() == TYPE_VARINT);
347  return data_.varint_;
348 }
349 inline uint32_t UnknownField::fixed32() const {
350  assert(type() == TYPE_FIXED32);
351  return data_.fixed32_;
352 }
353 inline uint64_t UnknownField::fixed64() const {
354  assert(type() == TYPE_FIXED64);
355  return data_.fixed64_;
356 }
357 inline const std::string& UnknownField::length_delimited() const {
358  assert(type() == TYPE_LENGTH_DELIMITED);
359  return *data_.length_delimited_.string_value;
360 }
361 inline const UnknownFieldSet& UnknownField::group() const {
362  assert(type() == TYPE_GROUP);
363  return *data_.group_;
364 }
365 
367  assert(type() == TYPE_VARINT);
368  data_.varint_ = value;
369 }
371  assert(type() == TYPE_FIXED32);
372  data_.fixed32_ = value;
373 }
375  assert(type() == TYPE_FIXED64);
376  data_.fixed64_ = value;
377 }
379  assert(type() == TYPE_LENGTH_DELIMITED);
380  data_.length_delimited_.string_value->assign(value);
381 }
383  assert(type() == TYPE_LENGTH_DELIMITED);
384  return data_.length_delimited_.string_value;
385 }
387  assert(type() == TYPE_GROUP);
388  return data_.group_;
389 }
390 template <typename MessageType>
391 bool UnknownFieldSet::MergeFromMessage(const MessageType& message) {
392  // SFINAE will route to the right version.
394 }
395 
396 
397 inline size_t UnknownField::GetLengthDelimitedSize() const {
399  return data_.length_delimited_.string_value->size();
400 }
401 
402 inline void UnknownField::SetType(Type type) {
403  type_ = type;
404 }
405 
406 
407 } // namespace protobuf
408 } // namespace google
409 
410 #include <google/protobuf/port_undef.inc>
411 #endif // GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
google::protobuf::UnknownField::type
Type type() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:327
ptr
char * ptr
Definition: abseil-cpp/absl/base/internal/low_level_alloc_test.cc:45
google::protobuf::UnknownField::mutable_length_delimited
std::string * mutable_length_delimited()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:368
google::protobuf::UnknownField::group
const UnknownFieldSet & group() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:347
absl::swap_internal::Swap
void Swap(T &lhs, T &rhs) noexcept(IsNothrowSwappable< T >::value)
Definition: abseil-cpp/absl/meta/type_traits.h:772
google::protobuf::value
const Descriptor::ReservedRange value
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor.h:1954
google::protobuf::UnknownFieldSet::SpaceUsedExcludingSelf
int SpaceUsedExcludingSelf() const
Definition: protobuf/src/google/protobuf/unknown_field_set.h:118
google::protobuf::UnknownField::set_fixed64
void set_fixed64(uint64 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:360
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/macros.h:40
ctx
Definition: benchmark-async.c:30
metadata
Definition: cq_verifier.cc:48
google::protobuf::UnknownField::SerializeLengthDelimitedNoTag
void SerializeLengthDelimitedNoTag(io::CodedOutputStream *output) const
Definition: protobuf/src/google/protobuf/unknown_field_set.h:266
google::protobuf::UnknownFieldSet::ClearFallback
void ClearFallback()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.cc:58
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1339
google::protobuf::UnknownField::TYPE_GROUP
@ TYPE_GROUP
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:223
google::protobuf::UnknownField::fixed32_
uint32_t fixed32_
Definition: protobuf/src/google/protobuf/unknown_field_set.h:294
UnknownField
Definition: upb/upb/util/compare_test.cc:66
google::protobuf.internal::UnknownFieldParse
const char * UnknownFieldParse(uint32 tag, std::string *unknown, const char *ptr, ParseContext *ctx)
Definition: bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc:606
google::protobuf::UnknownFieldSet::SpaceUsed
int SpaceUsed() const
Definition: protobuf/src/google/protobuf/unknown_field_set.h:125
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
google::protobuf::UnknownField
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:216
google::protobuf
Definition: bloaty/third_party/protobuf/benchmarks/util/data_proto2_to_proto3_util.h:12
google::protobuf::UnknownField::number_
uint32_t number_
Definition: protobuf/src/google/protobuf/unknown_field_set.h:290
uint8_t
unsigned char uint8_t
Definition: stdint-msvc2008.h:78
google::protobuf::UnknownFieldSet::Clear
void Clear()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:296
google::protobuf::python::cmessage::UnknownFieldSet
static PyObject * UnknownFieldSet(CMessage *self)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:2512
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
google::protobuf::UnknownFieldSet::ParseFromString
bool ParseFromString(const std::string &data)
Definition: protobuf/src/google/protobuf/unknown_field_set.h:165
google::protobuf::UnknownFieldSet::field_count
int field_count() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:308
google::protobuf::UnknownFieldSet::~UnknownFieldSet
~UnknownFieldSet()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:292
uint32_t
unsigned int uint32_t
Definition: stdint-msvc2008.h:80
google::protobuf::python::cmessage::DeepCopy
PyObject * DeepCopy(CMessage *self, PyObject *arg)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.cc:2388
google::protobuf.internal::UnknownGroupParse
const char * UnknownGroupParse(UnknownFieldSet *unknown, const char *ptr, ParseContext *ctx)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.cc:343
google::protobuf::UnknownField::LengthDelimited
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:272
google::protobuf::io::EpsCopyOutputStream
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/coded_stream.h:651
google::protobuf::UnknownField::TYPE_FIXED32
@ TYPE_FIXED32
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:220
start
static uint64_t start
Definition: benchmark-pound.c:74
google::protobuf::UnknownField::length_delimited
const std::string & length_delimited() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:343
tag
static void * tag(intptr_t t)
Definition: bad_client.cc:318
google::protobuf::UnknownFieldSet::UnknownFieldSet
UnknownFieldSet()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:290
gmock_output_test.output
output
Definition: bloaty/third_party/googletest/googlemock/test/gmock_output_test.py:175
Type
Definition: bloaty/third_party/protobuf/src/google/protobuf/type.pb.h:182
google::protobuf::UnknownField::mutable_group
UnknownFieldSet * mutable_group()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:372
google::protobuf.internal::ToIntSize
int ToIntSize(size_t size)
Definition: bloaty/third_party/protobuf/src/google/protobuf/message_lite.h:105
google::protobuf::UnknownField::GetLengthDelimitedSize
size_t GetLengthDelimitedSize() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:377
google::protobuf.internal::WriteLengthDelimited
void WriteLengthDelimited(uint32 num, StringPiece val, std::string *s)
Definition: bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc:334
uint64_t
unsigned __int64 uint64_t
Definition: stdint-msvc2008.h:90
number
int32_t number
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:850
google::protobuf::io::ArrayInputStream
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h:66
x
int x
Definition: bloaty/third_party/googletest/googlemock/test/gmock-matchers_test.cc:3610
google::protobuf::UnknownField::data_
union google::protobuf::UnknownField::@284 data_
google::protobuf::UnknownField::fixed64_
uint64_t fixed64_
Definition: protobuf/src/google/protobuf/unknown_field_set.h:295
data
char data[kBufferLength]
Definition: abseil-cpp/absl/strings/internal/str_format/float_conversion.cc:1006
google::protobuf::UnknownField::TYPE_VARINT
@ TYPE_VARINT
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:219
Delete
void Delete(T *t)
Definition: third_party/boringssl-with-bazel/src/ssl/internal.h:208
google::protobuf::UnknownField::fixed32
uint32 fixed32() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:335
google::protobuf::UnknownField::TYPE_LENGTH_DELIMITED
@ TYPE_LENGTH_DELIMITED
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:222
google_benchmark.example.empty
def empty(state)
Definition: example.py:31
google::protobuf::UnknownField::fixed64
uint64 fixed64() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:339
google::protobuf::UnknownFieldSet::fields_
std::vector< UnknownField > fields_
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:177
google::protobuf::io::CodedOutputStream
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/coded_stream.h:1044
google::protobuf::UnknownFieldSet::AddLengthDelimited
void AddLengthDelimited(int number, const std::string &value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:318
value
const char * value
Definition: hpack_parser_table.cc:165
google::protobuf::descriptor_unittest::AddField
FieldDescriptorProto * AddField(DescriptorProto *parent, const std::string &name, int number, FieldDescriptorProto::Label label, FieldDescriptorProto::Type type)
Definition: bloaty/third_party/protobuf/src/google/protobuf/descriptor_unittest.cc:108
google::protobuf::io::ZeroCopyInputStream
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h:126
google::protobuf::UnknownFieldSet::InternalMergeFromMessage
bool InternalMergeFromMessage(const MessageType &message)
Definition: protobuf/src/google/protobuf/unknown_field_set.h:188
google::protobuf::UnknownField::TYPE_FIXED64
@ TYPE_FIXED64
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:221
google::protobuf::UnknownFieldSet::MergeFromMessage
bool MergeFromMessage(const MessageType &message)
Definition: protobuf/src/google/protobuf/unknown_field_set.h:391
google::protobuf::UnknownFieldSet::field
const UnknownField & field(int index) const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:311
field
const FieldDescriptor * field
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/parser_unittest.cc:2692
upload.group
group
Definition: bloaty/third_party/googletest/googlemock/scripts/upload.py:397
google::protobuf.internal.python_message.Clear
Clear
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1430
google::protobuf::UnknownField::varint
uint64 varint() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:331
google::protobuf::UnknownField::set_length_delimited
void set_length_delimited(const std::string &value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:364
google::protobuf::UnknownFieldSet::empty
bool empty() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:302
index
int index
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:1184
google::protobuf::UnknownFieldSet::mutable_field
UnknownField * mutable_field(int index)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:314
google::protobuf::UnknownFieldSet::ClearAndFreeMemory
void ClearAndFreeMemory()
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:294
google::protobuf::UnknownField::varint_
uint64_t varint_
Definition: protobuf/src/google/protobuf/unknown_field_set.h:293
google::protobuf::UnknownFieldSet
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:81
google::protobuf::UnknownField::type_
uint32 type_
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:277
google::protobuf::io::CodedInputStream
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/coded_stream.h:180
xds_manager.num
num
Definition: xds_manager.py:56
data_
std::string data_
Definition: cord_rep_btree_navigator_test.cc:84
GOOGLE_DCHECK_EQ
#define GOOGLE_DCHECK_EQ
Definition: bloaty/third_party/protobuf/src/google/protobuf/stubs/logging.h:196
google::protobuf::UnknownField::set_varint
void set_varint(uint64 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:352
input
std::string input
Definition: bloaty/third_party/protobuf/src/google/protobuf/io/tokenizer_unittest.cc:197
fields_
std::vector< const FieldDescriptor * > fields_
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc:81
internal
Definition: benchmark/test/output_test_helper.cc:20
google::protobuf::UnknownField::set_fixed32
void set_fixed32(uint32 value)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:356
google::protobuf::UnknownField::number
int number() const
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:326
asyncio_get_stats.type
type
Definition: asyncio_get_stats.py:37
google::protobuf::UnknownField::type_
uint32_t type_
Definition: protobuf/src/google/protobuf/unknown_field_set.h:291
google::protobuf.internal::WriteVarint
void WriteVarint(uint64 val, std::string *s)
Definition: bloaty/third_party/protobuf/src/google/protobuf/parse_context.cc:320
google::protobuf::UnknownField::number_
uint32 number_
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:276
size
voidpf void uLong size
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136
google::protobuf::UnknownFieldSet::Swap
void Swap(UnknownFieldSet *x)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:304
setup.target
target
Definition: third_party/bloaty/third_party/protobuf/python/setup.py:179
google::protobuf::UnknownField::SetType
void SetType(Type type)
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:382
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::UnknownField::Type
Type
Definition: bloaty/third_party/protobuf/src/google/protobuf/unknown_field_set.h:218
stream
voidpf stream
Definition: bloaty/third_party/zlib/contrib/minizip/ioapi.h:136


grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:44