Coverage Report

Created: 2025-10-10 06:47

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 PROTOBUF_INCLUDED_xml_5flpm_5ffuzzer_2eproto
5
#define PROTOBUF_INCLUDED_xml_5flpm_5ffuzzer_2eproto
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/io/coded_stream.h>
23
#include <google/protobuf/arena.h>
24
#include <google/protobuf/arenastring.h>
25
#include <google/protobuf/generated_message_table_driven.h>
26
#include <google/protobuf/generated_message_util.h>
27
#include <google/protobuf/inlined_string_field.h>
28
#include <google/protobuf/metadata.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
#define PROTOBUF_INTERNAL_EXPORT_protobuf_xml_5flpm_5ffuzzer_2eproto 
36
37
namespace protobuf_xml_5flpm_5ffuzzer_2eproto {
38
// Internal implementation detail -- do not use these members.
39
struct TableStruct {
40
  static const ::google::protobuf::internal::ParseTableField entries[];
41
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42
  static const ::google::protobuf::internal::ParseTable schema[2];
43
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45
  static const ::google::protobuf::uint32 offsets[];
46
};
47
void AddDescriptors();
48
}  // namespace protobuf_xml_5flpm_5ffuzzer_2eproto
49
namespace xml_lpm_fuzzer {
50
class Action;
51
class ActionDefaultTypeInternal;
52
extern ActionDefaultTypeInternal _Action_default_instance_;
53
class Testcase;
54
class TestcaseDefaultTypeInternal;
55
extern TestcaseDefaultTypeInternal _Testcase_default_instance_;
56
}  // namespace xml_lpm_fuzzer
57
namespace google {
58
namespace protobuf {
59
template<> ::xml_lpm_fuzzer::Action* Arena::CreateMaybeMessage<::xml_lpm_fuzzer::Action>(Arena*);
60
template<> ::xml_lpm_fuzzer::Testcase* Arena::CreateMaybeMessage<::xml_lpm_fuzzer::Testcase>(Arena*);
61
}  // namespace protobuf
62
}  // namespace google
63
namespace xml_lpm_fuzzer {
64
65
enum Encoding {
66
  UTF8 = 0,
67
  UTF16 = 1,
68
  ISO88591 = 2,
69
  ASCII = 3,
70
  UNKNOWN = 4,
71
  NONE = 5
72
};
73
bool Encoding_IsValid(int value);
74
const Encoding Encoding_MIN = UTF8;
75
const Encoding Encoding_MAX = NONE;
76
const int Encoding_ARRAYSIZE = Encoding_MAX + 1;
77
78
const ::google::protobuf::EnumDescriptor* Encoding_descriptor();
79
0
inline const ::std::string& Encoding_Name(Encoding value) {
80
0
  return ::google::protobuf::internal::NameOfEnum(
81
0
    Encoding_descriptor(), value);
82
0
}
83
inline bool Encoding_Parse(
84
0
    const ::std::string& name, Encoding* value) {
85
0
  return ::google::protobuf::internal::ParseNamedEnum<Encoding>(
86
0
    Encoding_descriptor(), name, value);
87
0
}
88
// ===================================================================
89
90
class Action : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xml_lpm_fuzzer.Action) */ {
91
 public:
92
  Action();
93
  virtual ~Action();
94
95
  Action(const Action& from);
96
97
0
  inline Action& operator=(const Action& from) {
98
0
    CopyFrom(from);
99
0
    return *this;
100
0
  }
101
  #if LANG_CXX11
102
  Action(Action&& from) noexcept
103
0
    : Action() {
104
0
    *this = ::std::move(from);
105
0
  }
106
107
0
  inline Action& operator=(Action&& from) noexcept {
108
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
109
0
      if (this != &from) InternalSwap(&from);
110
0
    } else {
111
0
      CopyFrom(from);
112
0
    }
113
0
    return *this;
114
0
  }
115
  #endif
116
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
117
0
    return _internal_metadata_.unknown_fields();
118
0
  }
119
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
120
0
    return _internal_metadata_.mutable_unknown_fields();
121
0
  }
122
123
  static const ::google::protobuf::Descriptor* descriptor();
