Coverage Report

Created: 2026-12-01 06:20

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/expat/build/xml_lpm_fuzzer.pb.h
Line
Count
Source
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: xml_lpm_fuzzer.proto
3
4
#ifndef GOOGLE_PROTOBUF_INCLUDED_xml_5flpm_5ffuzzer_2eproto
5
#define GOOGLE_PROTOBUF_INCLUDED_xml_5flpm_5ffuzzer_2eproto
6
7
#include <limits>
8
#include <string>
9
10
#include <google/protobuf/port_def.inc>
11
#if PROTOBUF_VERSION < 3021000
12
#error This file was generated by a newer version of protoc which is
13
#error incompatible with your Protocol Buffer headers. Please update
14
#error your headers.
15
#endif
16
#if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
17
#error This file was generated by an older version of protoc which is
18
#error incompatible with your Protocol Buffer headers. Please
19
#error regenerate this file with a newer version of protoc.
20
#endif
21
22
#include <google/protobuf/port_undef.inc>
23
#include <google/protobuf/io/coded_stream.h>
24
#include <google/protobuf/arena.h>
25
#include <google/protobuf/arenastring.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/metadata_lite.h>
28
#include <google/protobuf/generated_message_reflection.h>
29
#include <google/protobuf/message.h>
30
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
32
#include <google/protobuf/generated_enum_reflection.h>
33
#include <google/protobuf/unknown_field_set.h>
34
// @@protoc_insertion_point(includes)
35
#include <google/protobuf/port_def.inc>
36
#define PROTOBUF_INTERNAL_EXPORT_xml_5flpm_5ffuzzer_2eproto
37
PROTOBUF_NAMESPACE_OPEN
38
namespace internal {
39
class AnyMetadata;
40
}  // namespace internal
41
PROTOBUF_NAMESPACE_CLOSE
42
43
// Internal implementation detail -- do not use these members.
44
struct TableStruct_xml_5flpm_5ffuzzer_2eproto {
45
  static const uint32_t offsets[];
46
};
47
extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_xml_5flpm_5ffuzzer_2eproto;
48
namespace xml_lpm_fuzzer {
49
class Action;
50
struct ActionDefaultTypeInternal;
51
extern ActionDefaultTypeInternal _Action_default_instance_;
52
class Testcase;
53
struct TestcaseDefaultTypeInternal;
54
extern TestcaseDefaultTypeInternal _Testcase_default_instance_;
55
}  // namespace xml_lpm_fuzzer
56
PROTOBUF_NAMESPACE_OPEN
57
template<> ::xml_lpm_fuzzer::Action* Arena::CreateMaybeMessage<::xml_lpm_fuzzer::Action>(Arena*);
58
template<> ::xml_lpm_fuzzer::Testcase* Arena::CreateMaybeMessage<::xml_lpm_fuzzer::Testcase>(Arena*);
59
PROTOBUF_NAMESPACE_CLOSE
60
namespace xml_lpm_fuzzer {
61
62
enum Encoding : int {
63
  UTF8 = 0,
64
  UTF16 = 1,
65
  ISO88591 = 2,
66
  ASCII = 3,
67
  UNKNOWN = 4,
68
  NONE = 5
69
};
70
bool Encoding_IsValid(int value);
71
constexpr Encoding Encoding_MIN = UTF8;
72
constexpr Encoding Encoding_MAX = NONE;
73
constexpr int Encoding_ARRAYSIZE = Encoding_MAX + 1;
74
75
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Encoding_descriptor();
76
template<typename T>
77
inline const std::string& Encoding_Name(T enum_t_value) {
78
  static_assert(::std::is_same<T, Encoding>::value ||
79
    ::std::is_integral<T>::value,
80
    "Incorrect type passed to function Encoding_Name.");
81
  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
82
    Encoding_descriptor(), enum_t_value);
83
}
84
inline bool Encoding_Parse(
85
0
    ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Encoding* value) {
86
0
  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Encoding>(
87
0
    Encoding_descriptor(), name, value);
88
0
}
89
// ===================================================================
90
91
class Action final :
92
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:xml_lpm_fuzzer.Action) */ {
93
 public:
94
0
  inline Action() : Action(nullptr) {}
95
  ~Action() override;
96
  explicit PROTOBUF_CONSTEXPR Action(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
97
98
  Action(const Action& from);
99
  Action(Action&& from) noexcept
100
0
    : Action() {
101
0
    *this = ::std::move(from);
102
0
  }
103
104
0
  inline Action& operator=(const Action& from) {
105
0
    CopyFrom(from);
106
0
    return *this;
107
0
  }
108
0
  inline Action& operator=(Action&& from) noexcept {
109
0
    if (this == &from) return *this;
110
0
    if (GetOwningArena() == from.GetOwningArena()
111
0
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
112
0
        && GetOwningArena() != nullptr
113
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
114
0
    ) {
115
0
      InternalSwap(&from);
116
0
    } else {
117
0
      CopyFrom(from);
118
0
    }
119
0
    return *this;
120
0
  }
121
122
0
  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
123
0
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
124
0
  }
125
0
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
126
0
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
127
0
  }
