YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/util/jsonwriter_test.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/util/jsonwriter_test.proto
3
4
#ifndef PROTOBUF_yb_2futil_2fjsonwriter_5ftest_2eproto__INCLUDED
5
#define PROTOBUF_yb_2futil_2fjsonwriter_5ftest_2eproto__INCLUDED
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3005000
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 3005001 < 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/metadata.h>
28
#include <google/protobuf/message.h>
29
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
30
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
31
#include <google/protobuf/generated_enum_reflection.h>
32
#include <google/protobuf/unknown_field_set.h>
33
// @@protoc_insertion_point(includes)
34
35
namespace protobuf_yb_2futil_2fjsonwriter_5ftest_2eproto {
36
// Internal implementation detail -- do not use these members.
37
struct TableStruct {
38
  static const ::google::protobuf::internal::ParseTableField entries[];
39
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
40
  static const ::google::protobuf::internal::ParseTable schema[2];
41
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
42
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
43
  static const ::google::protobuf::uint32 offsets[];
44
};
45
void AddDescriptors();
46
void InitDefaultsTestAllTypes_NestedMessageImpl();
47
void InitDefaultsTestAllTypes_NestedMessage();
48
void InitDefaultsTestAllTypesImpl();
49
void InitDefaultsTestAllTypes();
50
4
inline void InitDefaults() {
51
4
  InitDefaultsTestAllTypes_NestedMessage();
52
4
  InitDefaultsTestAllTypes();
53
4
}
54
}  // namespace protobuf_yb_2futil_2fjsonwriter_5ftest_2eproto
55
namespace jsonwriter_test {
56
class TestAllTypes;
57
class TestAllTypesDefaultTypeInternal;
58
extern TestAllTypesDefaultTypeInternal _TestAllTypes_default_instance_;
59
class TestAllTypes_NestedMessage;
60
class TestAllTypes_NestedMessageDefaultTypeInternal;
61
extern TestAllTypes_NestedMessageDefaultTypeInternal _TestAllTypes_NestedMessage_default_instance_;
62
}  // namespace jsonwriter_test
63
namespace jsonwriter_test {
64
65
enum TestAllTypes_NestedEnum {
66
  TestAllTypes_NestedEnum_FOO = 1,
67
  TestAllTypes_NestedEnum_BAR = 2,
68
  TestAllTypes_NestedEnum_BAZ = 3
69
};
70
bool TestAllTypes_NestedEnum_IsValid(int value);
71
const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MIN = TestAllTypes_NestedEnum_FOO;
72
const TestAllTypes_NestedEnum TestAllTypes_NestedEnum_NestedEnum_MAX = TestAllTypes_NestedEnum_BAZ;
73
const int TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE = TestAllTypes_NestedEnum_NestedEnum_MAX + 1;
74
75
const ::google::protobuf::EnumDescriptor* TestAllTypes_NestedEnum_descriptor();
76
0
inline const ::std::string& TestAllTypes_NestedEnum_Name(TestAllTypes_NestedEnum value) {
77
0
  return ::google::protobuf::internal::NameOfEnum(
78
0
    TestAllTypes_NestedEnum_descriptor(), value);
79
0
}
80
inline bool TestAllTypes_NestedEnum_Parse(
81
0
    const ::std::string& name, TestAllTypes_NestedEnum* value) {
82
0
  return ::google::protobuf::internal::ParseNamedEnum<TestAllTypes_NestedEnum>(
83
0
    TestAllTypes_NestedEnum_descriptor(), name, value);
84
0
}
85
// ===================================================================
86
87
class TestAllTypes_NestedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:jsonwriter_test.TestAllTypes.NestedMessage) */ {
88
 public:
89
  TestAllTypes_NestedMessage();
90
  virtual ~TestAllTypes_NestedMessage();
91
92
  TestAllTypes_NestedMessage(const TestAllTypes_NestedMessage& from);
93
94
0
  inline TestAllTypes_NestedMessage& operator=(const TestAllTypes_NestedMessage& from) {
95
0
    CopyFrom(from);
96
0
    return *this;
97
0
  }
98
  #if LANG_CXX11
99
  TestAllTypes_NestedMessage(TestAllTypes_NestedMessage&& from) noexcept
100
0
    : TestAllTypes_NestedMessage() {
101
0
    *this = ::std::move(from);
102
0
  }
103
104
0
  inline TestAllTypes_NestedMessage& operator=(TestAllTypes_NestedMessage&& from) noexcept {
105
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
106
0
      if (this != &from) InternalSwap(&from);
107
0
    } else {
108
0
      CopyFrom(from);
109
0
    }
110
0
    return *this;
111
0
  }
112
  #endif
113
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
114
0
    return _internal_metadata_.unknown_fields();
115
0
  }
116
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
117
0
    return _internal_metadata_.mutable_unknown_fields();
118
0
  }
119
120
  static const ::google::protobuf::Descriptor* descriptor();
121
  static const TestAllTypes_NestedMessage& default_instance();
122
123
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
124
10
  static inline const TestAllTypes_NestedMessage* internal_default_instance() {
125
10
    return reinterpret_cast<const TestAllTypes_NestedMessage*>(
126
10
               &_TestAllTypes_NestedMessage_default_instance_);
127
10
  }
128
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
129
    0;
130
131
  void Swap(TestAllTypes_NestedMessage* other);
132
0
  friend void swap(TestAllTypes_NestedMessage& a, TestAllTypes_NestedMessage& b) {
133
0
    a.Swap(&b);
134
0
  }
135
136
  // implements Message ----------------------------------------------
137
138
0
  inline TestAllTypes_NestedMessage* New() const PROTOBUF_FINAL { return New(NULL); }
139
140
  TestAllTypes_NestedMessage* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
141
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
142
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
143
  void CopyFrom(const TestAllTypes_NestedMessage& from);
144
  void MergeFrom(const TestAllTypes_NestedMessage& from);
145
  void Clear() PROTOBUF_FINAL;
146
  bool IsInitialized() const PROTOBUF_FINAL;
147
148
  size_t ByteSizeLong() const PROTOBUF_FINAL;
149
  bool MergePartialFromCodedStream(
150
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
151
  void SerializeWithCachedSizes(
152
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
153
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
154
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
155
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
156
  private:
157
  void SharedCtor();
158
  void SharedDtor();
159
  void SetCachedSize(int size) const PROTOBUF_FINAL;
160
  void InternalSwap(TestAllTypes_NestedMessage* other);
161
  private:
162
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
163
0
    return NULL;
164
0
  }
165
0
  inline void* MaybeArenaPtr() const {
166
0
    return NULL;
167
0
  }
168
  public:
169
170
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
171
172
  // nested types ----------------------------------------------------
173
174
  // accessors -------------------------------------------------------
175
176
  // optional int32 int_field = 1;
177
  bool has_int_field() const;
178
  void clear_int_field();
179
  static const int kIntFieldFieldNumber = 1;
180
  ::google::protobuf::int32 int_field() const;
181
  void set_int_field(::google::protobuf::int32 value);
182
183
  // @@protoc_insertion_point(class_scope:jsonwriter_test.TestAllTypes.NestedMessage)
184
 private:
185
  void set_has_int_field();
186
  void clear_has_int_field();
187
188
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
189
  ::google::protobuf::internal::HasBits<1> _has_bits_;
190
  mutable int _cached_size_;
191
  ::google::protobuf::int32 int_field_;
192
  friend struct ::protobuf_yb_2futil_2fjsonwriter_5ftest_2eproto::TableStruct;
193
  friend void ::protobuf_yb_2futil_2fjsonwriter_5ftest_2eproto::InitDefaultsTestAllTypes_NestedMessageImpl();
194
};
195
// -------------------------------------------------------------------
196
197
class TestAllTypes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:jsonwriter_test.TestAllTypes) */ {
198
 public:
199
  TestAllTypes();
200
  virtual ~TestAllTypes();
201
202
  TestAllTypes(const TestAllTypes& from);
203
204
0
  inline TestAllTypes& operator=(const TestAllTypes& from) {
205
0
    CopyFrom(from);
206
0
    return *this;
207
0
  }
208
  #if LANG_CXX11
209
  TestAllTypes(TestAllTypes&& from) noexcept
210
0
    : TestAllTypes() {
211
0
    *this = ::std::move(from);
212
0
  }
213
214
0
  inline TestAllTypes& operator=(TestAllTypes&& from) noexcept {
215
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
216
0
      if (this != &from) InternalSwap(&from);
217
0
    } else {
218
0
      CopyFrom(from);
219
0
    }
220
0
    return *this;
221
0
  }
222
  #endif
223
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
224
0
    return _internal_metadata_.unknown_fields();
225
0
  }
226
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
227
0
    return _internal_metadata_.mutable_unknown_fields();
228
0
  }
229
230
  static const ::google::protobuf::Descriptor* descriptor();
231
  static const TestAllTypes& default_instance();
232
233
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
234
12
  static inline const TestAllTypes* internal_default_instance() {
235
12
    return reinterpret_cast<const TestAllTypes*>(
236
12
               &_TestAllTypes_default_instance_);
237
12
  }
238
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
239
    1;
240
241
  void Swap(TestAllTypes* other);
242
0
  friend void swap(TestAllTypes& a, TestAllTypes& b) {
243
0
    a.Swap(&b);
244
0
  }
245
246
  // implements Message ----------------------------------------------
247
248
0
  inline TestAllTypes* New() const PROTOBUF_FINAL { return New(NULL); }
249
250
  TestAllTypes* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
251
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
252
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
253
  void CopyFrom(const TestAllTypes& from);
254
  void MergeFrom(const TestAllTypes& from);
255
  void Clear() PROTOBUF_FINAL;
256
  bool IsInitialized() const PROTOBUF_FINAL;
257
258
  size_t ByteSizeLong() const PROTOBUF_FINAL;
