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