128
129
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
130
0
    return GetDescriptor();
131
0
  }
132
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
133
0
    return default_instance().GetMetadata().descriptor;
134
0
  }
135
0
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
136
0
    return default_instance().GetMetadata().reflection;
137
0
  }
138
0
  static const Action& default_instance() {
139
0
    return *internal_default_instance();
140
0
  }
141
  enum ActionCase {
142
    kChunk = 1,
143
    kLastChunk = 2,
144
    kReset = 3,
145
    kExternalEntity = 4,
146
    ACTION_NOT_SET = 0,
147
  };
148
149
0
  static inline const Action* internal_default_instance() {
150
0
    return reinterpret_cast<const Action*>(
151
0
               &_Action_default_instance_);
152
0
  }
153
  static constexpr int kIndexInFileMessages =
154
    0;
155
156
0
  friend void swap(Action& a, Action& b) {
157
0
    a.Swap(&b);
158
0
  }
159
0
  inline void Swap(Action* other) {
160
0
    if (other == this) return;
161
0
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
162
0
    if (GetOwningArena() != nullptr &&
163
0
        GetOwningArena() == other->GetOwningArena()) {
164
0
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
165
0
    if (GetOwningArena() == other->GetOwningArena()) {
166
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
167
0
      InternalSwap(other);
168
0
    } else {
169
0
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
170
0
    }
171
0
  }
172
0
  void UnsafeArenaSwap(Action* other) {
173
0
    if (other == this) return;
174
0
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
175
0
    InternalSwap(other);
176
0
  }
177
178
  // implements Message ----------------------------------------------
179
180
1.01M
  Action* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
181
1.01M
    return CreateMaybeMessage<Action>(arena);
182
1.01M
  }
183
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
184
  void CopyFrom(const Action& from);
185
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
186
0
  void MergeFrom( const Action& from) {
187
0
    Action::MergeImpl(*this, from);
188
0
  }
189
  private:
190
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
191
  public:
192
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
193
  bool IsInitialized() const final;
194
195
  size_t ByteSizeLong() const final;
196
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
197
  uint8_t* _InternalSerialize(
198
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
199
0
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
200
201
  private:
202
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
203
  void SharedDtor();
204
  void SetCachedSize(int size) const final;
205
  void InternalSwap(Action* other);
206
207
  private:
208
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
209
0
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
210
0
    return "xml_lpm_fuzzer.Action";
211
0
  }
212
  protected:
213
  explicit Action(::PROTOBUF_NAMESPACE_ID::Arena* arena,
214
                       bool is_message_owned = false);
215
  public:
216
217
  static const ClassData _class_data_;
218
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
219
220
  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
221
222
  // nested types ----------------------------------------------------
223
224
  // accessors -------------------------------------------------------
225
226
  enum : int {
227
    kChunkFieldNumber = 1,
228
    kLastChunkFieldNumber = 2,
229
    kResetFieldNumber = 3,
230
    kExternalEntityFieldNumber = 4,
231
  };
232
  // string chunk = 1;
233
  bool has_chunk() const;
234
  private:
235
  bool _internal_has_chunk() const;
236
  public:
237
  void clear_chunk();
238
  const std::string& chunk() const;
239
  template <typename ArgT0 = const std::string&, typename... ArgT>
240
  void set_chunk(ArgT0&& arg0, ArgT... args);
241
  std::string* mutable_chunk();
242
  PROTOBUF_NODISCARD std::string* release_chunk();
243
  void set_allocated_chunk(std::string* chunk);
244
  private:
245
  const std::string& _internal_chunk() const;
246
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_chunk(const std::string& value);
247
  std::string* _internal_mutable_chunk();
248
  public:
249
250
  // string last_chunk = 2;
251
  bool has_last_chunk() const;
252
  private:
253
  bool _internal_has_last_chunk() const;
254
  public:
255
  void clear_last_chunk();
256
  const std::string& last_chunk() const;
257
  template <typename ArgT0 = const std::string&, typename... ArgT>
258
  void set_last_chunk(ArgT0&& arg0, ArgT... args);
259
  std::string* mutable_last_chunk();
260
  PROTOBUF_NODISCARD std::string* release_last_chunk();
261
  void set_allocated_last_chunk(std::string* last_chunk);