259
  bool MergePartialFromCodedStream(
260
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
261
  void SerializeWithCachedSizes(
262
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
263
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
264
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
265
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
266
  private:
267
  void SharedCtor();
268
  void SharedDtor();
269
  void SetCachedSize(int size) const PROTOBUF_FINAL;
270
  void InternalSwap(TestAllTypes* other);
271
  private:
272
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
273
0
    return NULL;
274
0
  }
275
0
  inline void* MaybeArenaPtr() const {
276
0
    return NULL;
277
0
  }
278
  public:
279
280
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
281
282
  // nested types ----------------------------------------------------
283
284
  typedef TestAllTypes_NestedMessage NestedMessage;
285
286
  typedef TestAllTypes_NestedEnum NestedEnum;
287
  static const NestedEnum FOO =
288
    TestAllTypes_NestedEnum_FOO;
289
  static const NestedEnum BAR =
290
    TestAllTypes_NestedEnum_BAR;
291
  static const NestedEnum BAZ =
292
    TestAllTypes_NestedEnum_BAZ;
293
0
  static inline bool NestedEnum_IsValid(int value) {
294
0
    return TestAllTypes_NestedEnum_IsValid(value);
295
0
  }
296
  static const NestedEnum NestedEnum_MIN =
297
    TestAllTypes_NestedEnum_NestedEnum_MIN;
298
  static const NestedEnum NestedEnum_MAX =
299
    TestAllTypes_NestedEnum_NestedEnum_MAX;
300
  static const int NestedEnum_ARRAYSIZE =
301
    TestAllTypes_NestedEnum_NestedEnum_ARRAYSIZE;
302
  static inline const ::google::protobuf::EnumDescriptor*
303
0
  NestedEnum_descriptor() {
304
0
    return TestAllTypes_NestedEnum_descriptor();
305
0
  }
306
0
  static inline const ::std::string& NestedEnum_Name(NestedEnum value) {
307
0
    return TestAllTypes_NestedEnum_Name(value);
308
0
  }
309
  static inline bool NestedEnum_Parse(const ::std::string& name,
310
0
      NestedEnum* value) {
311
0
    return TestAllTypes_NestedEnum_Parse(name, value);
312
0
  }
313
314
  // accessors -------------------------------------------------------
315
316
  // repeated int32 repeated_int32 = 31;
317
  int repeated_int32_size() const;
318
  void clear_repeated_int32();
319
  static const int kRepeatedInt32FieldNumber = 31;
320
  ::google::protobuf::int32 repeated_int32(int index) const;
321
  void set_repeated_int32(int index, ::google::protobuf::int32 value);
322
  void add_repeated_int32(::google::protobuf::int32 value);
323
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
324
      repeated_int32() const;
325
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
326
      mutable_repeated_int32();
327
328
  // repeated int64 repeated_int64 = 32;
329
  int repeated_int64_size() const;
330
  void clear_repeated_int64();
331
  static const int kRepeatedInt64FieldNumber = 32;
332
  ::google::protobuf::int64 repeated_int64(int index) const;
333
  void set_repeated_int64(int index, ::google::protobuf::int64 value);
334
  void add_repeated_int64(::google::protobuf::int64 value);
335
  const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
336
      repeated_int64() const;
337
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
338
      mutable_repeated_int64();
339
340
  // repeated uint32 repeated_uint32 = 33;
341
  int repeated_uint32_size() const;
342
  void clear_repeated_uint32();
343
  static const int kRepeatedUint32FieldNumber = 33;
344
  ::google::protobuf::uint32 repeated_uint32(int index) const;
345
  void set_repeated_uint32(int index, ::google::protobuf::uint32 value);
346
  void add_repeated_uint32(::google::protobuf::uint32 value);
347
  const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
348
      repeated_uint32() const;
349
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
350
      mutable_repeated_uint32();
351
352
  // repeated uint64 repeated_uint64 = 34;
353
  int repeated_uint64_size() const;
354
  void clear_repeated_uint64();
355
  static const int kRepeatedUint64FieldNumber = 34;
356
  ::google::protobuf::uint64 repeated_uint64(int index) const;
357
  void set_repeated_uint64(int index, ::google::protobuf::uint64 value);
358
  void add_repeated_uint64(::google::protobuf::uint64 value);
359
  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
360
      repeated_uint64() const;
361
  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
362
      mutable_repeated_uint64();
363
364
  // repeated sint32 repeated_sint32 = 35;
365
  int repeated_sint32_size() const;
366
  void clear_repeated_sint32();
367
  static const int kRepeatedSint32FieldNumber = 35;
368
  ::google::protobuf::int32 repeated_sint32(int index) const;
369
  void set_repeated_sint32(int index, ::google::protobuf::int32 value);
370
  void add_repeated_sint32(::google::protobuf::int32 value);
371
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
372
      repeated_sint32() const;
373
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
374
      mutable_repeated_sint32();
375
376
  // repeated sint64 repeated_sint64 = 36;
377
  int repeated_sint64_size() const;
378
  void clear_repeated_sint64();
379
  static const int kRepeatedSint64FieldNumber = 36;
380
  ::google::protobuf::int64 repeated_sint64(int index) const;
381
  void set_repeated_sint64(int index, ::google::protobuf::int64 value);
382
  void add_repeated_sint64(::google::protobuf::int64 value);
383
  const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
384
      repeated_sint64() const;
385
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
386
      mutable_repeated_sint64();
387
388
  // repeated fixed32 repeated_fixed32 = 37;
389
  int repeated_fixed32_size() const;
390
  void clear_repeated_fixed32();
391
  static const int kRepeatedFixed32FieldNumber = 37;
392
  ::google::protobuf::uint32 repeated_fixed32(int index) const;
393
  void set_repeated_fixed32(int index, ::google::protobuf::uint32 value);
394
  void add_repeated_fixed32(::google::protobuf::uint32 value);
395
  const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
396
      repeated_fixed32() const;
397
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
398
      mutable_repeated_fixed32();
399
400
  // repeated fixed64 repeated_fixed64 = 38;
401
  int repeated_fixed64_size() const;
402
  void clear_repeated_fixed64();
403
  static const int kRepeatedFixed64FieldNumber = 38;
404
  ::google::protobuf::uint64 repeated_fixed64(int index) const;
405
  void set_repeated_fixed64(int index, ::google::protobuf::uint64 value);
406
  void add_repeated_fixed64(::google::protobuf::uint64 value);
407
  const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
408
      repeated_fixed64() const;
409
  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
410
      mutable_repeated_fixed64();
411
412
  // repeated sfixed32 repeated_sfixed32 = 39;
413
  int repeated_sfixed32_size() const;
414
  void clear_repeated_sfixed32();
415
  static const int kRepeatedSfixed32FieldNumber = 39;
416
  ::google::protobuf::int32 repeated_sfixed32(int index) const;
417
  void set_repeated_sfixed32(int index, ::google::protobuf::int32 value);
418
  void add_repeated_sfixed32(::google::protobuf::int32 value);
419
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
420
      repeated_sfixed32() const;
421
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
422
      mutable_repeated_sfixed32();
423
424
  // repeated sfixed64 repeated_sfixed64 = 40;
425
  int repeated_sfixed64_size() const;
426
  void clear_repeated_sfixed64();
427
  static const int kRepeatedSfixed64FieldNumber = 40;
428
  ::google::protobuf::int64 repeated_sfixed64(int index) const;
429
  void set_repeated_sfixed64(int index, ::google::protobuf::int64 value);
430
  void add_repeated_sfixed64(::google::protobuf::int64 value);
431
  const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
432
      repeated_sfixed64() const;
433
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
434
      mutable_repeated_sfixed64();
435
436
  // repeated float repeated_float = 41;
437
  int repeated_float_size() const;
438
  void clear_repeated_float();
439
  static const int kRepeatedFloatFieldNumber = 41;
440
  float repeated_float(int index) const;
441
  void set_repeated_float(int index, float value);
442
  void add_repeated_float(float value);
443
  const ::google::protobuf::RepeatedField< float >&
444
      repeated_float() const;
445
  ::google::protobuf::RepeatedField< float >*
446
      mutable_repeated_float();
447
448
  // repeated double repeated_double = 42;
449
  int repeated_double_size() const;
450
  void clear_repeated_double();
451
  static const int kRepeatedDoubleFieldNumber = 42;
452
  double repeated_double(int index) const;
453
  void set_repeated_double(int index, double value);
454
  void add_repeated_double(double value);
455
  const ::google::protobuf::RepeatedField< double >&
456
      repeated_double() const;
457
  ::google::protobuf::RepeatedField< double >*
458
      mutable_repeated_double();
459
460
  // repeated bool repeated_bool = 43;
461
  int repeated_bool_size() const;
462
  void clear_repeated_bool();
463
  static const int kRepeatedBoolFieldNumber = 43;
464
  bool repeated_bool(int index) const;
465
  void set_repeated_bool(int index, bool value);
466
  void add_repeated_bool(bool value);
467
  const ::google::protobuf::RepeatedField< bool >&
468
      repeated_bool() const;
469
  ::google::protobuf::RepeatedField< bool >*
470
      mutable_repeated_bool();
471
472
  // repeated string repeated_string = 44;
473
  int repeated_string_size() const;
474
  void clear_repeated_string();
475
  static const int kRepeatedStringFieldNumber = 44;
476
  const ::std::string& repeated_string(int index) const;
477
  ::std::string* mutable_repeated_string(int index);
478
  void set_repeated_string(int index, const ::std::string& value);
479
  #if LANG_CXX11
480
  void set_repeated_string(int index, ::std::string&& value);
481
  #endif
482
  void set_repeated_string(int index, const char* value);
483
  void set_repeated_string(int index, const char* value, size_t size);
484
  ::std::string* add_repeated_string();
485
  void add_repeated_string(const ::std::string& value);
486
  #if LANG_CXX11
487
  void add_repeated_string(::std::string&& value);
488
  #endif
489
  void add_repeated_string(const char* value);
490
  void add_repeated_string(const char* value, size_t size);
491
  const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_string() const;
492
  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_string();
493
494
  // repeated bytes repeated_bytes = 45;
495
  int repeated_bytes_size() const;
496
  void clear_repeated_bytes();
497
  static const int kRepeatedBytesFieldNumber = 45;
498
  const ::std::string& repeated_bytes(int index) const;
499
  ::std::string* mutable_repeated_bytes(int index);
500
  void set_repeated_bytes(int index, const ::std::string& value);
501
  #if LANG_CXX11
502
  void set_repeated_bytes(int index, ::std::string&& value);
503
  #endif
504
  void set_repeated_bytes(int index, const char* value);
505
  void set_repeated_bytes(int index, const void* value, size_t size);
506
  ::std::string* add_repeated_bytes();
507
  void add_repeated_bytes(const ::std::string& value);
508
  #if LANG_CXX11
509
  void add_repeated_bytes(::std::string&& value);
510
  #endif
511
  void add_repeated_bytes(const char* value);
512
  void add_repeated_bytes(const void* value, size_t size);
513
  const ::google::protobuf::RepeatedPtrField< ::std::string>& repeated_bytes() const;
514
  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_repeated_bytes();
515
516
  // repeated .jsonwriter_test.TestAllTypes.NestedMessage repeated_nested_message = 48;
517
  int repeated_nested_message_size() const;
518
  void clear_repeated_nested_message();
519
  static const int kRepeatedNestedMessageFieldNumber = 48;
520
  const ::jsonwriter_test::TestAllTypes_NestedMessage& repeated_nested_message(int index) const;
521
  ::jsonwriter_test::TestAllTypes_NestedMessage* mutable_repeated_nested_message(int index);
522
  ::jsonwriter_test::TestAllTypes_NestedMessage* add_repeated_nested_message();
523
  ::google::protobuf::RepeatedPtrField< ::jsonwriter_test::TestAllTypes_NestedMessage >*
524
      mutable_repeated_nested_message();
525
  const ::google::protobuf::RepeatedPtrField< ::jsonwriter_test::TestAllTypes_NestedMessage >&
526
      repeated_nested_message() const;
527
528
  // repeated .jsonwriter_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
529
  int repeated_nested_enum_size() const;
530
  void clear_repeated_nested_enum();
531
  static const int kRepeatedNestedEnumFieldNumber = 51;
532
  ::jsonwriter_test::TestAllTypes_NestedEnum repeated_nested_enum(int index) const;
533
  void set_repeated_nested_enum(int index, ::jsonwriter_test::TestAllTypes_NestedEnum value);
534
  void add_repeated_nested_enum(::jsonwriter_test::TestAllTypes_NestedEnum value);
535
  const ::google::protobuf::RepeatedField<int>& repeated_nested_enum() const;
536
  ::google::protobuf::RepeatedField<int>* mutable_repeated_nested_enum();
537
538
  // optional string optional_string = 14;
539
  bool has_optional_string() const;
540
  void clear_optional_string();
541
  static const int kOptionalStringFieldNumber = 14;
542
  const ::std::string& optional_string() const;
543
  void set_optional_string(const ::std::string& value);
544
  #if LANG_CXX11
545
  void set_optional_string(::std::string&& value);
546
  #endif
547
  void set_optional_string(const char* value);
548
  void set_optional_string(const char* value, size_t size);
549
  ::std::string* mutable_optional_string();
550
  ::std::string* release_optional_string();
551
  void set_allocated_optional_string(::std::string* optional_string);
552
553
  // optional bytes optional_bytes = 15;
554
  bool has_optional_bytes() const;
555
  void clear_optional_bytes();
556
  static const int kOptionalBytesFieldNumber = 15;
557
  const ::std::string& optional_bytes() const;
558
  void set_optional_bytes(const ::std::string& value);
559
  #if LANG_CXX11
560
  void set_optional_bytes(::std::string&& value);
561
  #endif
562
  void set_optional_bytes(const char* value);
563
  void set_optional_bytes(const void* value, size_t size);
564
  ::std::string* mutable_optional_bytes();
565
  ::std::string* release_optional_bytes();
566
  void set_allocated_optional_bytes(::std::string* optional_bytes);
567
568
  // optional .jsonwriter_test.TestAllTypes.NestedMessage optional_nested_message = 18;
569
  bool has_optional_nested_message() const;
570
  void clear_optional_nested_message();
571
  static const int kOptionalNestedMessageFieldNumber = 18;
572
  const ::jsonwriter_test::TestAllTypes_NestedMessage& optional_nested_message() const;
573
  ::jsonwriter_test::TestAllTypes_NestedMessage* release_optional_nested_message();
574
  ::jsonwriter_test::TestAllTypes_NestedMessage* mutable_optional_nested_message();
575
  void set_allocated_optional_nested_message(::jsonwriter_test::TestAllTypes_NestedMessage* optional_nested_message);
576
577
  // optional int64 optional_int64 = 2;
578
  bool has_optional_int64() const;
579
  void clear_optional_int64();
580
  static const int kOptionalInt64FieldNumber = 2;
581
  ::google::protobuf::int64 optional_int64() const;
582
  void set_optional_int64(::google::protobuf::int64 value);
583
584
  // optional int32 optional_int32 = 1;
585
  bool has_optional_int32() const;
586
  void clear_optional_int32();
587
  static const int kOptionalInt32FieldNumber = 1;
588
  ::google::protobuf::int32 optional_int32() const;
589
  void set_optional_int32(::google::protobuf::int32 value);
590
591
  // optional uint32 optional_uint32 = 3;
592
  bool has_optional_uint32() const;
593
  void clear_optional_uint32();
594
  static const int kOptionalUint32FieldNumber = 3;
595
  ::google::protobuf::uint32 optional_uint32() const;
596
  void set_optional_uint32(::google::protobuf::uint32 value);
597
598
  // optional uint64 optional_uint64 = 4;
599
  bool has_optional_uint64() const;
600
  void clear_optional_uint64();
601
  static const int kOptionalUint64FieldNumber = 4;
602
  ::google::protobuf::uint64 optional_uint64() const;
603
  void set_optional_uint64(::google::protobuf::uint64 value);
604
605
  // optional sint64 optional_sint64 = 6;
606
  bool has_optional_sint64() const;
607
  void clear_optional_sint64();
608
  static const int kOptionalSint64FieldNumber = 6;
609
  ::google::protobuf::int64 optional_sint64() const;
610
  void set_optional_sint64(::google::protobuf::int64 value);
611
612
  // optional sint32 optional_sint32 = 5;
613
  bool has_optional_sint32() const;
614
  void clear_optional_sint32();
615
  static const int kOptionalSint32FieldNumber = 5;
616
  ::google::protobuf::int32 optional_sint32() const;
617
  void set_optional_sint32(::google::protobuf::int32 value);
618
619
  // optional fixed32 optional_fixed32 = 7;
620
  bool has_optional_fixed32() const;
621
  void clear_optional_fixed32();
622
  static const int kOptionalFixed32FieldNumber = 7;
623
  ::google::protobuf::uint32 optional_fixed32() const;
624
  void set_optional_fixed32(::google::protobuf::uint32 value);
625
626
  // optional fixed64 optional_fixed64 = 8;
627
  bool has_optional_fixed64() const;
628
  void clear_optional_fixed64();
629
  static const int kOptionalFixed64FieldNumber = 8;
630
  ::google::protobuf::uint64 optional_fixed64() const;
631
  void set_optional_fixed64(::google::protobuf::uint64 value);
632
633
  // optional sfixed64 optional_sfixed64 = 10;
634
  bool has_optional_sfixed64() const;
635
  void clear_optional_sfixed64();
636
  static const int kOptionalSfixed64FieldNumber = 10;
637
  ::google::protobuf::int64 optional_sfixed64() const;
638
  void set_optional_sfixed64(::google::protobuf::int64 value);
639
640
  // optional sfixed32 optional_sfixed32 = 9;
641
  bool has_optional_sfixed32() const;
642
  void clear_optional_sfixed32();
643
  static const int kOptionalSfixed32FieldNumber = 9;
644
  ::google::protobuf::int32 optional_sfixed32() const;
645
  void set_optional_sfixed32(::google::protobuf::int32 value);
646
647
  // optional float optional_float = 11;
648
  bool has_optional_float() const;
649
  void clear_optional_float();
650
  static const int kOptionalFloatFieldNumber = 11;
651
  float optional_float() const;
652
  void set_optional_float(float value);
653
654
  // optional double optional_double = 12;
655
  bool has_optional_double() const;
656
  void clear_optional_double();
657
  static const int kOptionalDoubleFieldNumber = 12;
658
  double optional_double() const;
659
  void set_optional_double(double value);
660
661
  // optional bool optional_bool = 13;
662
  bool has_optional_bool() const;
663
  void clear_optional_bool();
664
  static const int kOptionalBoolFieldNumber = 13;
665
  bool optional_bool() const;
666
  void set_optional_bool(bool value);
667
668
  // optional .jsonwriter_test.TestAllTypes.NestedEnum optional_nested_enum = 21;
669
  bool has_optional_nested_enum() const;
670
  void clear_optional_nested_enum();
671
  static const int kOptionalNestedEnumFieldNumber = 21;
672
  ::jsonwriter_test::TestAllTypes_NestedEnum optional_nested_enum() const;
673
  void set_optional_nested_enum(::jsonwriter_test::TestAllTypes_NestedEnum value);
674
675
  // @@protoc_insertion_point(class_scope:jsonwriter_test.TestAllTypes)
676
 private:
677
  void set_has_optional_int32();
678
  void clear_has_optional_int32();
679
  void set_has_optional_int64();
680
  void clear_has_optional_int64();
681
  void set_has_optional_uint32();
682
  void clear_has_optional_uint32();
683
  void set_has_optional_uint64();
684
  void clear_has_optional_uint64();
685
  void set_has_optional_sint32();
686
  void clear_has_optional_sint32();
687
  void set_has_optional_sint64();
688
  void clear_has_optional_sint64();
689
  void set_has_optional_fixed32();
690
  void clear_has_optional_fixed32();
691
  void set_has_optional_fixed64();
692
  void clear_has_optional_fixed64();
693
  void set_has_optional_sfixed32();
694
  void clear_has_optional_sfixed32();
695
  void set_has_optional_sfixed64();
696
  void clear_has_optional_sfixed64();
697
  void set_has_optional_float();
698
  void clear_has_optional_float();
699
  void set_has_optional_double();
700
  void clear_has_optional_double();
701
  void set_has_optional_bool();
702
  void clear_has_optional_bool();
703
  void set_has_optional_string();
704
  void clear_has_optional_string();
705
  void set_has_optional_bytes();
706
  void clear_has_optional_bytes();
707
  void set_has_optional_nested_message();
708
  void clear_has_optional_nested_message();
709
  void set_has_optional_nested_enum();
710
  void clear_has_optional_nested_enum();
711
712
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
713
  ::google::protobuf::internal::HasBits<1> _has_bits_;
714
  mutable int _cached_size_;
715
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_int32_;
716
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_int64_;
717
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_uint32_;
718
  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_uint64_;
719
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sint32_;
720
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sint64_;
721
  ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > repeated_fixed32_;
722
  ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > repeated_fixed64_;
723
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > repeated_sfixed32_;
724
  ::google::protobuf::RepeatedField< ::google::protobuf::int64 > repeated_sfixed64_;
725
  ::google::protobuf::RepeatedField< float > repeated_float_;
726
  ::google::protobuf::RepeatedField< double > repeated_double_;
727
  ::google::protobuf::RepeatedField< bool > repeated_bool_;
728
  ::google::protobuf::RepeatedPtrField< ::std::string> repeated_string_;
729
  ::google::protobuf::RepeatedPtrField< ::std::string> repeated_bytes_;
730
  ::google::protobuf::RepeatedPtrField< ::jsonwriter_test::TestAllTypes_NestedMessage > repeated_nested_message_;
731
  ::google::protobuf::RepeatedField<int> repeated_nested_enum_;
732
  ::google::protobuf::internal::ArenaStringPtr optional_string_;
733
  ::google::protobuf::internal::ArenaStringPtr optional_bytes_;
734
  ::jsonwriter_test::TestAllTypes_NestedMessage* optional_nested_message_;
735
  ::google::protobuf::int64 optional_int64_;
736
  ::google::protobuf::int32 optional_int32_;
737
  ::google::protobuf::uint32 optional_uint32_;
738
  ::google::protobuf::uint64 optional_uint64_;
739
  ::google::protobuf::int64 optional_sint64_;
740
  ::google::protobuf::int32 optional_sint32_;
741
  ::google::protobuf::uint32 optional_fixed32_;
742
  ::google::protobuf::uint64 optional_fixed64_;
743
  ::google::protobuf::int64 optional_sfixed64_;
744
  ::google::protobuf::int32 optional_sfixed32_;
745
  float optional_float_;
746
  double optional_double_;
747
  bool optional_bool_;
748
  int optional_nested_enum_;
749
  friend struct ::protobuf_yb_2futil_2fjsonwriter_5ftest_2eproto::TableStruct;
750
  friend void ::protobuf_yb_2futil_2fjsonwriter_5ftest_2eproto::InitDefaultsTestAllTypesImpl();
751
};
752
// ===================================================================
753
754
755
// ===================================================================
756
757
#ifdef __GNUC__
758
  #pragma GCC diagnostic push
