Coverage Report

Created: 2025-06-13 06:23

/src/brpc/build/test/iobuf.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: iobuf.proto
3
4
#include "iobuf.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/io/coded_stream.h>
11
#include <google/protobuf/wire_format_lite_inl.h>
12
#include <google/protobuf/descriptor.h>
13
#include <google/protobuf/generated_message_reflection.h>
14
#include <google/protobuf/reflection_ops.h>
15
#include <google/protobuf/wire_format.h>
16
// This is a temporary google only hack
17
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
18
#include "third_party/protobuf/version.h"
19
#endif
20
// @@protoc_insertion_point(includes)
21
22
namespace proto {
23
class MiscDefaultTypeInternal {
24
 public:
25
  ::google::protobuf::internal::ExplicitlyConstructed<Misc>
26
      _instance;
27
} _Misc_default_instance_;
28
}  // namespace proto
29
namespace protobuf_iobuf_2eproto {
30
2
static void InitDefaultsMisc() {
31
2
  GOOGLE_PROTOBUF_VERIFY_VERSION;
32
33
2
  {
34
2
    void* ptr = &::proto::_Misc_default_instance_;
35
2
    new (ptr) ::proto::Misc();
36
2
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
37
2
  }
38
2
  ::proto::Misc::InitAsDefaultInstance();
39
2
}
40
41
::google::protobuf::internal::SCCInfo<0> scc_info_Misc =
42
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMisc}, {}};
43
44
2
void InitDefaults() {
45
2
  ::google::protobuf::internal::InitSCC(&scc_info_Misc.base);
46
2
}
47
48
::google::protobuf::Metadata file_level_metadata[1];
49
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
50
51
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
52
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, _has_bits_),
53
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, _internal_metadata_),
54
  ~0u,  // no _extensions_
55
  ~0u,  // no _oneof_case_
56
  ~0u,  // no _weak_field_map_
57
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, required_enum_),
58
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, optional_enum_),
59
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, repeated_enum_),
60
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, required_uint64_),
61
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, optional_uint64_),
62
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, repeated_uint64_),
63
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, required_string_),
64
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, optional_string_),
65
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, repeated_string_),
66
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, required_bool_),
67
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, optional_bool_),
68
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, repeated_bool_),
69
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, required_int32_),
70
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, optional_int32_),
71
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::proto::Misc, repeated_int32_),
72
  2,
73
  3,
74
  ~0u,
75
  4,
76
  5,
77
  ~0u,
78
  0,
79
  1,
80
  ~0u,
81
  6,
82
  7,
83
  ~0u,
84
  8,
85
  9,
86
  ~0u,
87
};
88
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
89
  { 0, 20, sizeof(::proto::Misc)},
90
};
91
92
static ::google::protobuf::Message const * const file_default_instances[] = {
93
  reinterpret_cast<const ::google::protobuf::Message*>(&::proto::_Misc_default_instance_),
94
};
95
96
0
void protobuf_AssignDescriptors() {
97
0
  AddDescriptors();
98
0
  AssignDescriptors(
99
0
      "iobuf.proto", schemas, file_default_instances, TableStruct::offsets,
100
0
      file_level_metadata, file_level_enum_descriptors, NULL);
101
0
}
102
103
0
void protobuf_AssignDescriptorsOnce() {
104
0
  static ::google::protobuf::internal::once_flag once;
105
0
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
106
0
}
107
108
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
109
0
void protobuf_RegisterTypes(const ::std::string&) {
110
0
  protobuf_AssignDescriptorsOnce();
111
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
112
0
}
113
114
2
void AddDescriptorsImpl() {
115
2
  InitDefaults();
116
2
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
117
2
      "\n\013iobuf.proto\022\005proto\"\255\003\n\004Misc\022*\n\rrequire"
118
2
      "d_enum\030\001 \002(\0162\023.proto.CompressType\022*\n\ropt"
119
2
      "ional_enum\030\002 \001(\0162\023.proto.CompressType\022*\n"
120
2
      "\rrepeated_enum\030\003 \003(\0162\023.proto.CompressTyp"
121
2
      "e\022\027\n\017required_uint64\030\004 \002(\004\022\027\n\017optional_u"
122
2
      "int64\030\005 \001(\004\022\027\n\017repeated_uint64\030\006 \003(\004\022\027\n\017"
123
2
      "required_string\030\007 \002(\t\022\027\n\017optional_string"
124
2
      "\030\010 \001(\t\022\027\n\017repeated_string\030\t \003(\t\022\025\n\rrequi"
125
2
      "red_bool\030\n \002(\010\022\025\n\roptional_bool\030\013 \001(\010\022\025\n"
126
2
      "\rrepeated_bool\030\014 \003(\010\022\026\n\016required_int32\030\r"
127
2
      " \002(\005\022\026\n\016optional_int32\030\016 \001(\005\022\026\n\016repeated"
128
2
      "_int32\030\017 \003(\005*}\n\014CompressType\022\024\n\020Compress"
129
2
      "TypeNone\020\000\022\024\n\020CompressTypeGzip\020\001\022\024\n\020Comp"
130
2
      "ressTypeZlib\020\002\022\026\n\022CompressTypeSnappy\020\003\022\023"
131
2
      "\n\017CompressTypeLZ4\020\004"
132
2
  };