262
  private:
263
  const std::string& _internal_last_chunk() const;
264
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_last_chunk(const std::string& value);
265
  std::string* _internal_mutable_last_chunk();
266
  public:
267
268
  // bool reset = 3;
269
  bool has_reset() const;
270
  private:
271
  bool _internal_has_reset() const;
272
  public:
273
  void clear_reset();
274
  bool reset() const;
275
  void set_reset(bool value);
276
  private:
277
  bool _internal_reset() const;
278
  void _internal_set_reset(bool value);
279
  public:
280
281
  // string external_entity = 4;
282
  bool has_external_entity() const;
283
  private:
284
  bool _internal_has_external_entity() const;
285
  public:
286
  void clear_external_entity();
287
  const std::string& external_entity() const;
288
  template <typename ArgT0 = const std::string&, typename... ArgT>
289
  void set_external_entity(ArgT0&& arg0, ArgT... args);
290
  std::string* mutable_external_entity();
291
  PROTOBUF_NODISCARD std::string* release_external_entity();
292
  void set_allocated_external_entity(std::string* external_entity);
293
  private:
294
  const std::string& _internal_external_entity() const;
295
  inline PROTOBUF_ALWAYS_INLINE void _internal_set_external_entity(const std::string& value);
296
  std::string* _internal_mutable_external_entity();
297
  public:
298
299
  void clear_action();
300
  ActionCase action_case() const;
301
  // @@protoc_insertion_point(class_scope:xml_lpm_fuzzer.Action)
302
 private:
303
  class _Internal;
304
  void set_has_chunk();
305
  void set_has_last_chunk();
306
  void set_has_reset();
307
  void set_has_external_entity();
308
309
  inline bool has_action() const;
310
  inline void clear_has_action();
311
312
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
313
  typedef void InternalArenaConstructable_;
314
  typedef void DestructorSkippable_;
315
  struct Impl_ {
316
    union ActionUnion {
317
1.01M
      constexpr ActionUnion() : _constinit_{} {}
318
        ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
319
      ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr chunk_;
320
      ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr last_chunk_;
321
      bool reset_;
322
      ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr external_entity_;
323
    } action_;
324
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
325
    uint32_t _oneof_case_[1];
326
327
  };
328
  union { Impl_ _impl_; };
329
  friend struct ::TableStruct_xml_5flpm_5ffuzzer_2eproto;
330
};
331
// -------------------------------------------------------------------
332
333
class Testcase final :
334
    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:xml_lpm_fuzzer.Testcase) */ {
335
 public:
336
35.7k
  inline Testcase() : Testcase(nullptr) {}
337
  ~Testcase() override;
338
  explicit PROTOBUF_CONSTEXPR Testcase(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
339
340
  Testcase(const Testcase& from);
341
  Testcase(Testcase&& from) noexcept
342
0
    : Testcase() {
343
0
    *this = ::std::move(from);
344
0
  }
345
346
0
  inline Testcase& operator=(const Testcase& from) {
347
0
    CopyFrom(from);
348
0
    return *this;
349
0
  }
350
0
  inline Testcase& operator=(Testcase&& from) noexcept {
351
0
    if (this == &from) return *this;
352
0
    if (GetOwningArena() == from.GetOwningArena()
353
0
  #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
354
0
        && GetOwningArena() != nullptr
355
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
356
0
    ) {
357
0
      InternalSwap(&from);
358
0
    } else {
359
0
      CopyFrom(from);
360
0
    }
361
0
    return *this;
362
0
  }
363
364
0
  inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
365
0
    return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance);
366
0
  }
367
0
  inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
368
0
    return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
369
0
  }
370
371
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
372
0
    return GetDescriptor();
373
0
  }
374
0
  static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
375
0
    return default_instance().GetMetadata().descriptor;
376
0
  }
377
0
  static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
378
0
    return default_instance().GetMetadata().reflection;
379
0
  }
380
0
  static const Testcase& default_instance() {
381
0
    return *internal_default_instance();
382
0
  }
383
0
  static inline const Testcase* internal_default_instance() {
384
0
    return reinterpret_cast<const Testcase*>(
385
0
               &_Testcase_default_instance_);
386
0
  }
387
  static constexpr int kIndexInFileMessages =
388
    1;
389
390
0
  friend void swap(Testcase& a, Testcase& b) {
391
0
    a.Swap(&b);
392
0
  }
