Coverage Report

Created: 2026-02-14 06:22

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/work/src/bloaty.pb.cc
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// NO CHECKED-IN PROTOBUF GENCODE
3
// source: bloaty.proto
4
// Protobuf C++ Version: 6.31.1
5
6
#include "bloaty.pb.h"
7
8
#include <algorithm>
9
#include <type_traits>
10
#include "google/protobuf/io/coded_stream.h"
11
#include "google/protobuf/generated_message_tctable_impl.h"
12
#include "google/protobuf/extension_set.h"
13
#include "google/protobuf/generated_message_util.h"
14
#include "google/protobuf/wire_format_lite.h"
15
#include "google/protobuf/descriptor.h"
16
#include "google/protobuf/generated_message_reflection.h"
17
#include "google/protobuf/reflection_ops.h"
18
#include "google/protobuf/wire_format.h"
19
// @@protoc_insertion_point(includes)
20
21
// Must be included last.
22
#include "google/protobuf/port_def.inc"
23
PROTOBUF_PRAGMA_INIT_SEG
24
namespace _pb = ::google::protobuf;
25
namespace _pbi = ::google::protobuf::internal;
26
namespace _fl = ::google::protobuf::internal::field_layout;
27
namespace bloaty {
28
29
inline constexpr Regex::Impl_::Impl_(
30
    ::_pbi::ConstantInitialized) noexcept
31
      : _cached_size_{0},
32
        pattern_(
33
            &::google::protobuf::internal::fixed_address_empty_string,
34
            ::_pbi::ConstantInitialized()),
35
        replacement_(
36
            &::google::protobuf::internal::fixed_address_empty_string,
37
            ::_pbi::ConstantInitialized()) {}
38
39
template <typename>
40
PROTOBUF_CONSTEXPR Regex::Regex(::_pbi::ConstantInitialized)
41
#if defined(PROTOBUF_CUSTOM_VTABLE)
42
    : ::google::protobuf::Message(Regex_class_data_.base()),
43
#else   // PROTOBUF_CUSTOM_VTABLE
44
    : ::google::protobuf::Message(),
45
#endif  // PROTOBUF_CUSTOM_VTABLE
46
      _impl_(::_pbi::ConstantInitialized()) {
47
}
48
struct RegexDefaultTypeInternal {
49
0
  PROTOBUF_CONSTEXPR RegexDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
50
0
  ~RegexDefaultTypeInternal() {}
51
  union {
52
    Regex _instance;
53
  };
54
};
55
56
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
57
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RegexDefaultTypeInternal _Regex_default_instance_;
58
59
inline constexpr CustomDataSource::Impl_::Impl_(
60
    ::_pbi::ConstantInitialized) noexcept
61
      : _cached_size_{0},
62
        rewrite_{},
63
        name_(
64
            &::google::protobuf::internal::fixed_address_empty_string,
65
            ::_pbi::ConstantInitialized()),
66
        base_data_source_(
67
            &::google::protobuf::internal::fixed_address_empty_string,
68
            ::_pbi::ConstantInitialized()) {}
69
70
template <typename>
71
PROTOBUF_CONSTEXPR CustomDataSource::CustomDataSource(::_pbi::ConstantInitialized)
72
#if defined(PROTOBUF_CUSTOM_VTABLE)
73
    : ::google::protobuf::Message(CustomDataSource_class_data_.base()),
74
#else   // PROTOBUF_CUSTOM_VTABLE
75
    : ::google::protobuf::Message(),
76
#endif  // PROTOBUF_CUSTOM_VTABLE
77
      _impl_(::_pbi::ConstantInitialized()) {
78
}
79
struct CustomDataSourceDefaultTypeInternal {
80
0
  PROTOBUF_CONSTEXPR CustomDataSourceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
81
0
  ~CustomDataSourceDefaultTypeInternal() {}
82
  union {
83
    CustomDataSource _instance;
84
  };
85
};
86
87
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
88
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CustomDataSourceDefaultTypeInternal _CustomDataSource_default_instance_;
89
90
inline constexpr Options::Impl_::Impl_(
91
    ::_pbi::ConstantInitialized) noexcept
92
      : _cached_size_{0},
93
        filename_{},
94
        base_filename_{},
95
        data_source_{},
96
        custom_data_source_{},
97
        debug_filename_{},
98
        source_map_{},
99
        dsym_path_{},
100
        disassemble_function_(
101
            &::google::protobuf::internal::fixed_address_empty_string,
102
            ::_pbi::ConstantInitialized()),
103
        source_filter_(
104
            &::google::protobuf::internal::fixed_address_empty_string,
105
            ::_pbi::ConstantInitialized()),
106
        demangle_{static_cast< ::bloaty::Options_Demangle >(0)},
107
        sort_by_{static_cast< ::bloaty::Options_SortBy >(0)},
108
        verbose_level_{0},
109
        dump_raw_map_{false},
110
        debug_vmaddr_{::uint64_t{0u}},
111
        debug_fileoff_{::uint64_t{0u}},
112
        max_rows_per_level_{::int64_t{20}} {}
113
114
template <typename>
115
PROTOBUF_CONSTEXPR Options::Options(::_pbi::ConstantInitialized)
116
#if defined(PROTOBUF_CUSTOM_VTABLE)
117
    : ::google::protobuf::Message(Options_class_data_.base()),
118
#else   // PROTOBUF_CUSTOM_VTABLE
119
    : ::google::protobuf::Message(),
120
#endif  // PROTOBUF_CUSTOM_VTABLE
121
      _impl_(::_pbi::ConstantInitialized()) {
122
}
123
struct OptionsDefaultTypeInternal {
124
0
  PROTOBUF_CONSTEXPR OptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
125
0
  ~OptionsDefaultTypeInternal() {}
126
  union {
127
    Options _instance;
128
  };
129
};
130
131
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
132
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OptionsDefaultTypeInternal _Options_default_instance_;
133
}  // namespace bloaty
134
static const ::_pb::EnumDescriptor* PROTOBUF_NONNULL
135
    file_level_enum_descriptors_bloaty_2eproto[2];
136
static constexpr const ::_pb::ServiceDescriptor *PROTOBUF_NONNULL *PROTOBUF_NULLABLE
137
    file_level_service_descriptors_bloaty_2eproto = nullptr;
138
const ::uint32_t
139
    TableStruct_bloaty_2eproto::offsets[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
140
        protodesc_cold) = {
141
        0x081, // bitmap
142
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_._has_bits_),
143
        19, // hasbit index offset
144
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.filename_),
145
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.base_filename_),
146
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.debug_filename_),
147
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.source_map_),
148
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.dsym_path_),
149
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.data_source_),
150
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.max_rows_per_level_),
151
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.demangle_),
152
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.sort_by_),
153
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.verbose_level_),
154
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.debug_vmaddr_),
155
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.debug_fileoff_),
156
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.custom_data_source_),
157
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.disassemble_function_),
158
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.source_filter_),
159
        PROTOBUF_FIELD_OFFSET(::bloaty::Options, _impl_.dump_raw_map_),
160
        ~0u,
161
        ~0u,
162
        ~0u,
163
        ~0u,
164
        ~0u,
165
        ~0u,
166
        8,
167
        2,
168
        3,
169
        4,
170
        6,
171
        7,
172
        ~0u,
173
        0,
174
        1,
175
        5,
176
        0x081, // bitmap
177
        PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, _impl_._has_bits_),
178
        6, // hasbit index offset
179
        PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, _impl_.name_),
180
        PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, _impl_.base_data_source_),
181
        PROTOBUF_FIELD_OFFSET(::bloaty::CustomDataSource, _impl_.rewrite_),
182
        0,
183
        1,
184
        ~0u,
185
        0x081, // bitmap
186
        PROTOBUF_FIELD_OFFSET(::bloaty::Regex, _impl_._has_bits_),
187
        5, // hasbit index offset
188
        PROTOBUF_FIELD_OFFSET(::bloaty::Regex, _impl_.pattern_),
189
        PROTOBUF_FIELD_OFFSET(::bloaty::Regex, _impl_.replacement_),
190
        0,
191
        1,
192
};
193
194
static const ::_pbi::MigrationSchema
195
    schemas[] ABSL_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
196
        {0, sizeof(::bloaty::Options)},
197
        {35, sizeof(::bloaty::CustomDataSource)},
198
        {44, sizeof(::bloaty::Regex)},