759
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
760
#endif  // __GNUC__
761
// TestAllTypes_NestedMessage
762
763
// optional int32 int_field = 1;
764
0
inline bool TestAllTypes_NestedMessage::has_int_field() const {
765
0
  return (_has_bits_[0] & 0x00000001u) != 0;
766
0
}
767
2
inline void TestAllTypes_NestedMessage::set_has_int_field() {
768
2
  _has_bits_[0] |= 0x00000001u;
769
2
}
770
0
inline void TestAllTypes_NestedMessage::clear_has_int_field() {
771
0
  _has_bits_[0] &= ~0x00000001u;
772
0
}
773
0
inline void TestAllTypes_NestedMessage::clear_int_field() {
774
0
  int_field_ = 0;
775
0
  clear_has_int_field();
776
0
}
777
0
inline ::google::protobuf::int32 TestAllTypes_NestedMessage::int_field() const {
778
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.NestedMessage.int_field)
779
0
  return int_field_;
780
0
}
781
2
inline void TestAllTypes_NestedMessage::set_int_field(::google::protobuf::int32 value) {
782
2
  set_has_int_field();
783
2
  int_field_ = value;
784
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.NestedMessage.int_field)
785
2
}
786
787
// -------------------------------------------------------------------
788
789
// TestAllTypes
790
791
// optional int32 optional_int32 = 1;
792
0
inline bool TestAllTypes::has_optional_int32() const {
793
0
  return (_has_bits_[0] & 0x00000010u) != 0;
794
0
}
795
1
inline void TestAllTypes::set_has_optional_int32() {
796
1
  _has_bits_[0] |= 0x00000010u;
797
1
}
798
0
inline void TestAllTypes::clear_has_optional_int32() {
799
0
  _has_bits_[0] &= ~0x00000010u;
800
0
}
801
0
inline void TestAllTypes::clear_optional_int32() {
802
0
  optional_int32_ = 0;
803
0
  clear_has_optional_int32();
804
0
}
805
0
inline ::google::protobuf::int32 TestAllTypes::optional_int32() const {
806
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_int32)
807
0
  return optional_int32_;