124
  static const Action& default_instance();
125
126
  enum ActionCase {
127
    kChunk = 1,
128
    kLastChunk = 2,
129
    kReset = 3,
130
    kExternalEntity = 4,
131
    ACTION_NOT_SET = 0,
132
  };
133
134
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
135
0
  static inline const Action* internal_default_instance() {
136
0
    return reinterpret_cast<const Action*>(
137
0
               &_Action_default_instance_);
138
0
  }
139
  static constexpr int kIndexInFileMessages =
140
    0;
141
142
  void Swap(Action* other);
143
0
  friend void swap(Action& a, Action& b) {
144
0
    a.Swap(&b);
145
0
  }
146
147
  // implements Message ----------------------------------------------
148
149
0
  inline Action* New() const final {
150
0
    return CreateMaybeMessage<Action>(NULL);
151
0
  }
152
153
729k
  Action* New(::google::protobuf::Arena* arena) const final {
154
729k
    return CreateMaybeMessage<Action>(arena);
155
729k
  }
156
  void CopyFrom(const ::google::protobuf::Message& from) final;
157
  void MergeFrom(const ::google::protobuf::Message& from) final;
158
  void CopyFrom(const Action& from);
159
  void MergeFrom(const Action& from);
160
  void Clear() final;
161
  bool IsInitialized() const final;
162
163
  size_t ByteSizeLong() const final;
164
  bool MergePartialFromCodedStream(
165
      ::google::protobuf::io::CodedInputStream* input) final;
166
  void SerializeWithCachedSizes(
167
      ::google::protobuf::io::CodedOutputStream* output) const final;
168
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
169
      bool deterministic, ::google::protobuf::uint8* target) const final;
170
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
171
172
  private:
173
  void SharedCtor();
174
  void SharedDtor();
175
  void SetCachedSize(int size) const final;
176
  void InternalSwap(Action* other);
177
  private:
178
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
179
0
    return NULL;
180
0
  }
181
0
  inline void* MaybeArenaPtr() const {
182
0
    return NULL;
183
0
  }
184
  public:
185
186
  ::google::protobuf::Metadata GetMetadata() const final;
187
188
  // nested types ----------------------------------------------------
189
190
  // accessors -------------------------------------------------------
191
192
  // optional string chunk = 1;
193
  bool has_chunk() const;
194
  void clear_chunk();
195
  static const int kChunkFieldNumber = 1;
196
  const ::std::string& chunk() const;
197
  void set_chunk(const ::std::string& value);
198
  #if LANG_CXX11
199
  void set_chunk(::std::string&& value);
200
  #endif
201
  void set_chunk(const char* value);
202
  void set_chunk(const char* value, size_t size);
203
  ::std::string* mutable_chunk();
204
  ::std::string* release_chunk();
205
  void set_allocated_chunk(::std::string* chunk);
206
207
  // optional string last_chunk = 2;
208
  bool has_last_chunk() const;
209
  void clear_last_chunk();
210
  static const int kLastChunkFieldNumber = 2;
211
  const ::std::string& last_chunk() const;
212
  void set_last_chunk(const ::std::string& value);
213
  #if LANG_CXX11
214
  void set_last_chunk(::std::string&& value);
215
  #endif
216
  void set_last_chunk(const char* value);
217
  void set_last_chunk(const char* value, size_t size);
218
  ::std::string* mutable_last_chunk();
219
  ::std::string* release_last_chunk();
220
  void set_allocated_last_chunk(::std::string* last_chunk);
221
222
  // optional bool reset = 3;
223
  bool has_reset() const;
224
  void clear_reset();
225
  static const int kResetFieldNumber = 3;
226
  bool reset() const;
227
  void set_reset(bool value);
228
229
  // optional string external_entity = 4;
230
  bool has_external_entity() const;
231
  void clear_external_entity();
232
  static const int kExternalEntityFieldNumber = 4;
233
  const ::std::string& external_entity() const;
234
  void set_external_entity(const ::std::string& value);
235
  #if LANG_CXX11
236
  void set_external_entity(::std::string&& value);
237
  #endif