199
};
200
static const ::_pb::Message* PROTOBUF_NONNULL const file_default_instances[] = {
201
    &::bloaty::_Options_default_instance_._instance,
202
    &::bloaty::_CustomDataSource_default_instance_._instance,
203
    &::bloaty::_Regex_default_instance_._instance,
204
};
205
const char descriptor_table_protodef_bloaty_2eproto[] ABSL_ATTRIBUTE_SECTION_VARIABLE(
206
    protodesc_cold) = {
207
    "\n\014bloaty.proto\022\006bloaty\"\346\004\n\007Options\022\020\n\010fi"
208
    "lename\030\001 \003(\t\022\025\n\rbase_filename\030\002 \003(\t\022\026\n\016d"
209
    "ebug_filename\030\n \003(\t\022\022\n\nsource_map\030\017 \003(\t\022"
210
    "\021\n\tdsym_path\030\020 \003(\t\022\023\n\013data_source\030\003 \003(\t\022"
211
    "\036\n\022max_rows_per_level\030\004 \001(\003:\00220\022:\n\010deman"
212
    "gle\030\005 \001(\0162\030.bloaty.Options.Demangle:\016DEM"
213
    "ANGLE_SHORT\0224\n\007sort_by\030\006 \001(\0162\026.bloaty.Op"
214
    "tions.SortBy:\013SORTBY_BOTH\022\025\n\rverbose_lev"
215
    "el\030\007 \001(\005\022\024\n\014debug_vmaddr\030\013 \001(\004\022\025\n\rdebug_"
216
    "fileoff\030\014 \001(\004\0224\n\022custom_data_source\030\010 \003("
217
    "\0132\030.bloaty.CustomDataSource\022\034\n\024disassemb"
218
    "le_function\030\t \001(\t\022\025\n\rsource_filter\030\r \001(\t"
219
    "\022\024\n\014dump_raw_map\030\016 \001(\010\"D\n\010Demangle\022\022\n\016DE"
220
    "MANGLE_SHORT\020\000\022\021\n\rDEMANGLE_FULL\020\001\022\021\n\rDEM"
221
    "ANGLE_NONE\020\002\"A\n\006SortBy\022\017\n\013SORTBY_BOTH\020\000\022"
222
    "\021\n\rSORTBY_VMSIZE\020\001\022\023\n\017SORTBY_FILESIZE\020\002\""
223
    "Z\n\020CustomDataSource\022\014\n\004name\030\001 \001(\t\022\030\n\020bas"
224
    "e_data_source\030\002 \001(\t\022\036\n\007rewrite\030\003 \003(\0132\r.b"
225
    "loaty.Regex\"-\n\005Regex\022\017\n\007pattern\030\001 \001(\t\022\023\n"
226
    "\013replacement\030\002 \001(\t"
227
};
228
static ::absl::once_flag descriptor_table_bloaty_2eproto_once;
229
PROTOBUF_CONSTINIT const ::_pbi::DescriptorTable descriptor_table_bloaty_2eproto = {
230
    false,
231
    false,
232
    778,
233
    descriptor_table_protodef_bloaty_2eproto,
234
    "bloaty.proto",
235
    &descriptor_table_bloaty_2eproto_once,
236
    nullptr,
237
    0,
238
    3,
239
    schemas,
240
    file_default_instances,
241
    TableStruct_bloaty_2eproto::offsets,
242
    file_level_enum_descriptors_bloaty_2eproto,
243
    file_level_service_descriptors_bloaty_2eproto,
244
};
245
namespace bloaty {
246
0
const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Options_Demangle_descriptor() {
247
0
  ::google::protobuf::internal::AssignDescriptors(&descriptor_table_bloaty_2eproto);
248
0
  return file_level_enum_descriptors_bloaty_2eproto[0];
249
0
}
250
PROTOBUF_CONSTINIT const uint32_t Options_Demangle_internal_data_[] = {
251
    196608u, 0u, };
252
0
const ::google::protobuf::EnumDescriptor* PROTOBUF_NONNULL Options_SortBy_descriptor() {
253
0
  ::google::protobuf::internal::AssignDescriptors(&descriptor_table_bloaty_2eproto);
254
0
  return file_level_enum_descriptors_bloaty_2eproto[1];
255
0
}
256
PROTOBUF_CONSTINIT const uint32_t Options_SortBy_internal_data_[] = {
257
    196608u, 0u, };
258
// ===================================================================
259
260
class Options::_Internal {
261
 public:
262
  using HasBits =
263
      decltype(::std::declval<Options>()._impl_._has_bits_);
264
  static constexpr ::int32_t kHasBitsOffset =
265
      8 * PROTOBUF_FIELD_OFFSET(Options, _impl_._has_bits_);
266
};
267
268
Options::Options(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
269
#if defined(PROTOBUF_CUSTOM_VTABLE)
270
    : ::google::protobuf::Message(arena, Options_class_data_.base()) {
271
#else   // PROTOBUF_CUSTOM_VTABLE
272
139k
    : ::google::protobuf::Message(arena) {
273
139k
#endif  // PROTOBUF_CUSTOM_VTABLE
274
139k
  SharedCtor(arena);
275
  // @@protoc_insertion_point(arena_constructor:bloaty.Options)
276
139k
}
277
PROTOBUF_NDEBUG_INLINE Options::Impl_::Impl_(
278
    ::google::protobuf::internal::InternalVisibility visibility,
279
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
280
    const ::bloaty::Options& from_msg)
281
410k
      : _has_bits_{from._has_bits_},
282
410k
        _cached_size_{0},
283
410k
        filename_{visibility, arena, from.filename_},
284
410k
        base_filename_{visibility, arena, from.base_filename_},
285
410k
        data_source_{visibility, arena, from.data_source_},
286
410k
        custom_data_source_{visibility, arena, from.custom_data_source_},
287
410k
        debug_filename_{visibility, arena, from.debug_filename_},
288
410k
        source_map_{visibility, arena, from.source_map_},
289
410k
        dsym_path_{visibility, arena, from.dsym_path_},
290
410k
        disassemble_function_(arena, from.disassemble_function_),
291
410k
        source_filter_(arena, from.source_filter_) {}
292
293
Options::Options(
294
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
295
    const Options& from)
296
#if defined(PROTOBUF_CUSTOM_VTABLE)
297
    : ::google::protobuf::Message(arena, Options_class_data_.base()) {
298
#else   // PROTOBUF_CUSTOM_VTABLE
299
410k
    : ::google::protobuf::Message(arena) {
300
410k
#endif  // PROTOBUF_CUSTOM_VTABLE
301
410k
  Options* const _this = this;
302
410k
  (void)_this;
303
410k
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
304
410k
      from._internal_metadata_);
305
410k
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
306
410k
  ::memcpy(reinterpret_cast<char *>(&_impl_) +
307
410k
               offsetof(Impl_, demangle_),
308
410k
           reinterpret_cast<const char *>(&from._impl_) +
309
410k
               offsetof(Impl_, demangle_),
310
410k
           offsetof(Impl_, max_rows_per_level_) -
311
410k
               offsetof(Impl_, demangle_) +
312
410k
               sizeof(Impl_::max_rows_per_level_));
313
314
  // @@protoc_insertion_point(copy_constructor:bloaty.Options)
315
410k
}
316
PROTOBUF_NDEBUG_INLINE Options::Impl_::Impl_(
317
    ::google::protobuf::internal::InternalVisibility visibility,
318
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
319
139k
      : _cached_size_{0},
320
139k
        filename_{visibility, arena},
321
139k
        base_filename_{visibility, arena},
322
139k
        data_source_{visibility, arena},
323
139k
        custom_data_source_{visibility, arena},
324
139k
        debug_filename_{visibility, arena},
325
139k
        source_map_{visibility, arena},
326
139k
        dsym_path_{visibility, arena},
327
139k
        disassemble_function_(arena),
328
139k
        source_filter_(arena),
329
139k
        max_rows_per_level_{::int64_t{20}} {}
330
331
139k
inline void Options::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
332
139k
  new (&_impl_) Impl_(internal_visibility(), arena);
333
139k
  ::memset(reinterpret_cast<char *>(&_impl_) +
334
139k
               offsetof(Impl_, demangle_),
335
139k
           0,
336
139k
           offsetof(Impl_, debug_fileoff_) -
337
139k
               offsetof(Impl_, demangle_) +
338
139k
               sizeof(Impl_::debug_fileoff_));
339
139k
}
340
549k
Options::~Options() {
341
  // @@protoc_insertion_point(destructor:bloaty.Options)
342
549k
  SharedDtor(*this);
343
549k
}
344
549k
inline void Options::SharedDtor(MessageLite& self) {
345
549k
  Options& this_ = static_cast<Options&>(self);
346
549k
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
347
549k
  ABSL_DCHECK(this_.GetArena() == nullptr);
348
549k
  this_._impl_.disassemble_function_.Destroy();
349
549k
  this_._impl_.source_filter_.Destroy();
350
549k
  this_._impl_.~Impl_();
351
549k
}
352
353
inline void* PROTOBUF_NONNULL Options::PlacementNew_(
354
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
355
0
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
356
0
  return ::new (mem) Options(arena);
357
0
}
358
0
constexpr auto Options::InternalNewImpl_() {
359
0
  constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
360
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.filename_) +
361
0
          decltype(Options::_impl_.filename_)::
362
0
              InternalGetArenaOffset(
363
0
                  ::google::protobuf::Message::internal_visibility()),
364
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.base_filename_) +
365
0
          decltype(Options::_impl_.base_filename_)::
366
0
              InternalGetArenaOffset(
367
0
                  ::google::protobuf::Message::internal_visibility()),
368
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_filename_) +
369
0
          decltype(Options::_impl_.debug_filename_)::
370
0
              InternalGetArenaOffset(
371
0
                  ::google::protobuf::Message::internal_visibility()),
372
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.source_map_) +
373
0
          decltype(Options::_impl_.source_map_)::
374
0
              InternalGetArenaOffset(
375
0
                  ::google::protobuf::Message::internal_visibility()),
376
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.dsym_path_) +
377
0
          decltype(Options::_impl_.dsym_path_)::
378
0
              InternalGetArenaOffset(
379
0
                  ::google::protobuf::Message::internal_visibility()),
380
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.data_source_) +
381
0
          decltype(Options::_impl_.data_source_)::
382
0
              InternalGetArenaOffset(
383
0
                  ::google::protobuf::Message::internal_visibility()),
384
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.custom_data_source_) +
385
0
          decltype(Options::_impl_.custom_data_source_)::
386
0
              InternalGetArenaOffset(
387
0
                  ::google::protobuf::Message::internal_visibility()),
388
0
  });
389
0
  if (arena_bits.has_value()) {
390
0
    return ::google::protobuf::internal::MessageCreator::CopyInit(
391
0
        sizeof(Options), alignof(Options), *arena_bits);
392
0
  } else {
393
0
    return ::google::protobuf::internal::MessageCreator(&Options::PlacementNew_,
394
0
                                 sizeof(Options),
395
0
                                 alignof(Options));
396
0
  }