393
0
  inline void Swap(Testcase* other) {
394
0
    if (other == this) return;
395
0
  #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
396
0
    if (GetOwningArena() != nullptr &&
397
0
        GetOwningArena() == other->GetOwningArena()) {
398
0
   #else  // PROTOBUF_FORCE_COPY_IN_SWAP
399
0
    if (GetOwningArena() == other->GetOwningArena()) {
400
0
  #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
401
0
      InternalSwap(other);
402
0
    } else {
403
0
      ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
404
0
    }
405
0
  }
406
0
  void UnsafeArenaSwap(Testcase* other) {
407
0
    if (other == this) return;
408
0
    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
409
0
    InternalSwap(other);
410
0
  }
411
412
  // implements Message ----------------------------------------------
413
414
0
  Testcase* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
415
0
    return CreateMaybeMessage<Testcase>(arena);
416
0
  }
417
  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
418
  void CopyFrom(const Testcase& from);
419
  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
420
0
  void MergeFrom( const Testcase& from) {
421
0
    Testcase::MergeImpl(*this, from);
422
0
  }
423
  private:
424
  static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
425
  public:
426
  PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
427
  bool IsInitialized() const final;
428
429
  size_t ByteSizeLong() const final;
430
  const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
431
  uint8_t* _InternalSerialize(
432
      uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
433
0
  int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
434
435
  private:
436
  void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
437
  void SharedDtor();
438
  void SetCachedSize(int size) const final;
439
  void InternalSwap(Testcase* other);
440
441
  private:
442
  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
443
0
  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
444
0
    return "xml_lpm_fuzzer.Testcase";
445
0
  }
446
  protected:
447
  explicit Testcase(::PROTOBUF_NAMESPACE_ID::Arena* arena,
448
                       bool is_message_owned = false);
449
  public:
450
451
  static const ClassData _class_data_;
452
  const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
453
454
  ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
455
456
  // nested types ----------------------------------------------------
457
458
  // accessors -------------------------------------------------------
459
460
  enum : int {
461
    kActionsFieldNumber = 2,
462
    kFailAllocationsFieldNumber = 3,
463
    kEncodingFieldNumber = 1,
464
  };
465
  // repeated .xml_lpm_fuzzer.Action actions = 2;
466
  int actions_size() const;
467
  private:
468
  int _internal_actions_size() const;
469
  public:
470
  void clear_actions();
471
  ::xml_lpm_fuzzer::Action* mutable_actions(int index);
472
  ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xml_lpm_fuzzer::Action >*
473
      mutable_actions();
474
  private:
475
  const ::xml_lpm_fuzzer::Action& _internal_actions(int index) const;
476
  ::xml_lpm_fuzzer::Action* _internal_add_actions();
477
  public:
478
  const ::xml_lpm_fuzzer::Action& actions(int index) const;
479
  ::xml_lpm_fuzzer::Action* add_actions();
480
  const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xml_lpm_fuzzer::Action >&
481
      actions() const;
482
483
  // repeated int32 fail_allocations = 3;
484
  int fail_allocations_size() const;
485
  private:
486
  int _internal_fail_allocations_size() const;
487
  public:
488
  void clear_fail_allocations();
489
  private:
490
  int32_t _internal_fail_allocations(int index) const;
491
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
492
      _internal_fail_allocations() const;
493
  void _internal_add_fail_allocations(int32_t value);
494
  ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
495
      _internal_mutable_fail_allocations();
496
  public:
497
  int32_t fail_allocations(int index) const;
498
  void set_fail_allocations(int index, int32_t value);
499
  void add_fail_allocations(int32_t value);
500
  const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
501
      fail_allocations() const;
502
  ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
503
      mutable_fail_allocations();
504
505
  // required .xml_lpm_fuzzer.Encoding encoding = 1;
506
  bool has_encoding() const;
507
  private:
508
  bool _internal_has_encoding() const;
509
  public:
510
  void clear_encoding();
511
  ::xml_lpm_fuzzer::Encoding encoding() const;
512
  void set_encoding(::xml_lpm_fuzzer::Encoding value);
513
  private:
514
  ::xml_lpm_fuzzer::Encoding _internal_encoding() const;
515
  void _internal_set_encoding(::xml_lpm_fuzzer::Encoding value);
516
  public:
517
518
  // @@protoc_insertion_point(class_scope:xml_lpm_fuzzer.Testcase)
519
 private:
520
  class _Internal;
521
522
  template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
523
  typedef void InternalArenaConstructable_;
524
  typedef void DestructorSkippable_;
525
  struct Impl_ {
526
    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
527
    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
528
    ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xml_lpm_fuzzer::Action > actions_;
529
    ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > fail_allocations_;
530
    int encoding_;
531
  };
532
  union { Impl_ _impl_; };
533
  friend struct ::TableStruct_xml_5flpm_5ffuzzer_2eproto;
534
};
535
// ===================================================================
536
537
538
// ===================================================================
539
540
#ifdef __GNUC__
541
  #pragma GCC diagnostic push