238
  void set_external_entity(const char* value);
239
  void set_external_entity(const char* value, size_t size);
240
  ::std::string* mutable_external_entity();
241
  ::std::string* release_external_entity();
242
  void set_allocated_external_entity(::std::string* external_entity);
243
244
  void clear_action();
245
  ActionCase action_case() const;
246
  // @@protoc_insertion_point(class_scope:xml_lpm_fuzzer.Action)
247
 private:
248
  void set_has_chunk();
249
  void set_has_last_chunk();
250
  void set_has_reset();
251
  void set_has_external_entity();
252
253
  inline bool has_action() const;
254
  inline void clear_has_action();
255
256
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
257
  ::google::protobuf::internal::HasBits<1> _has_bits_;
258
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
259
  union ActionUnion {
260
729k
    ActionUnion() {}
261
    ::google::protobuf::internal::ArenaStringPtr chunk_;
262
    ::google::protobuf::internal::ArenaStringPtr last_chunk_;
263
    bool reset_;
264
    ::google::protobuf::internal::ArenaStringPtr external_entity_;
265
  } action_;
266
  ::google::protobuf::uint32 _oneof_case_[1];
267
268
  friend struct ::protobuf_xml_5flpm_5ffuzzer_2eproto::TableStruct;
269
};
270
// -------------------------------------------------------------------
271
272
class Testcase : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xml_lpm_fuzzer.Testcase) */ {
273
 public:
274
  Testcase();
275
  virtual ~Testcase();
276
277
  Testcase(const Testcase& from);
278
279
0
  inline Testcase& operator=(const Testcase& from) {
280
0
    CopyFrom(from);
281
0
    return *this;
282
0
  }
283
  #if LANG_CXX11
284
  Testcase(Testcase&& from) noexcept
285
0
    : Testcase() {
286
0
    *this = ::std::move(from);
287
0
  }
288
289
0
  inline Testcase& operator=(Testcase&& from) noexcept {
290
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
291
0
      if (this != &from) InternalSwap(&from);
292
0
    } else {
293
0
      CopyFrom(from);
294
0
    }
295
0
    return *this;
296
0
  }
297
  #endif
298
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
299
0
    return _internal_metadata_.unknown_fields();
300
0
  }
301
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
302
0
    return _internal_metadata_.mutable_unknown_fields();
303
0
  }
304
305
  static const ::google::protobuf::Descriptor* descriptor();
306
  static const Testcase& default_instance();
307
308
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
309
0
  static inline const Testcase* internal_default_instance() {
310
0
    return reinterpret_cast<const Testcase*>(
311
0
               &_Testcase_default_instance_);
312
0
  }
313
  static constexpr int kIndexInFileMessages =
314
    1;
315
316
  void Swap(Testcase* other);
317
0
  friend void swap(Testcase& a, Testcase& b) {
318
0
    a.Swap(&b);
319
0
  }
320
321
  // implements Message ----------------------------------------------
322
323
0
  inline Testcase* New() const final {
324
0
    return CreateMaybeMessage<Testcase>(NULL);
325
0
  }
326
327
0
  Testcase* New(::google::protobuf::Arena* arena) const final {
328
0
    return CreateMaybeMessage<Testcase>(arena);
329
0
  }
330
  void CopyFrom(const ::google::protobuf::Message& from) final;
331
  void MergeFrom(const ::google::protobuf::Message& from) final;
332
  void CopyFrom(const Testcase& from);
333
  void MergeFrom(const Testcase& from);
334
  void Clear() final;
335
  bool IsInitialized() const final;
336
337
  size_t ByteSizeLong() const final;
338
  bool MergePartialFromCodedStream(
339
      ::google::protobuf::io::CodedInputStream* input) final;
340
  void SerializeWithCachedSizes(
341
      ::google::protobuf::io::CodedOutputStream* output) const final;
342
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
343
      bool deterministic, ::google::protobuf::uint8* target) const final;
344
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
345
346
  private:
347
  void SharedCtor();
348
  void SharedDtor();
349
  void SetCachedSize(int size) const final;
350
  void InternalSwap(Testcase* other);