397
0
}
398
0
constexpr auto Options::InternalGenerateClassData_() {
399
0
  return ::google::protobuf::internal::ClassDataFull{
400
0
      ::google::protobuf::internal::ClassData{
401
0
          &_Options_default_instance_._instance,
402
0
          &_table_.header,
403
0
          nullptr,  // OnDemandRegisterArenaDtor
404
0
          nullptr,  // IsInitialized
405
0
          &Options::MergeImpl,
406
0
          ::google::protobuf::Message::GetNewImpl<Options>(),
407
0
#if defined(PROTOBUF_CUSTOM_VTABLE)
408
0
          &Options::SharedDtor,
409
0
          ::google::protobuf::Message::GetClearImpl<Options>(), &Options::ByteSizeLong,
410
0
              &Options::_InternalSerialize,
411
0
#endif  // PROTOBUF_CUSTOM_VTABLE
412
0
          PROTOBUF_FIELD_OFFSET(Options, _impl_._cached_size_),
413
0
          false,
414
0
      },
415
0
      &Options::kDescriptorMethods,
416
0
      &descriptor_table_bloaty_2eproto,
417
0
      nullptr,  // tracker
418
0
  };
419
0
}
420
421
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
422
    ::google::protobuf::internal::ClassDataFull Options_class_data_ =
423
        Options::InternalGenerateClassData_();
424
425
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
426
0
Options::GetClassData() const {
427
0
  ::google::protobuf::internal::PrefetchToLocalCache(&Options_class_data_);
428
0
  ::google::protobuf::internal::PrefetchToLocalCache(Options_class_data_.tc_table);
429
0
  return Options_class_data_.base();
430
0
}
431
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
432
const ::_pbi::TcParseTable<4, 16, 3, 137, 2>
433
Options::_table_ = {
434
  {
435
    PROTOBUF_FIELD_OFFSET(Options, _impl_._has_bits_),
436
    0, // no _extensions_
437
    16, 120,  // max_field_number, fast_idx_mask
438
    offsetof(decltype(_table_), field_lookup_table),
439
    4294901760,  // skipmap
440
    offsetof(decltype(_table_), field_entries),
441
    16,  // num_field_entries
442
    3,  // num_aux_entries
443
    offsetof(decltype(_table_), aux_entries),
444
    Options_class_data_.base(),
445
    nullptr,  // post_loop_handler
446
    ::_pbi::TcParser::GenericFallback,  // fallback
447
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
448
    ::_pbi::TcParser::GetTable<::bloaty::Options>(),  // to_prefetch
449
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
450
  }, {{
451
    // repeated string dsym_path = 16;
452
    {::_pbi::TcParser::FastSR2,
453
     {386, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.dsym_path_)}},
454
    // repeated string filename = 1;
455
    {::_pbi::TcParser::FastSR1,
456
     {10, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.filename_)}},
457
    // repeated string base_filename = 2;
458
    {::_pbi::TcParser::FastSR1,
459
     {18, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.base_filename_)}},
460
    // repeated string data_source = 3;
461
    {::_pbi::TcParser::FastSR1,
462
     {26, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.data_source_)}},
463
    // optional int64 max_rows_per_level = 4 [default = 20];
464
    {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Options, _impl_.max_rows_per_level_), 8>(),
465
     {32, 8, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.max_rows_per_level_)}},
466
    // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
467
    {::_pbi::TcParser::FastEr0S1,
468
     {40, 2, 2, PROTOBUF_FIELD_OFFSET(Options, _impl_.demangle_)}},
469
    // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
470
    {::_pbi::TcParser::FastEr0S1,
471
     {48, 3, 2, PROTOBUF_FIELD_OFFSET(Options, _impl_.sort_by_)}},
472
    // optional int32 verbose_level = 7;
473
    {::_pbi::TcParser::SingularVarintNoZag1<::uint32_t, offsetof(Options, _impl_.verbose_level_), 4>(),
474
     {56, 4, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.verbose_level_)}},
475
    // repeated .bloaty.CustomDataSource custom_data_source = 8;
476
    {::_pbi::TcParser::FastMtR1,
477
     {66, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.custom_data_source_)}},
478
    // optional string disassemble_function = 9;
479
    {::_pbi::TcParser::FastSS1,
480
     {74, 0, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.disassemble_function_)}},
481
    // repeated string debug_filename = 10;
482
    {::_pbi::TcParser::FastSR1,
483
     {82, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_filename_)}},
484
    // optional uint64 debug_vmaddr = 11;
485
    {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Options, _impl_.debug_vmaddr_), 6>(),
486
     {88, 6, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_vmaddr_)}},
487
    // optional uint64 debug_fileoff = 12;
488
    {::_pbi::TcParser::SingularVarintNoZag1<::uint64_t, offsetof(Options, _impl_.debug_fileoff_), 7>(),
489
     {96, 7, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_fileoff_)}},
490
    // optional string source_filter = 13;
491
    {::_pbi::TcParser::FastSS1,
492
     {106, 1, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.source_filter_)}},
493
    // optional bool dump_raw_map = 14;
494
    {::_pbi::TcParser::SingularVarintNoZag1<bool, offsetof(Options, _impl_.dump_raw_map_), 5>(),
495
     {112, 5, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.dump_raw_map_)}},
496
    // repeated string source_map = 15;
497
    {::_pbi::TcParser::FastSR1,
498
     {122, 63, 0, PROTOBUF_FIELD_OFFSET(Options, _impl_.source_map_)}},
499
  }}, {{
500
    65535, 65535
501
  }}, {{
502
    // repeated string filename = 1;
503
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.filename_), -1, 0,
504
    (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
505
    // repeated string base_filename = 2;
506
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.base_filename_), -1, 0,
507
    (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
508
    // repeated string data_source = 3;
509
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.data_source_), -1, 0,
510
    (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
511
    // optional int64 max_rows_per_level = 4 [default = 20];
512
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.max_rows_per_level_), _Internal::kHasBitsOffset + 8, 0,
513
    (0 | ::_fl::kFcOptional | ::_fl::kInt64)},
514
    // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
515
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.demangle_), _Internal::kHasBitsOffset + 2, 1,
516
    (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
517
    // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
518
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.sort_by_), _Internal::kHasBitsOffset + 3, 2,
519
    (0 | ::_fl::kFcOptional | ::_fl::kEnumRange)},
520
    // optional int32 verbose_level = 7;
521
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.verbose_level_), _Internal::kHasBitsOffset + 4, 0,
522
    (0 | ::_fl::kFcOptional | ::_fl::kInt32)},
523
    // repeated .bloaty.CustomDataSource custom_data_source = 8;
524
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.custom_data_source_), -1, 0,
525
    (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
526
    // optional string disassemble_function = 9;
527
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.disassemble_function_), _Internal::kHasBitsOffset + 0, 0,
528
    (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
529
    // repeated string debug_filename = 10;
530
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_filename_), -1, 0,
531
    (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
532
    // optional uint64 debug_vmaddr = 11;
533
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_vmaddr_), _Internal::kHasBitsOffset + 6, 0,
534
    (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
535
    // optional uint64 debug_fileoff = 12;
536
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.debug_fileoff_), _Internal::kHasBitsOffset + 7, 0,
537
    (0 | ::_fl::kFcOptional | ::_fl::kUInt64)},
538
    // optional string source_filter = 13;
539
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.source_filter_), _Internal::kHasBitsOffset + 1, 0,
540
    (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
541
    // optional bool dump_raw_map = 14;
542
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.dump_raw_map_), _Internal::kHasBitsOffset + 5, 0,
543
    (0 | ::_fl::kFcOptional | ::_fl::kBool)},
544
    // repeated string source_map = 15;
545
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.source_map_), -1, 0,
546
    (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
547
    // repeated string dsym_path = 16;
548
    {PROTOBUF_FIELD_OFFSET(Options, _impl_.dsym_path_), -1, 0,
549
    (0 | ::_fl::kFcRepeated | ::_fl::kRawString | ::_fl::kRepSString)},
550
  }},
551
  {{
552
      {::_pbi::TcParser::GetTable<::bloaty::CustomDataSource>()},
553
      {0, 2},
554
      {0, 2},
555
  }},
556
  {{
557
    "\16\10\15\13\0\0\0\0\0\24\16\0\0\15\0\12\11\0\0\0\0\0\0\0"
558
    "bloaty.Options"
559
    "filename"
560
    "base_filename"
561
    "data_source"
562
    "disassemble_function"
563
    "debug_filename"
564
    "source_filter"
565
    "source_map"
566
    "dsym_path"
567
  }},