808
0
}
809
1
inline void TestAllTypes::set_optional_int32(::google::protobuf::int32 value) {
810
1
  set_has_optional_int32();
811
1
  optional_int32_ = value;
812
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_int32)
813
1
}
814
815
// optional int64 optional_int64 = 2;
816
0
inline bool TestAllTypes::has_optional_int64() const {
817
0
  return (_has_bits_[0] & 0x00000008u) != 0;
818
0
}
819
1
inline void TestAllTypes::set_has_optional_int64() {
820
1
  _has_bits_[0] |= 0x00000008u;
821
1
}
822
0
inline void TestAllTypes::clear_has_optional_int64() {
823
0
  _has_bits_[0] &= ~0x00000008u;
824
0
}
825
0
inline void TestAllTypes::clear_optional_int64() {
826
0
  optional_int64_ = GOOGLE_LONGLONG(0);
827
0
  clear_has_optional_int64();
828
0
}
829
0
inline ::google::protobuf::int64 TestAllTypes::optional_int64() const {
830
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_int64)
831
0
  return optional_int64_;
832
0
}
833
1
inline void TestAllTypes::set_optional_int64(::google::protobuf::int64 value) {
834
1
  set_has_optional_int64();
835
1
  optional_int64_ = value;
836
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_int64)
837
1
}
838
839
// optional uint32 optional_uint32 = 3;
840
0
inline bool TestAllTypes::has_optional_uint32() const {
841
0
  return (_has_bits_[0] & 0x00000020u) != 0;
842
0
}
843
1
inline void TestAllTypes::set_has_optional_uint32() {
844
1
  _has_bits_[0] |= 0x00000020u;
845
1
}
846
0
inline void TestAllTypes::clear_has_optional_uint32() {
847
0
  _has_bits_[0] &= ~0x00000020u;
848
0
}
849
0
inline void TestAllTypes::clear_optional_uint32() {
850
0
  optional_uint32_ = 0u;
851
0
  clear_has_optional_uint32();
852
0
}
853
0
inline ::google::protobuf::uint32 TestAllTypes::optional_uint32() const {
854
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_uint32)
855
0
  return optional_uint32_;
856
0
}
857
1
inline void TestAllTypes::set_optional_uint32(::google::protobuf::uint32 value) {
858
1
  set_has_optional_uint32();
859
1
  optional_uint32_ = value;
860
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_uint32)
861
1
}
862
863
// optional uint64 optional_uint64 = 4;
864
0
inline bool TestAllTypes::has_optional_uint64() const {
865
0
  return (_has_bits_[0] & 0x00000040u) != 0;
866
0
}
867
1
inline void TestAllTypes::set_has_optional_uint64() {
868
1
  _has_bits_[0] |= 0x00000040u;
869
1
}
870
0
inline void TestAllTypes::clear_has_optional_uint64() {
871
0
  _has_bits_[0] &= ~0x00000040u;
872
0
}
873
0
inline void TestAllTypes::clear_optional_uint64() {
874
0
  optional_uint64_ = GOOGLE_ULONGLONG(0);
875
0
  clear_has_optional_uint64();
876
0
}
877
0
inline ::google::protobuf::uint64 TestAllTypes::optional_uint64() const {
878
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_uint64)
879
0
  return optional_uint64_;
880
0
}
881
1
inline void TestAllTypes::set_optional_uint64(::google::protobuf::uint64 value) {
882
1
  set_has_optional_uint64();
883
1
  optional_uint64_ = value;
884
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_uint64)
885
1
}
886
887
// optional sint32 optional_sint32 = 5;
888
0
inline bool TestAllTypes::has_optional_sint32() const {
889
0
  return (_has_bits_[0] & 0x00000100u) != 0;
890
0
}
891
1
inline void TestAllTypes::set_has_optional_sint32() {
892
1
  _has_bits_[0] |= 0x00000100u;
893
1
}
894
0
inline void TestAllTypes::clear_has_optional_sint32() {
895
0
  _has_bits_[0] &= ~0x00000100u;
896
0
}
897
0
inline void TestAllTypes::clear_optional_sint32() {
898
0
  optional_sint32_ = 0;
899
0
  clear_has_optional_sint32();
900
0
}
901
0
inline ::google::protobuf::int32 TestAllTypes::optional_sint32() const {
902
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_sint32)
903
0
  return optional_sint32_;
904
0
}
905
1
inline void TestAllTypes::set_optional_sint32(::google::protobuf::int32 value) {
906
1
  set_has_optional_sint32();
907
1
  optional_sint32_ = value;
908
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_sint32)
909
1
}
910
911
// optional sint64 optional_sint64 = 6;
912
0
inline bool TestAllTypes::has_optional_sint64() const {
913
0
  return (_has_bits_[0] & 0x00000080u) != 0;
914
0
}
915
1
inline void TestAllTypes::set_has_optional_sint64() {
916
1
  _has_bits_[0] |= 0x00000080u;
917
1
}
918
0
inline void TestAllTypes::clear_has_optional_sint64() {
919
0
  _has_bits_[0] &= ~0x00000080u;
920
0
}
921
0
inline void TestAllTypes::clear_optional_sint64() {
922
0
  optional_sint64_ = GOOGLE_LONGLONG(0);
923
0
  clear_has_optional_sint64();
924
0
}
925
0
inline ::google::protobuf::int64 TestAllTypes::optional_sint64() const {
926
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_sint64)
927
0
  return optional_sint64_;
928
0
}
929
1
inline void TestAllTypes::set_optional_sint64(::google::protobuf::int64 value) {
930
1
  set_has_optional_sint64();
931
1
  optional_sint64_ = value;
932
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_sint64)
933
1
}
934
935
// optional fixed32 optional_fixed32 = 7;
936
0
inline bool TestAllTypes::has_optional_fixed32() const {
937
0
  return (_has_bits_[0] & 0x00000200u) != 0;
938
0
}
939
1
inline void TestAllTypes::set_has_optional_fixed32() {
940
1
  _has_bits_[0] |= 0x00000200u;
941
1
}
942
0
inline void TestAllTypes::clear_has_optional_fixed32() {
943
0
  _has_bits_[0] &= ~0x00000200u;
944
0
}
945
0
inline void TestAllTypes::clear_optional_fixed32() {
946
0
  optional_fixed32_ = 0u;
947
0
  clear_has_optional_fixed32();
948
0
}
949
0
inline ::google::protobuf::uint32 TestAllTypes::optional_fixed32() const {
950
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_fixed32)
951
0
  return optional_fixed32_;
952
0
}
953
1
inline void TestAllTypes::set_optional_fixed32(::google::protobuf::uint32 value) {
954
1
  set_has_optional_fixed32();
955
1
  optional_fixed32_ = value;
956
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_fixed32)
957
1
}
958
959
// optional fixed64 optional_fixed64 = 8;
960
0
inline bool TestAllTypes::has_optional_fixed64() const {
961
0
  return (_has_bits_[0] & 0x00000400u) != 0;
962
0
}
963
1
inline void TestAllTypes::set_has_optional_fixed64() {
964
1
  _has_bits_[0] |= 0x00000400u;
965
1
}
966
0
inline void TestAllTypes::clear_has_optional_fixed64() {
967
0
  _has_bits_[0] &= ~0x00000400u;
968
0
}
969
0
inline void TestAllTypes::clear_optional_fixed64() {
970
0
  optional_fixed64_ = GOOGLE_ULONGLONG(0);
971
0
  clear_has_optional_fixed64();
972
0
}
973
0
inline ::google::protobuf::uint64 TestAllTypes::optional_fixed64() const {
974
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_fixed64)
975
0
  return optional_fixed64_;
976
0
}
977
1
inline void TestAllTypes::set_optional_fixed64(::google::protobuf::uint64 value) {
978
1
  set_has_optional_fixed64();
979
1
  optional_fixed64_ = value;
980
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_fixed64)
981
1
}
982
983
// optional sfixed32 optional_sfixed32 = 9;
984
0
inline bool TestAllTypes::has_optional_sfixed32() const {
985
0
  return (_has_bits_[0] & 0x00001000u) != 0;
986
0
}
987
1
inline void TestAllTypes::set_has_optional_sfixed32() {
988
1
  _has_bits_[0] |= 0x00001000u;
989
1
}
990
0
inline void TestAllTypes::clear_has_optional_sfixed32() {
991
0
  _has_bits_[0] &= ~0x00001000u;
992
0
}
993
0
inline void TestAllTypes::clear_optional_sfixed32() {
994
0
  optional_sfixed32_ = 0;
995
0
  clear_has_optional_sfixed32();
996
0
}
997
0
inline ::google::protobuf::int32 TestAllTypes::optional_sfixed32() const {
998
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_sfixed32)
999
0
  return optional_sfixed32_;