351
  private:
352
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
353
0
    return NULL;
354
0
  }
355
0
  inline void* MaybeArenaPtr() const {
356
0
    return NULL;
357
0
  }
358
  public:
359
360
  ::google::protobuf::Metadata GetMetadata() const final;
361
362
  // nested types ----------------------------------------------------
363
364
  // accessors -------------------------------------------------------
365
366
  // repeated .xml_lpm_fuzzer.Action actions = 2;
367
  int actions_size() const;
368
  void clear_actions();
369
  static const int kActionsFieldNumber = 2;
370
  ::xml_lpm_fuzzer::Action* mutable_actions(int index);
371
  ::google::protobuf::RepeatedPtrField< ::xml_lpm_fuzzer::Action >*
372
      mutable_actions();
373
  const ::xml_lpm_fuzzer::Action& actions(int index) const;
374
  ::xml_lpm_fuzzer::Action* add_actions();
375
  const ::google::protobuf::RepeatedPtrField< ::xml_lpm_fuzzer::Action >&
376
      actions() const;
377
378
  // repeated int32 fail_allocations = 3;
379
  int fail_allocations_size() const;
380
  void clear_fail_allocations();
381
  static const int kFailAllocationsFieldNumber = 3;
382
  ::google::protobuf::int32 fail_allocations(int index) const;
383
  void set_fail_allocations(int index, ::google::protobuf::int32 value);
384
  void add_fail_allocations(::google::protobuf::int32 value);
385
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
386
      fail_allocations() const;
387
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
388
      mutable_fail_allocations();
389
390
  // required .xml_lpm_fuzzer.Encoding encoding = 1;
391
  bool has_encoding() const;
392
  void clear_encoding();
393
  static const int kEncodingFieldNumber = 1;
394
  ::xml_lpm_fuzzer::Encoding encoding() const;
395
  void set_encoding(::xml_lpm_fuzzer::Encoding value);
396
397
  // @@protoc_insertion_point(class_scope:xml_lpm_fuzzer.Testcase)
398
 private:
399
  void set_has_encoding();
400
  void clear_has_encoding();
401
402
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
403
  ::google::protobuf::internal::HasBits<1> _has_bits_;
404
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
405
  ::google::protobuf::RepeatedPtrField< ::xml_lpm_fuzzer::Action > actions_;
406
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > fail_allocations_;
407
  int encoding_;
408
  friend struct ::protobuf_xml_5flpm_5ffuzzer_2eproto::TableStruct;
409
};
410
// ===================================================================
411
412
413
// ===================================================================
414
415
#ifdef __GNUC__
416
  #pragma GCC diagnostic push
417
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
418
#endif  // __GNUC__
419
// Action
420
421
// optional string chunk = 1;
422
480k
inline bool Action::has_chunk() const {
423
480k
  return action_case() == kChunk;
424
480k
}
425
0
inline void Action::set_has_chunk() {
426
0
  _oneof_case_[0] = kChunk;
427
0
}
428
0
inline void Action::clear_chunk() {
429
0
  if (has_chunk()) {
430
0
    action_.chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
431
0
    clear_has_action();
432
0
  }
433
0
}
434
480k
inline const ::std::string& Action::chunk() const {
435
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.chunk)
436
480k
  if (has_chunk()) {
437
480k
    return action_.chunk_.GetNoArena();
438
480k
  }
439
0
  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
440
480k
}
441
0
inline void Action::set_chunk(const ::std::string& value) {
442
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.chunk)
443
0
  if (!has_chunk()) {
444
0
    clear_action();
445
0
    set_has_chunk();
446
0
    action_.chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
447
0
  }
448
0
  action_.chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
449
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.chunk)
450
0
}
451
#if LANG_CXX11
452
0
inline void Action::set_chunk(::std::string&& value) {
453
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.chunk)
454
0
  if (!has_chunk()) {
455
0
    clear_action();
456
0
    set_has_chunk();
457
0
    action_.chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
458
0
  }
459
0
  action_.chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
460
0
  // @@protoc_insertion_point(field_set_rvalue:xml_lpm_fuzzer.Action.chunk)