568
};
569
0
PROTOBUF_NOINLINE void Options::Clear() {
570
// @@protoc_insertion_point(message_clear_start:bloaty.Options)
571
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
572
0
  ::uint32_t cached_has_bits = 0;
573
  // Prevent compiler warnings about cached_has_bits being unused
574
0
  (void) cached_has_bits;
575
576
0
  _impl_.filename_.Clear();
577
0
  _impl_.base_filename_.Clear();
578
0
  _impl_.data_source_.Clear();
579
0
  _impl_.custom_data_source_.Clear();
580
0
  _impl_.debug_filename_.Clear();
581
0
  _impl_.source_map_.Clear();
582
0
  _impl_.dsym_path_.Clear();
583
0
  cached_has_bits = _impl_._has_bits_[0];
584
0
  if ((cached_has_bits & 0x00000003u) != 0) {
585
0
    if ((cached_has_bits & 0x00000001u) != 0) {
586
0
      _impl_.disassemble_function_.ClearNonDefaultToEmpty();
587
0
    }
588
0
    if ((cached_has_bits & 0x00000002u) != 0) {
589
0
      _impl_.source_filter_.ClearNonDefaultToEmpty();
590
0
    }
591
0
  }
592
0
  if ((cached_has_bits & 0x000000fcu) != 0) {
593
0
    ::memset(&_impl_.demangle_, 0, static_cast<::size_t>(
594
0
        reinterpret_cast<char*>(&_impl_.debug_fileoff_) -
595
0
        reinterpret_cast<char*>(&_impl_.demangle_)) + sizeof(_impl_.debug_fileoff_));
596
0
  }
597
0
  _impl_.max_rows_per_level_ = ::int64_t{20};
598
0
  _impl_._has_bits_.Clear();
599
0
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
600
0
}
601
602
#if defined(PROTOBUF_CUSTOM_VTABLE)
603
::uint8_t* PROTOBUF_NONNULL Options::_InternalSerialize(
604
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
605
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
606
  const Options& this_ = static_cast<const Options&>(base);
607
#else   // PROTOBUF_CUSTOM_VTABLE
608
::uint8_t* PROTOBUF_NONNULL Options::_InternalSerialize(
609
    ::uint8_t* PROTOBUF_NONNULL target,
610
0
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
611
0
  const Options& this_ = *this;
612
0
#endif  // PROTOBUF_CUSTOM_VTABLE
613
  // @@protoc_insertion_point(serialize_to_array_start:bloaty.Options)
614
0
  ::uint32_t cached_has_bits = 0;
615
0
  (void)cached_has_bits;
616
617
  // repeated string filename = 1;
618
0
  for (int i = 0, n = this_._internal_filename_size(); i < n; ++i) {
619
0
    const auto& s = this_._internal_filename().Get(i);
620
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
621
0
                                "bloaty.Options.filename");
622
0
    target = stream->WriteString(1, s, target);
623
0
  }
624
625
  // repeated string base_filename = 2;
626
0
  for (int i = 0, n = this_._internal_base_filename_size(); i < n; ++i) {
627
0
    const auto& s = this_._internal_base_filename().Get(i);
628
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
629
0
                                "bloaty.Options.base_filename");
630
0
    target = stream->WriteString(2, s, target);
631
0
  }
632
633
  // repeated string data_source = 3;
634
0
  for (int i = 0, n = this_._internal_data_source_size(); i < n; ++i) {
635
0
    const auto& s = this_._internal_data_source().Get(i);
636
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
637
0
                                "bloaty.Options.data_source");
638
0
    target = stream->WriteString(3, s, target);
639
0
  }
640
641
0
  cached_has_bits = this_._impl_._has_bits_[0];
642
  // optional int64 max_rows_per_level = 4 [default = 20];
643
0
  if ((cached_has_bits & 0x00000100u) != 0) {
644
0
    target =
645
0
        ::google::protobuf::internal::WireFormatLite::WriteInt64ToArrayWithField<4>(
646
0
            stream, this_._internal_max_rows_per_level(), target);
647
0
  }
648
649
  // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
650
0
  if ((cached_has_bits & 0x00000004u) != 0) {
651
0
    target = stream->EnsureSpace(target);
652
0
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
653
0
        5, this_._internal_demangle(), target);
654
0
  }
655
656
  // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
657
0
  if ((cached_has_bits & 0x00000008u) != 0) {
658
0
    target = stream->EnsureSpace(target);
659
0
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
660
0
        6, this_._internal_sort_by(), target);
661
0
  }
662
663
  // optional int32 verbose_level = 7;
664
0
  if ((cached_has_bits & 0x00000010u) != 0) {
665
0
    target =
666
0
        ::google::protobuf::internal::WireFormatLite::WriteInt32ToArrayWithField<7>(
667
0
            stream, this_._internal_verbose_level(), target);
668
0
  }
669
670
  // repeated .bloaty.CustomDataSource custom_data_source = 8;
671
0
  for (unsigned i = 0, n = static_cast<unsigned>(
672
0
                           this_._internal_custom_data_source_size());
673
0
       i < n; i++) {
674
0
    const auto& repfield = this_._internal_custom_data_source().Get(i);
675
0
    target =
676
0
        ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
677
0
            8, repfield, repfield.GetCachedSize(),
678
0
            target, stream);
679
0
  }
680
681
  // optional string disassemble_function = 9;
682
0
  if ((cached_has_bits & 0x00000001u) != 0) {
683
0
    const ::std::string& _s = this_._internal_disassemble_function();
684
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
685
0
                                "bloaty.Options.disassemble_function");
686
0
    target = stream->WriteStringMaybeAliased(9, _s, target);
687
0
  }
688
689
  // repeated string debug_filename = 10;
690
0
  for (int i = 0, n = this_._internal_debug_filename_size(); i < n; ++i) {
691
0
    const auto& s = this_._internal_debug_filename().Get(i);
692
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
693
0
                                "bloaty.Options.debug_filename");
694
0
    target = stream->WriteString(10, s, target);
695
0
  }
696
697
  // optional uint64 debug_vmaddr = 11;
698
0
  if ((cached_has_bits & 0x00000040u) != 0) {
699
0
    target = stream->EnsureSpace(target);
700
0
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
701
0
        11, this_._internal_debug_vmaddr(), target);
702
0
  }
703
704
  // optional uint64 debug_fileoff = 12;
705
0
  if ((cached_has_bits & 0x00000080u) != 0) {
706
0
    target = stream->EnsureSpace(target);
707
0
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(
708
0
        12, this_._internal_debug_fileoff(), target);
709
0
  }
710
711
  // optional string source_filter = 13;
712
0
  if ((cached_has_bits & 0x00000002u) != 0) {
713
0
    const ::std::string& _s = this_._internal_source_filter();
714
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
715
0
                                "bloaty.Options.source_filter");
716
0
    target = stream->WriteStringMaybeAliased(13, _s, target);
717
0
  }
718
719
  // optional bool dump_raw_map = 14;
720
0
  if ((cached_has_bits & 0x00000020u) != 0) {
721
0
    target = stream->EnsureSpace(target);
722
0
    target = ::_pbi::WireFormatLite::WriteBoolToArray(
723
0
        14, this_._internal_dump_raw_map(), target);
724
0
  }
725
726
  // repeated string source_map = 15;
727
0
  for (int i = 0, n = this_._internal_source_map_size(); i < n; ++i) {
728
0
    const auto& s = this_._internal_source_map().Get(i);
729
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
730
0
                                "bloaty.Options.source_map");
731
0
    target = stream->WriteString(15, s, target);
732
0
  }
733
734
  // repeated string dsym_path = 16;
735
0
  for (int i = 0, n = this_._internal_dsym_path_size(); i < n; ++i) {
736
0
    const auto& s = this_._internal_dsym_path().Get(i);
737
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(s.data(), static_cast<int>(s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
738
0
                                "bloaty.Options.dsym_path");
739
0
    target = stream->WriteString(16, s, target);
740
0
  }
741
742
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
743
0
    target =
744
0
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
745
0
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
746
0
  }
747
  // @@protoc_insertion_point(serialize_to_array_end:bloaty.Options)
748
0
  return target;
749
0
}
750
751
#if defined(PROTOBUF_CUSTOM_VTABLE)
752
::size_t Options::ByteSizeLong(const MessageLite& base) {
753
  const Options& this_ = static_cast<const Options&>(base);
754
#else   // PROTOBUF_CUSTOM_VTABLE
755
0
::size_t Options::ByteSizeLong() const {
756
0
  const Options& this_ = *this;
757
0
#endif  // PROTOBUF_CUSTOM_VTABLE
758
  // @@protoc_insertion_point(message_byte_size_start:bloaty.Options)
759
0
  ::size_t total_size = 0;
760
761
0
  ::uint32_t cached_has_bits = 0;
762
  // Prevent compiler warnings about cached_has_bits being unused
763
0
  (void)cached_has_bits;
764
765
0
  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
766
0
   {
767
    // repeated string filename = 1;
768
0
    {
769
0
      total_size +=
770
0
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_filename().size());
771
0
      for (int i = 0, n = this_._internal_filename().size(); i < n; ++i) {
772
0
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
773
0
            this_._internal_filename().Get(i));
774
0
      }
775
0
    }
776
    // repeated string base_filename = 2;
777
0
    {
778
0
      total_size +=
779
0
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_base_filename().size());
780
0
      for (int i = 0, n = this_._internal_base_filename().size(); i < n; ++i) {
781
0
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
782
0
            this_._internal_base_filename().Get(i));
783
0
      }
784
0
    }
785
    // repeated string data_source = 3;
786
0
    {
787
0
      total_size +=
788
0
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_data_source().size());
789
0
      for (int i = 0, n = this_._internal_data_source().size(); i < n; ++i) {
790
0
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
791
0
            this_._internal_data_source().Get(i));
792
0
      }
793
0
    }
794
    // repeated .bloaty.CustomDataSource custom_data_source = 8;
795
0
    {
796
0
      total_size += 1UL * this_._internal_custom_data_source_size();
797
0
      for (const auto& msg : this_._internal_custom_data_source()) {
798
0
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
799
0
      }
800
0
    }
801
    // repeated string debug_filename = 10;
802
0
    {
803
0
      total_size +=
804
0
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_debug_filename().size());
805
0
      for (int i = 0, n = this_._internal_debug_filename().size(); i < n; ++i) {
806
0
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
807
0
            this_._internal_debug_filename().Get(i));
808
0
      }
809
0
    }
810
    // repeated string source_map = 15;
811
0
    {
812
0
      total_size +=
813
0
          1 * ::google::protobuf::internal::FromIntSize(this_._internal_source_map().size());
814
0
      for (int i = 0, n = this_._internal_source_map().size(); i < n; ++i) {
815
0
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
816
0
            this_._internal_source_map().Get(i));
817
0
      }
818
0
    }
819
    // repeated string dsym_path = 16;
820
0
    {
821
0
      total_size +=
822
0
          2 * ::google::protobuf::internal::FromIntSize(this_._internal_dsym_path().size());
823
0
      for (int i = 0, n = this_._internal_dsym_path().size(); i < n; ++i) {
824
0
        total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
825
0
            this_._internal_dsym_path().Get(i));
826
0
      }
