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