133
2
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
134
2
      descriptor, 579);
135
2
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
136
2
    "iobuf.proto", &protobuf_RegisterTypes);
137
2
}
138
139
2
void AddDescriptors() {
140
2
  static ::google::protobuf::internal::once_flag once;
141
2
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
142
2
}
143
// Force AddDescriptors() to be called at dynamic initialization time.
144
struct StaticDescriptorInitializer {
145
2
  StaticDescriptorInitializer() {
146
2
    AddDescriptors();
147
2
  }
148
} static_descriptor_initializer;
149
}  // namespace protobuf_iobuf_2eproto
150
namespace proto {
151
0
const ::google::protobuf::EnumDescriptor* CompressType_descriptor() {
152
0
  protobuf_iobuf_2eproto::protobuf_AssignDescriptorsOnce();
153
0
  return protobuf_iobuf_2eproto::file_level_enum_descriptors[0];
154
0
}
155
0
bool CompressType_IsValid(int value) {
156
0
  switch (value) {
157
0
    case 0:
158
0
    case 1:
159
0
    case 2:
160
0
    case 3:
161
0
    case 4:
162
0
      return true;
163
0
    default:
164
0
      return false;
165
0
  }
166
0
}
167
168
169
// ===================================================================
170
171
2
void Misc::InitAsDefaultInstance() {
172
2
}
173
#if !defined(_MSC_VER) || _MSC_VER >= 1900
174
const int Misc::kRequiredEnumFieldNumber;
175
const int Misc::kOptionalEnumFieldNumber;
176
const int Misc::kRepeatedEnumFieldNumber;
177
const int Misc::kRequiredUint64FieldNumber;
178
const int Misc::kOptionalUint64FieldNumber;
179
const int Misc::kRepeatedUint64FieldNumber;
180
const int Misc::kRequiredStringFieldNumber;
181
const int Misc::kOptionalStringFieldNumber;
182
const int Misc::kRepeatedStringFieldNumber;
183
const int Misc::kRequiredBoolFieldNumber;
184
const int Misc::kOptionalBoolFieldNumber;
185
const int Misc::kRepeatedBoolFieldNumber;
186
const int Misc::kRequiredInt32FieldNumber;
187
const int Misc::kOptionalInt32FieldNumber;
188
const int Misc::kRepeatedInt32FieldNumber;
189
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
190
191
Misc::Misc()
192
2
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
193
2
  ::google::protobuf::internal::InitSCC(
194
2
      &protobuf_iobuf_2eproto::scc_info_Misc.base);
195
2
  SharedCtor();
196
  // @@protoc_insertion_point(constructor:proto.Misc)
197
2
}
198
Misc::Misc(const Misc& from)
199
0
  : ::google::protobuf::Message(),
200
0
      _internal_metadata_(NULL),
201
0
      _has_bits_(from._has_bits_),
202
0
      repeated_enum_(from.repeated_enum_),
203
0
      repeated_uint64_(from.repeated_uint64_),
204
0
      repeated_string_(from.repeated_string_),
205
0
      repeated_bool_(from.repeated_bool_),
206
0
      repeated_int32_(from.repeated_int32_) {
207
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
208
0
  required_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
209
0
  if (from.has_required_string()) {
210
0
    required_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.required_string_);
211
0
  }
212
0
  optional_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
213
0
  if (from.has_optional_string()) {
214
0
    optional_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.optional_string_);
215
0
  }
216
0
  ::memcpy(&required_enum_, &from.required_enum_,
217
0
    static_cast<size_t>(reinterpret_cast<char*>(&optional_int32_) -
218
0
    reinterpret_cast<char*>(&required_enum_)) + sizeof(optional_int32_));
219
  // @@protoc_insertion_point(copy_constructor:proto.Misc)