827
0
    }
828
0
  }
829
0
  cached_has_bits = this_._impl_._has_bits_[0];
830
0
  total_size += static_cast<bool>(0x00000020u & cached_has_bits) * 2;
831
0
  if ((cached_has_bits & 0x000000dfu) != 0) {
832
    // optional string disassemble_function = 9;
833
0
    if ((cached_has_bits & 0x00000001u) != 0) {
834
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
835
0
                                      this_._internal_disassemble_function());
836
0
    }
837
    // optional string source_filter = 13;
838
0
    if ((cached_has_bits & 0x00000002u) != 0) {
839
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
840
0
                                      this_._internal_source_filter());
841
0
    }
842
    // optional .bloaty.Options.Demangle demangle = 5 [default = DEMANGLE_SHORT];
843
0
    if ((cached_has_bits & 0x00000004u) != 0) {
844
0
      total_size += 1 +
845
0
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_demangle());
846
0
    }
847
    // optional .bloaty.Options.SortBy sort_by = 6 [default = SORTBY_BOTH];
848
0
    if ((cached_has_bits & 0x00000008u) != 0) {
849
0
      total_size += 1 +
850
0
                    ::_pbi::WireFormatLite::EnumSize(this_._internal_sort_by());
851
0
    }
852
    // optional int32 verbose_level = 7;
853
0
    if ((cached_has_bits & 0x00000010u) != 0) {
854
0
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
855
0
          this_._internal_verbose_level());
856
0
    }
857
    // optional uint64 debug_vmaddr = 11;
858
0
    if ((cached_has_bits & 0x00000040u) != 0) {
859
0
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
860
0
          this_._internal_debug_vmaddr());
861
0
    }
862
    // optional uint64 debug_fileoff = 12;
863
0
    if ((cached_has_bits & 0x00000080u) != 0) {
864
0
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(
865
0
          this_._internal_debug_fileoff());
866
0
    }
867
0
  }
868
0
   {
869
    // optional int64 max_rows_per_level = 4 [default = 20];
870
0
    if ((cached_has_bits & 0x00000100u) != 0) {
871
0
      total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(
872
0
          this_._internal_max_rows_per_level());
873
0
    }
874
0
  }
875
0
  return this_.MaybeComputeUnknownFieldsSize(total_size,
876
0
                                             &this_._impl_._cached_size_);
877
0
}
878
879
0
void Options::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
880
0
  auto* const _this = static_cast<Options*>(&to_msg);
881
0
  auto& from = static_cast<const Options&>(from_msg);
882
  // @@protoc_insertion_point(class_specific_merge_from_start:bloaty.Options)
883
0
  ABSL_DCHECK_NE(&from, _this);
884
0
  ::uint32_t cached_has_bits = 0;
885
0
  (void) cached_has_bits;
886
887
0
  _this->_internal_mutable_filename()->MergeFrom(from._internal_filename());
888
0
  _this->_internal_mutable_base_filename()->MergeFrom(from._internal_base_filename());
889
0
  _this->_internal_mutable_data_source()->MergeFrom(from._internal_data_source());
890
0
  _this->_internal_mutable_custom_data_source()->MergeFrom(
891
0
      from._internal_custom_data_source());
892
0
  _this->_internal_mutable_debug_filename()->MergeFrom(from._internal_debug_filename());
893
0
  _this->_internal_mutable_source_map()->MergeFrom(from._internal_source_map());
894
0
  _this->_internal_mutable_dsym_path()->MergeFrom(from._internal_dsym_path());
895
0
  cached_has_bits = from._impl_._has_bits_[0];
896
0
  if ((cached_has_bits & 0x000000ffu) != 0) {
897
0
    if ((cached_has_bits & 0x00000001u) != 0) {
898
0
      _this->_internal_set_disassemble_function(from._internal_disassemble_function());
899
0
    }
900
0
    if ((cached_has_bits & 0x00000002u) != 0) {
901
0
      _this->_internal_set_source_filter(from._internal_source_filter());
902
0
    }
903
0
    if ((cached_has_bits & 0x00000004u) != 0) {
904
0
      _this->_impl_.demangle_ = from._impl_.demangle_;
905
0
    }
906
0
    if ((cached_has_bits & 0x00000008u) != 0) {
907
0
      _this->_impl_.sort_by_ = from._impl_.sort_by_;
908
0
    }
909
0
    if ((cached_has_bits & 0x00000010u) != 0) {
910
0
      _this->_impl_.verbose_level_ = from._impl_.verbose_level_;
911
0
    }
912
0
    if ((cached_has_bits & 0x00000020u) != 0) {
913
0
      _this->_impl_.dump_raw_map_ = from._impl_.dump_raw_map_;
914
0
    }
915
0
    if ((cached_has_bits & 0x00000040u) != 0) {
916
0
      _this->_impl_.debug_vmaddr_ = from._impl_.debug_vmaddr_;
917
0
    }
918
0
    if ((cached_has_bits & 0x00000080u) != 0) {
919
0
      _this->_impl_.debug_fileoff_ = from._impl_.debug_fileoff_;
920
0
    }
921
0
  }
922
0
  if ((cached_has_bits & 0x00000100u) != 0) {
923
0
    _this->_impl_.max_rows_per_level_ = from._impl_.max_rows_per_level_;
924
0
  }
925
0
  _this->_impl_._has_bits_[0] |= cached_has_bits;
926
0
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
927
0
}
928
929
0
void Options::CopyFrom(const Options& from) {
930
// @@protoc_insertion_point(class_specific_copy_from_start:bloaty.Options)
931
0
  if (&from == this) return;
932
0
  Clear();
933
0
  MergeFrom(from);
934
0
}
935
936
937
0
void Options::InternalSwap(Options* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
938
0
  using ::std::swap;
939
0
  auto* arena = GetArena();
940
0
  ABSL_DCHECK_EQ(arena, other->GetArena());
941
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
942
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
943
0
  _impl_.filename_.InternalSwap(&other->_impl_.filename_);
944
0
  _impl_.base_filename_.InternalSwap(&other->_impl_.base_filename_);
945
0
  _impl_.data_source_.InternalSwap(&other->_impl_.data_source_);
946
0
  _impl_.custom_data_source_.InternalSwap(&other->_impl_.custom_data_source_);
947
0
  _impl_.debug_filename_.InternalSwap(&other->_impl_.debug_filename_);
948
0
  _impl_.source_map_.InternalSwap(&other->_impl_.source_map_);
949
0
  _impl_.dsym_path_.InternalSwap(&other->_impl_.dsym_path_);
950
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.disassemble_function_, &other->_impl_.disassemble_function_, arena);
951
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.source_filter_, &other->_impl_.source_filter_, arena);
952
0
  ::google::protobuf::internal::memswap<
953
0
      PROTOBUF_FIELD_OFFSET(Options, _impl_.max_rows_per_level_)
954
0
      + sizeof(Options::_impl_.max_rows_per_level_)
955
0
      - PROTOBUF_FIELD_OFFSET(Options, _impl_.demangle_)>(
956
0
          reinterpret_cast<char*>(&_impl_.demangle_),
957
0
          reinterpret_cast<char*>(&other->_impl_.demangle_));
958
0
}
959
960
0
::google::protobuf::Metadata Options::GetMetadata() const {
961
0
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
962
0
}
963
// ===================================================================
964
965
class CustomDataSource::_Internal {
966
 public:
967
  using HasBits =
968
      decltype(::std::declval<CustomDataSource>()._impl_._has_bits_);
969
  static constexpr ::int32_t kHasBitsOffset =
970
      8 * PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_._has_bits_);