1000
0
}
1001
1
inline void TestAllTypes::set_optional_sfixed32(::google::protobuf::int32 value) {
1002
1
  set_has_optional_sfixed32();
1003
1
  optional_sfixed32_ = value;
1004
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_sfixed32)
1005
1
}
1006
1007
// optional sfixed64 optional_sfixed64 = 10;
1008
0
inline bool TestAllTypes::has_optional_sfixed64() const {
1009
0
  return (_has_bits_[0] & 0x00000800u) != 0;
1010
0
}
1011
1
inline void TestAllTypes::set_has_optional_sfixed64() {
1012
1
  _has_bits_[0] |= 0x00000800u;
1013
1
}
1014
0
inline void TestAllTypes::clear_has_optional_sfixed64() {
1015
0
  _has_bits_[0] &= ~0x00000800u;
1016
0
}
1017
0
inline void TestAllTypes::clear_optional_sfixed64() {
1018
0
  optional_sfixed64_ = GOOGLE_LONGLONG(0);
1019
0
  clear_has_optional_sfixed64();
1020
0
}
1021
0
inline ::google::protobuf::int64 TestAllTypes::optional_sfixed64() const {
1022
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_sfixed64)
1023
0
  return optional_sfixed64_;
1024
0
}
1025
1
inline void TestAllTypes::set_optional_sfixed64(::google::protobuf::int64 value) {
1026
1
  set_has_optional_sfixed64();
1027
1
  optional_sfixed64_ = value;
1028
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_sfixed64)
1029
1
}
1030
1031
// optional float optional_float = 11;
1032
0
inline bool TestAllTypes::has_optional_float() const {
1033
0
  return (_has_bits_[0] & 0x00002000u) != 0;
1034
0
}
1035
1
inline void TestAllTypes::set_has_optional_float() {
1036
1
  _has_bits_[0] |= 0x00002000u;
1037
1
}
1038
0
inline void TestAllTypes::clear_has_optional_float() {
1039
0
  _has_bits_[0] &= ~0x00002000u;
1040
0
}
1041
0
inline void TestAllTypes::clear_optional_float() {
1042
0
  optional_float_ = 0;
1043
0
  clear_has_optional_float();
1044
0
}
1045
0
inline float TestAllTypes::optional_float() const {
1046
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_float)
1047
0
  return optional_float_;
1048
0
}
1049
1
inline void TestAllTypes::set_optional_float(float value) {
1050
1
  set_has_optional_float();
1051
1
  optional_float_ = value;
1052
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_float)
1053
1
}
1054
1055
// optional double optional_double = 12;
1056
0
inline bool TestAllTypes::has_optional_double() const {
1057
0
  return (_has_bits_[0] & 0x00004000u) != 0;
1058
0
}
1059
1
inline void TestAllTypes::set_has_optional_double() {
1060
1
  _has_bits_[0] |= 0x00004000u;
1061
1
}
1062
0
inline void TestAllTypes::clear_has_optional_double() {
1063
0
  _has_bits_[0] &= ~0x00004000u;
1064
0
}
1065
0
inline void TestAllTypes::clear_optional_double() {
1066
0
  optional_double_ = 0;
1067
0
  clear_has_optional_double();
1068
0
}
1069
0
inline double TestAllTypes::optional_double() const {
1070
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_double)
1071
0
  return optional_double_;
1072
0
}
1073
1
inline void TestAllTypes::set_optional_double(double value) {
1074
1
  set_has_optional_double();
1075
1
  optional_double_ = value;
1076
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_double)
1077
1
}
1078
1079
// optional bool optional_bool = 13;
1080
0
inline bool TestAllTypes::has_optional_bool() const {
1081
0
  return (_has_bits_[0] & 0x00008000u) != 0;
1082
0
}
1083
1
inline void TestAllTypes::set_has_optional_bool() {
1084
1
  _has_bits_[0] |= 0x00008000u;
1085
1
}
1086
0
inline void TestAllTypes::clear_has_optional_bool() {
1087
0
  _has_bits_[0] &= ~0x00008000u;
1088
0
}
1089
0
inline void TestAllTypes::clear_optional_bool() {
1090
0
  optional_bool_ = false;
1091
0
  clear_has_optional_bool();
1092
0
}
1093
0
inline bool TestAllTypes::optional_bool() const {
1094
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_bool)
1095
0
  return optional_bool_;
1096
0
}
1097
1
inline void TestAllTypes::set_optional_bool(bool value) {
1098
1
  set_has_optional_bool();
1099
1
  optional_bool_ = value;
1100
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_bool)
1101
1
}
1102
1103
// optional string optional_string = 14;
1104
0
inline bool TestAllTypes::has_optional_string() const {
1105
0
  return (_has_bits_[0] & 0x00000001u) != 0;
1106
0
}
1107
1
inline void TestAllTypes::set_has_optional_string() {
1108
1
  _has_bits_[0] |= 0x00000001u;
1109
1
}
1110
0
inline void TestAllTypes::clear_has_optional_string() {
1111
0
  _has_bits_[0] &= ~0x00000001u;
1112
0
}
1113
0
inline void TestAllTypes::clear_optional_string() {
1114
0
  optional_string_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1115
0
  clear_has_optional_string();
1116
0
}
1117
0
inline const ::std::string& TestAllTypes::optional_string() const {
1118
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_string)
1119
0
  return optional_string_.GetNoArena();
1120
0
}
1121
0
inline void TestAllTypes::set_optional_string(const ::std::string& value) {
1122
0
  set_has_optional_string();
1123
0
  optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1124
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_string)
1125
0
}
1126
#if LANG_CXX11
1127
0
inline void TestAllTypes::set_optional_string(::std::string&& value) {
1128
0
  set_has_optional_string();
1129
0
  optional_string_.SetNoArena(
1130
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1131
0
  // @@protoc_insertion_point(field_set_rvalue:jsonwriter_test.TestAllTypes.optional_string)
1132
0
}
1133
#endif
1134
1
inline void TestAllTypes::set_optional_string(const char* value) {
1135
1
  GOOGLE_DCHECK(value != NULL);
1136
1
  set_has_optional_string();
1137
1
  optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1138
  // @@protoc_insertion_point(field_set_char:jsonwriter_test.TestAllTypes.optional_string)
1139
1
}
1140
0
inline void TestAllTypes::set_optional_string(const char* value, size_t size) {
1141
0
  set_has_optional_string();
1142
0
  optional_string_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1143
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1144
0
  // @@protoc_insertion_point(field_set_pointer:jsonwriter_test.TestAllTypes.optional_string)
1145
0
}
1146
0
inline ::std::string* TestAllTypes::mutable_optional_string() {
1147
0
  set_has_optional_string();
1148
0
  // @@protoc_insertion_point(field_mutable:jsonwriter_test.TestAllTypes.optional_string)
1149
0
  return optional_string_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1150
0
}
1151
0
inline ::std::string* TestAllTypes::release_optional_string() {
1152
0
  // @@protoc_insertion_point(field_release:jsonwriter_test.TestAllTypes.optional_string)
1153
0
  clear_has_optional_string();
1154
0
  return optional_string_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1155
0
}
1156
0
inline void TestAllTypes::set_allocated_optional_string(::std::string* optional_string) {
1157
0
  if (optional_string != NULL) {
1158
0
    set_has_optional_string();
1159
0
  } else {
1160
0
    clear_has_optional_string();
1161
0
  }
1162
0
  optional_string_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_string);
1163
0
  // @@protoc_insertion_point(field_set_allocated:jsonwriter_test.TestAllTypes.optional_string)
1164
0
}
1165
1166
// optional bytes optional_bytes = 15;
1167
0
inline bool TestAllTypes::has_optional_bytes() const {
1168
0
  return (_has_bits_[0] & 0x00000002u) != 0;
1169
0
}
1170
0
inline void TestAllTypes::set_has_optional_bytes() {
1171
0
  _has_bits_[0] |= 0x00000002u;
1172
0
}
1173
0
inline void TestAllTypes::clear_has_optional_bytes() {
1174
0
  _has_bits_[0] &= ~0x00000002u;
1175
0
}
1176
0
inline void TestAllTypes::clear_optional_bytes() {
1177
0
  optional_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1178
0
  clear_has_optional_bytes();
1179
0
}
1180
0
inline const ::std::string& TestAllTypes::optional_bytes() const {
1181
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_bytes)
1182
0
  return optional_bytes_.GetNoArena();
1183
0
}
1184
0
inline void TestAllTypes::set_optional_bytes(const ::std::string& value) {
1185
0
  set_has_optional_bytes();
1186
0
  optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1187
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_bytes)
1188
0
}
1189
#if LANG_CXX11
1190
0
inline void TestAllTypes::set_optional_bytes(::std::string&& value) {
1191
0
  set_has_optional_bytes();
1192
0
  optional_bytes_.SetNoArena(
1193
0
    &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1194
0
  // @@protoc_insertion_point(field_set_rvalue:jsonwriter_test.TestAllTypes.optional_bytes)
1195
0
}
1196
#endif
1197
0
inline void TestAllTypes::set_optional_bytes(const char* value) {
1198
0
  GOOGLE_DCHECK(value != NULL);
1199
0
  set_has_optional_bytes();
1200
0
  optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1201
0
  // @@protoc_insertion_point(field_set_char:jsonwriter_test.TestAllTypes.optional_bytes)
1202
0
}
1203
0
inline void TestAllTypes::set_optional_bytes(const void* value, size_t size) {
1204
0
  set_has_optional_bytes();
1205
0
  optional_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1206
0
      ::std::string(reinterpret_cast<const char*>(value), size));
1207
0
  // @@protoc_insertion_point(field_set_pointer:jsonwriter_test.TestAllTypes.optional_bytes)
1208
0
}
1209
0
inline ::std::string* TestAllTypes::mutable_optional_bytes() {
1210
0
  set_has_optional_bytes();
1211
0
  // @@protoc_insertion_point(field_mutable:jsonwriter_test.TestAllTypes.optional_bytes)
1212
0
  return optional_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1213
0
}
1214
0
inline ::std::string* TestAllTypes::release_optional_bytes() {
1215
0
  // @@protoc_insertion_point(field_release:jsonwriter_test.TestAllTypes.optional_bytes)
1216
0
  clear_has_optional_bytes();
1217
0
  return optional_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1218
0
}
1219
0
inline void TestAllTypes::set_allocated_optional_bytes(::std::string* optional_bytes) {
1220
0
  if (optional_bytes != NULL) {
1221
0
    set_has_optional_bytes();
1222
0
  } else {
1223
0
    clear_has_optional_bytes();
1224
0
  }
1225
0
  optional_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), optional_bytes);
1226
0
  // @@protoc_insertion_point(field_set_allocated:jsonwriter_test.TestAllTypes.optional_bytes)