542
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
543
#endif  // __GNUC__
544
// Action
545
546
// string chunk = 1;
547
688k
inline bool Action::_internal_has_chunk() const {
548
688k
  return action_case() == kChunk;
549
688k
}
550
0
inline bool Action::has_chunk() const {
551
0
  return _internal_has_chunk();
552
0
}
553
0
inline void Action::set_has_chunk() {
554
0
  _impl_._oneof_case_[0] = kChunk;
555
0
}
556
0
inline void Action::clear_chunk() {
557
0
  if (_internal_has_chunk()) {
558
0
    _impl_.action_.chunk_.Destroy();
559
0
    clear_has_action();
560
0
  }
561
0
}
562
688k
inline const std::string& Action::chunk() const {
563
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.chunk)
564
688k
  return _internal_chunk();
565
688k
}
566
template <typename ArgT0, typename... ArgT>
567
inline void Action::set_chunk(ArgT0&& arg0, ArgT... args) {
568
  if (!_internal_has_chunk()) {
569
    clear_action();
570
    set_has_chunk();
571
    _impl_.action_.chunk_.InitDefault();
572
  }
573
  _impl_.action_.chunk_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
574
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.chunk)
575
}
576
0
inline std::string* Action::mutable_chunk() {
577
0
  std::string* _s = _internal_mutable_chunk();
578
0
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Action.chunk)
579
0
  return _s;
580
0
}
581
688k
inline const std::string& Action::_internal_chunk() const {
582
688k
  if (_internal_has_chunk()) {
583
688k
    return _impl_.action_.chunk_.Get();
584
688k
  }
585
0
  return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
586
688k
}
587
0
inline void Action::_internal_set_chunk(const std::string& value) {
588
0
  if (!_internal_has_chunk()) {
589
0
    clear_action();
590
0
    set_has_chunk();
591
0
    _impl_.action_.chunk_.InitDefault();
592
0
  }
593
0
  _impl_.action_.chunk_.Set(value, GetArenaForAllocation());
594
0
}
595
0
inline std::string* Action::_internal_mutable_chunk() {
596
0
  if (!_internal_has_chunk()) {
597
0
    clear_action();
598
0
    set_has_chunk();
599
0
    _impl_.action_.chunk_.InitDefault();
600
0
  }
601
0
  return _impl_.action_.chunk_.Mutable(      GetArenaForAllocation());
602
0
}
603
0
inline std::string* Action::release_chunk() {
604
0
  // @@protoc_insertion_point(field_release:xml_lpm_fuzzer.Action.chunk)
605
0
  if (_internal_has_chunk()) {
606
0
    clear_has_action();
607
0
    return _impl_.action_.chunk_.Release();
608
0
  } else {
609
0
    return nullptr;
610
0
  }
611
0
}
612
0
inline void Action::set_allocated_chunk(std::string* chunk) {
613
0
  if (has_action()) {
614
0
    clear_action();
615
0
  }
616
0
  if (chunk != nullptr) {
617
0
    set_has_chunk();
618
0
    _impl_.action_.chunk_.InitAllocated(chunk, GetArenaForAllocation());
619
0
  }
620
0
  // @@protoc_insertion_point(field_set_allocated:xml_lpm_fuzzer.Action.chunk)
621
0
}
622
623
// string last_chunk = 2;
624
109k
inline bool Action::_internal_has_last_chunk() const {
625
109k
  return action_case() == kLastChunk;
626
109k
}
627
0
inline bool Action::has_last_chunk() const {
628
0
  return _internal_has_last_chunk();
629
0
}
630
0
inline void Action::set_has_last_chunk() {
631
0
  _impl_._oneof_case_[0] = kLastChunk;
632
0
}
633
0
inline void Action::clear_last_chunk() {
634
0
  if (_internal_has_last_chunk()) {
635
0
    _impl_.action_.last_chunk_.Destroy();
636
0
    clear_has_action();
637
0
  }
638
0
}
639
109k
inline const std::string& Action::last_chunk() const {
640
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.last_chunk)
641
109k
  return _internal_last_chunk();
642
109k
}
643
template <typename ArgT0, typename... ArgT>
644
inline void Action::set_last_chunk(ArgT0&& arg0, ArgT... args) {
645
  if (!_internal_has_last_chunk()) {
646
    clear_action();
647
    set_has_last_chunk();
648
    _impl_.action_.last_chunk_.InitDefault();
649
  }
650
  _impl_.action_.last_chunk_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
651
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.last_chunk)
652
}
653
0
inline std::string* Action::mutable_last_chunk() {
654
0
  std::string* _s = _internal_mutable_last_chunk();
655
0
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Action.last_chunk)
656
0
  return _s;