971
};
972
973
CustomDataSource::CustomDataSource(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
974
#if defined(PROTOBUF_CUSTOM_VTABLE)
975
    : ::google::protobuf::Message(arena, CustomDataSource_class_data_.base()) {
976
#else   // PROTOBUF_CUSTOM_VTABLE
977
0
    : ::google::protobuf::Message(arena) {
978
0
#endif  // PROTOBUF_CUSTOM_VTABLE
979
0
  SharedCtor(arena);
980
  // @@protoc_insertion_point(arena_constructor:bloaty.CustomDataSource)
981
0
}
982
PROTOBUF_NDEBUG_INLINE CustomDataSource::Impl_::Impl_(
983
    ::google::protobuf::internal::InternalVisibility visibility,
984
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
985
    const ::bloaty::CustomDataSource& from_msg)
986
0
      : _has_bits_{from._has_bits_},
987
0
        _cached_size_{0},
988
0
        rewrite_{visibility, arena, from.rewrite_},
989
0
        name_(arena, from.name_),
990
0
        base_data_source_(arena, from.base_data_source_) {}
991
992
CustomDataSource::CustomDataSource(
993
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
994
    const CustomDataSource& from)
995
#if defined(PROTOBUF_CUSTOM_VTABLE)
996
    : ::google::protobuf::Message(arena, CustomDataSource_class_data_.base()) {
997
#else   // PROTOBUF_CUSTOM_VTABLE
998
0
    : ::google::protobuf::Message(arena) {
999
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1000
0
  CustomDataSource* const _this = this;
1001
0
  (void)_this;
1002
0
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1003
0
      from._internal_metadata_);
1004
0
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1005
1006
  // @@protoc_insertion_point(copy_constructor:bloaty.CustomDataSource)
1007
0
}
1008
PROTOBUF_NDEBUG_INLINE CustomDataSource::Impl_::Impl_(
1009
    ::google::protobuf::internal::InternalVisibility visibility,
1010
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1011
0
      : _cached_size_{0},
1012
0
        rewrite_{visibility, arena},
1013
0
        name_(arena),
1014
0
        base_data_source_(arena) {}
1015
1016
0
inline void CustomDataSource::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1017
0
  new (&_impl_) Impl_(internal_visibility(), arena);
1018
0
}
1019
0
CustomDataSource::~CustomDataSource() {
1020
  // @@protoc_insertion_point(destructor:bloaty.CustomDataSource)
1021
0
  SharedDtor(*this);
1022
0
}
1023
0
inline void CustomDataSource::SharedDtor(MessageLite& self) {
1024
0
  CustomDataSource& this_ = static_cast<CustomDataSource&>(self);
1025
0
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1026
0
  ABSL_DCHECK(this_.GetArena() == nullptr);
1027
0
  this_._impl_.name_.Destroy();
1028
0
  this_._impl_.base_data_source_.Destroy();
1029
0
  this_._impl_.~Impl_();
1030
0
}
1031
1032
inline void* PROTOBUF_NONNULL CustomDataSource::PlacementNew_(
1033
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1034
0
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1035
0
  return ::new (mem) CustomDataSource(arena);
1036
0
}
1037
0
constexpr auto CustomDataSource::InternalNewImpl_() {
1038
0
  constexpr auto arena_bits = ::google::protobuf::internal::EncodePlacementArenaOffsets({
1039
0
      PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.rewrite_) +
1040
0
          decltype(CustomDataSource::_impl_.rewrite_)::
1041
0
              InternalGetArenaOffset(
1042
0
                  ::google::protobuf::Message::internal_visibility()),
1043
0
  });
1044
0
  if (arena_bits.has_value()) {
1045
0
    return ::google::protobuf::internal::MessageCreator::CopyInit(
1046
0
        sizeof(CustomDataSource), alignof(CustomDataSource), *arena_bits);
1047
0
  } else {
1048
0
    return ::google::protobuf::internal::MessageCreator(&CustomDataSource::PlacementNew_,
1049
0
                                 sizeof(CustomDataSource),
1050
0
                                 alignof(CustomDataSource));
1051
0
  }
1052
0
}
1053
0
constexpr auto CustomDataSource::InternalGenerateClassData_() {
1054
0
  return ::google::protobuf::internal::ClassDataFull{
1055
0
      ::google::protobuf::internal::ClassData{
1056
0
          &_CustomDataSource_default_instance_._instance,
1057
0
          &_table_.header,
1058
0
          nullptr,  // OnDemandRegisterArenaDtor
1059
0
          nullptr,  // IsInitialized
1060
0
          &CustomDataSource::MergeImpl,
1061
0
          ::google::protobuf::Message::GetNewImpl<CustomDataSource>(),
1062
0
#if defined(PROTOBUF_CUSTOM_VTABLE)
1063
0
          &CustomDataSource::SharedDtor,
1064
0
          ::google::protobuf::Message::GetClearImpl<CustomDataSource>(), &CustomDataSource::ByteSizeLong,
1065
0
              &CustomDataSource::_InternalSerialize,
1066
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1067
0
          PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_._cached_size_),
1068
0
          false,
1069
0
      },
1070
0
      &CustomDataSource::kDescriptorMethods,
1071
0
      &descriptor_table_bloaty_2eproto,
1072
0
      nullptr,  // tracker
1073
0
  };
1074
0
}
1075
1076
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1077
    ::google::protobuf::internal::ClassDataFull CustomDataSource_class_data_ =
1078
        CustomDataSource::InternalGenerateClassData_();
1079
1080
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1081
0
CustomDataSource::GetClassData() const {
1082
0
  ::google::protobuf::internal::PrefetchToLocalCache(&CustomDataSource_class_data_);
1083
0
  ::google::protobuf::internal::PrefetchToLocalCache(CustomDataSource_class_data_.tc_table);
1084
0
  return CustomDataSource_class_data_.base();
1085
0
}
1086
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1087
const ::_pbi::TcParseTable<2, 3, 1, 52, 2>
1088
CustomDataSource::_table_ = {
1089
  {
1090
    PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_._has_bits_),
1091
    0, // no _extensions_
1092
    3, 24,  // max_field_number, fast_idx_mask
1093
    offsetof(decltype(_table_), field_lookup_table),
1094
    4294967288,  // skipmap
1095
    offsetof(decltype(_table_), field_entries),
1096
    3,  // num_field_entries
1097
    1,  // num_aux_entries
1098
    offsetof(decltype(_table_), aux_entries),
1099
    CustomDataSource_class_data_.base(),
1100
    nullptr,  // post_loop_handler
1101
    ::_pbi::TcParser::GenericFallback,  // fallback
1102
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1103
    ::_pbi::TcParser::GetTable<::bloaty::CustomDataSource>(),  // to_prefetch
1104
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
1105
  }, {{
1106
    {::_pbi::TcParser::MiniParse, {}},
1107
    // optional string name = 1;
1108
    {::_pbi::TcParser::FastSS1,
1109
     {10, 0, 0, PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.name_)}},
1110
    // optional string base_data_source = 2;
1111
    {::_pbi::TcParser::FastSS1,
1112
     {18, 1, 0, PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.base_data_source_)}},
1113
    // repeated .bloaty.Regex rewrite = 3;
1114
    {::_pbi::TcParser::FastMtR1,
1115
     {26, 63, 0, PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.rewrite_)}},
1116
  }}, {{
1117
    65535, 65535
1118
  }}, {{
1119
    // optional string name = 1;
1120
    {PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.name_), _Internal::kHasBitsOffset + 0, 0,
1121
    (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1122
    // optional string base_data_source = 2;
1123
    {PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.base_data_source_), _Internal::kHasBitsOffset + 1, 0,
1124
    (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1125
    // repeated .bloaty.Regex rewrite = 3;
1126
    {PROTOBUF_FIELD_OFFSET(CustomDataSource, _impl_.rewrite_), -1, 0,
1127
    (0 | ::_fl::kFcRepeated | ::_fl::kMessage | ::_fl::kTvTable)},
1128
  }},
1129
  {{
1130
      {::_pbi::TcParser::GetTable<::bloaty::Regex>()},
1131
  }},
1132
  {{
1133
    "\27\4\20\0\0\0\0\0"
1134
    "bloaty.CustomDataSource"
1135
    "name"
1136
    "base_data_source"
1137
  }},
1138
};
1139
0
PROTOBUF_NOINLINE void CustomDataSource::Clear() {
1140
// @@protoc_insertion_point(message_clear_start:bloaty.CustomDataSource)
1141
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
1142
0
  ::uint32_t cached_has_bits = 0;
1143
  // Prevent compiler warnings about cached_has_bits being unused
1144
0
  (void) cached_has_bits;
1145
1146
0
  _impl_.rewrite_.Clear();
1147
0
  cached_has_bits = _impl_._has_bits_[0];
1148
0
  if ((cached_has_bits & 0x00000003u) != 0) {
1149
0
    if ((cached_has_bits & 0x00000001u) != 0) {
1150
0
      _impl_.name_.ClearNonDefaultToEmpty();
1151
0
    }
1152
0
    if ((cached_has_bits & 0x00000002u) != 0) {
1153
0
      _impl_.base_data_source_.ClearNonDefaultToEmpty();
1154
0
    }
1155
0
  }
1156
0
  _impl_._has_bits_.Clear();
1157
0
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1158
0
}
1159
1160
#if defined(PROTOBUF_CUSTOM_VTABLE)
1161
::uint8_t* PROTOBUF_NONNULL CustomDataSource::_InternalSerialize(
1162
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1163
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1164
  const CustomDataSource& this_ = static_cast<const CustomDataSource&>(base);
1165
#else   // PROTOBUF_CUSTOM_VTABLE
1166
::uint8_t* PROTOBUF_NONNULL CustomDataSource::_InternalSerialize(
1167
    ::uint8_t* PROTOBUF_NONNULL target,
1168
0
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1169
0
  const CustomDataSource& this_ = *this;
1170
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1171
  // @@protoc_insertion_point(serialize_to_array_start:bloaty.CustomDataSource)
1172
0
  ::uint32_t cached_has_bits = 0;
1173
0
  (void)cached_has_bits;
1174
1175
0
  cached_has_bits = this_._impl_._has_bits_[0];
1176
  // optional string name = 1;
1177
0
  if ((cached_has_bits & 0x00000001u) != 0) {
1178
0
    const ::std::string& _s = this_._internal_name();
1179
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1180
0
                                "bloaty.CustomDataSource.name");
1181
0
    target = stream->WriteStringMaybeAliased(1, _s, target);
1182
0
  }
1183
1184
  // optional string base_data_source = 2;
1185
0
  if ((cached_has_bits & 0x00000002u) != 0) {
1186
0
    const ::std::string& _s = this_._internal_base_data_source();
1187
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1188
0
                                "bloaty.CustomDataSource.base_data_source");
1189
0
    target = stream->WriteStringMaybeAliased(2, _s, target);
1190
0
  }
1191
1192
  // repeated .bloaty.Regex rewrite = 3;
1193
0
  for (unsigned i = 0, n = static_cast<unsigned>(
1194
0
                           this_._internal_rewrite_size());
1195
0
       i < n; i++) {
1196
0
    const auto& repfield = this_._internal_rewrite().Get(i);
1197
0
    target =
1198
0
        ::google::protobuf::internal::WireFormatLite::InternalWriteMessage(
1199
0
            3, repfield, repfield.GetCachedSize(),
1200
0
            target, stream);
1201
0
  }
1202
1203
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1204
0
    target =
1205
0
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1206
0
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1207
0
  }
1208
  // @@protoc_insertion_point(serialize_to_array_end:bloaty.CustomDataSource)
1209
0
  return target;