461
0
}
462
#endif
463
0
inline void Action::set_chunk(const char* value) {
464
0
  GOOGLE_DCHECK(value != NULL);
465
0
  if (!has_chunk()) {
466
0
    clear_action();
467
0
    set_has_chunk();
468
0
    action_.chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
469
0
  }
470
0
  action_.chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
471
0
      ::std::string(value));
472
0
  // @@protoc_insertion_point(field_set_char:xml_lpm_fuzzer.Action.chunk)
473
0
}
474
0
inline void Action::set_chunk(const char* value, size_t size) {
475
0
  if (!has_chunk()) {
476
0
    clear_action();
477
0
    set_has_chunk();
478
0
    action_.chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
479
0
  }
480
0
  action_.chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
481
0
      reinterpret_cast<const char*>(value), size));
482
0
  // @@protoc_insertion_point(field_set_pointer:xml_lpm_fuzzer.Action.chunk)
483
0
}
484
0
inline ::std::string* Action::mutable_chunk() {
485
0
  if (!has_chunk()) {
486
0
    clear_action();
487
0
    set_has_chunk();
488
0
    action_.chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
489
0
  }
490
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Action.chunk)
491
0
  return action_.chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
492
0
}
493
0
inline ::std::string* Action::release_chunk() {
494
0
  // @@protoc_insertion_point(field_release:xml_lpm_fuzzer.Action.chunk)
495
0
  if (has_chunk()) {
496
0
    clear_has_action();
497
0
    return action_.chunk_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
498
0
  } else {
499
0
    return NULL;
500
0
  }
501
0
}
502
0
inline void Action::set_allocated_chunk(::std::string* chunk) {
503
0
  if (!has_chunk()) {
504
0
    action_.chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
505
0
  }
506
0
  clear_action();
507
0
  if (chunk != NULL) {
508
0
    set_has_chunk();
509
0
    action_.chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), chunk);
510
0
  }
511
0
  // @@protoc_insertion_point(field_set_allocated:xml_lpm_fuzzer.Action.chunk)
512
0
}
513
514
// optional string last_chunk = 2;
515
87.3k
inline bool Action::has_last_chunk() const {
516
87.3k
  return action_case() == kLastChunk;
517
87.3k
}
518
0
inline void Action::set_has_last_chunk() {
519
0
  _oneof_case_[0] = kLastChunk;
520
0
}
521
0
inline void Action::clear_last_chunk() {
522
0
  if (has_last_chunk()) {
523
0
    action_.last_chunk_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
524
0
    clear_has_action();
525
0
  }
526
0
}
527
87.3k
inline const ::std::string& Action::last_chunk() const {
528
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.last_chunk)
529
87.3k
  if (has_last_chunk()) {
530
87.3k
    return action_.last_chunk_.GetNoArena();
531
87.3k
  }
532
0
  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
533
87.3k
}
534
0
inline void Action::set_last_chunk(const ::std::string& value) {
535
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.last_chunk)
536
0
  if (!has_last_chunk()) {
537
0
    clear_action();
538
0
    set_has_last_chunk();
539
0
    action_.last_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
540
0
  }
541
0
  action_.last_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
542
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.last_chunk)
543
0
}
544
#if LANG_CXX11
545
0
inline void Action::set_last_chunk(::std::string&& value) {
546
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.last_chunk)
547
0
  if (!has_last_chunk()) {
548
0
    clear_action();
549
0
    set_has_last_chunk();
550
0
    action_.last_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
551
0
  }
552
0
  action_.last_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
553
0
  // @@protoc_insertion_point(field_set_rvalue:xml_lpm_fuzzer.Action.last_chunk)
554
0
}
555
#endif
556
0
inline void Action::set_last_chunk(const char* value) {
557
0
  GOOGLE_DCHECK(value != NULL);
558
0
  if (!has_last_chunk()) {
559
0
    clear_action();
560
0
    set_has_last_chunk();
561
0
    action_.last_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
562
0
  }
563
0
  action_.last_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
564
0
      ::std::string(value));