220
0
}
221
222
2
void Misc::SharedCtor() {
223
2
  required_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
224
2
  optional_string_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
225
2
  ::memset(&required_enum_, 0, static_cast<size_t>(
226
2
      reinterpret_cast<char*>(&optional_int32_) -
227
2
      reinterpret_cast<char*>(&required_enum_)) + sizeof(optional_int32_));
228
2
}
229
230
0
Misc::~Misc() {
231
  // @@protoc_insertion_point(destructor:proto.Misc)
232
0
  SharedDtor();
233
0
}
234
235
0
void Misc::SharedDtor() {
236
0
  required_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
237
0
  optional_string_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
238
0
}
239
240
0
void Misc::SetCachedSize(int size) const {
241
0
  _cached_size_.Set(size);
242
0
}
243
0
const ::google::protobuf::Descriptor* Misc::descriptor() {
244
0
  ::protobuf_iobuf_2eproto::protobuf_AssignDescriptorsOnce();
245
0
  return ::protobuf_iobuf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
246
0
}
247
248
0
const Misc& Misc::default_instance() {
249
0
  ::google::protobuf::internal::InitSCC(&protobuf_iobuf_2eproto::scc_info_Misc.base);
250
0
  return *internal_default_instance();
251
0
}
252
253
254
0
void Misc::Clear() {
255
// @@protoc_insertion_point(message_clear_start:proto.Misc)
256
0
  ::google::protobuf::uint32 cached_has_bits = 0;
257
  // Prevent compiler warnings about cached_has_bits being unused
258
0
  (void) cached_has_bits;
259
260
0
  repeated_enum_.Clear();
261
0
  repeated_uint64_.Clear();
262
0
  repeated_string_.Clear();
263
0
  repeated_bool_.Clear();
264
0
  repeated_int32_.Clear();
265
0
  cached_has_bits = _has_bits_[0];
266
0
  if (cached_has_bits & 3u) {
267
0
    if (cached_has_bits & 0x00000001u) {
268
0
      required_string_.ClearNonDefaultToEmptyNoArena();
269
0
    }
270
0
    if (cached_has_bits & 0x00000002u) {
271
0
      optional_string_.ClearNonDefaultToEmptyNoArena();
272
0
    }
273
0
  }
274
0
  if (cached_has_bits & 252u) {
275
0
    ::memset(&required_enum_, 0, static_cast<size_t>(
276
0
        reinterpret_cast<char*>(&optional_bool_) -
277
0
        reinterpret_cast<char*>(&required_enum_)) + sizeof(optional_bool_));
278
0
  }
279
0
  if (cached_has_bits & 768u) {
280
0
    ::memset(&required_int32_, 0, static_cast<size_t>(
281
0
        reinterpret_cast<char*>(&optional_int32_) -
282
0
        reinterpret_cast<char*>(&required_int32_)) + sizeof(optional_int32_));
283
0
  }
284
0
  _has_bits_.Clear();
285
0
  _internal_metadata_.Clear();
286
0
}
287
288
bool Misc::MergePartialFromCodedStream(
289
0
    ::google::protobuf::io::CodedInputStream* input) {
290
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
291
0
  ::google::protobuf::uint32 tag;
292
  // @@protoc_insertion_point(parse_start:proto.Misc)
293
0
  for (;;) {
294
0
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
295
0
    tag = p.first;
296
0
    if (!p.second) goto handle_unusual;
297
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
298
      // required .proto.CompressType required_enum = 1;
299
0
      case 1: {
300
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
301
0
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
302
0
          int value;
303
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
304
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
305
0
                 input, &value)));
306
0
          if (::proto::CompressType_IsValid(value)) {
307
0
            set_required_enum(static_cast< ::proto::CompressType >(value));
308
0
          } else {
309
0
            mutable_unknown_fields()->AddVarint(
310
0
                1, static_cast< ::google::protobuf::uint64>(value));
311
0
          }
312
0
        } else {
313
0
          goto handle_unusual;
314
0
        }
315
0
        break;
316
0
      }
317
318
      // optional .proto.CompressType optional_enum = 2;
319
0
      case 2: {
320
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
321
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
322
0
          int value;
323
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
324
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
325
0
                 input, &value)));
326
0
          if (::proto::CompressType_IsValid(value)) {
327
0
            set_optional_enum(static_cast< ::proto::CompressType >(value));
328
0
          } else {
329
0
            mutable_unknown_fields()->AddVarint(
330
0
                2, static_cast< ::google::protobuf::uint64>(value));
331
0
          }
332
0
        } else {
333
0
          goto handle_unusual;
334
0
        }
335
0
        break;
336
0
      }
337
338
      // repeated .proto.CompressType repeated_enum = 3;
339
0
      case 3: {
340
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
341
0
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
342
0
          int value;
343
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
344
0
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
345
0
                 input, &value)));
346
0
          if (::proto::CompressType_IsValid(value)) {
347
0
            add_repeated_enum(static_cast< ::proto::CompressType >(value));
348
0
          } else {
349
0
            mutable_unknown_fields()->AddVarint(
350
0
                3, static_cast< ::google::protobuf::uint64>(value));
351
0
          }
352
0
        } else if (
353
0
            static_cast< ::google::protobuf::uint8>(tag) ==
354
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
355
0
          DO_((::google::protobuf::internal::WireFormat::ReadPackedEnumPreserveUnknowns(
356
0
                 input,
357
0
                 3,
358
0
                 ::proto::CompressType_IsValid,
359
0
                 mutable_unknown_fields(),
360
0
                 this->mutable_repeated_enum())));
361
0
        } else {
362
0
          goto handle_unusual;
363
0
        }
364
0
        break;
365
0
      }
366
367
      // required uint64 required_uint64 = 4;
368
0
      case 4: {
369
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
370
0
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
371
0
          set_has_required_uint64();
372
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
373
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
374
0
                 input, &required_uint64_)));
375
0
        } else {
376
0
          goto handle_unusual;
377
0
        }
378
0
        break;
379
0
      }
380
381
      // optional uint64 optional_uint64 = 5;