1210
0
}
1211
1212
#if defined(PROTOBUF_CUSTOM_VTABLE)
1213
::size_t CustomDataSource::ByteSizeLong(const MessageLite& base) {
1214
  const CustomDataSource& this_ = static_cast<const CustomDataSource&>(base);
1215
#else   // PROTOBUF_CUSTOM_VTABLE
1216
0
::size_t CustomDataSource::ByteSizeLong() const {
1217
0
  const CustomDataSource& this_ = *this;
1218
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1219
  // @@protoc_insertion_point(message_byte_size_start:bloaty.CustomDataSource)
1220
0
  ::size_t total_size = 0;
1221
1222
0
  ::uint32_t cached_has_bits = 0;
1223
  // Prevent compiler warnings about cached_has_bits being unused
1224
0
  (void)cached_has_bits;
1225
1226
0
  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1227
0
   {
1228
    // repeated .bloaty.Regex rewrite = 3;
1229
0
    {
1230
0
      total_size += 1UL * this_._internal_rewrite_size();
1231
0
      for (const auto& msg : this_._internal_rewrite()) {
1232
0
        total_size += ::google::protobuf::internal::WireFormatLite::MessageSize(msg);
1233
0
      }
1234
0
    }
1235
0
  }
1236
0
  cached_has_bits = this_._impl_._has_bits_[0];
1237
0
  if ((cached_has_bits & 0x00000003u) != 0) {
1238
    // optional string name = 1;
1239
0
    if ((cached_has_bits & 0x00000001u) != 0) {
1240
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1241
0
                                      this_._internal_name());
1242
0
    }
1243
    // optional string base_data_source = 2;
1244
0
    if ((cached_has_bits & 0x00000002u) != 0) {
1245
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1246
0
                                      this_._internal_base_data_source());
1247
0
    }
1248
0
  }
1249
0
  return this_.MaybeComputeUnknownFieldsSize(total_size,
1250
0
                                             &this_._impl_._cached_size_);
1251
0
}
1252
1253
0
void CustomDataSource::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1254
0
  auto* const _this = static_cast<CustomDataSource*>(&to_msg);
1255
0
  auto& from = static_cast<const CustomDataSource&>(from_msg);
1256
  // @@protoc_insertion_point(class_specific_merge_from_start:bloaty.CustomDataSource)
1257
0
  ABSL_DCHECK_NE(&from, _this);
1258
0
  ::uint32_t cached_has_bits = 0;
1259
0
  (void) cached_has_bits;
1260
1261
0
  _this->_internal_mutable_rewrite()->MergeFrom(
1262
0
      from._internal_rewrite());
1263
0
  cached_has_bits = from._impl_._has_bits_[0];
1264
0
  if ((cached_has_bits & 0x00000003u) != 0) {
1265
0
    if ((cached_has_bits & 0x00000001u) != 0) {
1266
0
      _this->_internal_set_name(from._internal_name());
1267
0
    }
1268
0
    if ((cached_has_bits & 0x00000002u) != 0) {
1269
0
      _this->_internal_set_base_data_source(from._internal_base_data_source());
1270
0
    }
1271
0
  }
1272
0
  _this->_impl_._has_bits_[0] |= cached_has_bits;