565
0
  // @@protoc_insertion_point(field_set_char:xml_lpm_fuzzer.Action.last_chunk)
566
0
}
567
0
inline void Action::set_last_chunk(const char* value, size_t size) {
568
0
  if (!has_last_chunk()) {
569
0
    clear_action();
570
0
    set_has_last_chunk();
571
0
    action_.last_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
572
0
  }
573
0
  action_.last_chunk_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
574
0
      reinterpret_cast<const char*>(value), size));
575
0
  // @@protoc_insertion_point(field_set_pointer:xml_lpm_fuzzer.Action.last_chunk)
576
0
}
577
0
inline ::std::string* Action::mutable_last_chunk() {
578
0
  if (!has_last_chunk()) {
579
0
    clear_action();
580
0
    set_has_last_chunk();
581
0
    action_.last_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
582
0
  }
583
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Action.last_chunk)
584
0
  return action_.last_chunk_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
585
0
}
586
0
inline ::std::string* Action::release_last_chunk() {
587
0
  // @@protoc_insertion_point(field_release:xml_lpm_fuzzer.Action.last_chunk)
588
0
  if (has_last_chunk()) {
589
0
    clear_has_action();
590
0
    return action_.last_chunk_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
591
0
  } else {
592
0
    return NULL;
593
0
  }
594
0
}
595
0
inline void Action::set_allocated_last_chunk(::std::string* last_chunk) {
596
0
  if (!has_last_chunk()) {
597
0
    action_.last_chunk_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
598
0
  }
599
0
  clear_action();
600
0
  if (last_chunk != NULL) {
601
0
    set_has_last_chunk();
602
0
    action_.last_chunk_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), last_chunk);
603
0
  }
604
0
  // @@protoc_insertion_point(field_set_allocated:xml_lpm_fuzzer.Action.last_chunk)
605
0
}
606
607
// optional bool reset = 3;
608
0
inline bool Action::has_reset() const {
609
0
  return action_case() == kReset;
610
0
}
611
0
inline void Action::set_has_reset() {
612
0
  _oneof_case_[0] = kReset;
613
0
}
614
0
inline void Action::clear_reset() {
615
0
  if (has_reset()) {
616
0
    action_.reset_ = false;
617
0
    clear_has_action();
618
0
  }
619
0
}
620
0
inline bool Action::reset() const {
621
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.reset)
622
0
  if (has_reset()) {
623
0
    return action_.reset_;
624
0
  }
625
0
  return false;
626
0
}
627
0
inline void Action::set_reset(bool value) {
628
0
  if (!has_reset()) {
629
0
    clear_action();
630
0
    set_has_reset();
631
0
  }
632
0
  action_.reset_ = value;
633
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.reset)
634
0
}
635
636
// optional string external_entity = 4;
637
11.6k
inline bool Action::has_external_entity() const {
638
11.6k
  return action_case() == kExternalEntity;
639
11.6k
}
640
0
inline void Action::set_has_external_entity() {
641
0
  _oneof_case_[0] = kExternalEntity;
642
0
}
643
0
inline void Action::clear_external_entity() {
644
0
  if (has_external_entity()) {
645
0
    action_.external_entity_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
646
0
    clear_has_action();
647
0
  }
648
0
}
649
11.6k
inline const ::std::string& Action::external_entity() const {
650
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Action.external_entity)
651
11.6k
  if (has_external_entity()) {
652
11.6k
    return action_.external_entity_.GetNoArena();
653
11.6k
  }
654
0
  return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
655
11.6k
}
656
0
inline void Action::set_external_entity(const ::std::string& value) {
657
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.external_entity)
658
0
  if (!has_external_entity()) {
659
0
    clear_action();
660
0
    set_has_external_entity();
661
0
    action_.external_entity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
662
0
  }
663
0
  action_.external_entity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
664
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.external_entity)
665
0
}
666
#if LANG_CXX11
667
0
inline void Action::set_external_entity(::std::string&& value) {
668
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Action.external_entity)
669
0
  if (!has_external_entity()) {
670
0
    clear_action();
671
0
    set_has_external_entity();
672
0
    action_.external_entity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
673
0
  }
674
0
  action_.external_entity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