382
0
      case 5: {
383
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
384
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
385
0
          set_has_optional_uint64();
386
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
387
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
388
0
                 input, &optional_uint64_)));
389
0
        } else {
390
0
          goto handle_unusual;
391
0
        }
392
0
        break;
393
0
      }
394
395
      // repeated uint64 repeated_uint64 = 6;
396
0
      case 6: {
397
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
398
0
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
399
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
400
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
401
0
                 1, 48u, input, this->mutable_repeated_uint64())));
402
0
        } else if (
403
0
            static_cast< ::google::protobuf::uint8>(tag) ==
404
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
405
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
406
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
407
0
                 input, this->mutable_repeated_uint64())));
408
0
        } else {
409
0
          goto handle_unusual;
410
0
        }
411
0
        break;
412
0
      }
413
414
      // required string required_string = 7;
415
0
      case 7: {
416
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
417
0
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
418
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
419
0
                input, this->mutable_required_string()));
420
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
421
0
            this->required_string().data(), static_cast<int>(this->required_string().length()),
422
0
            ::google::protobuf::internal::WireFormat::PARSE,
423
0
            "proto.Misc.required_string");
424
0
        } else {
425
0
          goto handle_unusual;
426
0
        }
427
0
        break;
428
0
      }
429
430
      // optional string optional_string = 8;
431
0
      case 8: {
432
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
433
0
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
434
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
435
0
                input, this->mutable_optional_string()));
436
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
437
0
            this->optional_string().data(), static_cast<int>(this->optional_string().length()),
438
0
            ::google::protobuf::internal::WireFormat::PARSE,
439
0
            "proto.Misc.optional_string");
440
0
        } else {
441
0
          goto handle_unusual;
442
0
        }
443
0
        break;
444
0
      }
445
446
      // repeated string repeated_string = 9;
447
0
      case 9: {
448
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
449
0
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
450
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
451
0
                input, this->add_repeated_string()));
452
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
453
0
            this->repeated_string(this->repeated_string_size() - 1).data(),
454
0
            static_cast<int>(this->repeated_string(this->repeated_string_size() - 1).length()),
455
0
            ::google::protobuf::internal::WireFormat::PARSE,
456
0
            "proto.Misc.repeated_string");
457
0
        } else {
458
0
          goto handle_unusual;
459
0
        }
460
0
        break;
461
0
      }
462
463
      // required bool required_bool = 10;
464
0
      case 10: {
465
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
466
0
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
467
0
          set_has_required_bool();
468
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
469
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
470
0
                 input, &required_bool_)));
471
0
        } else {
472
0
          goto handle_unusual;
473
0
        }
474
0
        break;
475
0
      }
476
477
      // optional bool optional_bool = 11;
478
0
      case 11: {
479
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
480
0
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
481
0
          set_has_optional_bool();
482
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
483
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
484
0
                 input, &optional_bool_)));
485
0
        } else {
486
0
          goto handle_unusual;
487
0
        }
488
0
        break;
489
0
      }
490
491
      // repeated bool repeated_bool = 12;
492
0
      case 12: {
493
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
494
0
            static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
495
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
496
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
497
0
                 1, 96u, input, this->mutable_repeated_bool())));
498
0
        } else if (
499
0
            static_cast< ::google::protobuf::uint8>(tag) ==
500
0
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
501
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
502
0
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
503
0
                 input, this->mutable_repeated_bool())));
504
0
        } else {
505
0
          goto handle_unusual;
506
0
        }
507
0
        break;
508
0
      }
509
510
      // required int32 required_int32 = 13;
511
0
      case 13: {
512
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
513
0
            static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) {
514
0
          set_has_required_int32();
515
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
516
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
517
0
                 input, &required_int32_)));
518
0
        } else {
519
0
          goto handle_unusual;
520
0
        }
521
0
        break;
522
0
      }
523
524
      // optional int32 optional_int32 = 14;
525
0
      case 14: {
526
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
527
0
            static_cast< ::google::protobuf::uint8>(112u /* 112 & 0xFF */)) {
528
0
          set_has_optional_int32();
529
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
530
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
531
0
                 input, &optional_int32_)));
532
0
        } else {
533
0
          goto handle_unusual;
534
0
        }
535
0
        break;
536
0
      }
537
538
      // repeated int32 repeated_int32 = 15;
539
0
      case 15: {
540
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
541
0
            static_cast< ::google::protobuf::uint8>(120u /* 120 & 0xFF */)) {
542
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
543
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
544
0
                 1, 120u, input, this->mutable_repeated_int32())));
545
0
        } else if (
546
0
            static_cast< ::google::protobuf::uint8>(tag) ==
547
0
            static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) {
548
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
549
0
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
550
0
                 input, this->mutable_repeated_int32())));
551
0
        } else {
552
0
          goto handle_unusual;
553
0
        }
554
0
        break;
555
0
      }
556
557
0
      default: {
558
0
      handle_unusual:
559
0
        if (tag == 0) {
560
0
          goto success;
561
0
        }
562
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
563
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
564
0
        break;
565
0
      }
