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