675
0
  // @@protoc_insertion_point(field_set_rvalue:xml_lpm_fuzzer.Action.external_entity)
676
0
}
677
#endif
678
0
inline void Action::set_external_entity(const char* value) {
679
0
  GOOGLE_DCHECK(value != NULL);
680
0
  if (!has_external_entity()) {
681
0
    clear_action();
682
0
    set_has_external_entity();
683
0
    action_.external_entity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
684
0
  }
685
0
  action_.external_entity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
686
0
      ::std::string(value));
687
0
  // @@protoc_insertion_point(field_set_char:xml_lpm_fuzzer.Action.external_entity)
688
0
}
689
0
inline void Action::set_external_entity(const char* value, size_t size) {
690
0
  if (!has_external_entity()) {
691
0
    clear_action();
692
0
    set_has_external_entity();
693
0
    action_.external_entity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
694
0
  }
695
0
  action_.external_entity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
696
0
      reinterpret_cast<const char*>(value), size));
697
0
  // @@protoc_insertion_point(field_set_pointer:xml_lpm_fuzzer.Action.external_entity)
698
0
}
699
0
inline ::std::string* Action::mutable_external_entity() {
700
0
  if (!has_external_entity()) {
701
0
    clear_action();
702
0
    set_has_external_entity();
703
0
    action_.external_entity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
704
0
  }
705
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Action.external_entity)
706
0
  return action_.external_entity_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
707
0
}
708
0
inline ::std::string* Action::release_external_entity() {
709
0
  // @@protoc_insertion_point(field_release:xml_lpm_fuzzer.Action.external_entity)
710
0
  if (has_external_entity()) {
711
0
    clear_has_action();
712
0
    return action_.external_entity_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
713
0
  } else {
714
0
    return NULL;
715
0
  }
716
0
}
717
0
inline void Action::set_allocated_external_entity(::std::string* external_entity) {
718
0
  if (!has_external_entity()) {
719
0
    action_.external_entity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
720
0
  }
721
0
  clear_action();
722
0
  if (external_entity != NULL) {
723
0
    set_has_external_entity();
724
0
    action_.external_entity_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_entity);
725
0
  }
726
0
  // @@protoc_insertion_point(field_set_allocated:xml_lpm_fuzzer.Action.external_entity)
727
0
}
728
729
729k
inline bool Action::has_action() const {
730
729k
  return action_case() != ACTION_NOT_SET;
731
729k
}
732
729k
inline void Action::clear_has_action() {
733
729k
  _oneof_case_[0] = ACTION_NOT_SET;
734
729k
}
735
2.35M
inline Action::ActionCase Action::action_case() const {
736
2.35M
  return Action::ActionCase(_oneof_case_[0]);
737
2.35M
}
738
// -------------------------------------------------------------------
739
740
// Testcase
741
742
// required .xml_lpm_fuzzer.Encoding encoding = 1;
743
0
inline bool Testcase::has_encoding() const {
744
0
  return (_has_bits_[0] & 0x00000001u) != 0;
745
0
}
746
0
inline void Testcase::set_has_encoding() {
747
0
  _has_bits_[0] |= 0x00000001u;
748
0
}
749
0
inline void Testcase::clear_has_encoding() {
750
0
  _has_bits_[0] &= ~0x00000001u;
751
0
}
752
0
inline void Testcase::clear_encoding() {
753
0
  encoding_ = 0;
754
0
  clear_has_encoding();
755
0
}
756
28.6k
inline ::xml_lpm_fuzzer::Encoding Testcase::encoding() const {
757
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Testcase.encoding)
758
28.6k
  return static_cast< ::xml_lpm_fuzzer::Encoding >(encoding_);