657
0
}
658
109k
inline const std::string& Action::_internal_last_chunk() const {
659
109k
  if (_internal_has_last_chunk()) {
660
109k
    return _impl_.action_.last_chunk_.Get();
661
109k
  }
662
0
  return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
663
109k
}
664
0
inline void Action::_internal_set_last_chunk(const std::string& value) {
665
0
  if (!_internal_has_last_chunk()) {
666
0
    clear_action();
667
0
    set_has_last_chunk();
668
0
    _impl_.action_.last_chunk_.InitDefault();
669
0
  }
670
0
  _impl_.action_.last_chunk_.Set(value, GetArenaForAllocation());
671
0
}
672
0
inline std::string* Action::_internal_mutable_last_chunk() {
673
0
  if (!_internal_has_last_chunk()) {
674
0
    clear_action();
675
0
    set_has_last_chunk();
676
0
    _impl_.action_.last_chunk_.InitDefault();
677
0
  }
678
0
  return _impl_.action_.last_chunk_.Mutable(      GetArenaForAllocation());
679
0
}
680
0
inline std::string* Action::release_last_chunk() {
681
0
  // @@protoc_insertion_point(field_release:xml_lpm_fuzzer.Action.last_chunk)
682
0
  if (_internal_has_last_chunk()) {
683
0
    clear_has_action();
684
0
    return _impl_.action_.last_chunk_.Release();
685
0
  } else {
686
0
    return nullptr;
687
0
  }
688
0
}
689
0
inline void Action::set_allocated_last_chunk(std::string* last_chunk) {
690
0
  if (has_action()) {
691
0
    clear_action();
692
0
  }
693
0
  if (last_chunk != nullptr) {
694
0
    set_has_last_chunk();
695
0
    _impl_.action_.last_chunk_.InitAllocated(last_chunk, GetArenaForAllocation());
696
0
  }
697
0
  // @@protoc_insertion_point(field_set_allocated:xml_lpm_fuzzer.Action.last_chunk)
698
0
}
699
700
// bool reset = 3;
701
0
inline bool Action::_internal_has_reset() const {
702
0
  return action_case() == kReset;
703
0
}
704
0
inline bool Action::has_reset() const {
705
0
  return _internal_has_reset();
706
0
}
707
0
inline void Action::set_has_reset() {
708
0
  _impl_._oneof_case_[0] = kReset;
709
0
}
710
0
inline void Action::clear_reset() {
711
0
  if (_internal_has_reset()) {
712
0
    _impl_.action_.reset_ = false;
713
0
    clear_has_action();
714
0
  }
715
0
}
716
0
inline bool Action::_internal_reset() const {
717
0
  if (_internal_has_reset()) {
718
0
    return _impl_.action_.reset_;
719
0
  }
720
0
  return false;
721
0
}
722
0
inline void Action::_internal_set_reset(bool value) {
723
0
  if (!_internal_has_reset()) {
724
0
    clear_action();
725
0
    set_has_reset();
726
0
  }
727
0
  _impl_.action_.reset_ = value;
728
0
}
729
0
inline bool Action::reset() const {
730
0
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.reset)
731
0
  return _internal_reset();
732
0
}
733
0
inline void Action::set_reset(bool value) {
734
0
  _internal_set_reset(value);
735
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.reset)
736
0
}
737
738
// string external_entity = 4;
739
14.1k
inline bool Action::_internal_has_external_entity() const {
740
14.1k
  return action_case() == kExternalEntity;
741
14.1k
}
742
0
inline bool Action::has_external_entity() const {
743
0
  return _internal_has_external_entity();
744
0
}
745
0
inline void Action::set_has_external_entity() {
746
0
  _impl_._oneof_case_[0] = kExternalEntity;
747
0
}
748
0
inline void Action::clear_external_entity() {
749
0
  if (_internal_has_external_entity()) {
750
0
    _impl_.action_.external_entity_.Destroy();
751
0
    clear_has_action();
752
0
  }
753
0
}
754
14.1k
inline const std::string& Action::external_entity() const {
755
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.external_entity)
756
14.1k
  return _internal_external_entity();
757
14.1k
}
758
template <typename ArgT0, typename... ArgT>
759
inline void Action::set_external_entity(ArgT0&& arg0, ArgT... args) {
760
  if (!_internal_has_external_entity()) {
761
    clear_action();
762
    set_has_external_entity();
763
    _impl_.action_.external_entity_.InitDefault();
764
  }
765
  _impl_.action_.external_entity_.Set( static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
766
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.external_entity)
767
}
768
0
inline std::string* Action::mutable_external_entity() {
769
0
  std::string* _s = _internal_mutable_external_entity();
770
0
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Action.external_entity)
771
0
  return _s;
