| 338 | } |
| 339 | |
| 340 | bool TestSlaveMessage::MergePartialFromCodedStream( |
| 341 | ::google::protobuf::io::CodedInputStream* input) { |
| 342 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 343 | ::google::protobuf::uint32 tag; |
| 344 | // @@protoc_insertion_point(parse_start:mesos.test.TestSlaveMessage) |
| 345 | for (;;) { |
| 346 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
| 347 | tag = p.first; |
| 348 | if (!p.second) goto handle_unusual; |
| 349 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
| 350 | // optional bool some_slave_field = 1; |
| 351 | case 1: { |
| 352 | if (static_cast< ::google::protobuf::uint8>(tag) == |
| 353 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
| 354 | set_has_some_slave_field(); |
| 355 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 356 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 357 | input, &some_slave_field_))); |
| 358 | } else { |
| 359 | goto handle_unusual; |
| 360 | } |
| 361 | break; |
| 362 | } |
| 363 | |
| 364 | // repeated bool some_slave_fields = 2; |
| 365 | case 2: { |
| 366 | if (static_cast< ::google::protobuf::uint8>(tag) == |
| 367 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
| 368 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
| 369 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 370 | 1, 16u, input, this->mutable_some_slave_fields()))); |
| 371 | } else if ( |
| 372 | static_cast< ::google::protobuf::uint8>(tag) == |
| 373 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
| 374 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
| 375 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
| 376 | input, this->mutable_some_slave_fields()))); |
| 377 | } else { |
| 378 | goto handle_unusual; |
| 379 | } |
| 380 | break; |
| 381 | } |
| 382 | |
| 383 | // map<bool, bool> some_slave_map = 3; |
| 384 | case 3: { |
| 385 | if (static_cast< ::google::protobuf::uint8>(tag) == |
| 386 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
| 387 | TestSlaveMessage_SomeSlaveMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< |
| 388 | TestSlaveMessage_SomeSlaveMapEntry_DoNotUse, |
| 389 | bool, bool, |
| 390 | ::google::protobuf::internal::WireFormatLite::TYPE_BOOL, |
| 391 | ::google::protobuf::internal::WireFormatLite::TYPE_BOOL, |
| 392 | 0 >, |
| 393 | ::google::protobuf::Map< bool, bool > > parser(&some_slave_map_); |
| 394 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
| 395 | input, &parser)); |
| 396 | } else { |
| 397 | goto handle_unusual; |
nothing calls this directly
no test coverage detected