759
28.6k
}
760
0
inline void Testcase::set_encoding(::xml_lpm_fuzzer::Encoding value) {
761
0
  assert(::xml_lpm_fuzzer::Encoding_IsValid(value));
762
0
  set_has_encoding();
763
0
  encoding_ = value;
764
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Testcase.encoding)
765
0
}
766
767
// repeated .xml_lpm_fuzzer.Action actions = 2;
768
786k
inline int Testcase::actions_size() const {
769
786k
  return actions_.size();
770
786k
}
771
0
inline void Testcase::clear_actions() {
772
0
  actions_.Clear();
773
0
}
774
0
inline ::xml_lpm_fuzzer::Action* Testcase::mutable_actions(int index) {
775
0
  // @@protoc_insertion_point(field_mutable:xml_lpm_fuzzer.Testcase.actions)
776
0
  return actions_.Mutable(index);
777
0
}
778
inline ::google::protobuf::RepeatedPtrField< ::xml_lpm_fuzzer::Action >*
779
0
Testcase::mutable_actions() {
780
0
  // @@protoc_insertion_point(field_mutable_list:xml_lpm_fuzzer.Testcase.actions)
781
0
  return &actions_;
782
0
}
783
729k
inline const ::xml_lpm_fuzzer::Action& Testcase::actions(int index) const {
784
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Testcase.actions)
785
729k
  return actions_.Get(index);
786
729k
}
787
0
inline ::xml_lpm_fuzzer::Action* Testcase::add_actions() {
788
  // @@protoc_insertion_point(field_add:xml_lpm_fuzzer.Testcase.actions)
789
0
  return actions_.Add();
790
0
}
791
inline const ::google::protobuf::RepeatedPtrField< ::xml_lpm_fuzzer::Action >&
792
0
Testcase::actions() const {
793
0
  // @@protoc_insertion_point(field_list:xml_lpm_fuzzer.Testcase.actions)
794
0
  return actions_;
795
0
}
796
797
// repeated int32 fail_allocations = 3;
798
30.4k
inline int Testcase::fail_allocations_size() const {
799
30.4k
  return fail_allocations_.size();
800
30.4k
}
801
0
inline void Testcase::clear_fail_allocations() {
802
0
  fail_allocations_.Clear();
803
0
}
804
1.77k
inline ::google::protobuf::int32 Testcase::fail_allocations(int index) const {
805
  // @@protoc_insertion_point(field_get:xml_lpm_fuzzer.Testcase.fail_allocations)
806
1.77k
  return fail_allocations_.Get(index);
807
1.77k
}
808
0
inline void Testcase::set_fail_allocations(int index, ::google::protobuf::int32 value) {
809
0
  fail_allocations_.Set(index, value);
810
0
  // @@protoc_insertion_point(field_set:xml_lpm_fuzzer.Testcase.fail_allocations)
811
0
}
812
0
inline void Testcase::add_fail_allocations(::google::protobuf::int32 value) {
813
0
  fail_allocations_.Add(value);
814
0
  // @@protoc_insertion_point(field_add:xml_lpm_fuzzer.Testcase.fail_allocations)
815
0
}
816
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
817
0
Testcase::fail_allocations() const {
818
0
  // @@protoc_insertion_point(field_list:xml_lpm_fuzzer.Testcase.fail_allocations)
819
0
  return fail_allocations_;
820
0
}
821
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
822
0
Testcase::mutable_fail_allocations() {
823
  // @@protoc_insertion_point(field_mutable_list:xml_lpm_fuzzer.Testcase.fail_allocations)
824
0
  return &fail_allocations_;
825
0
}
826
827
#ifdef __GNUC__
828
  #pragma GCC diagnostic pop
829
#endif  // __GNUC__
830
// -------------------------------------------------------------------
831
832
833
// @@protoc_insertion_point(namespace_scope)
834
835
}  // namespace xml_lpm_fuzzer
836
837
namespace google {
838
namespace protobuf {
839
840
template <> struct is_proto_enum< ::xml_lpm_fuzzer::Encoding> : ::std::true_type {};
841
template <>
842
0
inline const EnumDescriptor* GetEnumDescriptor< ::xml_lpm_fuzzer::Encoding>() {
843
0
  return ::xml_lpm_fuzzer::Encoding_descriptor();
844
0
}
845
846
}  // namespace protobuf
847
}  // namespace google
848
849
// @@protoc_insertion_point(global_scope)
850
851
#endif  // PROTOBUF_INCLUDED_xml_5flpm_5ffuzzer_2eproto