1227
0
}
1228
1229
// optional .jsonwriter_test.TestAllTypes.NestedMessage optional_nested_message = 18;
1230
0
inline bool TestAllTypes::has_optional_nested_message() const {
1231
0
  return (_has_bits_[0] & 0x00000004u) != 0;
1232
0
}
1233
1
inline void TestAllTypes::set_has_optional_nested_message() {
1234
1
  _has_bits_[0] |= 0x00000004u;
1235
1
}
1236
0
inline void TestAllTypes::clear_has_optional_nested_message() {
1237
0
  _has_bits_[0] &= ~0x00000004u;
1238
0
}
1239
0
inline void TestAllTypes::clear_optional_nested_message() {
1240
0
  if (optional_nested_message_ != NULL) optional_nested_message_->Clear();
1241
0
  clear_has_optional_nested_message();
1242
0
}
1243
0
inline const ::jsonwriter_test::TestAllTypes_NestedMessage& TestAllTypes::optional_nested_message() const {
1244
0
  const ::jsonwriter_test::TestAllTypes_NestedMessage* p = optional_nested_message_;
1245
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_nested_message)
1246
0
  return p != NULL ? *p : *reinterpret_cast<const ::jsonwriter_test::TestAllTypes_NestedMessage*>(
1247
0
      &::jsonwriter_test::_TestAllTypes_NestedMessage_default_instance_);
1248
0
}
1249
0
inline ::jsonwriter_test::TestAllTypes_NestedMessage* TestAllTypes::release_optional_nested_message() {
1250
0
  // @@protoc_insertion_point(field_release:jsonwriter_test.TestAllTypes.optional_nested_message)
1251
0
  clear_has_optional_nested_message();
1252
0
  ::jsonwriter_test::TestAllTypes_NestedMessage* temp = optional_nested_message_;
1253
0
  optional_nested_message_ = NULL;
1254
0
  return temp;
1255
0
}
1256
1
inline ::jsonwriter_test::TestAllTypes_NestedMessage* TestAllTypes::mutable_optional_nested_message() {
1257
1
  set_has_optional_nested_message();
1258
1
  if (optional_nested_message_ == NULL) {
1259
1
    optional_nested_message_ = new ::jsonwriter_test::TestAllTypes_NestedMessage;
1260
1
  }
1261
  // @@protoc_insertion_point(field_mutable:jsonwriter_test.TestAllTypes.optional_nested_message)
1262
1
  return optional_nested_message_;
1263
1
}
1264
0
inline void TestAllTypes::set_allocated_optional_nested_message(::jsonwriter_test::TestAllTypes_NestedMessage* optional_nested_message) {
1265
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
1266
0
  if (message_arena == NULL) {
1267
0
    delete optional_nested_message_;
1268
0
  }
1269
0
  if (optional_nested_message) {
1270
0
    ::google::protobuf::Arena* submessage_arena = NULL;
1271
0
    if (message_arena != submessage_arena) {
1272
0
      optional_nested_message = ::google::protobuf::internal::GetOwnedMessage(
1273
0
          message_arena, optional_nested_message, submessage_arena);
1274
0
    }
1275
0
    set_has_optional_nested_message();
1276
0
  } else {
1277
0
    clear_has_optional_nested_message();
1278
0
  }
1279
0
  optional_nested_message_ = optional_nested_message;
1280
0
  // @@protoc_insertion_point(field_set_allocated:jsonwriter_test.TestAllTypes.optional_nested_message)
1281
0
}
1282
1283
// optional .jsonwriter_test.TestAllTypes.NestedEnum optional_nested_enum = 21;
1284
0
inline bool TestAllTypes::has_optional_nested_enum() const {
1285
0
  return (_has_bits_[0] & 0x00010000u) != 0;
1286
0
}
1287
1
inline void TestAllTypes::set_has_optional_nested_enum() {
1288
1
  _has_bits_[0] |= 0x00010000u;
1289
1
}
1290
0
inline void TestAllTypes::clear_has_optional_nested_enum() {
1291
0
  _has_bits_[0] &= ~0x00010000u;
1292
0
}
1293
0
inline void TestAllTypes::clear_optional_nested_enum() {
1294
0
  optional_nested_enum_ = 1;
1295
0
  clear_has_optional_nested_enum();
1296
0
}
1297
0
inline ::jsonwriter_test::TestAllTypes_NestedEnum TestAllTypes::optional_nested_enum() const {
1298
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.optional_nested_enum)
1299
0
  return static_cast< ::jsonwriter_test::TestAllTypes_NestedEnum >(optional_nested_enum_);
1300
0
}
1301
1
inline void TestAllTypes::set_optional_nested_enum(::jsonwriter_test::TestAllTypes_NestedEnum value) {
1302
1
  assert(::jsonwriter_test::TestAllTypes_NestedEnum_IsValid(value));
1303
1
  set_has_optional_nested_enum();
1304
1
  optional_nested_enum_ = value;
1305
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.optional_nested_enum)
1306
1
}
1307
1308
// repeated int32 repeated_int32 = 31;
1309
0
inline int TestAllTypes::repeated_int32_size() const {
1310
0
  return repeated_int32_.size();
1311
0
}
1312
0
inline void TestAllTypes::clear_repeated_int32() {
1313
0
  repeated_int32_.Clear();
1314
0
}
1315
0
inline ::google::protobuf::int32 TestAllTypes::repeated_int32(int index) const {
1316
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_int32)
1317
0
  return repeated_int32_.Get(index);
1318
0
}
1319
0
inline void TestAllTypes::set_repeated_int32(int index, ::google::protobuf::int32 value) {
1320
0
  repeated_int32_.Set(index, value);
1321
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_int32)
1322
0
}
1323
4
inline void TestAllTypes::add_repeated_int32(::google::protobuf::int32 value) {
1324
4
  repeated_int32_.Add(value);
1325
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_int32)
1326
4
}
1327
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1328
0
TestAllTypes::repeated_int32() const {
1329
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_int32)
1330
0
  return repeated_int32_;
1331
0
}
1332
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1333
0
TestAllTypes::mutable_repeated_int32() {
1334
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_int32)
1335
0
  return &repeated_int32_;
1336
0
}
1337
1338
// repeated int64 repeated_int64 = 32;
1339
0
inline int TestAllTypes::repeated_int64_size() const {
1340
0
  return repeated_int64_.size();
1341
0
}
1342
0
inline void TestAllTypes::clear_repeated_int64() {
1343
0
  repeated_int64_.Clear();
1344
0
}
1345
0
inline ::google::protobuf::int64 TestAllTypes::repeated_int64(int index) const {
1346
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_int64)
1347
0
  return repeated_int64_.Get(index);
1348
0
}
1349
0
inline void TestAllTypes::set_repeated_int64(int index, ::google::protobuf::int64 value) {
1350
0
  repeated_int64_.Set(index, value);
1351
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_int64)
1352
0
}
1353
0
inline void TestAllTypes::add_repeated_int64(::google::protobuf::int64 value) {
1354
0
  repeated_int64_.Add(value);
1355
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_int64)
1356
0
}
1357
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1358
0
TestAllTypes::repeated_int64() const {
1359
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_int64)
1360
0
  return repeated_int64_;
1361
0
}
1362
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1363
0
TestAllTypes::mutable_repeated_int64() {
1364
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_int64)
1365
0
  return &repeated_int64_;
1366
0
}
1367
1368
// repeated uint32 repeated_uint32 = 33;
1369
0
inline int TestAllTypes::repeated_uint32_size() const {
1370
0
  return repeated_uint32_.size();
1371
0
}
1372
0
inline void TestAllTypes::clear_repeated_uint32() {
1373
0
  repeated_uint32_.Clear();
1374
0
}
1375
0
inline ::google::protobuf::uint32 TestAllTypes::repeated_uint32(int index) const {
1376
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_uint32)
1377
0
  return repeated_uint32_.Get(index);
1378
0
}
1379
0
inline void TestAllTypes::set_repeated_uint32(int index, ::google::protobuf::uint32 value) {
1380
0
  repeated_uint32_.Set(index, value);
1381
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_uint32)
1382
0
}
1383
0
inline void TestAllTypes::add_repeated_uint32(::google::protobuf::uint32 value) {
1384
0
  repeated_uint32_.Add(value);
1385
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_uint32)
1386
0
}
1387
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1388
0
TestAllTypes::repeated_uint32() const {
1389
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_uint32)
1390
0
  return repeated_uint32_;
1391
0
}
1392
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1393
0
TestAllTypes::mutable_repeated_uint32() {
1394
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_uint32)
1395
0
  return &repeated_uint32_;
1396
0
}
1397
1398
// repeated uint64 repeated_uint64 = 34;
1399
0
inline int TestAllTypes::repeated_uint64_size() const {
1400
0
  return repeated_uint64_.size();
1401
0
}
1402
0
inline void TestAllTypes::clear_repeated_uint64() {
1403
0
  repeated_uint64_.Clear();
1404
0
}
1405
0
inline ::google::protobuf::uint64 TestAllTypes::repeated_uint64(int index) const {
1406
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_uint64)
1407
0
  return repeated_uint64_.Get(index);
1408
0
}
1409
0
inline void TestAllTypes::set_repeated_uint64(int index, ::google::protobuf::uint64 value) {
1410
0
  repeated_uint64_.Set(index, value);
1411
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_uint64)
1412
0
}
1413
0
inline void TestAllTypes::add_repeated_uint64(::google::protobuf::uint64 value) {
1414
0
  repeated_uint64_.Add(value);
1415
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_uint64)
1416
0
}
1417
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
1418
0
TestAllTypes::repeated_uint64() const {
1419
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_uint64)
1420
0
  return repeated_uint64_;
1421
0
}
1422
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
1423
0
TestAllTypes::mutable_repeated_uint64() {
1424
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_uint64)
1425
0
  return &repeated_uint64_;
1426
0
}
1427
1428
// repeated sint32 repeated_sint32 = 35;
1429
0
inline int TestAllTypes::repeated_sint32_size() const {
1430
0
  return repeated_sint32_.size();
1431
0
}
1432
0
inline void TestAllTypes::clear_repeated_sint32() {
1433
0
  repeated_sint32_.Clear();
1434
0
}
1435
0
inline ::google::protobuf::int32 TestAllTypes::repeated_sint32(int index) const {
1436
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_sint32)
1437
0
  return repeated_sint32_.Get(index);
1438
0
}
1439
0
inline void TestAllTypes::set_repeated_sint32(int index, ::google::protobuf::int32 value) {
1440
0
  repeated_sint32_.Set(index, value);
1441
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_sint32)
1442
0
}
1443
0
inline void TestAllTypes::add_repeated_sint32(::google::protobuf::int32 value) {
1444
0
  repeated_sint32_.Add(value);
1445
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_sint32)
1446
0
}
1447
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1448
0
TestAllTypes::repeated_sint32() const {
1449
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_sint32)
1450
0
  return repeated_sint32_;
1451
0
}
1452
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1453
0
TestAllTypes::mutable_repeated_sint32() {
1454
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_sint32)
1455
0
  return &repeated_sint32_;
1456
0
}
1457
1458
// repeated sint64 repeated_sint64 = 36;
1459
0
inline int TestAllTypes::repeated_sint64_size() const {
1460
0
  return repeated_sint64_.size();
1461
0
}
1462
0
inline void TestAllTypes::clear_repeated_sint64() {
1463
0
  repeated_sint64_.Clear();
1464
0
}
1465
0
inline ::google::protobuf::int64 TestAllTypes::repeated_sint64(int index) const {
1466
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_sint64)
1467
0
  return repeated_sint64_.Get(index);
