diff options
| author | manuel <manuel@mausz.at> | 2011-04-09 17:13:14 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2011-04-09 17:13:14 +0200 |
| commit | d5d691acfb99257d0f02d296bc8ba8522cce5bda (patch) | |
| tree | 323172042ab7e31ffa72bb65ede6263b658cdf4c /pacman-c++/pacman.pb.cc | |
| parent | cd1b32f87128de8cc948d4f6cfa1da67291c970b (diff) | |
| download | foop-d5d691acfb99257d0f02d296bc8ba8522cce5bda.tar.gz foop-d5d691acfb99257d0f02d296bc8ba8522cce5bda.tar.bz2 foop-d5d691acfb99257d0f02d296bc8ba8522cce5bda.zip | |
integrate protobuf in qmake
Diffstat (limited to 'pacman-c++/pacman.pb.cc')
| -rw-r--r-- | pacman-c++/pacman.pb.cc | 552 |
1 files changed, 0 insertions, 552 deletions
diff --git a/pacman-c++/pacman.pb.cc b/pacman-c++/pacman.pb.cc deleted file mode 100644 index 8777326..0000000 --- a/pacman-c++/pacman.pb.cc +++ /dev/null | |||
| @@ -1,552 +0,0 @@ | |||
| 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! | ||
| 2 | |||
| 3 | #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION | ||
| 4 | #include "pacman.pb.h" | ||
| 5 | |||
| 6 | #include <algorithm> | ||
| 7 | |||
| 8 | #include <google/protobuf/stubs/once.h> | ||
| 9 | #include <google/protobuf/io/coded_stream.h> | ||
| 10 | #include <google/protobuf/wire_format_lite_inl.h> | ||
| 11 | #include <google/protobuf/descriptor.h> | ||
| 12 | #include <google/protobuf/reflection_ops.h> | ||
| 13 | #include <google/protobuf/wire_format.h> | ||
| 14 | // @@protoc_insertion_point(includes) | ||
| 15 | |||
| 16 | namespace { | ||
| 17 | |||
| 18 | const ::google::protobuf::Descriptor* KeyPressUpdate_descriptor_ = NULL; | ||
| 19 | const ::google::protobuf::internal::GeneratedMessageReflection* | ||
| 20 | KeyPressUpdate_reflection_ = NULL; | ||
| 21 | const ::google::protobuf::Descriptor* MapUpdate_descriptor_ = NULL; | ||
| 22 | const ::google::protobuf::internal::GeneratedMessageReflection* | ||
| 23 | MapUpdate_reflection_ = NULL; | ||
| 24 | |||
| 25 | } // namespace | ||
| 26 | |||
| 27 | |||
| 28 | void protobuf_AssignDesc_pacman_2eproto() { | ||
| 29 | protobuf_AddDesc_pacman_2eproto(); | ||
| 30 | const ::google::protobuf::FileDescriptor* file = | ||
| 31 | ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( | ||
| 32 | "pacman.proto"); | ||
| 33 | GOOGLE_CHECK(file != NULL); | ||
| 34 | KeyPressUpdate_descriptor_ = file->message_type(0); | ||
| 35 | static const int KeyPressUpdate_offsets_[1] = { | ||
| 36 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyPressUpdate, newkey_), | ||
| 37 | }; | ||
| 38 | KeyPressUpdate_reflection_ = | ||
| 39 | new ::google::protobuf::internal::GeneratedMessageReflection( | ||
| 40 | KeyPressUpdate_descriptor_, | ||
| 41 | KeyPressUpdate::default_instance_, | ||
| 42 | KeyPressUpdate_offsets_, | ||
| 43 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyPressUpdate, _has_bits_[0]), | ||
| 44 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(KeyPressUpdate, _unknown_fields_), | ||
| 45 | -1, | ||
| 46 | ::google::protobuf::DescriptorPool::generated_pool(), | ||
| 47 | ::google::protobuf::MessageFactory::generated_factory(), | ||
| 48 | sizeof(KeyPressUpdate)); | ||
| 49 | MapUpdate_descriptor_ = file->message_type(1); | ||
| 50 | static const int MapUpdate_offsets_[1] = { | ||
| 51 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MapUpdate, field_), | ||
| 52 | }; | ||
| 53 | MapUpdate_reflection_ = | ||
| 54 | new ::google::protobuf::internal::GeneratedMessageReflection( | ||
| 55 | MapUpdate_descriptor_, | ||
| 56 | MapUpdate::default_instance_, | ||
| 57 | MapUpdate_offsets_, | ||
| 58 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MapUpdate, _has_bits_[0]), | ||
| 59 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MapUpdate, _unknown_fields_), | ||
| 60 | -1, | ||
| 61 | ::google::protobuf::DescriptorPool::generated_pool(), | ||
| 62 | ::google::protobuf::MessageFactory::generated_factory(), | ||
| 63 | sizeof(MapUpdate)); | ||
| 64 | } | ||
| 65 | |||
| 66 | namespace { | ||
| 67 | |||
| 68 | GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); | ||
| 69 | inline void protobuf_AssignDescriptorsOnce() { | ||
| 70 | ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, | ||
| 71 | &protobuf_AssignDesc_pacman_2eproto); | ||
| 72 | } | ||
| 73 | |||
| 74 | void protobuf_RegisterTypes(const ::std::string&) { | ||
| 75 | protobuf_AssignDescriptorsOnce(); | ||
| 76 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( | ||
| 77 | KeyPressUpdate_descriptor_, &KeyPressUpdate::default_instance()); | ||
| 78 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( | ||
| 79 | MapUpdate_descriptor_, &MapUpdate::default_instance()); | ||
| 80 | } | ||
| 81 | |||
| 82 | } // namespace | ||
| 83 | |||
| 84 | void protobuf_ShutdownFile_pacman_2eproto() { | ||
| 85 | delete KeyPressUpdate::default_instance_; | ||
| 86 | delete KeyPressUpdate_reflection_; | ||
| 87 | delete MapUpdate::default_instance_; | ||
| 88 | delete MapUpdate_reflection_; | ||
| 89 | } | ||
| 90 | |||
| 91 | void protobuf_AddDesc_pacman_2eproto() { | ||
| 92 | static bool already_here = false; | ||
| 93 | if (already_here) return; | ||
| 94 | already_here = true; | ||
| 95 | GOOGLE_PROTOBUF_VERIFY_VERSION; | ||
| 96 | |||
| 97 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | ||
| 98 | "\n\014pacman.proto\" \n\016KeyPressUpdate\022\016\n\006newK" | ||
| 99 | "ey\030\001 \002(\r\"\036\n\tMapUpdate\022\021\n\005field\030\001 \003(\rB\002\020\001", 80); | ||
| 100 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | ||
| 101 | "pacman.proto", &protobuf_RegisterTypes); | ||
| 102 | KeyPressUpdate::default_instance_ = new KeyPressUpdate(); | ||
| 103 | MapUpdate::default_instance_ = new MapUpdate(); | ||
| 104 | KeyPressUpdate::default_instance_->InitAsDefaultInstance(); | ||
| 105 | MapUpdate::default_instance_->InitAsDefaultInstance(); | ||
| 106 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_pacman_2eproto); | ||
| 107 | } | ||
| 108 | |||
| 109 | // Force AddDescriptors() to be called at static initialization time. | ||
| 110 | struct StaticDescriptorInitializer_pacman_2eproto { | ||
| 111 | StaticDescriptorInitializer_pacman_2eproto() { | ||
| 112 | protobuf_AddDesc_pacman_2eproto(); | ||
| 113 | } | ||
| 114 | } static_descriptor_initializer_pacman_2eproto_; | ||
| 115 | |||
| 116 | |||
| 117 | // =================================================================== | ||
| 118 | |||
| 119 | #ifndef _MSC_VER | ||
| 120 | const int KeyPressUpdate::kNewKeyFieldNumber; | ||
| 121 | #endif // !_MSC_VER | ||
| 122 | |||
| 123 | KeyPressUpdate::KeyPressUpdate() | ||
| 124 | : ::google::protobuf::Message() { | ||
| 125 | SharedCtor(); | ||
| 126 | } | ||
| 127 | |||
| 128 | void KeyPressUpdate::InitAsDefaultInstance() { | ||
| 129 | } | ||
| 130 | |||
| 131 | KeyPressUpdate::KeyPressUpdate(const KeyPressUpdate& from) | ||
| 132 | : ::google::protobuf::Message() { | ||
| 133 | SharedCtor(); | ||
| 134 | MergeFrom(from); | ||
| 135 | } | ||
| 136 | |||
| 137 | void KeyPressUpdate::SharedCtor() { | ||
| 138 | _cached_size_ = 0; | ||
| 139 | newkey_ = 0u; | ||
| 140 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); | ||
| 141 | } | ||
| 142 | |||
| 143 | KeyPressUpdate::~KeyPressUpdate() { | ||
| 144 | SharedDtor(); | ||
| 145 | } | ||
| 146 | |||
| 147 | void KeyPressUpdate::SharedDtor() { | ||
| 148 | if (this != default_instance_) { | ||
| 149 | } | ||
| 150 | } | ||
| 151 | |||
| 152 | void KeyPressUpdate::SetCachedSize(int size) const { | ||
| 153 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | ||
| 154 | _cached_size_ = size; | ||
| 155 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); | ||
| 156 | } | ||
| 157 | const ::google::protobuf::Descriptor* KeyPressUpdate::descriptor() { | ||
| 158 | protobuf_AssignDescriptorsOnce(); | ||
| 159 | return KeyPressUpdate_descriptor_; | ||
| 160 | } | ||
| 161 | |||
| 162 | const KeyPressUpdate& KeyPressUpdate::default_instance() { | ||
| 163 | if (default_instance_ == NULL) protobuf_AddDesc_pacman_2eproto(); return *default_instance_; | ||
| 164 | } | ||
| 165 | |||
| 166 | KeyPressUpdate* KeyPressUpdate::default_instance_ = NULL; | ||
| 167 | |||
| 168 | KeyPressUpdate* KeyPressUpdate::New() const { | ||
| 169 | return new KeyPressUpdate; | ||
| 170 | } | ||
| 171 | |||
| 172 | void KeyPressUpdate::Clear() { | ||
| 173 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | ||
| 174 | newkey_ = 0u; | ||
| 175 | } | ||
| 176 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); | ||
| 177 | mutable_unknown_fields()->Clear(); | ||
| 178 | } | ||
| 179 | |||
| 180 | bool KeyPressUpdate::MergePartialFromCodedStream( | ||
| 181 | ::google::protobuf::io::CodedInputStream* input) { | ||
| 182 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | ||
| 183 | ::google::protobuf::uint32 tag; | ||
| 184 | while ((tag = input->ReadTag()) != 0) { | ||
| 185 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { | ||
| 186 | // required uint32 newKey = 1; | ||
| 187 | case 1: { | ||
| 188 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | ||
| 189 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { | ||
| 190 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | ||
| 191 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( | ||
| 192 | input, &newkey_))); | ||
| 193 | set_has_newkey(); | ||
| 194 | } else { | ||
| 195 | goto handle_uninterpreted; | ||
| 196 | } | ||
| 197 | if (input->ExpectAtEnd()) return true; | ||
| 198 | break; | ||
| 199 | } | ||
| 200 | |||
| 201 | default: { | ||
| 202 | handle_uninterpreted: | ||
| 203 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | ||
| 204 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | ||
| 205 | return true; | ||
| 206 | } | ||
| 207 | DO_(::google::protobuf::internal::WireFormat::SkipField( | ||
| 208 | input, tag, mutable_unknown_fields())); | ||
| 209 | break; | ||
| 210 | } | ||
| 211 | } | ||
| 212 | } | ||
| 213 | return true; | ||
| 214 | #undef DO_ | ||
| 215 | } | ||
| 216 | |||
| 217 | void KeyPressUpdate::SerializeWithCachedSizes( | ||
| 218 | ::google::protobuf::io::CodedOutputStream* output) const { | ||
| 219 | // required uint32 newKey = 1; | ||
| 220 | if (has_newkey()) { | ||
| 221 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->newkey(), output); | ||
| 222 | } | ||
| 223 | |||
| 224 | if (!unknown_fields().empty()) { | ||
| 225 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | ||
| 226 | unknown_fields(), output); | ||
| 227 | } | ||
| 228 | } | ||
| 229 | |||
| 230 | ::google::protobuf::uint8* KeyPressUpdate::SerializeWithCachedSizesToArray( | ||
| 231 | ::google::protobuf::uint8* target) const { | ||
| 232 | // required uint32 newKey = 1; | ||
| 233 | if (has_newkey()) { | ||
| 234 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->newkey(), target); | ||
| 235 | } | ||
| 236 | |||
| 237 | if (!unknown_fields().empty()) { | ||
| 238 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( | ||
| 239 | unknown_fields(), target); | ||
| 240 | } | ||
| 241 | return target; | ||
| 242 | } | ||
| 243 | |||
| 244 | int KeyPressUpdate::ByteSize() const { | ||
| 245 | int total_size = 0; | ||
| 246 | |||
| 247 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { | ||
| 248 | // required uint32 newKey = 1; | ||
| 249 | if (has_newkey()) { | ||
| 250 | total_size += 1 + | ||
| 251 | ::google::protobuf::internal::WireFormatLite::UInt32Size( | ||
| 252 | this->newkey()); | ||
| 253 | } | ||
| 254 | |||
| 255 | } | ||
| 256 | if (!unknown_fields().empty()) { | ||
| 257 | total_size += | ||
| 258 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | ||
| 259 | unknown_fields()); | ||
| 260 | } | ||
| 261 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | ||
| 262 | _cached_size_ = total_size; | ||
| 263 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); | ||
| 264 | return total_size; | ||
| 265 | } | ||
| 266 | |||
| 267 | void KeyPressUpdate::MergeFrom(const ::google::protobuf::Message& from) { | ||
| 268 | GOOGLE_CHECK_NE(&from, this); | ||
| 269 | const KeyPressUpdate* source = | ||
| 270 | ::google::protobuf::internal::dynamic_cast_if_available<const KeyPressUpdate*>( | ||
| 271 | &from); | ||
| 272 | if (source == NULL) { | ||
| 273 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); | ||
| 274 | } else { | ||
| 275 | MergeFrom(*source); | ||
| 276 | } | ||
| 277 | } | ||
| 278 | |||
| 279 | void KeyPressUpdate::MergeFrom(const KeyPressUpdate& from) { | ||
| 280 | GOOGLE_CHECK_NE(&from, this); | ||
| 281 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { | ||
| 282 | if (from.has_newkey()) { | ||
| 283 | set_newkey(from.newkey()); | ||
| 284 | } | ||
| 285 | } | ||
| 286 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | ||
| 287 | } | ||
| 288 | |||
| 289 | void KeyPressUpdate::CopyFrom(const ::google::protobuf::Message& from) { | ||
| 290 | if (&from == this) return; | ||
| 291 | Clear(); | ||
| 292 | MergeFrom(from); | ||
| 293 | } | ||
| 294 | |||
| 295 | void KeyPressUpdate::CopyFrom(const KeyPressUpdate& from) { | ||
| 296 | if (&from == this) return; | ||
| 297 | Clear(); | ||
| 298 | MergeFrom(from); | ||
| 299 | } | ||
| 300 | |||
| 301 | bool KeyPressUpdate::IsInitialized() const { | ||
| 302 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; | ||
| 303 | |||
| 304 | return true; | ||
| 305 | } | ||
| 306 | |||
| 307 | void KeyPressUpdate::Swap(KeyPressUpdate* other) { | ||
| 308 | if (other != this) { | ||
| 309 | std::swap(newkey_, other->newkey_); | ||
| 310 | std::swap(_has_bits_[0], other->_has_bits_[0]); | ||
| 311 | _unknown_fields_.Swap(&other->_unknown_fields_); | ||
| 312 | std::swap(_cached_size_, other->_cached_size_); | ||
| 313 | } | ||
| 314 | } | ||
| 315 | |||
| 316 | ::google::protobuf::Metadata KeyPressUpdate::GetMetadata() const { | ||
| 317 | protobuf_AssignDescriptorsOnce(); | ||
| 318 | ::google::protobuf::Metadata metadata; | ||
| 319 | metadata.descriptor = KeyPressUpdate_descriptor_; | ||
| 320 | metadata.reflection = KeyPressUpdate_reflection_; | ||
| 321 | return metadata; | ||
| 322 | } | ||
| 323 | |||
| 324 | |||
| 325 | // =================================================================== | ||
| 326 | |||
| 327 | #ifndef _MSC_VER | ||
| 328 | const int MapUpdate::kFieldFieldNumber; | ||
| 329 | #endif // !_MSC_VER | ||
| 330 | |||
| 331 | MapUpdate::MapUpdate() | ||
| 332 | : ::google::protobuf::Message() { | ||
| 333 | SharedCtor(); | ||
| 334 | } | ||
| 335 | |||
| 336 | void MapUpdate::InitAsDefaultInstance() { | ||
| 337 | } | ||
| 338 | |||
| 339 | MapUpdate::MapUpdate(const MapUpdate& from) | ||
| 340 | : ::google::protobuf::Message() { | ||
| 341 | SharedCtor(); | ||
| 342 | MergeFrom(from); | ||
| 343 | } | ||
| 344 | |||
| 345 | void MapUpdate::SharedCtor() { | ||
| 346 | _cached_size_ = 0; | ||
| 347 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); | ||
| 348 | } | ||
| 349 | |||
| 350 | MapUpdate::~MapUpdate() { | ||
| 351 | SharedDtor(); | ||
| 352 | } | ||
| 353 | |||
| 354 | void MapUpdate::SharedDtor() { | ||
| 355 | if (this != default_instance_) { | ||
| 356 | } | ||
| 357 | } | ||
| 358 | |||
| 359 | void MapUpdate::SetCachedSize(int size) const { | ||
| 360 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | ||
| 361 | _cached_size_ = size; | ||
| 362 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); | ||
| 363 | } | ||
| 364 | const ::google::protobuf::Descriptor* MapUpdate::descriptor() { | ||
| 365 | protobuf_AssignDescriptorsOnce(); | ||
| 366 | return MapUpdate_descriptor_; | ||
| 367 | } | ||
| 368 | |||
| 369 | const MapUpdate& MapUpdate::default_instance() { | ||
| 370 | if (default_instance_ == NULL) protobuf_AddDesc_pacman_2eproto(); return *default_instance_; | ||
| 371 | } | ||
| 372 | |||
| 373 | MapUpdate* MapUpdate::default_instance_ = NULL; | ||
| 374 | |||
| 375 | MapUpdate* MapUpdate::New() const { | ||
| 376 | return new MapUpdate; | ||
| 377 | } | ||
| 378 | |||
| 379 | void MapUpdate::Clear() { | ||
| 380 | field_.Clear(); | ||
| 381 | ::memset(_has_bits_, 0, sizeof(_has_bits_)); | ||
| 382 | mutable_unknown_fields()->Clear(); | ||
| 383 | } | ||
| 384 | |||
| 385 | bool MapUpdate::MergePartialFromCodedStream( | ||
| 386 | ::google::protobuf::io::CodedInputStream* input) { | ||
| 387 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false | ||
| 388 | ::google::protobuf::uint32 tag; | ||
| 389 | while ((tag = input->ReadTag()) != 0) { | ||
| 390 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { | ||
| 391 | // repeated uint32 field = 1 [packed = true]; | ||
| 392 | case 1: { | ||
| 393 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | ||
| 394 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { | ||
| 395 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< | ||
| 396 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( | ||
| 397 | input, this->mutable_field()))); | ||
| 398 | } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) | ||
| 399 | == ::google::protobuf::internal::WireFormatLite:: | ||
| 400 | WIRETYPE_VARINT) { | ||
| 401 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< | ||
| 402 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( | ||
| 403 | 1, 10, input, this->mutable_field()))); | ||
| 404 | } else { | ||
| 405 | goto handle_uninterpreted; | ||
| 406 | } | ||
| 407 | if (input->ExpectAtEnd()) return true; | ||
| 408 | break; | ||
| 409 | } | ||
| 410 | |||
| 411 | default: { | ||
| 412 | handle_uninterpreted: | ||
| 413 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | ||
| 414 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | ||
| 415 | return true; | ||
| 416 | } | ||
| 417 | DO_(::google::protobuf::internal::WireFormat::SkipField( | ||
| 418 | input, tag, mutable_unknown_fields())); | ||
| 419 | break; | ||
| 420 | } | ||
| 421 | } | ||
| 422 | } | ||
| 423 | return true; | ||
| 424 | #undef DO_ | ||
| 425 | } | ||
| 426 | |||
| 427 | void MapUpdate::SerializeWithCachedSizes( | ||
| 428 | ::google::protobuf::io::CodedOutputStream* output) const { | ||
| 429 | // repeated uint32 field = 1 [packed = true]; | ||
| 430 | if (this->field_size() > 0) { | ||
| 431 | ::google::protobuf::internal::WireFormatLite::WriteTag(1, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); | ||
| 432 | output->WriteVarint32(_field_cached_byte_size_); | ||
| 433 | } | ||
| 434 | for (int i = 0; i < this->field_size(); i++) { | ||
| 435 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( | ||
| 436 | this->field(i), output); | ||
| 437 | } | ||
| 438 | |||
| 439 | if (!unknown_fields().empty()) { | ||
| 440 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( | ||
| 441 | unknown_fields(), output); | ||
| 442 | } | ||
| 443 | } | ||
| 444 | |||
| 445 | ::google::protobuf::uint8* MapUpdate::SerializeWithCachedSizesToArray( | ||
| 446 | ::google::protobuf::uint8* target) const { | ||
| 447 | // repeated uint32 field = 1 [packed = true]; | ||
| 448 | if (this->field_size() > 0) { | ||
| 449 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( | ||
| 450 | 1, | ||
| 451 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, | ||
| 452 | target); | ||
| 453 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( | ||
| 454 | _field_cached_byte_size_, target); | ||
| 455 | } | ||
| 456 | for (int i = 0; i < this->field_size(); i++) { | ||
| 457 | target = ::google::protobuf::internal::WireFormatLite:: | ||
| 458 | WriteUInt32NoTagToArray(this->field(i), target); | ||
| 459 | } | ||
| 460 | |||
| 461 | if (!unknown_fields().empty()) { | ||
| 462 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( | ||
| 463 | unknown_fields(), target); | ||
| 464 | } | ||
| 465 | return target; | ||
| 466 | } | ||
| 467 | |||
| 468 | int MapUpdate::ByteSize() const { | ||
| 469 | int total_size = 0; | ||
| 470 | |||
| 471 | // repeated uint32 field = 1 [packed = true]; | ||
| 472 | { | ||
| 473 | int data_size = 0; | ||
| 474 | for (int i = 0; i < this->field_size(); i++) { | ||
| 475 | data_size += ::google::protobuf::internal::WireFormatLite:: | ||
| 476 | UInt32Size(this->field(i)); | ||
| 477 | } | ||
| 478 | if (data_size > 0) { | ||
| 479 | total_size += 1 + | ||
| 480 | ::google::protobuf::internal::WireFormatLite::Int32Size(data_size); | ||
| 481 | } | ||
| 482 | _field_cached_byte_size_ = data_size; | ||
| 483 | total_size += data_size; | ||
| 484 | } | ||
| 485 | |||
| 486 | if (!unknown_fields().empty()) { | ||
| 487 | total_size += | ||
| 488 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( | ||
| 489 | unknown_fields()); | ||
| 490 | } | ||
| 491 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | ||
| 492 | _cached_size_ = total_size; | ||
| 493 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); | ||
| 494 | return total_size; | ||
| 495 | } | ||
| 496 | |||
| 497 | void MapUpdate::MergeFrom(const ::google::protobuf::Message& from) { | ||
| 498 | GOOGLE_CHECK_NE(&from, this); | ||
| 499 | const MapUpdate* source = | ||
| 500 | ::google::protobuf::internal::dynamic_cast_if_available<const MapUpdate*>( | ||
| 501 | &from); | ||
| 502 | if (source == NULL) { | ||
| 503 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); | ||
| 504 | } else { | ||
| 505 | MergeFrom(*source); | ||
| 506 | } | ||
| 507 | } | ||
| 508 | |||
| 509 | void MapUpdate::MergeFrom(const MapUpdate& from) { | ||
| 510 | GOOGLE_CHECK_NE(&from, this); | ||
| 511 | field_.MergeFrom(from.field_); | ||
| 512 | mutable_unknown_fields()->MergeFrom(from.unknown_fields()); | ||
| 513 | } | ||
| 514 | |||
| 515 | void MapUpdate::CopyFrom(const ::google::protobuf::Message& from) { | ||
| 516 | if (&from == this) return; | ||
| 517 | Clear(); | ||
| 518 | MergeFrom(from); | ||
| 519 | } | ||
| 520 | |||
| 521 | void MapUpdate::CopyFrom(const MapUpdate& from) { | ||
| 522 | if (&from == this) return; | ||
| 523 | Clear(); | ||
| 524 | MergeFrom(from); | ||
| 525 | } | ||
| 526 | |||
| 527 | bool MapUpdate::IsInitialized() const { | ||
| 528 | |||
| 529 | return true; | ||
| 530 | } | ||
| 531 | |||
| 532 | void MapUpdate::Swap(MapUpdate* other) { | ||
| 533 | if (other != this) { | ||
| 534 | field_.Swap(&other->field_); | ||
| 535 | std::swap(_has_bits_[0], other->_has_bits_[0]); | ||
| 536 | _unknown_fields_.Swap(&other->_unknown_fields_); | ||
| 537 | std::swap(_cached_size_, other->_cached_size_); | ||
| 538 | } | ||
| 539 | } | ||
| 540 | |||
| 541 | ::google::protobuf::Metadata MapUpdate::GetMetadata() const { | ||
| 542 | protobuf_AssignDescriptorsOnce(); | ||
| 543 | ::google::protobuf::Metadata metadata; | ||
| 544 | metadata.descriptor = MapUpdate_descriptor_; | ||
| 545 | metadata.reflection = MapUpdate_reflection_; | ||
| 546 | return metadata; | ||
| 547 | } | ||
| 548 | |||
| 549 | |||
| 550 | // @@protoc_insertion_point(namespace_scope) | ||
| 551 | |||
| 552 | // @@protoc_insertion_point(global_scope) | ||