772
0
}
773
14.1k
inline const std::string& Action::_internal_external_entity() const {
774
14.1k
  if (_internal_has_external_entity()) {
775
14.1k
    return _impl_.action_.external_entity_.Get();
776
14.1k
  }
777
0
  return ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
778
14.1k
}
779
0
inline void Action::_internal_set_external_entity(const std::string& value) {
780
0
  if (!_internal_has_external_entity()) {
781
0
    clear_action();
782
0
    set_has_external_entity();
783
0
    _impl_.action_.external_entity_.InitDefault();
784
0
  }
785
0
  _impl_.action_.external_entity_.Set(value, GetArenaForAllocation());
786
0
}
787
0
inline std::string* Action::_internal_mutable_external_entity() {
788
0
  if (!_internal_has_external_entity()) {
789
0
    clear_action();
790
0
    set_has_external_entity();
791
0
    _impl_.action_.external_entity_.InitDefault();
792
0
  }
793
0
  return _impl_.action_.external_entity_.Mutable(      GetArenaForAllocation());
794
0
}
795
0
inline std::string* Action::release_external_entity() {
796
0
  // @@protoc_insertion_point(field_release:xml_lpm_fuzzer.Action.external_entity)
797
0
  if (_internal_has_external_entity()) {
798
0
    clear_has_action();
799
0
    return _impl_.action_.external_entity_.Release();
800
0
  } else {
801
0
    return nullptr;
802
0
  }
803
0
}
804
0
inline void Action::set_allocated_external_entity(std::string* external_entity) {
805
0
  if (has_action()) {
806
0
    clear_action();
807
0
  }
808
0
  if (external_entity != nullptr) {
809
0
    set_has_external_entity();
810
0
    _impl_.action_.external_entity_.InitAllocated(external_entity, GetArenaForAllocation());
811
0
  }
812
0
  // @@protoc_insertion_point(field_set_allocated:xml_lpm_fuzzer.Action.external_entity)
813
0
}
814
815
1.01M
inline bool Action::has_action() const {
816
1.01M
  return action_case() != ACTION_NOT_SET;
817
1.01M
}
818
1.01M
inline void Action::clear_has_action() {
819
1.01M
  _impl_._oneof_case_[0] = ACTION_NOT_SET;
820
1.01M
}
821
3.27M
inline Action::ActionCase Action::action_case() const {
822
3.27M
  return Action::ActionCase(_impl_._oneof_case_[0]);
823
3.27M
}
824
// -------------------------------------------------------------------
825
826
// Testcase
827
828
// required .xml_lpm_fuzzer.Encoding encoding = 1;
829
0
inline bool Testcase::_internal_has_encoding() const {
830
0
  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
831
0
  return value;
832
0
}
833
0
inline bool Testcase::has_encoding() const {
834
0
  return _internal_has_encoding();
835
0
}
836
0
inline void Testcase::clear_encoding() {
837
0
  _impl_.encoding_ = 0;
838
0
  _impl_._has_bits_[0] &= ~0x00000001u;
839
0
}
840
35.7k
inline ::xml_lpm_fuzzer::Encoding Testcase::_internal_encoding() const {
841
35.7k
  return static_cast< ::xml_lpm_fuzzer::Encoding >(_impl_.encoding_);
842
35.7k
}
843
35.7k
inline ::xml_lpm_fuzzer::Encoding Testcase::encoding() const {
844
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Testcase.encoding)
845
35.7k
  return _internal_encoding();
846
35.7k
}
847
0
inline void Testcase::_internal_set_encoding(::xml_lpm_fuzzer::Encoding value) {
848
0
  assert(::xml_lpm_fuzzer::Encoding_IsValid(value));
849
0
  _impl_._has_bits_[0] |= 0x00000001u;
850
0
  _impl_.encoding_ = value;
851
0
}
852
0
inline void Testcase::set_encoding(::xml_lpm_fuzzer::Encoding value) {
853
0
  _internal_set_encoding(value);
854
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Testcase.encoding)
855
0
}
856
857
// repeated .xml_lpm_fuzzer.Action actions = 2;
858
1.08M
inline int Testcase::_internal_actions_size() const {
859
1.08M
  return _impl_.actions_.size();
860
1.08M
}
861
1.08M
inline int Testcase::actions_size() const {
862
1.08M
  return _internal_actions_size();
863
1.08M
}
864
0
inline void Testcase::clear_actions() {
865
0
  _impl_.actions_.Clear();
866
0
}
867
0
inline ::xml_lpm_fuzzer::Action* Testcase::mutable_actions(int index) {
868
0
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Testcase.actions)
869
0
  return _impl_.actions_.Mutable(index);