1468
0
}
1469
0
inline void TestAllTypes::set_repeated_sint64(int index, ::google::protobuf::int64 value) {
1470
0
  repeated_sint64_.Set(index, value);
1471
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_sint64)
1472
0
}
1473
0
inline void TestAllTypes::add_repeated_sint64(::google::protobuf::int64 value) {
1474
0
  repeated_sint64_.Add(value);
1475
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_sint64)
1476
0
}
1477
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1478
0
TestAllTypes::repeated_sint64() const {
1479
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_sint64)
1480
0
  return repeated_sint64_;
1481
0
}
1482
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1483
0
TestAllTypes::mutable_repeated_sint64() {
1484
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_sint64)
1485
0
  return &repeated_sint64_;
1486
0
}
1487
1488
// repeated fixed32 repeated_fixed32 = 37;
1489
0
inline int TestAllTypes::repeated_fixed32_size() const {
1490
0
  return repeated_fixed32_.size();
1491
0
}
1492
0
inline void TestAllTypes::clear_repeated_fixed32() {
1493
0
  repeated_fixed32_.Clear();
1494
0
}
1495
0
inline ::google::protobuf::uint32 TestAllTypes::repeated_fixed32(int index) const {
1496
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_fixed32)
1497
0
  return repeated_fixed32_.Get(index);
1498
0
}
1499
0
inline void TestAllTypes::set_repeated_fixed32(int index, ::google::protobuf::uint32 value) {
1500
0
  repeated_fixed32_.Set(index, value);
1501
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_fixed32)
1502
0
}
1503
0
inline void TestAllTypes::add_repeated_fixed32(::google::protobuf::uint32 value) {
1504
0
  repeated_fixed32_.Add(value);
1505
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_fixed32)
1506
0
}
1507
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1508
0
TestAllTypes::repeated_fixed32() const {
1509
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_fixed32)
1510
0
  return repeated_fixed32_;
1511
0
}
1512
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1513
0
TestAllTypes::mutable_repeated_fixed32() {
1514
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_fixed32)
1515
0
  return &repeated_fixed32_;
1516
0
}
1517
1518
// repeated fixed64 repeated_fixed64 = 38;
1519
0
inline int TestAllTypes::repeated_fixed64_size() const {
1520
0
  return repeated_fixed64_.size();
1521
0
}
1522
0
inline void TestAllTypes::clear_repeated_fixed64() {
1523
0
  repeated_fixed64_.Clear();
1524
0
}
1525
0
inline ::google::protobuf::uint64 TestAllTypes::repeated_fixed64(int index) const {
1526
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_fixed64)
1527
0
  return repeated_fixed64_.Get(index);
1528
0
}
1529
0
inline void TestAllTypes::set_repeated_fixed64(int index, ::google::protobuf::uint64 value) {
1530
0
  repeated_fixed64_.Set(index, value);
1531
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_fixed64)
1532
0
}
1533
0
inline void TestAllTypes::add_repeated_fixed64(::google::protobuf::uint64 value) {
1534
0
  repeated_fixed64_.Add(value);
1535
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_fixed64)
1536
0
}
1537
inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >&
1538
0
TestAllTypes::repeated_fixed64() const {
1539
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_fixed64)
1540
0
  return repeated_fixed64_;
1541
0
}
1542
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >*
1543
0
TestAllTypes::mutable_repeated_fixed64() {
1544
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_fixed64)
1545
0
  return &repeated_fixed64_;
1546
0
}
1547
1548
// repeated sfixed32 repeated_sfixed32 = 39;
1549
0
inline int TestAllTypes::repeated_sfixed32_size() const {
1550
0
  return repeated_sfixed32_.size();
1551
0
}
1552
0
inline void TestAllTypes::clear_repeated_sfixed32() {
1553
0
  repeated_sfixed32_.Clear();
1554
0
}
1555
0
inline ::google::protobuf::int32 TestAllTypes::repeated_sfixed32(int index) const {
1556
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_sfixed32)
1557
0
  return repeated_sfixed32_.Get(index);
1558
0
}
1559
0
inline void TestAllTypes::set_repeated_sfixed32(int index, ::google::protobuf::int32 value) {
1560
0
  repeated_sfixed32_.Set(index, value);
1561
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_sfixed32)
1562
0
}
1563
0
inline void TestAllTypes::add_repeated_sfixed32(::google::protobuf::int32 value) {
1564
0
  repeated_sfixed32_.Add(value);
1565
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_sfixed32)
1566
0
}
1567
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
1568
0
TestAllTypes::repeated_sfixed32() const {
1569
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_sfixed32)
1570
0
  return repeated_sfixed32_;
1571
0
}
1572
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
1573
0
TestAllTypes::mutable_repeated_sfixed32() {
1574
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_sfixed32)
1575
0
  return &repeated_sfixed32_;
1576
0
}
1577
1578
// repeated sfixed64 repeated_sfixed64 = 40;
1579
0
inline int TestAllTypes::repeated_sfixed64_size() const {
1580
0
  return repeated_sfixed64_.size();
1581
0
}
1582
0
inline void TestAllTypes::clear_repeated_sfixed64() {
1583
0
  repeated_sfixed64_.Clear();
1584
0
}
1585
0
inline ::google::protobuf::int64 TestAllTypes::repeated_sfixed64(int index) const {
1586
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_sfixed64)
1587
0
  return repeated_sfixed64_.Get(index);
1588
0
}
1589
0
inline void TestAllTypes::set_repeated_sfixed64(int index, ::google::protobuf::int64 value) {
1590
0
  repeated_sfixed64_.Set(index, value);
1591
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_sfixed64)
1592
0
}
1593
0
inline void TestAllTypes::add_repeated_sfixed64(::google::protobuf::int64 value) {
1594
0
  repeated_sfixed64_.Add(value);
1595
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_sfixed64)
1596
0
}
1597
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >&
1598
0
TestAllTypes::repeated_sfixed64() const {
1599
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_sfixed64)
1600
0
  return repeated_sfixed64_;
1601
0
}
1602
inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >*
1603
0
TestAllTypes::mutable_repeated_sfixed64() {
1604
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_sfixed64)
1605
0
  return &repeated_sfixed64_;
1606
0
}
1607
1608
// repeated float repeated_float = 41;
1609
0
inline int TestAllTypes::repeated_float_size() const {
1610
0
  return repeated_float_.size();
1611
0
}
1612
0
inline void TestAllTypes::clear_repeated_float() {
1613
0
  repeated_float_.Clear();
1614
0
}
1615
0
inline float TestAllTypes::repeated_float(int index) const {
1616
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_float)
1617
0
  return repeated_float_.Get(index);
1618
0
}
1619
0
inline void TestAllTypes::set_repeated_float(int index, float value) {
1620
0
  repeated_float_.Set(index, value);
1621
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_float)
1622
0
}
1623
0
inline void TestAllTypes::add_repeated_float(float value) {
1624
0
  repeated_float_.Add(value);
1625
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_float)
1626
0
}
1627
inline const ::google::protobuf::RepeatedField< float >&
1628
0
TestAllTypes::repeated_float() const {
1629
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_float)
1630
0
  return repeated_float_;
1631
0
}
1632
inline ::google::protobuf::RepeatedField< float >*
1633
0
TestAllTypes::mutable_repeated_float() {
1634
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_float)
1635
0
  return &repeated_float_;
1636
0
}
1637
1638
// repeated double repeated_double = 42;
1639
0
inline int TestAllTypes::repeated_double_size() const {
1640
0
  return repeated_double_.size();
1641
0
}
1642
0
inline void TestAllTypes::clear_repeated_double() {
1643
0
  repeated_double_.Clear();
1644
0
}
1645
0
inline double TestAllTypes::repeated_double(int index) const {
1646
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_double)
1647
0
  return repeated_double_.Get(index);
1648
0
}
1649
0
inline void TestAllTypes::set_repeated_double(int index, double value) {
1650
0
  repeated_double_.Set(index, value);
1651
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_double)
1652
0
}
1653
0
inline void TestAllTypes::add_repeated_double(double value) {
1654
0
  repeated_double_.Add(value);
1655
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_double)
1656
0
}
1657
inline const ::google::protobuf::RepeatedField< double >&
1658
0
TestAllTypes::repeated_double() const {
1659
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_double)
1660
0
  return repeated_double_;
1661
0
}
1662
inline ::google::protobuf::RepeatedField< double >*
1663
0
TestAllTypes::mutable_repeated_double() {
1664
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_double)
1665
0
  return &repeated_double_;
1666
0
}
1667
1668
// repeated bool repeated_bool = 43;
1669
0
inline int TestAllTypes::repeated_bool_size() const {
1670
0
  return repeated_bool_.size();
1671
0
}
1672
0
inline void TestAllTypes::clear_repeated_bool() {
1673
0
  repeated_bool_.Clear();
1674
0
}
1675
0
inline bool TestAllTypes::repeated_bool(int index) const {
1676
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_bool)
1677
0
  return repeated_bool_.Get(index);
1678
0
}
1679
0
inline void TestAllTypes::set_repeated_bool(int index, bool value) {
1680
0
  repeated_bool_.Set(index, value);
1681
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_bool)
1682
0
}
1683
0
inline void TestAllTypes::add_repeated_bool(bool value) {
1684
0
  repeated_bool_.Add(value);
1685
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_bool)
1686
0
}
1687
inline const ::google::protobuf::RepeatedField< bool >&
1688
0
TestAllTypes::repeated_bool() const {
1689
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_bool)
1690
0
  return repeated_bool_;
1691
0
}
1692
inline ::google::protobuf::RepeatedField< bool >*
1693
0
TestAllTypes::mutable_repeated_bool() {
1694
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_bool)
1695
0
  return &repeated_bool_;
1696
0
}
1697
1698
// repeated string repeated_string = 44;
1699
0
inline int TestAllTypes::repeated_string_size() const {
1700
0
  return repeated_string_.size();
1701
0
}
1702
0
inline void TestAllTypes::clear_repeated_string() {
1703
0
  repeated_string_.Clear();
1704
0
}
1705
0
inline const ::std::string& TestAllTypes::repeated_string(int index) const {
1706
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_string)
1707
0
  return repeated_string_.Get(index);
1708
0
}
1709
0
inline ::std::string* TestAllTypes::mutable_repeated_string(int index) {
1710
0
  // @@protoc_insertion_point(field_mutable:jsonwriter_test.TestAllTypes.repeated_string)
1711
0
  return repeated_string_.Mutable(index);
1712
0
}
1713
0
inline void TestAllTypes::set_repeated_string(int index, const ::std::string& value) {
1714
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_string)
1715
0
  repeated_string_.Mutable(index)->assign(value);
1716
0
}
1717
#if LANG_CXX11
1718
0
inline void TestAllTypes::set_repeated_string(int index, ::std::string&& value) {
1719
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_string)
1720
0
  repeated_string_.Mutable(index)->assign(std::move(value));