566
0
    }
567
0
  }
568
0
success:
569
  // @@protoc_insertion_point(parse_success:proto.Misc)
570
0
  return true;
571
0
failure:
572
  // @@protoc_insertion_point(parse_failure:proto.Misc)
573
0
  return false;
574
0
#undef DO_
575
0
}
576
577
void Misc::SerializeWithCachedSizes(
578
0
    ::google::protobuf::io::CodedOutputStream* output) const {
579
  // @@protoc_insertion_point(serialize_start:proto.Misc)
580
0
  ::google::protobuf::uint32 cached_has_bits = 0;
581
0
  (void) cached_has_bits;
582
583
0
  cached_has_bits = _has_bits_[0];
584
  // required .proto.CompressType required_enum = 1;
585
0
  if (cached_has_bits & 0x00000004u) {
586
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
587
0
      1, this->required_enum(), output);
588
0
  }
589
590
  // optional .proto.CompressType optional_enum = 2;
591
0
  if (cached_has_bits & 0x00000008u) {
592
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
593
0
      2, this->optional_enum(), output);
594
0
  }
595
596
  // repeated .proto.CompressType repeated_enum = 3;
597
0
  for (int i = 0, n = this->repeated_enum_size(); i < n; i++) {
598
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
599
0
      3, this->repeated_enum(i), output);
600
0
  }
601
602
  // required uint64 required_uint64 = 4;
603
0
  if (cached_has_bits & 0x00000010u) {
604
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->required_uint64(), output);
605
0
  }
606
607
  // optional uint64 optional_uint64 = 5;
608
0
  if (cached_has_bits & 0x00000020u) {
609
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->optional_uint64(), output);
610
0
  }
611
612
  // repeated uint64 repeated_uint64 = 6;
613
0
  for (int i = 0, n = this->repeated_uint64_size(); i < n; i++) {
614
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(
615
0
      6, this->repeated_uint64(i), output);
616
0
  }
617
618
  // required string required_string = 7;
619
0
  if (cached_has_bits & 0x00000001u) {
620
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
621
0
      this->required_string().data(), static_cast<int>(this->required_string().length()),
622
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
623
0
      "proto.Misc.required_string");
624
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
625
0
      7, this->required_string(), output);
626
0
  }
627
628
  // optional string optional_string = 8;
629
0
  if (cached_has_bits & 0x00000002u) {
630
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
631
0
      this->optional_string().data(), static_cast<int>(this->optional_string().length()),
632
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
633
0
      "proto.Misc.optional_string");
634
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
635
0
      8, this->optional_string(), output);
636
0
  }
637
638
  // repeated string repeated_string = 9;
639
0
  for (int i = 0, n = this->repeated_string_size(); i < n; i++) {
640
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
641
0
      this->repeated_string(i).data(), static_cast<int>(this->repeated_string(i).length()),
642
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
643
0
      "proto.Misc.repeated_string");
644
0
    ::google::protobuf::internal::WireFormatLite::WriteString(
645
0
      9, this->repeated_string(i), output);
646
0
  }
647
648
  // required bool required_bool = 10;
649
0
  if (cached_has_bits & 0x00000040u) {
650
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->required_bool(), output);
651
0
  }
652
653
  // optional bool optional_bool = 11;
654
0
  if (cached_has_bits & 0x00000080u) {
655
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(11, this->optional_bool(), output);
656
0
  }
657
658
  // repeated bool repeated_bool = 12;
659
0
  for (int i = 0, n = this->repeated_bool_size(); i < n; i++) {
660
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(
661
0
      12, this->repeated_bool(i), output);
662
0
  }
663
664
  // required int32 required_int32 = 13;
665
0
  if (cached_has_bits & 0x00000100u) {
666
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->required_int32(), output);
667
0
  }
668
669
  // optional int32 optional_int32 = 14;
670
0
  if (cached_has_bits & 0x00000200u) {
671
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(14, this->optional_int32(), output);
672
0
  }
673
674
  // repeated int32 repeated_int32 = 15;
675
0
  for (int i = 0, n = this->repeated_int32_size(); i < n; i++) {
676
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(
677
0
      15, this->repeated_int32(i), output);
678
0
  }
679
680
0
  if (_internal_metadata_.have_unknown_fields()) {
681
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
682
0
        _internal_metadata_.unknown_fields(), output);
683
0
  }
684
  // @@protoc_insertion_point(serialize_end:proto.Misc)
685
0
}
686
687
::google::protobuf::uint8* Misc::InternalSerializeWithCachedSizesToArray(
688
0
    bool deterministic, ::google::protobuf::uint8* target) const {
689
0
  (void)deterministic; // Unused
690
  // @@protoc_insertion_point(serialize_to_array_start:proto.Misc)
691
0
  ::google::protobuf::uint32 cached_has_bits = 0;
692
0
  (void) cached_has_bits;
693
694
0
  cached_has_bits = _has_bits_[0];
695
  // required .proto.CompressType required_enum = 1;
696
0
  if (cached_has_bits & 0x00000004u) {
697
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
698
0
      1, this->required_enum(), target);
699
0
  }
