1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: google/protobuf/wrappers.proto 3 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 5 #include <google/protobuf/wrappers.pb.h> 6 7 #include <algorithm> 8 9 #include <google/protobuf/stubs/common.h> 10 #include <google/protobuf/stubs/port.h> 11 #include <google/protobuf/stubs/once.h> 12 #include <google/protobuf/io/coded_stream.h> 13 #include <google/protobuf/wire_format_lite_inl.h> 14 #include <google/protobuf/descriptor.h> 15 #include <google/protobuf/generated_message_reflection.h> 16 #include <google/protobuf/reflection_ops.h> 17 #include <google/protobuf/wire_format.h> 18 // @@protoc_insertion_point(includes) 19 20 namespace google { 21 namespace protobuf { 22 23 namespace { 24 25 const ::google::protobuf::Descriptor* DoubleValue_descriptor_ = NULL; 26 const ::google::protobuf::internal::GeneratedMessageReflection* 27 DoubleValue_reflection_ = NULL; 28 const ::google::protobuf::Descriptor* FloatValue_descriptor_ = NULL; 29 const ::google::protobuf::internal::GeneratedMessageReflection* 30 FloatValue_reflection_ = NULL; 31 const ::google::protobuf::Descriptor* Int64Value_descriptor_ = NULL; 32 const ::google::protobuf::internal::GeneratedMessageReflection* 33 Int64Value_reflection_ = NULL; 34 const ::google::protobuf::Descriptor* UInt64Value_descriptor_ = NULL; 35 const ::google::protobuf::internal::GeneratedMessageReflection* 36 UInt64Value_reflection_ = NULL; 37 const ::google::protobuf::Descriptor* Int32Value_descriptor_ = NULL; 38 const ::google::protobuf::internal::GeneratedMessageReflection* 39 Int32Value_reflection_ = NULL; 40 const ::google::protobuf::Descriptor* UInt32Value_descriptor_ = NULL; 41 const ::google::protobuf::internal::GeneratedMessageReflection* 42 UInt32Value_reflection_ = NULL; 43 const ::google::protobuf::Descriptor* BoolValue_descriptor_ = NULL; 44 const ::google::protobuf::internal::GeneratedMessageReflection* 45 BoolValue_reflection_ = NULL; 46 const ::google::protobuf::Descriptor* StringValue_descriptor_ = NULL; 47 const ::google::protobuf::internal::GeneratedMessageReflection* 48 StringValue_reflection_ = NULL; 49 const ::google::protobuf::Descriptor* BytesValue_descriptor_ = NULL; 50 const ::google::protobuf::internal::GeneratedMessageReflection* 51 BytesValue_reflection_ = NULL; 52 53 } // namespace 54 55 56 void protobuf_AssignDesc_google_2fprotobuf_2fwrappers_2eproto() { 57 protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 58 const ::google::protobuf::FileDescriptor* file = 59 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 60 "google/protobuf/wrappers.proto"); 61 GOOGLE_CHECK(file != NULL); 62 DoubleValue_descriptor_ = file->message_type(0); 63 static const int DoubleValue_offsets_[1] = { 64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, value_), 65 }; 66 DoubleValue_reflection_ = 67 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 68 DoubleValue_descriptor_, 69 DoubleValue::default_instance_, 70 DoubleValue_offsets_, 71 -1, 72 -1, 73 -1, 74 sizeof(DoubleValue), 75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, _internal_metadata_), 76 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, _is_default_instance_)); 77 FloatValue_descriptor_ = file->message_type(1); 78 static const int FloatValue_offsets_[1] = { 79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, value_), 80 }; 81 FloatValue_reflection_ = 82 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 83 FloatValue_descriptor_, 84 FloatValue::default_instance_, 85 FloatValue_offsets_, 86 -1, 87 -1, 88 -1, 89 sizeof(FloatValue), 90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, _internal_metadata_), 91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, _is_default_instance_)); 92 Int64Value_descriptor_ = file->message_type(2); 93 static const int Int64Value_offsets_[1] = { 94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, value_), 95 }; 96 Int64Value_reflection_ = 97 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 98 Int64Value_descriptor_, 99 Int64Value::default_instance_, 100 Int64Value_offsets_, 101 -1, 102 -1, 103 -1, 104 sizeof(Int64Value), 105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, _internal_metadata_), 106 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, _is_default_instance_)); 107 UInt64Value_descriptor_ = file->message_type(3); 108 static const int UInt64Value_offsets_[1] = { 109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, value_), 110 }; 111 UInt64Value_reflection_ = 112 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 113 UInt64Value_descriptor_, 114 UInt64Value::default_instance_, 115 UInt64Value_offsets_, 116 -1, 117 -1, 118 -1, 119 sizeof(UInt64Value), 120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, _internal_metadata_), 121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, _is_default_instance_)); 122 Int32Value_descriptor_ = file->message_type(4); 123 static const int Int32Value_offsets_[1] = { 124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, value_), 125 }; 126 Int32Value_reflection_ = 127 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 128 Int32Value_descriptor_, 129 Int32Value::default_instance_, 130 Int32Value_offsets_, 131 -1, 132 -1, 133 -1, 134 sizeof(Int32Value), 135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, _internal_metadata_), 136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, _is_default_instance_)); 137 UInt32Value_descriptor_ = file->message_type(5); 138 static const int UInt32Value_offsets_[1] = { 139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, value_), 140 }; 141 UInt32Value_reflection_ = 142 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 143 UInt32Value_descriptor_, 144 UInt32Value::default_instance_, 145 UInt32Value_offsets_, 146 -1, 147 -1, 148 -1, 149 sizeof(UInt32Value), 150 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, _internal_metadata_), 151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, _is_default_instance_)); 152 BoolValue_descriptor_ = file->message_type(6); 153 static const int BoolValue_offsets_[1] = { 154 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, value_), 155 }; 156 BoolValue_reflection_ = 157 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 158 BoolValue_descriptor_, 159 BoolValue::default_instance_, 160 BoolValue_offsets_, 161 -1, 162 -1, 163 -1, 164 sizeof(BoolValue), 165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, _internal_metadata_), 166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, _is_default_instance_)); 167 StringValue_descriptor_ = file->message_type(7); 168 static const int StringValue_offsets_[1] = { 169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, value_), 170 }; 171 StringValue_reflection_ = 172 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 173 StringValue_descriptor_, 174 StringValue::default_instance_, 175 StringValue_offsets_, 176 -1, 177 -1, 178 -1, 179 sizeof(StringValue), 180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, _internal_metadata_), 181 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, _is_default_instance_)); 182 BytesValue_descriptor_ = file->message_type(8); 183 static const int BytesValue_offsets_[1] = { 184 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, value_), 185 }; 186 BytesValue_reflection_ = 187 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 188 BytesValue_descriptor_, 189 BytesValue::default_instance_, 190 BytesValue_offsets_, 191 -1, 192 -1, 193 -1, 194 sizeof(BytesValue), 195 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, _internal_metadata_), 196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, _is_default_instance_)); 197 } 198 199 namespace { 200 201 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 202 inline void protobuf_AssignDescriptorsOnce() { 203 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 204 &protobuf_AssignDesc_google_2fprotobuf_2fwrappers_2eproto); 205 } 206 207 void protobuf_RegisterTypes(const ::std::string&) { 208 protobuf_AssignDescriptorsOnce(); 209 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 210 DoubleValue_descriptor_, &DoubleValue::default_instance()); 211 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 212 FloatValue_descriptor_, &FloatValue::default_instance()); 213 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 214 Int64Value_descriptor_, &Int64Value::default_instance()); 215 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 216 UInt64Value_descriptor_, &UInt64Value::default_instance()); 217 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 218 Int32Value_descriptor_, &Int32Value::default_instance()); 219 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 220 UInt32Value_descriptor_, &UInt32Value::default_instance()); 221 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 222 BoolValue_descriptor_, &BoolValue::default_instance()); 223 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 224 StringValue_descriptor_, &StringValue::default_instance()); 225 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 226 BytesValue_descriptor_, &BytesValue::default_instance()); 227 } 228 229 } // namespace 230 231 void protobuf_ShutdownFile_google_2fprotobuf_2fwrappers_2eproto() { 232 delete DoubleValue::default_instance_; 233 delete DoubleValue_reflection_; 234 delete FloatValue::default_instance_; 235 delete FloatValue_reflection_; 236 delete Int64Value::default_instance_; 237 delete Int64Value_reflection_; 238 delete UInt64Value::default_instance_; 239 delete UInt64Value_reflection_; 240 delete Int32Value::default_instance_; 241 delete Int32Value_reflection_; 242 delete UInt32Value::default_instance_; 243 delete UInt32Value_reflection_; 244 delete BoolValue::default_instance_; 245 delete BoolValue_reflection_; 246 delete StringValue::default_instance_; 247 delete StringValue_reflection_; 248 delete BytesValue::default_instance_; 249 delete BytesValue_reflection_; 250 } 251 252 void protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto() { 253 static bool already_here = false; 254 if (already_here) return; 255 already_here = true; 256 GOOGLE_PROTOBUF_VERIFY_VERSION; 257 258 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 259 "\n\036google/protobuf/wrappers.proto\022\017google" 260 ".protobuf\"\034\n\013DoubleValue\022\r\n\005value\030\001 \001(\001\"" 261 "\033\n\nFloatValue\022\r\n\005value\030\001 \001(\002\"\033\n\nInt64Val" 262 "ue\022\r\n\005value\030\001 \001(\003\"\034\n\013UInt64Value\022\r\n\005valu" 263 "e\030\001 \001(\004\"\033\n\nInt32Value\022\r\n\005value\030\001 \001(\005\"\034\n\013" 264 "UInt32Value\022\r\n\005value\030\001 \001(\r\"\032\n\tBoolValue\022" 265 "\r\n\005value\030\001 \001(\010\"\034\n\013StringValue\022\r\n\005value\030\001" 266 " \001(\t\"\033\n\nBytesValue\022\r\n\005value\030\001 \001(\014B\177\n\023com" 267 ".google.protobufB\rWrappersProtoP\001Z*githu" 268 "b.com/golang/protobuf/ptypes/wrappers\240\001\001" 269 "\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTyp" 270 "esb\006proto3", 450); 271 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 272 "google/protobuf/wrappers.proto", &protobuf_RegisterTypes); 273 DoubleValue::default_instance_ = new DoubleValue(); 274 FloatValue::default_instance_ = new FloatValue(); 275 Int64Value::default_instance_ = new Int64Value(); 276 UInt64Value::default_instance_ = new UInt64Value(); 277 Int32Value::default_instance_ = new Int32Value(); 278 UInt32Value::default_instance_ = new UInt32Value(); 279 BoolValue::default_instance_ = new BoolValue(); 280 StringValue::default_instance_ = new StringValue(); 281 BytesValue::default_instance_ = new BytesValue(); 282 DoubleValue::default_instance_->InitAsDefaultInstance(); 283 FloatValue::default_instance_->InitAsDefaultInstance(); 284 Int64Value::default_instance_->InitAsDefaultInstance(); 285 UInt64Value::default_instance_->InitAsDefaultInstance(); 286 Int32Value::default_instance_->InitAsDefaultInstance(); 287 UInt32Value::default_instance_->InitAsDefaultInstance(); 288 BoolValue::default_instance_->InitAsDefaultInstance(); 289 StringValue::default_instance_->InitAsDefaultInstance(); 290 BytesValue::default_instance_->InitAsDefaultInstance(); 291 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fwrappers_2eproto); 292 } 293 294 // Force AddDescriptors() to be called at static initialization time. 295 struct StaticDescriptorInitializer_google_2fprotobuf_2fwrappers_2eproto { 296 StaticDescriptorInitializer_google_2fprotobuf_2fwrappers_2eproto() { 297 protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 298 } 299 } static_descriptor_initializer_google_2fprotobuf_2fwrappers_2eproto_; 300 301 namespace { 302 303 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; 304 static void MergeFromFail(int line) { 305 GOOGLE_CHECK(false) << __FILE__ << ":" << line; 306 } 307 308 } // namespace 309 310 311 // =================================================================== 312 313 #if !defined(_MSC_VER) || _MSC_VER >= 1900 314 const int DoubleValue::kValueFieldNumber; 315 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 316 317 DoubleValue::DoubleValue() 318 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 319 SharedCtor(); 320 // @@protoc_insertion_point(constructor:google.protobuf.DoubleValue) 321 } 322 323 DoubleValue::DoubleValue(::google::protobuf::Arena* arena) 324 : ::google::protobuf::Message(), 325 _internal_metadata_(arena) { 326 SharedCtor(); 327 RegisterArenaDtor(arena); 328 // @@protoc_insertion_point(arena_constructor:google.protobuf.DoubleValue) 329 } 330 331 void DoubleValue::InitAsDefaultInstance() { 332 _is_default_instance_ = true; 333 } 334 335 DoubleValue::DoubleValue(const DoubleValue& from) 336 : ::google::protobuf::Message(), 337 _internal_metadata_(NULL) { 338 SharedCtor(); 339 MergeFrom(from); 340 // @@protoc_insertion_point(copy_constructor:google.protobuf.DoubleValue) 341 } 342 343 void DoubleValue::SharedCtor() { 344 _is_default_instance_ = false; 345 _cached_size_ = 0; 346 value_ = 0; 347 } 348 349 DoubleValue::~DoubleValue() { 350 // @@protoc_insertion_point(destructor:google.protobuf.DoubleValue) 351 SharedDtor(); 352 } 353 354 void DoubleValue::SharedDtor() { 355 if (GetArenaNoVirtual() != NULL) { 356 return; 357 } 358 359 if (this != default_instance_) { 360 } 361 } 362 363 void DoubleValue::ArenaDtor(void* object) { 364 DoubleValue* _this = reinterpret_cast< DoubleValue* >(object); 365 (void)_this; 366 } 367 void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { 368 } 369 void DoubleValue::SetCachedSize(int size) const { 370 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 371 _cached_size_ = size; 372 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 373 } 374 const ::google::protobuf::Descriptor* DoubleValue::descriptor() { 375 protobuf_AssignDescriptorsOnce(); 376 return DoubleValue_descriptor_; 377 } 378 379 const DoubleValue& DoubleValue::default_instance() { 380 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 381 return *default_instance_; 382 } 383 384 DoubleValue* DoubleValue::default_instance_ = NULL; 385 386 DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const { 387 return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena); 388 } 389 390 void DoubleValue::Clear() { 391 // @@protoc_insertion_point(message_clear_start:google.protobuf.DoubleValue) 392 value_ = 0; 393 } 394 395 bool DoubleValue::MergePartialFromCodedStream( 396 ::google::protobuf::io::CodedInputStream* input) { 397 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 398 ::google::protobuf::uint32 tag; 399 // @@protoc_insertion_point(parse_start:google.protobuf.DoubleValue) 400 for (;;) { 401 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 402 tag = p.first; 403 if (!p.second) goto handle_unusual; 404 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 405 // optional double value = 1; 406 case 1: { 407 if (tag == 9) { 408 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 409 double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( 410 input, &value_))); 411 412 } else { 413 goto handle_unusual; 414 } 415 if (input->ExpectAtEnd()) goto success; 416 break; 417 } 418 419 default: { 420 handle_unusual: 421 if (tag == 0 || 422 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 423 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 424 goto success; 425 } 426 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 427 break; 428 } 429 } 430 } 431 success: 432 // @@protoc_insertion_point(parse_success:google.protobuf.DoubleValue) 433 return true; 434 failure: 435 // @@protoc_insertion_point(parse_failure:google.protobuf.DoubleValue) 436 return false; 437 #undef DO_ 438 } 439 440 void DoubleValue::SerializeWithCachedSizes( 441 ::google::protobuf::io::CodedOutputStream* output) const { 442 // @@protoc_insertion_point(serialize_start:google.protobuf.DoubleValue) 443 // optional double value = 1; 444 if (this->value() != 0) { 445 ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->value(), output); 446 } 447 448 // @@protoc_insertion_point(serialize_end:google.protobuf.DoubleValue) 449 } 450 451 ::google::protobuf::uint8* DoubleValue::SerializeWithCachedSizesToArray( 452 ::google::protobuf::uint8* target) const { 453 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleValue) 454 // optional double value = 1; 455 if (this->value() != 0) { 456 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->value(), target); 457 } 458 459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DoubleValue) 460 return target; 461 } 462 463 int DoubleValue::ByteSize() const { 464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DoubleValue) 465 int total_size = 0; 466 467 // optional double value = 1; 468 if (this->value() != 0) { 469 total_size += 1 + 8; 470 } 471 472 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 473 _cached_size_ = total_size; 474 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 475 return total_size; 476 } 477 478 void DoubleValue::MergeFrom(const ::google::protobuf::Message& from) { 479 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DoubleValue) 480 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 481 const DoubleValue* source = 482 ::google::protobuf::internal::DynamicCastToGenerated<const DoubleValue>( 483 &from); 484 if (source == NULL) { 485 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.DoubleValue) 486 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 487 } else { 488 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.DoubleValue) 489 MergeFrom(*source); 490 } 491 } 492 493 void DoubleValue::MergeFrom(const DoubleValue& from) { 494 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.DoubleValue) 495 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 496 if (from.value() != 0) { 497 set_value(from.value()); 498 } 499 } 500 501 void DoubleValue::CopyFrom(const ::google::protobuf::Message& from) { 502 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DoubleValue) 503 if (&from == this) return; 504 Clear(); 505 MergeFrom(from); 506 } 507 508 void DoubleValue::CopyFrom(const DoubleValue& from) { 509 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.DoubleValue) 510 if (&from == this) return; 511 Clear(); 512 MergeFrom(from); 513 } 514 515 bool DoubleValue::IsInitialized() const { 516 517 return true; 518 } 519 520 void DoubleValue::Swap(DoubleValue* other) { 521 if (other == this) return; 522 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 523 InternalSwap(other); 524 } else { 525 DoubleValue temp; 526 temp.MergeFrom(*this); 527 CopyFrom(*other); 528 other->CopyFrom(temp); 529 } 530 } 531 void DoubleValue::UnsafeArenaSwap(DoubleValue* other) { 532 if (other == this) return; 533 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 534 InternalSwap(other); 535 } 536 void DoubleValue::InternalSwap(DoubleValue* other) { 537 std::swap(value_, other->value_); 538 _internal_metadata_.Swap(&other->_internal_metadata_); 539 std::swap(_cached_size_, other->_cached_size_); 540 } 541 542 ::google::protobuf::Metadata DoubleValue::GetMetadata() const { 543 protobuf_AssignDescriptorsOnce(); 544 ::google::protobuf::Metadata metadata; 545 metadata.descriptor = DoubleValue_descriptor_; 546 metadata.reflection = DoubleValue_reflection_; 547 return metadata; 548 } 549 550 #if PROTOBUF_INLINE_NOT_IN_HEADERS 551 // DoubleValue 552 553 // optional double value = 1; 554 void DoubleValue::clear_value() { 555 value_ = 0; 556 } 557 double DoubleValue::value() const { 558 // @@protoc_insertion_point(field_get:google.protobuf.DoubleValue.value) 559 return value_; 560 } 561 void DoubleValue::set_value(double value) { 562 563 value_ = value; 564 // @@protoc_insertion_point(field_set:google.protobuf.DoubleValue.value) 565 } 566 567 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 568 569 // =================================================================== 570 571 #if !defined(_MSC_VER) || _MSC_VER >= 1900 572 const int FloatValue::kValueFieldNumber; 573 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 574 575 FloatValue::FloatValue() 576 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 577 SharedCtor(); 578 // @@protoc_insertion_point(constructor:google.protobuf.FloatValue) 579 } 580 581 FloatValue::FloatValue(::google::protobuf::Arena* arena) 582 : ::google::protobuf::Message(), 583 _internal_metadata_(arena) { 584 SharedCtor(); 585 RegisterArenaDtor(arena); 586 // @@protoc_insertion_point(arena_constructor:google.protobuf.FloatValue) 587 } 588 589 void FloatValue::InitAsDefaultInstance() { 590 _is_default_instance_ = true; 591 } 592 593 FloatValue::FloatValue(const FloatValue& from) 594 : ::google::protobuf::Message(), 595 _internal_metadata_(NULL) { 596 SharedCtor(); 597 MergeFrom(from); 598 // @@protoc_insertion_point(copy_constructor:google.protobuf.FloatValue) 599 } 600 601 void FloatValue::SharedCtor() { 602 _is_default_instance_ = false; 603 _cached_size_ = 0; 604 value_ = 0; 605 } 606 607 FloatValue::~FloatValue() { 608 // @@protoc_insertion_point(destructor:google.protobuf.FloatValue) 609 SharedDtor(); 610 } 611 612 void FloatValue::SharedDtor() { 613 if (GetArenaNoVirtual() != NULL) { 614 return; 615 } 616 617 if (this != default_instance_) { 618 } 619 } 620 621 void FloatValue::ArenaDtor(void* object) { 622 FloatValue* _this = reinterpret_cast< FloatValue* >(object); 623 (void)_this; 624 } 625 void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { 626 } 627 void FloatValue::SetCachedSize(int size) const { 628 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 629 _cached_size_ = size; 630 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 631 } 632 const ::google::protobuf::Descriptor* FloatValue::descriptor() { 633 protobuf_AssignDescriptorsOnce(); 634 return FloatValue_descriptor_; 635 } 636 637 const FloatValue& FloatValue::default_instance() { 638 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 639 return *default_instance_; 640 } 641 642 FloatValue* FloatValue::default_instance_ = NULL; 643 644 FloatValue* FloatValue::New(::google::protobuf::Arena* arena) const { 645 return ::google::protobuf::Arena::CreateMessage<FloatValue>(arena); 646 } 647 648 void FloatValue::Clear() { 649 // @@protoc_insertion_point(message_clear_start:google.protobuf.FloatValue) 650 value_ = 0; 651 } 652 653 bool FloatValue::MergePartialFromCodedStream( 654 ::google::protobuf::io::CodedInputStream* input) { 655 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 656 ::google::protobuf::uint32 tag; 657 // @@protoc_insertion_point(parse_start:google.protobuf.FloatValue) 658 for (;;) { 659 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 660 tag = p.first; 661 if (!p.second) goto handle_unusual; 662 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 663 // optional float value = 1; 664 case 1: { 665 if (tag == 13) { 666 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 667 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( 668 input, &value_))); 669 670 } else { 671 goto handle_unusual; 672 } 673 if (input->ExpectAtEnd()) goto success; 674 break; 675 } 676 677 default: { 678 handle_unusual: 679 if (tag == 0 || 680 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 681 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 682 goto success; 683 } 684 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 685 break; 686 } 687 } 688 } 689 success: 690 // @@protoc_insertion_point(parse_success:google.protobuf.FloatValue) 691 return true; 692 failure: 693 // @@protoc_insertion_point(parse_failure:google.protobuf.FloatValue) 694 return false; 695 #undef DO_ 696 } 697 698 void FloatValue::SerializeWithCachedSizes( 699 ::google::protobuf::io::CodedOutputStream* output) const { 700 // @@protoc_insertion_point(serialize_start:google.protobuf.FloatValue) 701 // optional float value = 1; 702 if (this->value() != 0) { 703 ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->value(), output); 704 } 705 706 // @@protoc_insertion_point(serialize_end:google.protobuf.FloatValue) 707 } 708 709 ::google::protobuf::uint8* FloatValue::SerializeWithCachedSizesToArray( 710 ::google::protobuf::uint8* target) const { 711 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValue) 712 // optional float value = 1; 713 if (this->value() != 0) { 714 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->value(), target); 715 } 716 717 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FloatValue) 718 return target; 719 } 720 721 int FloatValue::ByteSize() const { 722 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FloatValue) 723 int total_size = 0; 724 725 // optional float value = 1; 726 if (this->value() != 0) { 727 total_size += 1 + 4; 728 } 729 730 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 731 _cached_size_ = total_size; 732 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 733 return total_size; 734 } 735 736 void FloatValue::MergeFrom(const ::google::protobuf::Message& from) { 737 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FloatValue) 738 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 739 const FloatValue* source = 740 ::google::protobuf::internal::DynamicCastToGenerated<const FloatValue>( 741 &from); 742 if (source == NULL) { 743 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.FloatValue) 744 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 745 } else { 746 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.FloatValue) 747 MergeFrom(*source); 748 } 749 } 750 751 void FloatValue::MergeFrom(const FloatValue& from) { 752 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.FloatValue) 753 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 754 if (from.value() != 0) { 755 set_value(from.value()); 756 } 757 } 758 759 void FloatValue::CopyFrom(const ::google::protobuf::Message& from) { 760 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FloatValue) 761 if (&from == this) return; 762 Clear(); 763 MergeFrom(from); 764 } 765 766 void FloatValue::CopyFrom(const FloatValue& from) { 767 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.FloatValue) 768 if (&from == this) return; 769 Clear(); 770 MergeFrom(from); 771 } 772 773 bool FloatValue::IsInitialized() const { 774 775 return true; 776 } 777 778 void FloatValue::Swap(FloatValue* other) { 779 if (other == this) return; 780 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 781 InternalSwap(other); 782 } else { 783 FloatValue temp; 784 temp.MergeFrom(*this); 785 CopyFrom(*other); 786 other->CopyFrom(temp); 787 } 788 } 789 void FloatValue::UnsafeArenaSwap(FloatValue* other) { 790 if (other == this) return; 791 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 792 InternalSwap(other); 793 } 794 void FloatValue::InternalSwap(FloatValue* other) { 795 std::swap(value_, other->value_); 796 _internal_metadata_.Swap(&other->_internal_metadata_); 797 std::swap(_cached_size_, other->_cached_size_); 798 } 799 800 ::google::protobuf::Metadata FloatValue::GetMetadata() const { 801 protobuf_AssignDescriptorsOnce(); 802 ::google::protobuf::Metadata metadata; 803 metadata.descriptor = FloatValue_descriptor_; 804 metadata.reflection = FloatValue_reflection_; 805 return metadata; 806 } 807 808 #if PROTOBUF_INLINE_NOT_IN_HEADERS 809 // FloatValue 810 811 // optional float value = 1; 812 void FloatValue::clear_value() { 813 value_ = 0; 814 } 815 float FloatValue::value() const { 816 // @@protoc_insertion_point(field_get:google.protobuf.FloatValue.value) 817 return value_; 818 } 819 void FloatValue::set_value(float value) { 820 821 value_ = value; 822 // @@protoc_insertion_point(field_set:google.protobuf.FloatValue.value) 823 } 824 825 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 826 827 // =================================================================== 828 829 #if !defined(_MSC_VER) || _MSC_VER >= 1900 830 const int Int64Value::kValueFieldNumber; 831 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 832 833 Int64Value::Int64Value() 834 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 835 SharedCtor(); 836 // @@protoc_insertion_point(constructor:google.protobuf.Int64Value) 837 } 838 839 Int64Value::Int64Value(::google::protobuf::Arena* arena) 840 : ::google::protobuf::Message(), 841 _internal_metadata_(arena) { 842 SharedCtor(); 843 RegisterArenaDtor(arena); 844 // @@protoc_insertion_point(arena_constructor:google.protobuf.Int64Value) 845 } 846 847 void Int64Value::InitAsDefaultInstance() { 848 _is_default_instance_ = true; 849 } 850 851 Int64Value::Int64Value(const Int64Value& from) 852 : ::google::protobuf::Message(), 853 _internal_metadata_(NULL) { 854 SharedCtor(); 855 MergeFrom(from); 856 // @@protoc_insertion_point(copy_constructor:google.protobuf.Int64Value) 857 } 858 859 void Int64Value::SharedCtor() { 860 _is_default_instance_ = false; 861 _cached_size_ = 0; 862 value_ = GOOGLE_LONGLONG(0); 863 } 864 865 Int64Value::~Int64Value() { 866 // @@protoc_insertion_point(destructor:google.protobuf.Int64Value) 867 SharedDtor(); 868 } 869 870 void Int64Value::SharedDtor() { 871 if (GetArenaNoVirtual() != NULL) { 872 return; 873 } 874 875 if (this != default_instance_) { 876 } 877 } 878 879 void Int64Value::ArenaDtor(void* object) { 880 Int64Value* _this = reinterpret_cast< Int64Value* >(object); 881 (void)_this; 882 } 883 void Int64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { 884 } 885 void Int64Value::SetCachedSize(int size) const { 886 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 887 _cached_size_ = size; 888 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 889 } 890 const ::google::protobuf::Descriptor* Int64Value::descriptor() { 891 protobuf_AssignDescriptorsOnce(); 892 return Int64Value_descriptor_; 893 } 894 895 const Int64Value& Int64Value::default_instance() { 896 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 897 return *default_instance_; 898 } 899 900 Int64Value* Int64Value::default_instance_ = NULL; 901 902 Int64Value* Int64Value::New(::google::protobuf::Arena* arena) const { 903 return ::google::protobuf::Arena::CreateMessage<Int64Value>(arena); 904 } 905 906 void Int64Value::Clear() { 907 // @@protoc_insertion_point(message_clear_start:google.protobuf.Int64Value) 908 value_ = GOOGLE_LONGLONG(0); 909 } 910 911 bool Int64Value::MergePartialFromCodedStream( 912 ::google::protobuf::io::CodedInputStream* input) { 913 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 914 ::google::protobuf::uint32 tag; 915 // @@protoc_insertion_point(parse_start:google.protobuf.Int64Value) 916 for (;;) { 917 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 918 tag = p.first; 919 if (!p.second) goto handle_unusual; 920 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 921 // optional int64 value = 1; 922 case 1: { 923 if (tag == 8) { 924 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 925 ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( 926 input, &value_))); 927 928 } else { 929 goto handle_unusual; 930 } 931 if (input->ExpectAtEnd()) goto success; 932 break; 933 } 934 935 default: { 936 handle_unusual: 937 if (tag == 0 || 938 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 939 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 940 goto success; 941 } 942 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 943 break; 944 } 945 } 946 } 947 success: 948 // @@protoc_insertion_point(parse_success:google.protobuf.Int64Value) 949 return true; 950 failure: 951 // @@protoc_insertion_point(parse_failure:google.protobuf.Int64Value) 952 return false; 953 #undef DO_ 954 } 955 956 void Int64Value::SerializeWithCachedSizes( 957 ::google::protobuf::io::CodedOutputStream* output) const { 958 // @@protoc_insertion_point(serialize_start:google.protobuf.Int64Value) 959 // optional int64 value = 1; 960 if (this->value() != 0) { 961 ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->value(), output); 962 } 963 964 // @@protoc_insertion_point(serialize_end:google.protobuf.Int64Value) 965 } 966 967 ::google::protobuf::uint8* Int64Value::SerializeWithCachedSizesToArray( 968 ::google::protobuf::uint8* target) const { 969 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Value) 970 // optional int64 value = 1; 971 if (this->value() != 0) { 972 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->value(), target); 973 } 974 975 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int64Value) 976 return target; 977 } 978 979 int Int64Value::ByteSize() const { 980 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int64Value) 981 int total_size = 0; 982 983 // optional int64 value = 1; 984 if (this->value() != 0) { 985 total_size += 1 + 986 ::google::protobuf::internal::WireFormatLite::Int64Size( 987 this->value()); 988 } 989 990 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 991 _cached_size_ = total_size; 992 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 993 return total_size; 994 } 995 996 void Int64Value::MergeFrom(const ::google::protobuf::Message& from) { 997 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int64Value) 998 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 999 const Int64Value* source = 1000 ::google::protobuf::internal::DynamicCastToGenerated<const Int64Value>( 1001 &from); 1002 if (source == NULL) { 1003 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Int64Value) 1004 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1005 } else { 1006 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Int64Value) 1007 MergeFrom(*source); 1008 } 1009 } 1010 1011 void Int64Value::MergeFrom(const Int64Value& from) { 1012 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int64Value) 1013 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1014 if (from.value() != 0) { 1015 set_value(from.value()); 1016 } 1017 } 1018 1019 void Int64Value::CopyFrom(const ::google::protobuf::Message& from) { 1020 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int64Value) 1021 if (&from == this) return; 1022 Clear(); 1023 MergeFrom(from); 1024 } 1025 1026 void Int64Value::CopyFrom(const Int64Value& from) { 1027 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int64Value) 1028 if (&from == this) return; 1029 Clear(); 1030 MergeFrom(from); 1031 } 1032 1033 bool Int64Value::IsInitialized() const { 1034 1035 return true; 1036 } 1037 1038 void Int64Value::Swap(Int64Value* other) { 1039 if (other == this) return; 1040 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 1041 InternalSwap(other); 1042 } else { 1043 Int64Value temp; 1044 temp.MergeFrom(*this); 1045 CopyFrom(*other); 1046 other->CopyFrom(temp); 1047 } 1048 } 1049 void Int64Value::UnsafeArenaSwap(Int64Value* other) { 1050 if (other == this) return; 1051 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 1052 InternalSwap(other); 1053 } 1054 void Int64Value::InternalSwap(Int64Value* other) { 1055 std::swap(value_, other->value_); 1056 _internal_metadata_.Swap(&other->_internal_metadata_); 1057 std::swap(_cached_size_, other->_cached_size_); 1058 } 1059 1060 ::google::protobuf::Metadata Int64Value::GetMetadata() const { 1061 protobuf_AssignDescriptorsOnce(); 1062 ::google::protobuf::Metadata metadata; 1063 metadata.descriptor = Int64Value_descriptor_; 1064 metadata.reflection = Int64Value_reflection_; 1065 return metadata; 1066 } 1067 1068 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1069 // Int64Value 1070 1071 // optional int64 value = 1; 1072 void Int64Value::clear_value() { 1073 value_ = GOOGLE_LONGLONG(0); 1074 } 1075 ::google::protobuf::int64 Int64Value::value() const { 1076 // @@protoc_insertion_point(field_get:google.protobuf.Int64Value.value) 1077 return value_; 1078 } 1079 void Int64Value::set_value(::google::protobuf::int64 value) { 1080 1081 value_ = value; 1082 // @@protoc_insertion_point(field_set:google.protobuf.Int64Value.value) 1083 } 1084 1085 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1086 1087 // =================================================================== 1088 1089 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1090 const int UInt64Value::kValueFieldNumber; 1091 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1092 1093 UInt64Value::UInt64Value() 1094 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1095 SharedCtor(); 1096 // @@protoc_insertion_point(constructor:google.protobuf.UInt64Value) 1097 } 1098 1099 UInt64Value::UInt64Value(::google::protobuf::Arena* arena) 1100 : ::google::protobuf::Message(), 1101 _internal_metadata_(arena) { 1102 SharedCtor(); 1103 RegisterArenaDtor(arena); 1104 // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt64Value) 1105 } 1106 1107 void UInt64Value::InitAsDefaultInstance() { 1108 _is_default_instance_ = true; 1109 } 1110 1111 UInt64Value::UInt64Value(const UInt64Value& from) 1112 : ::google::protobuf::Message(), 1113 _internal_metadata_(NULL) { 1114 SharedCtor(); 1115 MergeFrom(from); 1116 // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt64Value) 1117 } 1118 1119 void UInt64Value::SharedCtor() { 1120 _is_default_instance_ = false; 1121 _cached_size_ = 0; 1122 value_ = GOOGLE_ULONGLONG(0); 1123 } 1124 1125 UInt64Value::~UInt64Value() { 1126 // @@protoc_insertion_point(destructor:google.protobuf.UInt64Value) 1127 SharedDtor(); 1128 } 1129 1130 void UInt64Value::SharedDtor() { 1131 if (GetArenaNoVirtual() != NULL) { 1132 return; 1133 } 1134 1135 if (this != default_instance_) { 1136 } 1137 } 1138 1139 void UInt64Value::ArenaDtor(void* object) { 1140 UInt64Value* _this = reinterpret_cast< UInt64Value* >(object); 1141 (void)_this; 1142 } 1143 void UInt64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { 1144 } 1145 void UInt64Value::SetCachedSize(int size) const { 1146 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1147 _cached_size_ = size; 1148 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1149 } 1150 const ::google::protobuf::Descriptor* UInt64Value::descriptor() { 1151 protobuf_AssignDescriptorsOnce(); 1152 return UInt64Value_descriptor_; 1153 } 1154 1155 const UInt64Value& UInt64Value::default_instance() { 1156 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 1157 return *default_instance_; 1158 } 1159 1160 UInt64Value* UInt64Value::default_instance_ = NULL; 1161 1162 UInt64Value* UInt64Value::New(::google::protobuf::Arena* arena) const { 1163 return ::google::protobuf::Arena::CreateMessage<UInt64Value>(arena); 1164 } 1165 1166 void UInt64Value::Clear() { 1167 // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt64Value) 1168 value_ = GOOGLE_ULONGLONG(0); 1169 } 1170 1171 bool UInt64Value::MergePartialFromCodedStream( 1172 ::google::protobuf::io::CodedInputStream* input) { 1173 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1174 ::google::protobuf::uint32 tag; 1175 // @@protoc_insertion_point(parse_start:google.protobuf.UInt64Value) 1176 for (;;) { 1177 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 1178 tag = p.first; 1179 if (!p.second) goto handle_unusual; 1180 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1181 // optional uint64 value = 1; 1182 case 1: { 1183 if (tag == 8) { 1184 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1185 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( 1186 input, &value_))); 1187 1188 } else { 1189 goto handle_unusual; 1190 } 1191 if (input->ExpectAtEnd()) goto success; 1192 break; 1193 } 1194 1195 default: { 1196 handle_unusual: 1197 if (tag == 0 || 1198 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1199 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1200 goto success; 1201 } 1202 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 1203 break; 1204 } 1205 } 1206 } 1207 success: 1208 // @@protoc_insertion_point(parse_success:google.protobuf.UInt64Value) 1209 return true; 1210 failure: 1211 // @@protoc_insertion_point(parse_failure:google.protobuf.UInt64Value) 1212 return false; 1213 #undef DO_ 1214 } 1215 1216 void UInt64Value::SerializeWithCachedSizes( 1217 ::google::protobuf::io::CodedOutputStream* output) const { 1218 // @@protoc_insertion_point(serialize_start:google.protobuf.UInt64Value) 1219 // optional uint64 value = 1; 1220 if (this->value() != 0) { 1221 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(), output); 1222 } 1223 1224 // @@protoc_insertion_point(serialize_end:google.protobuf.UInt64Value) 1225 } 1226 1227 ::google::protobuf::uint8* UInt64Value::SerializeWithCachedSizesToArray( 1228 ::google::protobuf::uint8* target) const { 1229 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Value) 1230 // optional uint64 value = 1; 1231 if (this->value() != 0) { 1232 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->value(), target); 1233 } 1234 1235 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt64Value) 1236 return target; 1237 } 1238 1239 int UInt64Value::ByteSize() const { 1240 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt64Value) 1241 int total_size = 0; 1242 1243 // optional uint64 value = 1; 1244 if (this->value() != 0) { 1245 total_size += 1 + 1246 ::google::protobuf::internal::WireFormatLite::UInt64Size( 1247 this->value()); 1248 } 1249 1250 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1251 _cached_size_ = total_size; 1252 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1253 return total_size; 1254 } 1255 1256 void UInt64Value::MergeFrom(const ::google::protobuf::Message& from) { 1257 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt64Value) 1258 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1259 const UInt64Value* source = 1260 ::google::protobuf::internal::DynamicCastToGenerated<const UInt64Value>( 1261 &from); 1262 if (source == NULL) { 1263 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UInt64Value) 1264 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1265 } else { 1266 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UInt64Value) 1267 MergeFrom(*source); 1268 } 1269 } 1270 1271 void UInt64Value::MergeFrom(const UInt64Value& from) { 1272 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt64Value) 1273 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1274 if (from.value() != 0) { 1275 set_value(from.value()); 1276 } 1277 } 1278 1279 void UInt64Value::CopyFrom(const ::google::protobuf::Message& from) { 1280 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt64Value) 1281 if (&from == this) return; 1282 Clear(); 1283 MergeFrom(from); 1284 } 1285 1286 void UInt64Value::CopyFrom(const UInt64Value& from) { 1287 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt64Value) 1288 if (&from == this) return; 1289 Clear(); 1290 MergeFrom(from); 1291 } 1292 1293 bool UInt64Value::IsInitialized() const { 1294 1295 return true; 1296 } 1297 1298 void UInt64Value::Swap(UInt64Value* other) { 1299 if (other == this) return; 1300 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 1301 InternalSwap(other); 1302 } else { 1303 UInt64Value temp; 1304 temp.MergeFrom(*this); 1305 CopyFrom(*other); 1306 other->CopyFrom(temp); 1307 } 1308 } 1309 void UInt64Value::UnsafeArenaSwap(UInt64Value* other) { 1310 if (other == this) return; 1311 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 1312 InternalSwap(other); 1313 } 1314 void UInt64Value::InternalSwap(UInt64Value* other) { 1315 std::swap(value_, other->value_); 1316 _internal_metadata_.Swap(&other->_internal_metadata_); 1317 std::swap(_cached_size_, other->_cached_size_); 1318 } 1319 1320 ::google::protobuf::Metadata UInt64Value::GetMetadata() const { 1321 protobuf_AssignDescriptorsOnce(); 1322 ::google::protobuf::Metadata metadata; 1323 metadata.descriptor = UInt64Value_descriptor_; 1324 metadata.reflection = UInt64Value_reflection_; 1325 return metadata; 1326 } 1327 1328 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1329 // UInt64Value 1330 1331 // optional uint64 value = 1; 1332 void UInt64Value::clear_value() { 1333 value_ = GOOGLE_ULONGLONG(0); 1334 } 1335 ::google::protobuf::uint64 UInt64Value::value() const { 1336 // @@protoc_insertion_point(field_get:google.protobuf.UInt64Value.value) 1337 return value_; 1338 } 1339 void UInt64Value::set_value(::google::protobuf::uint64 value) { 1340 1341 value_ = value; 1342 // @@protoc_insertion_point(field_set:google.protobuf.UInt64Value.value) 1343 } 1344 1345 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1346 1347 // =================================================================== 1348 1349 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1350 const int Int32Value::kValueFieldNumber; 1351 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1352 1353 Int32Value::Int32Value() 1354 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1355 SharedCtor(); 1356 // @@protoc_insertion_point(constructor:google.protobuf.Int32Value) 1357 } 1358 1359 Int32Value::Int32Value(::google::protobuf::Arena* arena) 1360 : ::google::protobuf::Message(), 1361 _internal_metadata_(arena) { 1362 SharedCtor(); 1363 RegisterArenaDtor(arena); 1364 // @@protoc_insertion_point(arena_constructor:google.protobuf.Int32Value) 1365 } 1366 1367 void Int32Value::InitAsDefaultInstance() { 1368 _is_default_instance_ = true; 1369 } 1370 1371 Int32Value::Int32Value(const Int32Value& from) 1372 : ::google::protobuf::Message(), 1373 _internal_metadata_(NULL) { 1374 SharedCtor(); 1375 MergeFrom(from); 1376 // @@protoc_insertion_point(copy_constructor:google.protobuf.Int32Value) 1377 } 1378 1379 void Int32Value::SharedCtor() { 1380 _is_default_instance_ = false; 1381 _cached_size_ = 0; 1382 value_ = 0; 1383 } 1384 1385 Int32Value::~Int32Value() { 1386 // @@protoc_insertion_point(destructor:google.protobuf.Int32Value) 1387 SharedDtor(); 1388 } 1389 1390 void Int32Value::SharedDtor() { 1391 if (GetArenaNoVirtual() != NULL) { 1392 return; 1393 } 1394 1395 if (this != default_instance_) { 1396 } 1397 } 1398 1399 void Int32Value::ArenaDtor(void* object) { 1400 Int32Value* _this = reinterpret_cast< Int32Value* >(object); 1401 (void)_this; 1402 } 1403 void Int32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { 1404 } 1405 void Int32Value::SetCachedSize(int size) const { 1406 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1407 _cached_size_ = size; 1408 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1409 } 1410 const ::google::protobuf::Descriptor* Int32Value::descriptor() { 1411 protobuf_AssignDescriptorsOnce(); 1412 return Int32Value_descriptor_; 1413 } 1414 1415 const Int32Value& Int32Value::default_instance() { 1416 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 1417 return *default_instance_; 1418 } 1419 1420 Int32Value* Int32Value::default_instance_ = NULL; 1421 1422 Int32Value* Int32Value::New(::google::protobuf::Arena* arena) const { 1423 return ::google::protobuf::Arena::CreateMessage<Int32Value>(arena); 1424 } 1425 1426 void Int32Value::Clear() { 1427 // @@protoc_insertion_point(message_clear_start:google.protobuf.Int32Value) 1428 value_ = 0; 1429 } 1430 1431 bool Int32Value::MergePartialFromCodedStream( 1432 ::google::protobuf::io::CodedInputStream* input) { 1433 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1434 ::google::protobuf::uint32 tag; 1435 // @@protoc_insertion_point(parse_start:google.protobuf.Int32Value) 1436 for (;;) { 1437 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 1438 tag = p.first; 1439 if (!p.second) goto handle_unusual; 1440 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1441 // optional int32 value = 1; 1442 case 1: { 1443 if (tag == 8) { 1444 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1445 ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( 1446 input, &value_))); 1447 1448 } else { 1449 goto handle_unusual; 1450 } 1451 if (input->ExpectAtEnd()) goto success; 1452 break; 1453 } 1454 1455 default: { 1456 handle_unusual: 1457 if (tag == 0 || 1458 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1459 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1460 goto success; 1461 } 1462 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 1463 break; 1464 } 1465 } 1466 } 1467 success: 1468 // @@protoc_insertion_point(parse_success:google.protobuf.Int32Value) 1469 return true; 1470 failure: 1471 // @@protoc_insertion_point(parse_failure:google.protobuf.Int32Value) 1472 return false; 1473 #undef DO_ 1474 } 1475 1476 void Int32Value::SerializeWithCachedSizes( 1477 ::google::protobuf::io::CodedOutputStream* output) const { 1478 // @@protoc_insertion_point(serialize_start:google.protobuf.Int32Value) 1479 // optional int32 value = 1; 1480 if (this->value() != 0) { 1481 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), output); 1482 } 1483 1484 // @@protoc_insertion_point(serialize_end:google.protobuf.Int32Value) 1485 } 1486 1487 ::google::protobuf::uint8* Int32Value::SerializeWithCachedSizesToArray( 1488 ::google::protobuf::uint8* target) const { 1489 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Value) 1490 // optional int32 value = 1; 1491 if (this->value() != 0) { 1492 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->value(), target); 1493 } 1494 1495 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int32Value) 1496 return target; 1497 } 1498 1499 int Int32Value::ByteSize() const { 1500 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int32Value) 1501 int total_size = 0; 1502 1503 // optional int32 value = 1; 1504 if (this->value() != 0) { 1505 total_size += 1 + 1506 ::google::protobuf::internal::WireFormatLite::Int32Size( 1507 this->value()); 1508 } 1509 1510 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1511 _cached_size_ = total_size; 1512 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1513 return total_size; 1514 } 1515 1516 void Int32Value::MergeFrom(const ::google::protobuf::Message& from) { 1517 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int32Value) 1518 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1519 const Int32Value* source = 1520 ::google::protobuf::internal::DynamicCastToGenerated<const Int32Value>( 1521 &from); 1522 if (source == NULL) { 1523 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Int32Value) 1524 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1525 } else { 1526 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Int32Value) 1527 MergeFrom(*source); 1528 } 1529 } 1530 1531 void Int32Value::MergeFrom(const Int32Value& from) { 1532 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int32Value) 1533 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1534 if (from.value() != 0) { 1535 set_value(from.value()); 1536 } 1537 } 1538 1539 void Int32Value::CopyFrom(const ::google::protobuf::Message& from) { 1540 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int32Value) 1541 if (&from == this) return; 1542 Clear(); 1543 MergeFrom(from); 1544 } 1545 1546 void Int32Value::CopyFrom(const Int32Value& from) { 1547 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int32Value) 1548 if (&from == this) return; 1549 Clear(); 1550 MergeFrom(from); 1551 } 1552 1553 bool Int32Value::IsInitialized() const { 1554 1555 return true; 1556 } 1557 1558 void Int32Value::Swap(Int32Value* other) { 1559 if (other == this) return; 1560 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 1561 InternalSwap(other); 1562 } else { 1563 Int32Value temp; 1564 temp.MergeFrom(*this); 1565 CopyFrom(*other); 1566 other->CopyFrom(temp); 1567 } 1568 } 1569 void Int32Value::UnsafeArenaSwap(Int32Value* other) { 1570 if (other == this) return; 1571 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 1572 InternalSwap(other); 1573 } 1574 void Int32Value::InternalSwap(Int32Value* other) { 1575 std::swap(value_, other->value_); 1576 _internal_metadata_.Swap(&other->_internal_metadata_); 1577 std::swap(_cached_size_, other->_cached_size_); 1578 } 1579 1580 ::google::protobuf::Metadata Int32Value::GetMetadata() const { 1581 protobuf_AssignDescriptorsOnce(); 1582 ::google::protobuf::Metadata metadata; 1583 metadata.descriptor = Int32Value_descriptor_; 1584 metadata.reflection = Int32Value_reflection_; 1585 return metadata; 1586 } 1587 1588 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1589 // Int32Value 1590 1591 // optional int32 value = 1; 1592 void Int32Value::clear_value() { 1593 value_ = 0; 1594 } 1595 ::google::protobuf::int32 Int32Value::value() const { 1596 // @@protoc_insertion_point(field_get:google.protobuf.Int32Value.value) 1597 return value_; 1598 } 1599 void Int32Value::set_value(::google::protobuf::int32 value) { 1600 1601 value_ = value; 1602 // @@protoc_insertion_point(field_set:google.protobuf.Int32Value.value) 1603 } 1604 1605 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1606 1607 // =================================================================== 1608 1609 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1610 const int UInt32Value::kValueFieldNumber; 1611 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1612 1613 UInt32Value::UInt32Value() 1614 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1615 SharedCtor(); 1616 // @@protoc_insertion_point(constructor:google.protobuf.UInt32Value) 1617 } 1618 1619 UInt32Value::UInt32Value(::google::protobuf::Arena* arena) 1620 : ::google::protobuf::Message(), 1621 _internal_metadata_(arena) { 1622 SharedCtor(); 1623 RegisterArenaDtor(arena); 1624 // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt32Value) 1625 } 1626 1627 void UInt32Value::InitAsDefaultInstance() { 1628 _is_default_instance_ = true; 1629 } 1630 1631 UInt32Value::UInt32Value(const UInt32Value& from) 1632 : ::google::protobuf::Message(), 1633 _internal_metadata_(NULL) { 1634 SharedCtor(); 1635 MergeFrom(from); 1636 // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt32Value) 1637 } 1638 1639 void UInt32Value::SharedCtor() { 1640 _is_default_instance_ = false; 1641 _cached_size_ = 0; 1642 value_ = 0u; 1643 } 1644 1645 UInt32Value::~UInt32Value() { 1646 // @@protoc_insertion_point(destructor:google.protobuf.UInt32Value) 1647 SharedDtor(); 1648 } 1649 1650 void UInt32Value::SharedDtor() { 1651 if (GetArenaNoVirtual() != NULL) { 1652 return; 1653 } 1654 1655 if (this != default_instance_) { 1656 } 1657 } 1658 1659 void UInt32Value::ArenaDtor(void* object) { 1660 UInt32Value* _this = reinterpret_cast< UInt32Value* >(object); 1661 (void)_this; 1662 } 1663 void UInt32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { 1664 } 1665 void UInt32Value::SetCachedSize(int size) const { 1666 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1667 _cached_size_ = size; 1668 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1669 } 1670 const ::google::protobuf::Descriptor* UInt32Value::descriptor() { 1671 protobuf_AssignDescriptorsOnce(); 1672 return UInt32Value_descriptor_; 1673 } 1674 1675 const UInt32Value& UInt32Value::default_instance() { 1676 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 1677 return *default_instance_; 1678 } 1679 1680 UInt32Value* UInt32Value::default_instance_ = NULL; 1681 1682 UInt32Value* UInt32Value::New(::google::protobuf::Arena* arena) const { 1683 return ::google::protobuf::Arena::CreateMessage<UInt32Value>(arena); 1684 } 1685 1686 void UInt32Value::Clear() { 1687 // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt32Value) 1688 value_ = 0u; 1689 } 1690 1691 bool UInt32Value::MergePartialFromCodedStream( 1692 ::google::protobuf::io::CodedInputStream* input) { 1693 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1694 ::google::protobuf::uint32 tag; 1695 // @@protoc_insertion_point(parse_start:google.protobuf.UInt32Value) 1696 for (;;) { 1697 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 1698 tag = p.first; 1699 if (!p.second) goto handle_unusual; 1700 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1701 // optional uint32 value = 1; 1702 case 1: { 1703 if (tag == 8) { 1704 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1705 ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( 1706 input, &value_))); 1707 1708 } else { 1709 goto handle_unusual; 1710 } 1711 if (input->ExpectAtEnd()) goto success; 1712 break; 1713 } 1714 1715 default: { 1716 handle_unusual: 1717 if (tag == 0 || 1718 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1719 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1720 goto success; 1721 } 1722 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 1723 break; 1724 } 1725 } 1726 } 1727 success: 1728 // @@protoc_insertion_point(parse_success:google.protobuf.UInt32Value) 1729 return true; 1730 failure: 1731 // @@protoc_insertion_point(parse_failure:google.protobuf.UInt32Value) 1732 return false; 1733 #undef DO_ 1734 } 1735 1736 void UInt32Value::SerializeWithCachedSizes( 1737 ::google::protobuf::io::CodedOutputStream* output) const { 1738 // @@protoc_insertion_point(serialize_start:google.protobuf.UInt32Value) 1739 // optional uint32 value = 1; 1740 if (this->value() != 0) { 1741 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(), output); 1742 } 1743 1744 // @@protoc_insertion_point(serialize_end:google.protobuf.UInt32Value) 1745 } 1746 1747 ::google::protobuf::uint8* UInt32Value::SerializeWithCachedSizesToArray( 1748 ::google::protobuf::uint8* target) const { 1749 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Value) 1750 // optional uint32 value = 1; 1751 if (this->value() != 0) { 1752 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->value(), target); 1753 } 1754 1755 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt32Value) 1756 return target; 1757 } 1758 1759 int UInt32Value::ByteSize() const { 1760 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt32Value) 1761 int total_size = 0; 1762 1763 // optional uint32 value = 1; 1764 if (this->value() != 0) { 1765 total_size += 1 + 1766 ::google::protobuf::internal::WireFormatLite::UInt32Size( 1767 this->value()); 1768 } 1769 1770 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1771 _cached_size_ = total_size; 1772 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1773 return total_size; 1774 } 1775 1776 void UInt32Value::MergeFrom(const ::google::protobuf::Message& from) { 1777 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt32Value) 1778 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1779 const UInt32Value* source = 1780 ::google::protobuf::internal::DynamicCastToGenerated<const UInt32Value>( 1781 &from); 1782 if (source == NULL) { 1783 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.UInt32Value) 1784 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 1785 } else { 1786 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.UInt32Value) 1787 MergeFrom(*source); 1788 } 1789 } 1790 1791 void UInt32Value::MergeFrom(const UInt32Value& from) { 1792 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt32Value) 1793 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 1794 if (from.value() != 0) { 1795 set_value(from.value()); 1796 } 1797 } 1798 1799 void UInt32Value::CopyFrom(const ::google::protobuf::Message& from) { 1800 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt32Value) 1801 if (&from == this) return; 1802 Clear(); 1803 MergeFrom(from); 1804 } 1805 1806 void UInt32Value::CopyFrom(const UInt32Value& from) { 1807 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt32Value) 1808 if (&from == this) return; 1809 Clear(); 1810 MergeFrom(from); 1811 } 1812 1813 bool UInt32Value::IsInitialized() const { 1814 1815 return true; 1816 } 1817 1818 void UInt32Value::Swap(UInt32Value* other) { 1819 if (other == this) return; 1820 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 1821 InternalSwap(other); 1822 } else { 1823 UInt32Value temp; 1824 temp.MergeFrom(*this); 1825 CopyFrom(*other); 1826 other->CopyFrom(temp); 1827 } 1828 } 1829 void UInt32Value::UnsafeArenaSwap(UInt32Value* other) { 1830 if (other == this) return; 1831 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 1832 InternalSwap(other); 1833 } 1834 void UInt32Value::InternalSwap(UInt32Value* other) { 1835 std::swap(value_, other->value_); 1836 _internal_metadata_.Swap(&other->_internal_metadata_); 1837 std::swap(_cached_size_, other->_cached_size_); 1838 } 1839 1840 ::google::protobuf::Metadata UInt32Value::GetMetadata() const { 1841 protobuf_AssignDescriptorsOnce(); 1842 ::google::protobuf::Metadata metadata; 1843 metadata.descriptor = UInt32Value_descriptor_; 1844 metadata.reflection = UInt32Value_reflection_; 1845 return metadata; 1846 } 1847 1848 #if PROTOBUF_INLINE_NOT_IN_HEADERS 1849 // UInt32Value 1850 1851 // optional uint32 value = 1; 1852 void UInt32Value::clear_value() { 1853 value_ = 0u; 1854 } 1855 ::google::protobuf::uint32 UInt32Value::value() const { 1856 // @@protoc_insertion_point(field_get:google.protobuf.UInt32Value.value) 1857 return value_; 1858 } 1859 void UInt32Value::set_value(::google::protobuf::uint32 value) { 1860 1861 value_ = value; 1862 // @@protoc_insertion_point(field_set:google.protobuf.UInt32Value.value) 1863 } 1864 1865 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 1866 1867 // =================================================================== 1868 1869 #if !defined(_MSC_VER) || _MSC_VER >= 1900 1870 const int BoolValue::kValueFieldNumber; 1871 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 1872 1873 BoolValue::BoolValue() 1874 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 1875 SharedCtor(); 1876 // @@protoc_insertion_point(constructor:google.protobuf.BoolValue) 1877 } 1878 1879 BoolValue::BoolValue(::google::protobuf::Arena* arena) 1880 : ::google::protobuf::Message(), 1881 _internal_metadata_(arena) { 1882 SharedCtor(); 1883 RegisterArenaDtor(arena); 1884 // @@protoc_insertion_point(arena_constructor:google.protobuf.BoolValue) 1885 } 1886 1887 void BoolValue::InitAsDefaultInstance() { 1888 _is_default_instance_ = true; 1889 } 1890 1891 BoolValue::BoolValue(const BoolValue& from) 1892 : ::google::protobuf::Message(), 1893 _internal_metadata_(NULL) { 1894 SharedCtor(); 1895 MergeFrom(from); 1896 // @@protoc_insertion_point(copy_constructor:google.protobuf.BoolValue) 1897 } 1898 1899 void BoolValue::SharedCtor() { 1900 _is_default_instance_ = false; 1901 _cached_size_ = 0; 1902 value_ = false; 1903 } 1904 1905 BoolValue::~BoolValue() { 1906 // @@protoc_insertion_point(destructor:google.protobuf.BoolValue) 1907 SharedDtor(); 1908 } 1909 1910 void BoolValue::SharedDtor() { 1911 if (GetArenaNoVirtual() != NULL) { 1912 return; 1913 } 1914 1915 if (this != default_instance_) { 1916 } 1917 } 1918 1919 void BoolValue::ArenaDtor(void* object) { 1920 BoolValue* _this = reinterpret_cast< BoolValue* >(object); 1921 (void)_this; 1922 } 1923 void BoolValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { 1924 } 1925 void BoolValue::SetCachedSize(int size) const { 1926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 1927 _cached_size_ = size; 1928 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 1929 } 1930 const ::google::protobuf::Descriptor* BoolValue::descriptor() { 1931 protobuf_AssignDescriptorsOnce(); 1932 return BoolValue_descriptor_; 1933 } 1934 1935 const BoolValue& BoolValue::default_instance() { 1936 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 1937 return *default_instance_; 1938 } 1939 1940 BoolValue* BoolValue::default_instance_ = NULL; 1941 1942 BoolValue* BoolValue::New(::google::protobuf::Arena* arena) const { 1943 return ::google::protobuf::Arena::CreateMessage<BoolValue>(arena); 1944 } 1945 1946 void BoolValue::Clear() { 1947 // @@protoc_insertion_point(message_clear_start:google.protobuf.BoolValue) 1948 value_ = false; 1949 } 1950 1951 bool BoolValue::MergePartialFromCodedStream( 1952 ::google::protobuf::io::CodedInputStream* input) { 1953 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 1954 ::google::protobuf::uint32 tag; 1955 // @@protoc_insertion_point(parse_start:google.protobuf.BoolValue) 1956 for (;;) { 1957 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 1958 tag = p.first; 1959 if (!p.second) goto handle_unusual; 1960 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 1961 // optional bool value = 1; 1962 case 1: { 1963 if (tag == 8) { 1964 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< 1965 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( 1966 input, &value_))); 1967 1968 } else { 1969 goto handle_unusual; 1970 } 1971 if (input->ExpectAtEnd()) goto success; 1972 break; 1973 } 1974 1975 default: { 1976 handle_unusual: 1977 if (tag == 0 || 1978 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 1979 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 1980 goto success; 1981 } 1982 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 1983 break; 1984 } 1985 } 1986 } 1987 success: 1988 // @@protoc_insertion_point(parse_success:google.protobuf.BoolValue) 1989 return true; 1990 failure: 1991 // @@protoc_insertion_point(parse_failure:google.protobuf.BoolValue) 1992 return false; 1993 #undef DO_ 1994 } 1995 1996 void BoolValue::SerializeWithCachedSizes( 1997 ::google::protobuf::io::CodedOutputStream* output) const { 1998 // @@protoc_insertion_point(serialize_start:google.protobuf.BoolValue) 1999 // optional bool value = 1; 2000 if (this->value() != 0) { 2001 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->value(), output); 2002 } 2003 2004 // @@protoc_insertion_point(serialize_end:google.protobuf.BoolValue) 2005 } 2006 2007 ::google::protobuf::uint8* BoolValue::SerializeWithCachedSizesToArray( 2008 ::google::protobuf::uint8* target) const { 2009 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue) 2010 // optional bool value = 1; 2011 if (this->value() != 0) { 2012 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->value(), target); 2013 } 2014 2015 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BoolValue) 2016 return target; 2017 } 2018 2019 int BoolValue::ByteSize() const { 2020 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BoolValue) 2021 int total_size = 0; 2022 2023 // optional bool value = 1; 2024 if (this->value() != 0) { 2025 total_size += 1 + 1; 2026 } 2027 2028 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2029 _cached_size_ = total_size; 2030 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2031 return total_size; 2032 } 2033 2034 void BoolValue::MergeFrom(const ::google::protobuf::Message& from) { 2035 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BoolValue) 2036 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2037 const BoolValue* source = 2038 ::google::protobuf::internal::DynamicCastToGenerated<const BoolValue>( 2039 &from); 2040 if (source == NULL) { 2041 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.BoolValue) 2042 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2043 } else { 2044 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.BoolValue) 2045 MergeFrom(*source); 2046 } 2047 } 2048 2049 void BoolValue::MergeFrom(const BoolValue& from) { 2050 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BoolValue) 2051 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2052 if (from.value() != 0) { 2053 set_value(from.value()); 2054 } 2055 } 2056 2057 void BoolValue::CopyFrom(const ::google::protobuf::Message& from) { 2058 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BoolValue) 2059 if (&from == this) return; 2060 Clear(); 2061 MergeFrom(from); 2062 } 2063 2064 void BoolValue::CopyFrom(const BoolValue& from) { 2065 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BoolValue) 2066 if (&from == this) return; 2067 Clear(); 2068 MergeFrom(from); 2069 } 2070 2071 bool BoolValue::IsInitialized() const { 2072 2073 return true; 2074 } 2075 2076 void BoolValue::Swap(BoolValue* other) { 2077 if (other == this) return; 2078 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 2079 InternalSwap(other); 2080 } else { 2081 BoolValue temp; 2082 temp.MergeFrom(*this); 2083 CopyFrom(*other); 2084 other->CopyFrom(temp); 2085 } 2086 } 2087 void BoolValue::UnsafeArenaSwap(BoolValue* other) { 2088 if (other == this) return; 2089 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 2090 InternalSwap(other); 2091 } 2092 void BoolValue::InternalSwap(BoolValue* other) { 2093 std::swap(value_, other->value_); 2094 _internal_metadata_.Swap(&other->_internal_metadata_); 2095 std::swap(_cached_size_, other->_cached_size_); 2096 } 2097 2098 ::google::protobuf::Metadata BoolValue::GetMetadata() const { 2099 protobuf_AssignDescriptorsOnce(); 2100 ::google::protobuf::Metadata metadata; 2101 metadata.descriptor = BoolValue_descriptor_; 2102 metadata.reflection = BoolValue_reflection_; 2103 return metadata; 2104 } 2105 2106 #if PROTOBUF_INLINE_NOT_IN_HEADERS 2107 // BoolValue 2108 2109 // optional bool value = 1; 2110 void BoolValue::clear_value() { 2111 value_ = false; 2112 } 2113 bool BoolValue::value() const { 2114 // @@protoc_insertion_point(field_get:google.protobuf.BoolValue.value) 2115 return value_; 2116 } 2117 void BoolValue::set_value(bool value) { 2118 2119 value_ = value; 2120 // @@protoc_insertion_point(field_set:google.protobuf.BoolValue.value) 2121 } 2122 2123 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2124 2125 // =================================================================== 2126 2127 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2128 const int StringValue::kValueFieldNumber; 2129 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2130 2131 StringValue::StringValue() 2132 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2133 SharedCtor(); 2134 // @@protoc_insertion_point(constructor:google.protobuf.StringValue) 2135 } 2136 2137 StringValue::StringValue(::google::protobuf::Arena* arena) 2138 : ::google::protobuf::Message(), 2139 _internal_metadata_(arena) { 2140 SharedCtor(); 2141 RegisterArenaDtor(arena); 2142 // @@protoc_insertion_point(arena_constructor:google.protobuf.StringValue) 2143 } 2144 2145 void StringValue::InitAsDefaultInstance() { 2146 _is_default_instance_ = true; 2147 } 2148 2149 StringValue::StringValue(const StringValue& from) 2150 : ::google::protobuf::Message(), 2151 _internal_metadata_(NULL) { 2152 SharedCtor(); 2153 MergeFrom(from); 2154 // @@protoc_insertion_point(copy_constructor:google.protobuf.StringValue) 2155 } 2156 2157 void StringValue::SharedCtor() { 2158 _is_default_instance_ = false; 2159 ::google::protobuf::internal::GetEmptyString(); 2160 _cached_size_ = 0; 2161 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2162 } 2163 2164 StringValue::~StringValue() { 2165 // @@protoc_insertion_point(destructor:google.protobuf.StringValue) 2166 SharedDtor(); 2167 } 2168 2169 void StringValue::SharedDtor() { 2170 if (GetArenaNoVirtual() != NULL) { 2171 return; 2172 } 2173 2174 value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2175 if (this != default_instance_) { 2176 } 2177 } 2178 2179 void StringValue::ArenaDtor(void* object) { 2180 StringValue* _this = reinterpret_cast< StringValue* >(object); 2181 (void)_this; 2182 } 2183 void StringValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { 2184 } 2185 void StringValue::SetCachedSize(int size) const { 2186 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2187 _cached_size_ = size; 2188 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2189 } 2190 const ::google::protobuf::Descriptor* StringValue::descriptor() { 2191 protobuf_AssignDescriptorsOnce(); 2192 return StringValue_descriptor_; 2193 } 2194 2195 const StringValue& StringValue::default_instance() { 2196 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 2197 return *default_instance_; 2198 } 2199 2200 StringValue* StringValue::default_instance_ = NULL; 2201 2202 StringValue* StringValue::New(::google::protobuf::Arena* arena) const { 2203 return ::google::protobuf::Arena::CreateMessage<StringValue>(arena); 2204 } 2205 2206 void StringValue::Clear() { 2207 // @@protoc_insertion_point(message_clear_start:google.protobuf.StringValue) 2208 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2209 } 2210 2211 bool StringValue::MergePartialFromCodedStream( 2212 ::google::protobuf::io::CodedInputStream* input) { 2213 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2214 ::google::protobuf::uint32 tag; 2215 // @@protoc_insertion_point(parse_start:google.protobuf.StringValue) 2216 for (;;) { 2217 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 2218 tag = p.first; 2219 if (!p.second) goto handle_unusual; 2220 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 2221 // optional string value = 1; 2222 case 1: { 2223 if (tag == 10) { 2224 DO_(::google::protobuf::internal::WireFormatLite::ReadString( 2225 input, this->mutable_value())); 2226 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2227 this->value().data(), this->value().length(), 2228 ::google::protobuf::internal::WireFormatLite::PARSE, 2229 "google.protobuf.StringValue.value")); 2230 } else { 2231 goto handle_unusual; 2232 } 2233 if (input->ExpectAtEnd()) goto success; 2234 break; 2235 } 2236 2237 default: { 2238 handle_unusual: 2239 if (tag == 0 || 2240 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2241 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2242 goto success; 2243 } 2244 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 2245 break; 2246 } 2247 } 2248 } 2249 success: 2250 // @@protoc_insertion_point(parse_success:google.protobuf.StringValue) 2251 return true; 2252 failure: 2253 // @@protoc_insertion_point(parse_failure:google.protobuf.StringValue) 2254 return false; 2255 #undef DO_ 2256 } 2257 2258 void StringValue::SerializeWithCachedSizes( 2259 ::google::protobuf::io::CodedOutputStream* output) const { 2260 // @@protoc_insertion_point(serialize_start:google.protobuf.StringValue) 2261 // optional string value = 1; 2262 if (this->value().size() > 0) { 2263 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2264 this->value().data(), this->value().length(), 2265 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2266 "google.protobuf.StringValue.value"); 2267 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 2268 1, this->value(), output); 2269 } 2270 2271 // @@protoc_insertion_point(serialize_end:google.protobuf.StringValue) 2272 } 2273 2274 ::google::protobuf::uint8* StringValue::SerializeWithCachedSizesToArray( 2275 ::google::protobuf::uint8* target) const { 2276 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringValue) 2277 // optional string value = 1; 2278 if (this->value().size() > 0) { 2279 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( 2280 this->value().data(), this->value().length(), 2281 ::google::protobuf::internal::WireFormatLite::SERIALIZE, 2282 "google.protobuf.StringValue.value"); 2283 target = 2284 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2285 1, this->value(), target); 2286 } 2287 2288 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.StringValue) 2289 return target; 2290 } 2291 2292 int StringValue::ByteSize() const { 2293 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.StringValue) 2294 int total_size = 0; 2295 2296 // optional string value = 1; 2297 if (this->value().size() > 0) { 2298 total_size += 1 + 2299 ::google::protobuf::internal::WireFormatLite::StringSize( 2300 this->value()); 2301 } 2302 2303 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2304 _cached_size_ = total_size; 2305 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2306 return total_size; 2307 } 2308 2309 void StringValue::MergeFrom(const ::google::protobuf::Message& from) { 2310 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.StringValue) 2311 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2312 const StringValue* source = 2313 ::google::protobuf::internal::DynamicCastToGenerated<const StringValue>( 2314 &from); 2315 if (source == NULL) { 2316 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.StringValue) 2317 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2318 } else { 2319 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.StringValue) 2320 MergeFrom(*source); 2321 } 2322 } 2323 2324 void StringValue::MergeFrom(const StringValue& from) { 2325 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.StringValue) 2326 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2327 if (from.value().size() > 0) { 2328 set_value(from.value()); 2329 } 2330 } 2331 2332 void StringValue::CopyFrom(const ::google::protobuf::Message& from) { 2333 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.StringValue) 2334 if (&from == this) return; 2335 Clear(); 2336 MergeFrom(from); 2337 } 2338 2339 void StringValue::CopyFrom(const StringValue& from) { 2340 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.StringValue) 2341 if (&from == this) return; 2342 Clear(); 2343 MergeFrom(from); 2344 } 2345 2346 bool StringValue::IsInitialized() const { 2347 2348 return true; 2349 } 2350 2351 void StringValue::Swap(StringValue* other) { 2352 if (other == this) return; 2353 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 2354 InternalSwap(other); 2355 } else { 2356 StringValue temp; 2357 temp.MergeFrom(*this); 2358 CopyFrom(*other); 2359 other->CopyFrom(temp); 2360 } 2361 } 2362 void StringValue::UnsafeArenaSwap(StringValue* other) { 2363 if (other == this) return; 2364 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 2365 InternalSwap(other); 2366 } 2367 void StringValue::InternalSwap(StringValue* other) { 2368 value_.Swap(&other->value_); 2369 _internal_metadata_.Swap(&other->_internal_metadata_); 2370 std::swap(_cached_size_, other->_cached_size_); 2371 } 2372 2373 ::google::protobuf::Metadata StringValue::GetMetadata() const { 2374 protobuf_AssignDescriptorsOnce(); 2375 ::google::protobuf::Metadata metadata; 2376 metadata.descriptor = StringValue_descriptor_; 2377 metadata.reflection = StringValue_reflection_; 2378 return metadata; 2379 } 2380 2381 #if PROTOBUF_INLINE_NOT_IN_HEADERS 2382 // StringValue 2383 2384 // optional string value = 1; 2385 void StringValue::clear_value() { 2386 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2387 } 2388 const ::std::string& StringValue::value() const { 2389 // @@protoc_insertion_point(field_get:google.protobuf.StringValue.value) 2390 return value_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2391 } 2392 void StringValue::set_value(const ::std::string& value) { 2393 2394 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); 2395 // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value) 2396 } 2397 void StringValue::set_value(const char* value) { 2398 2399 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), 2400 GetArenaNoVirtual()); 2401 // @@protoc_insertion_point(field_set_char:google.protobuf.StringValue.value) 2402 } 2403 void StringValue::set_value(const char* value, 2404 size_t size) { 2405 2406 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( 2407 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); 2408 // @@protoc_insertion_point(field_set_pointer:google.protobuf.StringValue.value) 2409 } 2410 ::std::string* StringValue::mutable_value() { 2411 2412 // @@protoc_insertion_point(field_mutable:google.protobuf.StringValue.value) 2413 return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2414 } 2415 ::std::string* StringValue::release_value() { 2416 // @@protoc_insertion_point(field_release:google.protobuf.StringValue.value) 2417 2418 return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2419 } 2420 ::std::string* StringValue::unsafe_arena_release_value() { 2421 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.StringValue.value) 2422 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); 2423 2424 return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2425 GetArenaNoVirtual()); 2426 } 2427 void StringValue::set_allocated_value(::std::string* value) { 2428 if (value != NULL) { 2429 2430 } else { 2431 2432 } 2433 value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, 2434 GetArenaNoVirtual()); 2435 // @@protoc_insertion_point(field_set_allocated:google.protobuf.StringValue.value) 2436 } 2437 void StringValue::unsafe_arena_set_allocated_value( 2438 ::std::string* value) { 2439 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); 2440 if (value != NULL) { 2441 2442 } else { 2443 2444 } 2445 value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2446 value, GetArenaNoVirtual()); 2447 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.StringValue.value) 2448 } 2449 2450 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2451 2452 // =================================================================== 2453 2454 #if !defined(_MSC_VER) || _MSC_VER >= 1900 2455 const int BytesValue::kValueFieldNumber; 2456 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 2457 2458 BytesValue::BytesValue() 2459 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 2460 SharedCtor(); 2461 // @@protoc_insertion_point(constructor:google.protobuf.BytesValue) 2462 } 2463 2464 BytesValue::BytesValue(::google::protobuf::Arena* arena) 2465 : ::google::protobuf::Message(), 2466 _internal_metadata_(arena) { 2467 SharedCtor(); 2468 RegisterArenaDtor(arena); 2469 // @@protoc_insertion_point(arena_constructor:google.protobuf.BytesValue) 2470 } 2471 2472 void BytesValue::InitAsDefaultInstance() { 2473 _is_default_instance_ = true; 2474 } 2475 2476 BytesValue::BytesValue(const BytesValue& from) 2477 : ::google::protobuf::Message(), 2478 _internal_metadata_(NULL) { 2479 SharedCtor(); 2480 MergeFrom(from); 2481 // @@protoc_insertion_point(copy_constructor:google.protobuf.BytesValue) 2482 } 2483 2484 void BytesValue::SharedCtor() { 2485 _is_default_instance_ = false; 2486 ::google::protobuf::internal::GetEmptyString(); 2487 _cached_size_ = 0; 2488 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2489 } 2490 2491 BytesValue::~BytesValue() { 2492 // @@protoc_insertion_point(destructor:google.protobuf.BytesValue) 2493 SharedDtor(); 2494 } 2495 2496 void BytesValue::SharedDtor() { 2497 if (GetArenaNoVirtual() != NULL) { 2498 return; 2499 } 2500 2501 value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2502 if (this != default_instance_) { 2503 } 2504 } 2505 2506 void BytesValue::ArenaDtor(void* object) { 2507 BytesValue* _this = reinterpret_cast< BytesValue* >(object); 2508 (void)_this; 2509 } 2510 void BytesValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { 2511 } 2512 void BytesValue::SetCachedSize(int size) const { 2513 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2514 _cached_size_ = size; 2515 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2516 } 2517 const ::google::protobuf::Descriptor* BytesValue::descriptor() { 2518 protobuf_AssignDescriptorsOnce(); 2519 return BytesValue_descriptor_; 2520 } 2521 2522 const BytesValue& BytesValue::default_instance() { 2523 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); 2524 return *default_instance_; 2525 } 2526 2527 BytesValue* BytesValue::default_instance_ = NULL; 2528 2529 BytesValue* BytesValue::New(::google::protobuf::Arena* arena) const { 2530 return ::google::protobuf::Arena::CreateMessage<BytesValue>(arena); 2531 } 2532 2533 void BytesValue::Clear() { 2534 // @@protoc_insertion_point(message_clear_start:google.protobuf.BytesValue) 2535 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2536 } 2537 2538 bool BytesValue::MergePartialFromCodedStream( 2539 ::google::protobuf::io::CodedInputStream* input) { 2540 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 2541 ::google::protobuf::uint32 tag; 2542 // @@protoc_insertion_point(parse_start:google.protobuf.BytesValue) 2543 for (;;) { 2544 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 2545 tag = p.first; 2546 if (!p.second) goto handle_unusual; 2547 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { 2548 // optional bytes value = 1; 2549 case 1: { 2550 if (tag == 10) { 2551 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( 2552 input, this->mutable_value())); 2553 } else { 2554 goto handle_unusual; 2555 } 2556 if (input->ExpectAtEnd()) goto success; 2557 break; 2558 } 2559 2560 default: { 2561 handle_unusual: 2562 if (tag == 0 || 2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 2565 goto success; 2566 } 2567 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 2568 break; 2569 } 2570 } 2571 } 2572 success: 2573 // @@protoc_insertion_point(parse_success:google.protobuf.BytesValue) 2574 return true; 2575 failure: 2576 // @@protoc_insertion_point(parse_failure:google.protobuf.BytesValue) 2577 return false; 2578 #undef DO_ 2579 } 2580 2581 void BytesValue::SerializeWithCachedSizes( 2582 ::google::protobuf::io::CodedOutputStream* output) const { 2583 // @@protoc_insertion_point(serialize_start:google.protobuf.BytesValue) 2584 // optional bytes value = 1; 2585 if (this->value().size() > 0) { 2586 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( 2587 1, this->value(), output); 2588 } 2589 2590 // @@protoc_insertion_point(serialize_end:google.protobuf.BytesValue) 2591 } 2592 2593 ::google::protobuf::uint8* BytesValue::SerializeWithCachedSizesToArray( 2594 ::google::protobuf::uint8* target) const { 2595 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValue) 2596 // optional bytes value = 1; 2597 if (this->value().size() > 0) { 2598 target = 2599 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( 2600 1, this->value(), target); 2601 } 2602 2603 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BytesValue) 2604 return target; 2605 } 2606 2607 int BytesValue::ByteSize() const { 2608 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BytesValue) 2609 int total_size = 0; 2610 2611 // optional bytes value = 1; 2612 if (this->value().size() > 0) { 2613 total_size += 1 + 2614 ::google::protobuf::internal::WireFormatLite::BytesSize( 2615 this->value()); 2616 } 2617 2618 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 2619 _cached_size_ = total_size; 2620 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 2621 return total_size; 2622 } 2623 2624 void BytesValue::MergeFrom(const ::google::protobuf::Message& from) { 2625 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BytesValue) 2626 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2627 const BytesValue* source = 2628 ::google::protobuf::internal::DynamicCastToGenerated<const BytesValue>( 2629 &from); 2630 if (source == NULL) { 2631 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.BytesValue) 2632 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 2633 } else { 2634 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.BytesValue) 2635 MergeFrom(*source); 2636 } 2637 } 2638 2639 void BytesValue::MergeFrom(const BytesValue& from) { 2640 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.BytesValue) 2641 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 2642 if (from.value().size() > 0) { 2643 set_value(from.value()); 2644 } 2645 } 2646 2647 void BytesValue::CopyFrom(const ::google::protobuf::Message& from) { 2648 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BytesValue) 2649 if (&from == this) return; 2650 Clear(); 2651 MergeFrom(from); 2652 } 2653 2654 void BytesValue::CopyFrom(const BytesValue& from) { 2655 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BytesValue) 2656 if (&from == this) return; 2657 Clear(); 2658 MergeFrom(from); 2659 } 2660 2661 bool BytesValue::IsInitialized() const { 2662 2663 return true; 2664 } 2665 2666 void BytesValue::Swap(BytesValue* other) { 2667 if (other == this) return; 2668 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 2669 InternalSwap(other); 2670 } else { 2671 BytesValue temp; 2672 temp.MergeFrom(*this); 2673 CopyFrom(*other); 2674 other->CopyFrom(temp); 2675 } 2676 } 2677 void BytesValue::UnsafeArenaSwap(BytesValue* other) { 2678 if (other == this) return; 2679 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 2680 InternalSwap(other); 2681 } 2682 void BytesValue::InternalSwap(BytesValue* other) { 2683 value_.Swap(&other->value_); 2684 _internal_metadata_.Swap(&other->_internal_metadata_); 2685 std::swap(_cached_size_, other->_cached_size_); 2686 } 2687 2688 ::google::protobuf::Metadata BytesValue::GetMetadata() const { 2689 protobuf_AssignDescriptorsOnce(); 2690 ::google::protobuf::Metadata metadata; 2691 metadata.descriptor = BytesValue_descriptor_; 2692 metadata.reflection = BytesValue_reflection_; 2693 return metadata; 2694 } 2695 2696 #if PROTOBUF_INLINE_NOT_IN_HEADERS 2697 // BytesValue 2698 2699 // optional bytes value = 1; 2700 void BytesValue::clear_value() { 2701 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2702 } 2703 const ::std::string& BytesValue::value() const { 2704 // @@protoc_insertion_point(field_get:google.protobuf.BytesValue.value) 2705 return value_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 2706 } 2707 void BytesValue::set_value(const ::std::string& value) { 2708 2709 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); 2710 // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value) 2711 } 2712 void BytesValue::set_value(const char* value) { 2713 2714 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), 2715 GetArenaNoVirtual()); 2716 // @@protoc_insertion_point(field_set_char:google.protobuf.BytesValue.value) 2717 } 2718 void BytesValue::set_value(const void* value, 2719 size_t size) { 2720 2721 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( 2722 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); 2723 // @@protoc_insertion_point(field_set_pointer:google.protobuf.BytesValue.value) 2724 } 2725 ::std::string* BytesValue::mutable_value() { 2726 2727 // @@protoc_insertion_point(field_mutable:google.protobuf.BytesValue.value) 2728 return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2729 } 2730 ::std::string* BytesValue::release_value() { 2731 // @@protoc_insertion_point(field_release:google.protobuf.BytesValue.value) 2732 2733 return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); 2734 } 2735 ::std::string* BytesValue::unsafe_arena_release_value() { 2736 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.BytesValue.value) 2737 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); 2738 2739 return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2740 GetArenaNoVirtual()); 2741 } 2742 void BytesValue::set_allocated_value(::std::string* value) { 2743 if (value != NULL) { 2744 2745 } else { 2746 2747 } 2748 value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, 2749 GetArenaNoVirtual()); 2750 // @@protoc_insertion_point(field_set_allocated:google.protobuf.BytesValue.value) 2751 } 2752 void BytesValue::unsafe_arena_set_allocated_value( 2753 ::std::string* value) { 2754 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); 2755 if (value != NULL) { 2756 2757 } else { 2758 2759 } 2760 value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 2761 value, GetArenaNoVirtual()); 2762 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.BytesValue.value) 2763 } 2764 2765 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 2766 2767 // @@protoc_insertion_point(namespace_scope) 2768 2769 } // namespace protobuf 2770 } // namespace google 2771 2772 // @@protoc_insertion_point(global_scope) 2773