1721
0
}
1722
#endif
1723
0
inline void TestAllTypes::set_repeated_string(int index, const char* value) {
1724
0
  GOOGLE_DCHECK(value != NULL);
1725
0
  repeated_string_.Mutable(index)->assign(value);
1726
0
  // @@protoc_insertion_point(field_set_char:jsonwriter_test.TestAllTypes.repeated_string)
1727
0
}
1728
0
inline void TestAllTypes::set_repeated_string(int index, const char* value, size_t size) {
1729
0
  repeated_string_.Mutable(index)->assign(
1730
0
    reinterpret_cast<const char*>(value), size);
1731
0
  // @@protoc_insertion_point(field_set_pointer:jsonwriter_test.TestAllTypes.repeated_string)
1732
0
}
1733
0
inline ::std::string* TestAllTypes::add_repeated_string() {
1734
0
  // @@protoc_insertion_point(field_add_mutable:jsonwriter_test.TestAllTypes.repeated_string)
1735
0
  return repeated_string_.Add();
1736
0
}
1737
0
inline void TestAllTypes::add_repeated_string(const ::std::string& value) {
1738
0
  repeated_string_.Add()->assign(value);
1739
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_string)
1740
0
}
1741
#if LANG_CXX11
1742
0
inline void TestAllTypes::add_repeated_string(::std::string&& value) {
1743
0
  repeated_string_.Add(std::move(value));
1744
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_string)
1745
0
}
1746
#endif
1747
0
inline void TestAllTypes::add_repeated_string(const char* value) {
1748
0
  GOOGLE_DCHECK(value != NULL);
1749
0
  repeated_string_.Add()->assign(value);
1750
0
  // @@protoc_insertion_point(field_add_char:jsonwriter_test.TestAllTypes.repeated_string)
1751
0
}
1752
0
inline void TestAllTypes::add_repeated_string(const char* value, size_t size) {
1753
0
  repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size);
1754
0
  // @@protoc_insertion_point(field_add_pointer:jsonwriter_test.TestAllTypes.repeated_string)
1755
0
}
1756
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1757
0
TestAllTypes::repeated_string() const {
1758
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_string)
1759
0
  return repeated_string_;
1760
0
}
1761
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1762
0
TestAllTypes::mutable_repeated_string() {
1763
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_string)
1764
0
  return &repeated_string_;
1765
0
}
1766
1767
// repeated bytes repeated_bytes = 45;
1768
0
inline int TestAllTypes::repeated_bytes_size() const {
1769
0
  return repeated_bytes_.size();
1770
0
}
1771
0
inline void TestAllTypes::clear_repeated_bytes() {
1772
0
  repeated_bytes_.Clear();
1773
0
}
1774
0
inline const ::std::string& TestAllTypes::repeated_bytes(int index) const {
1775
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_bytes)
1776
0
  return repeated_bytes_.Get(index);
1777
0
}
1778
0
inline ::std::string* TestAllTypes::mutable_repeated_bytes(int index) {
1779
0
  // @@protoc_insertion_point(field_mutable:jsonwriter_test.TestAllTypes.repeated_bytes)
1780
0
  return repeated_bytes_.Mutable(index);
1781
0
}
1782
0
inline void TestAllTypes::set_repeated_bytes(int index, const ::std::string& value) {
1783
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_bytes)
1784
0
  repeated_bytes_.Mutable(index)->assign(value);
1785
0
}
1786
#if LANG_CXX11
1787
0
inline void TestAllTypes::set_repeated_bytes(int index, ::std::string&& value) {
1788
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_bytes)
1789
0
  repeated_bytes_.Mutable(index)->assign(std::move(value));
1790
0
}
1791
#endif
1792
0
inline void TestAllTypes::set_repeated_bytes(int index, const char* value) {
1793
0
  GOOGLE_DCHECK(value != NULL);
1794
0
  repeated_bytes_.Mutable(index)->assign(value);
1795
0
  // @@protoc_insertion_point(field_set_char:jsonwriter_test.TestAllTypes.repeated_bytes)
1796
0
}
1797
0
inline void TestAllTypes::set_repeated_bytes(int index, const void* value, size_t size) {
1798
0
  repeated_bytes_.Mutable(index)->assign(
1799
0
    reinterpret_cast<const char*>(value), size);
1800
0
  // @@protoc_insertion_point(field_set_pointer:jsonwriter_test.TestAllTypes.repeated_bytes)
1801
0
}
1802
0
inline ::std::string* TestAllTypes::add_repeated_bytes() {
1803
0
  // @@protoc_insertion_point(field_add_mutable:jsonwriter_test.TestAllTypes.repeated_bytes)
1804
0
  return repeated_bytes_.Add();
1805
0
}
1806
0
inline void TestAllTypes::add_repeated_bytes(const ::std::string& value) {
1807
0
  repeated_bytes_.Add()->assign(value);
1808
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_bytes)
1809
0
}
1810
#if LANG_CXX11
1811
0
inline void TestAllTypes::add_repeated_bytes(::std::string&& value) {
1812
0
  repeated_bytes_.Add(std::move(value));
1813
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_bytes)
1814
0
}
1815
#endif
1816
0
inline void TestAllTypes::add_repeated_bytes(const char* value) {
1817
0
  GOOGLE_DCHECK(value != NULL);
1818
0
  repeated_bytes_.Add()->assign(value);
1819
0
  // @@protoc_insertion_point(field_add_char:jsonwriter_test.TestAllTypes.repeated_bytes)
1820
0
}
1821
0
inline void TestAllTypes::add_repeated_bytes(const void* value, size_t size) {
1822
0
  repeated_bytes_.Add()->assign(reinterpret_cast<const char*>(value), size);
1823
0
  // @@protoc_insertion_point(field_add_pointer:jsonwriter_test.TestAllTypes.repeated_bytes)
1824
0
}
1825
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1826
0
TestAllTypes::repeated_bytes() const {
1827
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_bytes)
1828
0
  return repeated_bytes_;
1829
0
}
1830
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1831
0
TestAllTypes::mutable_repeated_bytes() {
1832
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_bytes)
1833
0
  return &repeated_bytes_;
1834
0
}
1835
1836
// repeated .jsonwriter_test.TestAllTypes.NestedMessage repeated_nested_message = 48;
1837
0
inline int TestAllTypes::repeated_nested_message_size() const {
1838
0
  return repeated_nested_message_.size();
1839
0
}
1840
0
inline void TestAllTypes::clear_repeated_nested_message() {
1841
0
  repeated_nested_message_.Clear();
1842
0
}
1843
0
inline const ::jsonwriter_test::TestAllTypes_NestedMessage& TestAllTypes::repeated_nested_message(int index) const {
1844
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_nested_message)
1845
0
  return repeated_nested_message_.Get(index);
1846
0
}
1847
0
inline ::jsonwriter_test::TestAllTypes_NestedMessage* TestAllTypes::mutable_repeated_nested_message(int index) {
1848
0
  // @@protoc_insertion_point(field_mutable:jsonwriter_test.TestAllTypes.repeated_nested_message)
1849
0
  return repeated_nested_message_.Mutable(index);
1850
0
}
1851
1
inline ::jsonwriter_test::TestAllTypes_NestedMessage* TestAllTypes::add_repeated_nested_message() {
1852
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_nested_message)
1853
1
  return repeated_nested_message_.Add();
1854
1
}
1855
inline ::google::protobuf::RepeatedPtrField< ::jsonwriter_test::TestAllTypes_NestedMessage >*
1856
0
TestAllTypes::mutable_repeated_nested_message() {
1857
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_nested_message)
1858
0
  return &repeated_nested_message_;
1859
0
}
1860
inline const ::google::protobuf::RepeatedPtrField< ::jsonwriter_test::TestAllTypes_NestedMessage >&
1861
0
TestAllTypes::repeated_nested_message() const {
1862
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_nested_message)
1863
0
  return repeated_nested_message_;
1864
0
}
1865
1866
// repeated .jsonwriter_test.TestAllTypes.NestedEnum repeated_nested_enum = 51;
1867
0
inline int TestAllTypes::repeated_nested_enum_size() const {
1868
0
  return repeated_nested_enum_.size();
1869
0
}
1870
0
inline void TestAllTypes::clear_repeated_nested_enum() {
1871
0
  repeated_nested_enum_.Clear();
1872
0
}
1873
0
inline ::jsonwriter_test::TestAllTypes_NestedEnum TestAllTypes::repeated_nested_enum(int index) const {
1874
0
  // @@protoc_insertion_point(field_get:jsonwriter_test.TestAllTypes.repeated_nested_enum)
1875
0
  return static_cast< ::jsonwriter_test::TestAllTypes_NestedEnum >(repeated_nested_enum_.Get(index));
1876
0
}
1877
0
inline void TestAllTypes::set_repeated_nested_enum(int index, ::jsonwriter_test::TestAllTypes_NestedEnum value) {
1878
0
  assert(::jsonwriter_test::TestAllTypes_NestedEnum_IsValid(value));
1879
0
  repeated_nested_enum_.Set(index, value);
1880
0
  // @@protoc_insertion_point(field_set:jsonwriter_test.TestAllTypes.repeated_nested_enum)
1881
0
}
1882
0
inline void TestAllTypes::add_repeated_nested_enum(::jsonwriter_test::TestAllTypes_NestedEnum value) {
1883
0
  assert(::jsonwriter_test::TestAllTypes_NestedEnum_IsValid(value));
1884
0
  repeated_nested_enum_.Add(value);
1885
0
  // @@protoc_insertion_point(field_add:jsonwriter_test.TestAllTypes.repeated_nested_enum)
1886
0
}
1887
inline const ::google::protobuf::RepeatedField<int>&
1888
0
TestAllTypes::repeated_nested_enum() const {
1889
0
  // @@protoc_insertion_point(field_list:jsonwriter_test.TestAllTypes.repeated_nested_enum)
1890
0
  return repeated_nested_enum_;
1891
0
}
1892
inline ::google::protobuf::RepeatedField<int>*
1893
0
TestAllTypes::mutable_repeated_nested_enum() {
1894
0
  // @@protoc_insertion_point(field_mutable_list:jsonwriter_test.TestAllTypes.repeated_nested_enum)
1895
0
  return &repeated_nested_enum_;
1896
0
}
1897
1898
#ifdef __GNUC__
1899
  #pragma GCC diagnostic pop
1900
#endif  // __GNUC__
1901
// -------------------------------------------------------------------
1902
1903
1904
// @@protoc_insertion_point(namespace_scope)
1905
1906
}  // namespace jsonwriter_test
1907
1908
namespace google {
1909
namespace protobuf {
1910
1911
template <> struct is_proto_enum< ::jsonwriter_test::TestAllTypes_NestedEnum> : ::google::protobuf::internal::true_type {};
1912
template <>
1913
0
inline const EnumDescriptor* GetEnumDescriptor< ::jsonwriter_test::TestAllTypes_NestedEnum>() {
1914
0
  return ::jsonwriter_test::TestAllTypes_NestedEnum_descriptor();
1915
0
}
1916
1917
}  // namespace protobuf
1918
}  // namespace google
1919
1920
// @@protoc_insertion_point(global_scope)
1921
1922
#endif  // PROTOBUF_yb_2futil_2fjsonwriter_5ftest_2eproto__INCLUDED