700
701
  // optional .proto.CompressType optional_enum = 2;
702
0
  if (cached_has_bits & 0x00000008u) {
703
0
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
704
0
      2, this->optional_enum(), target);
705
0
  }
706
707
  // repeated .proto.CompressType repeated_enum = 3;
708
0
  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
709
0
    3, this->repeated_enum_, target);
710
711
  // required uint64 required_uint64 = 4;
712
0
  if (cached_has_bits & 0x00000010u) {
713
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->required_uint64(), target);
714
0
  }
715
716
  // optional uint64 optional_uint64 = 5;
717
0
  if (cached_has_bits & 0x00000020u) {
718
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->optional_uint64(), target);
719
0
  }
720
721
  // repeated uint64 repeated_uint64 = 6;
722
0
  target = ::google::protobuf::internal::WireFormatLite::
723
0
    WriteUInt64ToArray(6, this->repeated_uint64_, target);
724
725
  // required string required_string = 7;
726
0
  if (cached_has_bits & 0x00000001u) {
727
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
728
0
      this->required_string().data(), static_cast<int>(this->required_string().length()),
729
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
730
0
      "proto.Misc.required_string");
731
0
    target =
732
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
733
0
        7, this->required_string(), target);
734
0
  }
735
736
  // optional string optional_string = 8;
737
0
  if (cached_has_bits & 0x00000002u) {
738
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
739
0
      this->optional_string().data(), static_cast<int>(this->optional_string().length()),
740
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
741
0
      "proto.Misc.optional_string");
742
0
    target =
743
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
744
0
        8, this->optional_string(), target);
745
0
  }
746
747
  // repeated string repeated_string = 9;
748
0
  for (int i = 0, n = this->repeated_string_size(); i < n; i++) {
749
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
750
0
      this->repeated_string(i).data(), static_cast<int>(this->repeated_string(i).length()),
751
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
752
0
      "proto.Misc.repeated_string");
753
0
    target = ::google::protobuf::internal::WireFormatLite::
754
0
      WriteStringToArray(9, this->repeated_string(i), target);
755
0
  }
756
757
  // required bool required_bool = 10;
758
0
  if (cached_has_bits & 0x00000040u) {
759
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->required_bool(), target);
760
0
  }
761
762
  // optional bool optional_bool = 11;
763
0
  if (cached_has_bits & 0x00000080u) {
764
0
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(11, this->optional_bool(), target);
765
0
  }
766
767
  // repeated bool repeated_bool = 12;
768
0
  target = ::google::protobuf::internal::WireFormatLite::
769
0
    WriteBoolToArray(12, this->repeated_bool_, target);
770
771
  // required int32 required_int32 = 13;
772
0
  if (cached_has_bits & 0x00000100u) {
773
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->required_int32(), target);
774
0
  }
775
776
  // optional int32 optional_int32 = 14;
777
0
  if (cached_has_bits & 0x00000200u) {
778
0
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(14, this->optional_int32(), target);
779
0
  }
780
781
  // repeated int32 repeated_int32 = 15;
782
0
  target = ::google::protobuf::internal::WireFormatLite::
783
0
    WriteInt32ToArray(15, this->repeated_int32_, target);
784
785
0
  if (_internal_metadata_.have_unknown_fields()) {
786
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
787
0
        _internal_metadata_.unknown_fields(), target);
788
0
  }
789
  // @@protoc_insertion_point(serialize_to_array_end:proto.Misc)
790
0
  return target;
791
0
}
792
793
0
size_t Misc::RequiredFieldsByteSizeFallback() const {
794
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:proto.Misc)
795
0
  size_t total_size = 0;
796
797
0
  if (has_required_string()) {
798
    // required string required_string = 7;
799
0
    total_size += 1 +
800
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
801
0
        this->required_string());
802
0
  }
803
804
0
  if (has_required_enum()) {
805
    // required .proto.CompressType required_enum = 1;
806
0
    total_size += 1 +
807
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->required_enum());
808
0
  }
809
810
0
  if (has_required_uint64()) {
811
    // required uint64 required_uint64 = 4;
812
0
    total_size += 1 +
813
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
814
0
        this->required_uint64());
815
0
  }
816
817
0
  if (has_required_bool()) {
818
    // required bool required_bool = 10;
819
0
    total_size += 1 + 1;
820
0
  }
821
822
0
  if (has_required_int32()) {
823
    // required int32 required_int32 = 13;
824
0
    total_size += 1 +
825
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
826
0
        this->required_int32());
827
0
  }
828
829
0
  return total_size;
830
0
}
831
0
size_t Misc::ByteSizeLong() const {
832
// @@protoc_insertion_point(message_byte_size_start:proto.Misc)
833
0
  size_t total_size = 0;
834
835
0
  if (_internal_metadata_.have_unknown_fields()) {
836
0
    total_size +=
837
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
838
0
        _internal_metadata_.unknown_fields());
839
0
  }