870
0
}
871
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xml_lpm_fuzzer::Action >*
872
0
Testcase::mutable_actions() {
873
0
  // @@protoc_insertion_point(field_mutable_list:xml_lpm_fuzzer.Testcase.actions)
874
0
  return &_impl_.actions_;
875
0
}
876
1.01M
inline const ::xml_lpm_fuzzer::Action& Testcase::_internal_actions(int index) const {
877
1.01M
  return _impl_.actions_.Get(index);
878
1.01M
}
879
1.01M
inline const ::xml_lpm_fuzzer::Action& Testcase::actions(int index) const {
880
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Testcase.actions)
881
1.01M
  return _internal_actions(index);
882
1.01M
}
883
0
inline ::xml_lpm_fuzzer::Action* Testcase::_internal_add_actions() {
884
0
  return _impl_.actions_.Add();
885
0
}
886
0
inline ::xml_lpm_fuzzer::Action* Testcase::add_actions() {
887
0
  ::xml_lpm_fuzzer::Action* _add = _internal_add_actions();
888
0
  // @@protoc_insertion_point(field_add:xml_lpm_fuzzer.Testcase.actions)
889
0
  return _add;
890
0
}
891
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::xml_lpm_fuzzer::Action >&
892
0
Testcase::actions() const {
893
0
  // @@protoc_insertion_point(field_list:xml_lpm_fuzzer.Testcase.actions)
894
0
  return _impl_.actions_;
895
0
}
896
897
// repeated int32 fail_allocations = 3;
898
38.1k
inline int Testcase::_internal_fail_allocations_size() const {
899
38.1k
  return _impl_.fail_allocations_.size();
900
38.1k
}
901
38.1k
inline int Testcase::fail_allocations_size() const {
902
38.1k
  return _internal_fail_allocations_size();
903
38.1k
}
904
0
inline void Testcase::clear_fail_allocations() {
905
0
  _impl_.fail_allocations_.Clear();
906
0
}
907
2.40k
inline int32_t Testcase::_internal_fail_allocations(int index) const {
908
2.40k
  return _impl_.fail_allocations_.Get(index);
909
2.40k
}
910
2.40k
inline int32_t Testcase::fail_allocations(int index) const {
911
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Testcase.fail_allocations)
912
2.40k
  return _internal_fail_allocations(index);
913
2.40k
}
914
0
inline void Testcase::set_fail_allocations(int index, int32_t value) {
915
0
  _impl_.fail_allocations_.Set(index, value);
916
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Testcase.fail_allocations)
917
0
}
918
0
inline void Testcase::_internal_add_fail_allocations(int32_t value) {
919
0
  _impl_.fail_allocations_.Add(value);
920
0
}
921
0
inline void Testcase::add_fail_allocations(int32_t value) {
922
0
  _internal_add_fail_allocations(value);
923
0
  // @@protoc_insertion_point(field_add:xml_lpm_fuzzer.Testcase.fail_allocations)
924
0
}
925
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
926
0
Testcase::_internal_fail_allocations() const {
927
0
  return _impl_.fail_allocations_;
928
0
}
929
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >&
930
0
Testcase::fail_allocations() const {
931
0
  // @@protoc_insertion_point(field_list:xml_lpm_fuzzer.Testcase.fail_allocations)
932
0
  return _internal_fail_allocations();
933
0
}
934
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
935
0
Testcase::_internal_mutable_fail_allocations() {
936
0
  return &_impl_.fail_allocations_;
937
0
}
938
inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >*
939
0
Testcase::mutable_fail_allocations() {
940
0
  // @@protoc_insertion_point(field_mutable_list:xml_lpm_fuzzer.Testcase.fail_allocations)
941
0
  return _internal_mutable_fail_allocations();
942
0
}
943
944
#ifdef __GNUC__
945
  #pragma GCC diagnostic pop
946
#endif  // __GNUC__
947
// -------------------------------------------------------------------
948
949
950
// @@protoc_insertion_point(namespace_scope)
951
952
}  // namespace xml_lpm_fuzzer
953
954
PROTOBUF_NAMESPACE_OPEN
955
956
template <> struct is_proto_enum< ::xml_lpm_fuzzer::Encoding> : ::std::true_type {};
957
template <>
958
0
inline const EnumDescriptor* GetEnumDescriptor< ::xml_lpm_fuzzer::Encoding>() {
959
0
  return ::xml_lpm_fuzzer::Encoding_descriptor();
960
0
}
961
962
PROTOBUF_NAMESPACE_CLOSE
963
964
// @@protoc_insertion_point(global_scope)
965
966
#include <google/protobuf/port_undef.inc>
967
#endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_xml_5flpm_5ffuzzer_2eproto