1273
0
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1274
0
}
1275
1276
0
void CustomDataSource::CopyFrom(const CustomDataSource& from) {
1277
// @@protoc_insertion_point(class_specific_copy_from_start:bloaty.CustomDataSource)
1278
0
  if (&from == this) return;
1279
0
  Clear();
1280
0
  MergeFrom(from);
1281
0
}
1282
1283
1284
0
void CustomDataSource::InternalSwap(CustomDataSource* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1285
0
  using ::std::swap;
1286
0
  auto* arena = GetArena();
1287
0
  ABSL_DCHECK_EQ(arena, other->GetArena());
1288
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1289
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1290
0
  _impl_.rewrite_.InternalSwap(&other->_impl_.rewrite_);
1291
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.name_, &other->_impl_.name_, arena);
1292
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.base_data_source_, &other->_impl_.base_data_source_, arena);
1293
0
}
1294
1295
0
::google::protobuf::Metadata CustomDataSource::GetMetadata() const {
1296
0
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1297
0
}
1298
// ===================================================================
1299
1300
class Regex::_Internal {
1301
 public:
1302
  using HasBits =
1303
      decltype(::std::declval<Regex>()._impl_._has_bits_);
1304
  static constexpr ::int32_t kHasBitsOffset =
1305
      8 * PROTOBUF_FIELD_OFFSET(Regex, _impl_._has_bits_);
1306
};
1307
1308
Regex::Regex(::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1309
#if defined(PROTOBUF_CUSTOM_VTABLE)
1310
    : ::google::protobuf::Message(arena, Regex_class_data_.base()) {
1311
#else   // PROTOBUF_CUSTOM_VTABLE
1312
0
    : ::google::protobuf::Message(arena) {
1313
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1314
0
  SharedCtor(arena);
1315
  // @@protoc_insertion_point(arena_constructor:bloaty.Regex)
1316
0
}
1317
PROTOBUF_NDEBUG_INLINE Regex::Impl_::Impl_(
1318
    ::google::protobuf::internal::InternalVisibility visibility,
1319
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena, const Impl_& from,
1320
    const ::bloaty::Regex& from_msg)
1321
0
      : _has_bits_{from._has_bits_},
1322
0
        _cached_size_{0},
1323
0
        pattern_(arena, from.pattern_),
1324
0
        replacement_(arena, from.replacement_) {}
1325
1326
Regex::Regex(
1327
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena,
1328
    const Regex& from)
1329
#if defined(PROTOBUF_CUSTOM_VTABLE)
1330
    : ::google::protobuf::Message(arena, Regex_class_data_.base()) {
1331
#else   // PROTOBUF_CUSTOM_VTABLE
1332
0
    : ::google::protobuf::Message(arena) {
1333
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1334
0
  Regex* const _this = this;
1335
0
  (void)_this;
1336
0
  _internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(
1337
0
      from._internal_metadata_);
1338
0
  new (&_impl_) Impl_(internal_visibility(), arena, from._impl_, from);
1339
1340
  // @@protoc_insertion_point(copy_constructor:bloaty.Regex)
1341
0
}
1342
PROTOBUF_NDEBUG_INLINE Regex::Impl_::Impl_(
1343
    ::google::protobuf::internal::InternalVisibility visibility,
1344
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena)
1345
0
      : _cached_size_{0},
1346
0
        pattern_(arena),
1347
0
        replacement_(arena) {}
1348
1349
0
inline void Regex::SharedCtor(::_pb::Arena* PROTOBUF_NULLABLE arena) {
1350
0
  new (&_impl_) Impl_(internal_visibility(), arena);
1351
0
}
1352
0
Regex::~Regex() {
1353
  // @@protoc_insertion_point(destructor:bloaty.Regex)
1354
0
  SharedDtor(*this);
1355
0
}
1356
0
inline void Regex::SharedDtor(MessageLite& self) {
1357
0
  Regex& this_ = static_cast<Regex&>(self);
1358
0
  this_._internal_metadata_.Delete<::google::protobuf::UnknownFieldSet>();
1359
0
  ABSL_DCHECK(this_.GetArena() == nullptr);
1360
0
  this_._impl_.pattern_.Destroy();
1361
0
  this_._impl_.replacement_.Destroy();
1362
0
  this_._impl_.~Impl_();
1363
0
}
1364
1365
inline void* PROTOBUF_NONNULL Regex::PlacementNew_(
1366
    const void* PROTOBUF_NONNULL, void* PROTOBUF_NONNULL mem,
1367
0
    ::google::protobuf::Arena* PROTOBUF_NULLABLE arena) {
1368
0
  return ::new (mem) Regex(arena);
1369
0
}
1370
0
constexpr auto Regex::InternalNewImpl_() {
1371
0
  return ::google::protobuf::internal::MessageCreator::CopyInit(sizeof(Regex),
1372
0
                                            alignof(Regex));
1373
0
}
1374
0
constexpr auto Regex::InternalGenerateClassData_() {
1375
0
  return ::google::protobuf::internal::ClassDataFull{
1376
0
      ::google::protobuf::internal::ClassData{
1377
0
          &_Regex_default_instance_._instance,
1378
0
          &_table_.header,
1379
0
          nullptr,  // OnDemandRegisterArenaDtor
1380
0
          nullptr,  // IsInitialized
1381
0
          &Regex::MergeImpl,
1382
0
          ::google::protobuf::Message::GetNewImpl<Regex>(),
1383
0
#if defined(PROTOBUF_CUSTOM_VTABLE)
1384
0
          &Regex::SharedDtor,
1385
0
          ::google::protobuf::Message::GetClearImpl<Regex>(), &Regex::ByteSizeLong,
1386
0
              &Regex::_InternalSerialize,
1387
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1388
0
          PROTOBUF_FIELD_OFFSET(Regex, _impl_._cached_size_),
1389
0
          false,
1390
0
      },
1391
0
      &Regex::kDescriptorMethods,
1392
0
      &descriptor_table_bloaty_2eproto,
1393
0
      nullptr,  // tracker
1394
0
  };
1395
0
}
1396
1397
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 const
1398
    ::google::protobuf::internal::ClassDataFull Regex_class_data_ =
1399
        Regex::InternalGenerateClassData_();
1400
1401
PROTOBUF_ATTRIBUTE_WEAK const ::google::protobuf::internal::ClassData* PROTOBUF_NONNULL
1402
0
Regex::GetClassData() const {
1403
0
  ::google::protobuf::internal::PrefetchToLocalCache(&Regex_class_data_);
1404
0
  ::google::protobuf::internal::PrefetchToLocalCache(Regex_class_data_.tc_table);
1405
0
  return Regex_class_data_.base();
1406
0
}
1407
PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
1408
const ::_pbi::TcParseTable<1, 2, 0, 39, 2>
1409
Regex::_table_ = {
1410
  {
1411
    PROTOBUF_FIELD_OFFSET(Regex, _impl_._has_bits_),
1412
    0, // no _extensions_
1413
    2, 8,  // max_field_number, fast_idx_mask
1414
    offsetof(decltype(_table_), field_lookup_table),
1415
    4294967292,  // skipmap
1416
    offsetof(decltype(_table_), field_entries),
1417
    2,  // num_field_entries
1418
    0,  // num_aux_entries
1419
    offsetof(decltype(_table_), field_names),  // no aux_entries
1420
    Regex_class_data_.base(),
1421
    nullptr,  // post_loop_handler
1422
    ::_pbi::TcParser::GenericFallback,  // fallback
1423
    #ifdef PROTOBUF_PREFETCH_PARSE_TABLE
1424
    ::_pbi::TcParser::GetTable<::bloaty::Regex>(),  // to_prefetch
1425
    #endif  // PROTOBUF_PREFETCH_PARSE_TABLE
1426
  }, {{
1427
    // optional string replacement = 2;
1428
    {::_pbi::TcParser::FastSS1,
1429
     {18, 1, 0, PROTOBUF_FIELD_OFFSET(Regex, _impl_.replacement_)}},
1430
    // optional string pattern = 1;
1431
    {::_pbi::TcParser::FastSS1,
1432
     {10, 0, 0, PROTOBUF_FIELD_OFFSET(Regex, _impl_.pattern_)}},
1433
  }}, {{
1434
    65535, 65535
1435
  }}, {{
1436
    // optional string pattern = 1;
1437
    {PROTOBUF_FIELD_OFFSET(Regex, _impl_.pattern_), _Internal::kHasBitsOffset + 0, 0,
1438
    (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1439
    // optional string replacement = 2;
1440
    {PROTOBUF_FIELD_OFFSET(Regex, _impl_.replacement_), _Internal::kHasBitsOffset + 1, 0,
1441
    (0 | ::_fl::kFcOptional | ::_fl::kRawString | ::_fl::kRepAString)},
1442
  }},
1443
  // no aux_entries
1444
  {{
1445
    "\14\7\13\0\0\0\0\0"
1446
    "bloaty.Regex"
1447
    "pattern"
1448
    "replacement"
1449
  }},
1450
};
1451
0
PROTOBUF_NOINLINE void Regex::Clear() {
1452
// @@protoc_insertion_point(message_clear_start:bloaty.Regex)
1453
0
  ::google::protobuf::internal::TSanWrite(&_impl_);
1454
0
  ::uint32_t cached_has_bits = 0;
1455
  // Prevent compiler warnings about cached_has_bits being unused
1456
0
  (void) cached_has_bits;
1457
1458
0
  cached_has_bits = _impl_._has_bits_[0];
1459
0
  if ((cached_has_bits & 0x00000003u) != 0) {
1460
0
    if ((cached_has_bits & 0x00000001u) != 0) {
1461
0
      _impl_.pattern_.ClearNonDefaultToEmpty();
1462
0
    }
1463
0
    if ((cached_has_bits & 0x00000002u) != 0) {
1464
0
      _impl_.replacement_.ClearNonDefaultToEmpty();
1465
0
    }
1466
0
  }
1467
0
  _impl_._has_bits_.Clear();
1468
0
  _internal_metadata_.Clear<::google::protobuf::UnknownFieldSet>();
1469
0
}
1470
1471
#if defined(PROTOBUF_CUSTOM_VTABLE)
1472
::uint8_t* PROTOBUF_NONNULL Regex::_InternalSerialize(
1473
    const ::google::protobuf::MessageLite& base, ::uint8_t* PROTOBUF_NONNULL target,
1474
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) {
1475
  const Regex& this_ = static_cast<const Regex&>(base);
1476
#else   // PROTOBUF_CUSTOM_VTABLE
1477
::uint8_t* PROTOBUF_NONNULL Regex::_InternalSerialize(
1478
    ::uint8_t* PROTOBUF_NONNULL target,
1479
0
    ::google::protobuf::io::EpsCopyOutputStream* PROTOBUF_NONNULL stream) const {
1480
0
  const Regex& this_ = *this;
1481
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1482
  // @@protoc_insertion_point(serialize_to_array_start:bloaty.Regex)
1483
0
  ::uint32_t cached_has_bits = 0;
1484
0
  (void)cached_has_bits;
1485
1486
0
  cached_has_bits = this_._impl_._has_bits_[0];
1487
  // optional string pattern = 1;
1488
0
  if ((cached_has_bits & 0x00000001u) != 0) {
1489
0
    const ::std::string& _s = this_._internal_pattern();
1490
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1491
0
                                "bloaty.Regex.pattern");
1492
0
    target = stream->WriteStringMaybeAliased(1, _s, target);
1493
0
  }
1494
1495
  // optional string replacement = 2;
1496
0
  if ((cached_has_bits & 0x00000002u) != 0) {
1497
0
    const ::std::string& _s = this_._internal_replacement();
1498
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(_s.data(), static_cast<int>(_s.length()), ::google::protobuf::internal::WireFormat::SERIALIZE,
1499
0
                                "bloaty.Regex.replacement");
1500
0
    target = stream->WriteStringMaybeAliased(2, _s, target);
1501
0
  }
1502
1503
0
  if (ABSL_PREDICT_FALSE(this_._internal_metadata_.have_unknown_fields())) {
1504
0
    target =
1505
0
        ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
1506
0
            this_._internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance), target, stream);
1507
0
  }
1508
  // @@protoc_insertion_point(serialize_to_array_end:bloaty.Regex)
1509
0
  return target;
1510
0
}
1511
1512
#if defined(PROTOBUF_CUSTOM_VTABLE)
1513
::size_t Regex::ByteSizeLong(const MessageLite& base) {
1514
  const Regex& this_ = static_cast<const Regex&>(base);
1515
#else   // PROTOBUF_CUSTOM_VTABLE
1516
0
::size_t Regex::ByteSizeLong() const {
1517
0
  const Regex& this_ = *this;
1518
0
#endif  // PROTOBUF_CUSTOM_VTABLE
1519
  // @@protoc_insertion_point(message_byte_size_start:bloaty.Regex)
1520
0
  ::size_t total_size = 0;
1521
1522
0
  ::uint32_t cached_has_bits = 0;
1523
  // Prevent compiler warnings about cached_has_bits being unused
1524
0
  (void)cached_has_bits;
1525
1526
0
  ::_pbi::Prefetch5LinesFrom7Lines(&this_);
1527
0
  cached_has_bits = this_._impl_._has_bits_[0];
1528
0
  if ((cached_has_bits & 0x00000003u) != 0) {
1529
    // optional string pattern = 1;
1530
0
    if ((cached_has_bits & 0x00000001u) != 0) {
1531
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1532
0
                                      this_._internal_pattern());
1533
0
    }
1534
    // optional string replacement = 2;
1535
0
    if ((cached_has_bits & 0x00000002u) != 0) {
1536
0
      total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize(
1537
0
                                      this_._internal_replacement());
1538
0
    }
1539
0
  }
1540
0
  return this_.MaybeComputeUnknownFieldsSize(total_size,
1541
0
                                             &this_._impl_._cached_size_);
1542
0
}
1543
1544
0
void Regex::MergeImpl(::google::protobuf::MessageLite& to_msg, const ::google::protobuf::MessageLite& from_msg) {
1545
0
  auto* const _this = static_cast<Regex*>(&to_msg);
1546
0
  auto& from = static_cast<const Regex&>(from_msg);
1547
  // @@protoc_insertion_point(class_specific_merge_from_start:bloaty.Regex)
1548
0
  ABSL_DCHECK_NE(&from, _this);
1549
0
  ::uint32_t cached_has_bits = 0;
1550
0
  (void) cached_has_bits;
1551
1552
0
  cached_has_bits = from._impl_._has_bits_[0];
1553
0
  if ((cached_has_bits & 0x00000003u) != 0) {
1554
0
    if ((cached_has_bits & 0x00000001u) != 0) {
1555
0
      _this->_internal_set_pattern(from._internal_pattern());
1556
0
    }
1557
0
    if ((cached_has_bits & 0x00000002u) != 0) {
1558
0
      _this->_internal_set_replacement(from._internal_replacement());
1559
0
    }
1560
0
  }
1561
0
  _this->_impl_._has_bits_[0] |= cached_has_bits;
1562
0
  _this->_internal_metadata_.MergeFrom<::google::protobuf::UnknownFieldSet>(from._internal_metadata_);
1563
0
}
1564
1565
0
void Regex::CopyFrom(const Regex& from) {
1566
// @@protoc_insertion_point(class_specific_copy_from_start:bloaty.Regex)
1567
0
  if (&from == this) return;
1568
0
  Clear();
1569
0
  MergeFrom(from);
1570
0
}
1571
1572
1573
0
void Regex::InternalSwap(Regex* PROTOBUF_RESTRICT PROTOBUF_NONNULL other) {
1574
0
  using ::std::swap;
1575
0
  auto* arena = GetArena();
1576
0
  ABSL_DCHECK_EQ(arena, other->GetArena());
1577
0
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1578
0
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
1579
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.pattern_, &other->_impl_.pattern_, arena);
1580
0
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.replacement_, &other->_impl_.replacement_, arena);
1581
0
}
1582
1583
0
::google::protobuf::Metadata Regex::GetMetadata() const {
1584
0
  return ::google::protobuf::Message::GetMetadataImpl(GetClassData()->full());
1585
0
}
1586
// @@protoc_insertion_point(namespace_scope)
1587
}  // namespace bloaty
1588
namespace google {
1589
namespace protobuf {
1590
}  // namespace protobuf
1591
}  // namespace google
1592
// @@protoc_insertion_point(global_scope)
1593
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::std::false_type
1594
    _static_init2_ [[maybe_unused]] =
1595
        (::_pbi::AddDescriptors(&descriptor_table_bloaty_2eproto),
1596
         ::std::false_type{});
1597
#include "google/protobuf/port_undef.inc"