840
0
  if (((_has_bits_[0] & 0x00000155) ^ 0x00000155) == 0) {  // All required fields are present.
841
    // required string required_string = 7;
842
0
    total_size += 1 +
843
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
844
0
        this->required_string());
845
846
    // required .proto.CompressType required_enum = 1;
847
0
    total_size += 1 +
848
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->required_enum());
849
850
    // required uint64 required_uint64 = 4;
851
0
    total_size += 1 +
852
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
853
0
        this->required_uint64());
854
855
    // required bool required_bool = 10;
856
0
    total_size += 1 + 1;
857
858
    // required int32 required_int32 = 13;
859
0
    total_size += 1 +
860
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
861
0
        this->required_int32());
862
863
0
  } else {
864
0
    total_size += RequiredFieldsByteSizeFallback();
865
0
  }
866
  // repeated .proto.CompressType repeated_enum = 3;
867
0
  {
868
0
    size_t data_size = 0;
869
0
    unsigned int count = static_cast<unsigned int>(this->repeated_enum_size());for (unsigned int i = 0; i < count; i++) {
870
0
      data_size += ::google::protobuf::internal::WireFormatLite::EnumSize(
871
0
        this->repeated_enum(static_cast<int>(i)));
872
0
    }
873
0
    total_size += (1UL * count) + data_size;
874
0
  }
875
876
  // repeated uint64 repeated_uint64 = 6;
877
0
  {
878
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
879
0
      UInt64Size(this->repeated_uint64_);
880
0
    total_size += 1 *
881
0
                  ::google::protobuf::internal::FromIntSize(this->repeated_uint64_size());
882
0
    total_size += data_size;
883
0
  }
884
885
  // repeated string repeated_string = 9;
886
0
  total_size += 1 *
887
0
      ::google::protobuf::internal::FromIntSize(this->repeated_string_size());
888
0
  for (int i = 0, n = this->repeated_string_size(); i < n; i++) {
889
0
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
890
0
      this->repeated_string(i));
891
0
  }
892
893
  // repeated bool repeated_bool = 12;
894
0
  {
895
0
    unsigned int count = static_cast<unsigned int>(this->repeated_bool_size());
896
0
    size_t data_size = 1UL * count;
897
0
    total_size += 1 *
898
0
                  ::google::protobuf::internal::FromIntSize(this->repeated_bool_size());
899
0
    total_size += data_size;
900
0
  }
901
902
  // repeated int32 repeated_int32 = 15;
903
0
  {
904
0
    size_t data_size = ::google::protobuf::internal::WireFormatLite::
905
0
      Int32Size(this->repeated_int32_);
906
0
    total_size += 1 *
907
0
                  ::google::protobuf::internal::FromIntSize(this->repeated_int32_size());
908
0
    total_size += data_size;
909
0
  }
910
911
  // optional string optional_string = 8;
912
0
  if (has_optional_string()) {
913
0
    total_size += 1 +
914
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
915
0
        this->optional_string());
916
0
  }
917
918
  // optional .proto.CompressType optional_enum = 2;
919
0
  if (has_optional_enum()) {
920
0
    total_size += 1 +
921
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->optional_enum());
922
0
  }
923
924
  // optional uint64 optional_uint64 = 5;
925
0
  if (has_optional_uint64()) {
926
0
    total_size += 1 +
927
0
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
928
0
        this->optional_uint64());
929
0
  }
930
931
  // optional bool optional_bool = 11;
932
0
  if (has_optional_bool()) {
933
0
    total_size += 1 + 1;
934
0
  }
935
936
  // optional int32 optional_int32 = 14;
937
0
  if (has_optional_int32()) {
938
0
    total_size += 1 +
939
0
      ::google::protobuf::internal::WireFormatLite::Int32Size(
940
0
        this->optional_int32());
941
0
  }
942
943
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
944
0
  SetCachedSize(cached_size);
945
0
  return total_size;
946
0
}
947
948
0
void Misc::MergeFrom(const ::google::protobuf::Message& from) {
949
// @@protoc_insertion_point(generalized_merge_from_start:proto.Misc)
950
0
  GOOGLE_DCHECK_NE(&from, this);
951
0
  const Misc* source =
952
0
      ::google::protobuf::internal::DynamicCastToGenerated<const Misc>(
953
0
          &from);
954
0
  if (source == NULL) {
955
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:proto.Misc)
956
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
957
0
  } else {
958
  // @@protoc_insertion_point(generalized_merge_from_cast_success:proto.Misc)
959
0
    MergeFrom(*source);
960
0
  }
961
0
}
962
963
0
void Misc::MergeFrom(const Misc& from) {
964
// @@protoc_insertion_point(class_specific_merge_from_start:proto.Misc)
965
0
  GOOGLE_DCHECK_NE(&from, this);
966
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
967
0
  ::google::protobuf::uint32 cached_has_bits = 0;
968
0
  (void) cached_has_bits;
969
970
0
  repeated_enum_.MergeFrom(from.repeated_enum_);
971
0
  repeated_uint64_.MergeFrom(from.repeated_uint64_);
972
0
  repeated_string_.MergeFrom(from.repeated_string_);
973
0
  repeated_bool_.MergeFrom(from.repeated_bool_);
974
0
  repeated_int32_.MergeFrom(from.repeated_int32_);
975
0
  cached_has_bits = from._has_bits_[0];
976
0
  if (cached_has_bits & 255u) {
977
0
    if (cached_has_bits & 0x00000001u) {
978
0
      set_has_required_string();
979
0
      required_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.required_string_);
980
0
    }
981
0
    if (cached_has_bits & 0x00000002u) {
982
0
      set_has_optional_string();
983
0
      optional_string_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.optional_string_);
984
0
    }
985
0
    if (cached_has_bits & 0x00000004u) {
986
0
      required_enum_ = from.required_enum_;
987
0
    }
988
0
    if (cached_has_bits & 0x00000008u) {
989
0
      optional_enum_ = from.optional_enum_;
990
0
    }
991
0
    if (cached_has_bits & 0x00000010u) {
992
0
      required_uint64_ = from.required_uint64_;
993
0
    }
994
0
    if (cached_has_bits & 0x00000020u) {
995
0
      optional_uint64_ = from.optional_uint64_;
996
0
    }
997
0
    if (cached_has_bits & 0x00000040u) {
998
0
      required_bool_ = from.required_bool_;
999
0
    }
1000
0
    if (cached_has_bits & 0x00000080u) {
1001
0
      optional_bool_ = from.optional_bool_;
1002
0
    }
1003
0
    _has_bits_[0] |= cached_has_bits;
1004
0
  }
1005
0
  if (cached_has_bits & 768u) {
1006
0
    if (cached_has_bits & 0x00000100u) {
1007
0
      required_int32_ = from.required_int32_;
1008
0
    }
1009
0
    if (cached_has_bits & 0x00000200u) {
1010
0
      optional_int32_ = from.optional_int32_;
1011
0
    }
1012
0
    _has_bits_[0] |= cached_has_bits;
1013
0
  }
1014
0
}
1015
1016
0
void Misc::CopyFrom(const ::google::protobuf::Message& from) {
1017
// @@protoc_insertion_point(generalized_copy_from_start:proto.Misc)
1018
0
  if (&from == this) return;
1019
0
  Clear();
1020
0
  MergeFrom(from);
1021
0
}
1022
1023
0
void Misc::CopyFrom(const Misc& from) {
1024
// @@protoc_insertion_point(class_specific_copy_from_start:proto.Misc)
1025
0
  if (&from == this) return;
1026
0
  Clear();
1027
0
  MergeFrom(from);
1028
0
}
1029
1030
0
bool Misc::IsInitialized() const {
1031
0
  if ((_has_bits_[0] & 0x00000155) != 0x00000155) return false;
1032
0
  return true;
1033
0
}
1034
1035
0
void Misc::Swap(Misc* other) {
1036
0
  if (other == this) return;
1037
0
  InternalSwap(other);
1038
0
}
1039
0
void Misc::InternalSwap(Misc* other) {
1040
0
  using std::swap;
1041
0
  repeated_enum_.InternalSwap(&other->repeated_enum_);
1042
0
  repeated_uint64_.InternalSwap(&other->repeated_uint64_);
1043
0
  repeated_string_.InternalSwap(CastToBase(&other->repeated_string_));
1044
0
  repeated_bool_.InternalSwap(&other->repeated_bool_);
1045
0
  repeated_int32_.InternalSwap(&other->repeated_int32_);
1046
0
  required_string_.Swap(&other->required_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1047
0
    GetArenaNoVirtual());
1048
0
  optional_string_.Swap(&other->optional_string_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1049
0
    GetArenaNoVirtual());
1050
0
  swap(required_enum_, other->required_enum_);
1051
0
  swap(optional_enum_, other->optional_enum_);
1052
0
  swap(required_uint64_, other->required_uint64_);
1053
0
  swap(optional_uint64_, other->optional_uint64_);
1054
0
  swap(required_bool_, other->required_bool_);
1055
0
  swap(optional_bool_, other->optional_bool_);
1056
0
  swap(required_int32_, other->required_int32_);
1057
0
  swap(optional_int32_, other->optional_int32_);
1058
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1059
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1060
0
}
1061
1062
0
::google::protobuf::Metadata Misc::GetMetadata() const {
1063
0
  protobuf_iobuf_2eproto::protobuf_AssignDescriptorsOnce();
1064
0
  return ::protobuf_iobuf_2eproto::file_level_metadata[kIndexInFileMessages];
1065
0
}
1066
1067
1068
// @@protoc_insertion_point(namespace_scope)
1069
}  // namespace proto
1070
namespace google {
1071
namespace protobuf {
1072
0
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::proto::Misc* Arena::CreateMaybeMessage< ::proto::Misc >(Arena* arena) {
1073
0
  return Arena::CreateInternal< ::proto::Misc >(arena);
1074
0
}
1075
}  // namespace protobuf
1076
}  // namespace google
1077
1078
// @@protoc_insertion_point(global_scope)