blob: e589a89dd75654551e333653011b76f4ef380ef1 [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/api.proto
3
4#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5#include <google/protobuf/api.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
20namespace google {
21namespace protobuf {
22
23namespace {
24
25const ::google::protobuf::Descriptor* Api_descriptor_ = NULL;
26const ::google::protobuf::internal::GeneratedMessageReflection*
27 Api_reflection_ = NULL;
28const ::google::protobuf::Descriptor* Method_descriptor_ = NULL;
29const ::google::protobuf::internal::GeneratedMessageReflection*
30 Method_reflection_ = NULL;
31const ::google::protobuf::Descriptor* Mixin_descriptor_ = NULL;
32const ::google::protobuf::internal::GeneratedMessageReflection*
33 Mixin_reflection_ = NULL;
34
35} // namespace
36
37
38void protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto() {
39 protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
40 const ::google::protobuf::FileDescriptor* file =
41 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
42 "google/protobuf/api.proto");
43 GOOGLE_CHECK(file != NULL);
44 Api_descriptor_ = file->message_type(0);
45 static const int Api_offsets_[7] = {
46 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, name_),
47 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, methods_),
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, options_),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, version_),
50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, source_context_),
51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, mixins_),
52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, syntax_),
53 };
54 Api_reflection_ =
55 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
56 Api_descriptor_,
57 Api::default_instance_,
58 Api_offsets_,
59 -1,
60 -1,
61 -1,
62 sizeof(Api),
63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, _internal_metadata_),
64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Api, _is_default_instance_));
65 Method_descriptor_ = file->message_type(1);
66 static const int Method_offsets_[7] = {
67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, name_),
68 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_type_url_),
69 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, request_streaming_),
70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_type_url_),
71 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, response_streaming_),
72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, options_),
73 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, syntax_),
74 };
75 Method_reflection_ =
76 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
77 Method_descriptor_,
78 Method::default_instance_,
79 Method_offsets_,
80 -1,
81 -1,
82 -1,
83 sizeof(Method),
84 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, _internal_metadata_),
85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Method, _is_default_instance_));
86 Mixin_descriptor_ = file->message_type(2);
87 static const int Mixin_offsets_[2] = {
88 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, name_),
89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, root_),
90 };
91 Mixin_reflection_ =
92 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection(
93 Mixin_descriptor_,
94 Mixin::default_instance_,
95 Mixin_offsets_,
96 -1,
97 -1,
98 -1,
99 sizeof(Mixin),
100 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, _internal_metadata_),
101 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Mixin, _is_default_instance_));
102}
103
104namespace {
105
106GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
107inline void protobuf_AssignDescriptorsOnce() {
108 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
109 &protobuf_AssignDesc_google_2fprotobuf_2fapi_2eproto);
110}
111
112void protobuf_RegisterTypes(const ::std::string&) {
113 protobuf_AssignDescriptorsOnce();
114 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
115 Api_descriptor_, &Api::default_instance());
116 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
117 Method_descriptor_, &Method::default_instance());
118 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
119 Mixin_descriptor_, &Mixin::default_instance());
120}
121
122} // namespace
123
124void protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto() {
125 delete Api::default_instance_;
126 delete Api_reflection_;
127 delete Method::default_instance_;
128 delete Method_reflection_;
129 delete Mixin::default_instance_;
130 delete Mixin_reflection_;
131}
132
133void protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto() {
134 static bool already_here = false;
135 if (already_here) return;
136 already_here = true;
137 GOOGLE_PROTOBUF_VERIFY_VERSION;
138
139 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2fsource_5fcontext_2eproto();
140 ::google::protobuf::protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto();
141 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
142 "\n\031google/protobuf/api.proto\022\017google.prot"
143 "obuf\032$google/protobuf/source_context.pro"
144 "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
145 "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
146 "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
147 ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
148 "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
149 "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
150 "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
151 "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
152 "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
153 "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
154 "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
155 "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
156 "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
157 "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBK\n\023com.google.pr"
158 "otobufB\010ApiProtoP\001\240\001\001\242\002\003GPB\252\002\036Google.Pro"
159 "tobuf.WellKnownTypesb\006proto3", 708);
160 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
161 "google/protobuf/api.proto", &protobuf_RegisterTypes);
162 Api::default_instance_ = new Api();
163 Method::default_instance_ = new Method();
164 Mixin::default_instance_ = new Mixin();
165 Api::default_instance_->InitAsDefaultInstance();
166 Method::default_instance_->InitAsDefaultInstance();
167 Mixin::default_instance_->InitAsDefaultInstance();
168 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fapi_2eproto);
169}
170
171// Force AddDescriptors() to be called at static initialization time.
172struct StaticDescriptorInitializer_google_2fprotobuf_2fapi_2eproto {
173 StaticDescriptorInitializer_google_2fprotobuf_2fapi_2eproto() {
174 protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
175 }
176} static_descriptor_initializer_google_2fprotobuf_2fapi_2eproto_;
177
178namespace {
179
180static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD;
181static void MergeFromFail(int line) {
182 GOOGLE_CHECK(false) << __FILE__ << ":" << line;
183}
184
185} // namespace
186
187
188// ===================================================================
189
190#if !defined(_MSC_VER) || _MSC_VER >= 1900
191const int Api::kNameFieldNumber;
192const int Api::kMethodsFieldNumber;
193const int Api::kOptionsFieldNumber;
194const int Api::kVersionFieldNumber;
195const int Api::kSourceContextFieldNumber;
196const int Api::kMixinsFieldNumber;
197const int Api::kSyntaxFieldNumber;
198#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
199
200Api::Api()
201 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
202 SharedCtor();
203 // @@protoc_insertion_point(constructor:google.protobuf.Api)
204}
205
206void Api::InitAsDefaultInstance() {
207 _is_default_instance_ = true;
208 source_context_ = const_cast< ::google::protobuf::SourceContext*>(&::google::protobuf::SourceContext::default_instance());
209}
210
211Api::Api(const Api& from)
212 : ::google::protobuf::Message(),
213 _internal_metadata_(NULL) {
214 SharedCtor();
215 MergeFrom(from);
216 // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
217}
218
219void Api::SharedCtor() {
220 _is_default_instance_ = false;
221 ::google::protobuf::internal::GetEmptyString();
222 _cached_size_ = 0;
223 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
224 version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
225 source_context_ = NULL;
226 syntax_ = 0;
227}
228
229Api::~Api() {
230 // @@protoc_insertion_point(destructor:google.protobuf.Api)
231 SharedDtor();
232}
233
234void Api::SharedDtor() {
235 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
236 version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
237 if (this != default_instance_) {
238 delete source_context_;
239 }
240}
241
242void Api::SetCachedSize(int size) const {
243 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
244 _cached_size_ = size;
245 GOOGLE_SAFE_CONCURRENT_WRITES_END();
246}
247const ::google::protobuf::Descriptor* Api::descriptor() {
248 protobuf_AssignDescriptorsOnce();
249 return Api_descriptor_;
250}
251
252const Api& Api::default_instance() {
253 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
254 return *default_instance_;
255}
256
257Api* Api::default_instance_ = NULL;
258
259Api* Api::New(::google::protobuf::Arena* arena) const {
260 Api* n = new Api;
261 if (arena != NULL) {
262 arena->Own(n);
263 }
264 return n;
265}
266
267void Api::Clear() {
268 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
269 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
270 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
271 source_context_ = NULL;
272 syntax_ = 0;
273 methods_.Clear();
274 options_.Clear();
275 mixins_.Clear();
276}
277
278bool Api::MergePartialFromCodedStream(
279 ::google::protobuf::io::CodedInputStream* input) {
280#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
281 ::google::protobuf::uint32 tag;
282 // @@protoc_insertion_point(parse_start:google.protobuf.Api)
283 for (;;) {
284 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
285 tag = p.first;
286 if (!p.second) goto handle_unusual;
287 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
288 // optional string name = 1;
289 case 1: {
290 if (tag == 10) {
291 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
292 input, this->mutable_name()));
293 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
294 this->name().data(), this->name().length(),
295 ::google::protobuf::internal::WireFormatLite::PARSE,
296 "google.protobuf.Api.name"));
297 } else {
298 goto handle_unusual;
299 }
300 if (input->ExpectTag(18)) goto parse_methods;
301 break;
302 }
303
304 // repeated .google.protobuf.Method methods = 2;
305 case 2: {
306 if (tag == 18) {
307 parse_methods:
308 DO_(input->IncrementRecursionDepth());
309 parse_loop_methods:
310 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
311 input, add_methods()));
312 } else {
313 goto handle_unusual;
314 }
315 if (input->ExpectTag(18)) goto parse_loop_methods;
316 if (input->ExpectTag(26)) goto parse_loop_options;
317 input->UnsafeDecrementRecursionDepth();
318 break;
319 }
320
321 // repeated .google.protobuf.Option options = 3;
322 case 3: {
323 if (tag == 26) {
324 DO_(input->IncrementRecursionDepth());
325 parse_loop_options:
326 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
327 input, add_options()));
328 } else {
329 goto handle_unusual;
330 }
331 if (input->ExpectTag(26)) goto parse_loop_options;
332 input->UnsafeDecrementRecursionDepth();
333 if (input->ExpectTag(34)) goto parse_version;
334 break;
335 }
336
337 // optional string version = 4;
338 case 4: {
339 if (tag == 34) {
340 parse_version:
341 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
342 input, this->mutable_version()));
343 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
344 this->version().data(), this->version().length(),
345 ::google::protobuf::internal::WireFormatLite::PARSE,
346 "google.protobuf.Api.version"));
347 } else {
348 goto handle_unusual;
349 }
350 if (input->ExpectTag(42)) goto parse_source_context;
351 break;
352 }
353
354 // optional .google.protobuf.SourceContext source_context = 5;
355 case 5: {
356 if (tag == 42) {
357 parse_source_context:
358 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
359 input, mutable_source_context()));
360 } else {
361 goto handle_unusual;
362 }
363 if (input->ExpectTag(50)) goto parse_mixins;
364 break;
365 }
366
367 // repeated .google.protobuf.Mixin mixins = 6;
368 case 6: {
369 if (tag == 50) {
370 parse_mixins:
371 DO_(input->IncrementRecursionDepth());
372 parse_loop_mixins:
373 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
374 input, add_mixins()));
375 } else {
376 goto handle_unusual;
377 }
378 if (input->ExpectTag(50)) goto parse_loop_mixins;
379 input->UnsafeDecrementRecursionDepth();
380 if (input->ExpectTag(56)) goto parse_syntax;
381 break;
382 }
383
384 // optional .google.protobuf.Syntax syntax = 7;
385 case 7: {
386 if (tag == 56) {
387 parse_syntax:
388 int value;
389 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
390 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
391 input, &value)));
392 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
393 } else {
394 goto handle_unusual;
395 }
396 if (input->ExpectAtEnd()) goto success;
397 break;
398 }
399
400 default: {
401 handle_unusual:
402 if (tag == 0 ||
403 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
404 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
405 goto success;
406 }
407 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
408 break;
409 }
410 }
411 }
412success:
413 // @@protoc_insertion_point(parse_success:google.protobuf.Api)
414 return true;
415failure:
416 // @@protoc_insertion_point(parse_failure:google.protobuf.Api)
417 return false;
418#undef DO_
419}
420
421void Api::SerializeWithCachedSizes(
422 ::google::protobuf::io::CodedOutputStream* output) const {
423 // @@protoc_insertion_point(serialize_start:google.protobuf.Api)
424 // optional string name = 1;
425 if (this->name().size() > 0) {
426 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
427 this->name().data(), this->name().length(),
428 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
429 "google.protobuf.Api.name");
430 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
431 1, this->name(), output);
432 }
433
434 // repeated .google.protobuf.Method methods = 2;
435 for (unsigned int i = 0, n = this->methods_size(); i < n; i++) {
436 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
437 2, this->methods(i), output);
438 }
439
440 // repeated .google.protobuf.Option options = 3;
441 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
442 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
443 3, this->options(i), output);
444 }
445
446 // optional string version = 4;
447 if (this->version().size() > 0) {
448 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
449 this->version().data(), this->version().length(),
450 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
451 "google.protobuf.Api.version");
452 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
453 4, this->version(), output);
454 }
455
456 // optional .google.protobuf.SourceContext source_context = 5;
457 if (this->has_source_context()) {
458 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
459 5, *this->source_context_, output);
460 }
461
462 // repeated .google.protobuf.Mixin mixins = 6;
463 for (unsigned int i = 0, n = this->mixins_size(); i < n; i++) {
464 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
465 6, this->mixins(i), output);
466 }
467
468 // optional .google.protobuf.Syntax syntax = 7;
469 if (this->syntax() != 0) {
470 ::google::protobuf::internal::WireFormatLite::WriteEnum(
471 7, this->syntax(), output);
472 }
473
474 // @@protoc_insertion_point(serialize_end:google.protobuf.Api)
475}
476
477::google::protobuf::uint8* Api::SerializeWithCachedSizesToArray(
478 ::google::protobuf::uint8* target) const {
479 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
480 // optional string name = 1;
481 if (this->name().size() > 0) {
482 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
483 this->name().data(), this->name().length(),
484 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
485 "google.protobuf.Api.name");
486 target =
487 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
488 1, this->name(), target);
489 }
490
491 // repeated .google.protobuf.Method methods = 2;
492 for (unsigned int i = 0, n = this->methods_size(); i < n; i++) {
493 target = ::google::protobuf::internal::WireFormatLite::
494 WriteMessageNoVirtualToArray(
495 2, this->methods(i), target);
496 }
497
498 // repeated .google.protobuf.Option options = 3;
499 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
500 target = ::google::protobuf::internal::WireFormatLite::
501 WriteMessageNoVirtualToArray(
502 3, this->options(i), target);
503 }
504
505 // optional string version = 4;
506 if (this->version().size() > 0) {
507 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
508 this->version().data(), this->version().length(),
509 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
510 "google.protobuf.Api.version");
511 target =
512 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
513 4, this->version(), target);
514 }
515
516 // optional .google.protobuf.SourceContext source_context = 5;
517 if (this->has_source_context()) {
518 target = ::google::protobuf::internal::WireFormatLite::
519 WriteMessageNoVirtualToArray(
520 5, *this->source_context_, target);
521 }
522
523 // repeated .google.protobuf.Mixin mixins = 6;
524 for (unsigned int i = 0, n = this->mixins_size(); i < n; i++) {
525 target = ::google::protobuf::internal::WireFormatLite::
526 WriteMessageNoVirtualToArray(
527 6, this->mixins(i), target);
528 }
529
530 // optional .google.protobuf.Syntax syntax = 7;
531 if (this->syntax() != 0) {
532 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
533 7, this->syntax(), target);
534 }
535
536 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
537 return target;
538}
539
540int Api::ByteSize() const {
541 int total_size = 0;
542
543 // optional string name = 1;
544 if (this->name().size() > 0) {
545 total_size += 1 +
546 ::google::protobuf::internal::WireFormatLite::StringSize(
547 this->name());
548 }
549
550 // optional string version = 4;
551 if (this->version().size() > 0) {
552 total_size += 1 +
553 ::google::protobuf::internal::WireFormatLite::StringSize(
554 this->version());
555 }
556
557 // optional .google.protobuf.SourceContext source_context = 5;
558 if (this->has_source_context()) {
559 total_size += 1 +
560 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
561 *this->source_context_);
562 }
563
564 // optional .google.protobuf.Syntax syntax = 7;
565 if (this->syntax() != 0) {
566 total_size += 1 +
567 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
568 }
569
570 // repeated .google.protobuf.Method methods = 2;
571 total_size += 1 * this->methods_size();
572 for (int i = 0; i < this->methods_size(); i++) {
573 total_size +=
574 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
575 this->methods(i));
576 }
577
578 // repeated .google.protobuf.Option options = 3;
579 total_size += 1 * this->options_size();
580 for (int i = 0; i < this->options_size(); i++) {
581 total_size +=
582 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
583 this->options(i));
584 }
585
586 // repeated .google.protobuf.Mixin mixins = 6;
587 total_size += 1 * this->mixins_size();
588 for (int i = 0; i < this->mixins_size(); i++) {
589 total_size +=
590 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
591 this->mixins(i));
592 }
593
594 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
595 _cached_size_ = total_size;
596 GOOGLE_SAFE_CONCURRENT_WRITES_END();
597 return total_size;
598}
599
600void Api::MergeFrom(const ::google::protobuf::Message& from) {
601 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
602 const Api* source =
603 ::google::protobuf::internal::DynamicCastToGenerated<const Api>(
604 &from);
605 if (source == NULL) {
606 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
607 } else {
608 MergeFrom(*source);
609 }
610}
611
612void Api::MergeFrom(const Api& from) {
613 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
614 methods_.MergeFrom(from.methods_);
615 options_.MergeFrom(from.options_);
616 mixins_.MergeFrom(from.mixins_);
617 if (from.name().size() > 0) {
618
619 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
620 }
621 if (from.version().size() > 0) {
622
623 version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_);
624 }
625 if (from.has_source_context()) {
626 mutable_source_context()->::google::protobuf::SourceContext::MergeFrom(from.source_context());
627 }
628 if (from.syntax() != 0) {
629 set_syntax(from.syntax());
630 }
631}
632
633void Api::CopyFrom(const ::google::protobuf::Message& from) {
634 if (&from == this) return;
635 Clear();
636 MergeFrom(from);
637}
638
639void Api::CopyFrom(const Api& from) {
640 if (&from == this) return;
641 Clear();
642 MergeFrom(from);
643}
644
645bool Api::IsInitialized() const {
646
647 return true;
648}
649
650void Api::Swap(Api* other) {
651 if (other == this) return;
652 InternalSwap(other);
653}
654void Api::InternalSwap(Api* other) {
655 name_.Swap(&other->name_);
656 methods_.UnsafeArenaSwap(&other->methods_);
657 options_.UnsafeArenaSwap(&other->options_);
658 version_.Swap(&other->version_);
659 std::swap(source_context_, other->source_context_);
660 mixins_.UnsafeArenaSwap(&other->mixins_);
661 std::swap(syntax_, other->syntax_);
662 _internal_metadata_.Swap(&other->_internal_metadata_);
663 std::swap(_cached_size_, other->_cached_size_);
664}
665
666::google::protobuf::Metadata Api::GetMetadata() const {
667 protobuf_AssignDescriptorsOnce();
668 ::google::protobuf::Metadata metadata;
669 metadata.descriptor = Api_descriptor_;
670 metadata.reflection = Api_reflection_;
671 return metadata;
672}
673
674#if PROTOBUF_INLINE_NOT_IN_HEADERS
675// Api
676
677// optional string name = 1;
678void Api::clear_name() {
679 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
680}
681 const ::std::string& Api::name() const {
682 // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
683 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
684}
685 void Api::set_name(const ::std::string& value) {
686
687 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
688 // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
689}
690 void Api::set_name(const char* value) {
691
692 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
693 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
694}
695 void Api::set_name(const char* value, size_t size) {
696
697 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
698 ::std::string(reinterpret_cast<const char*>(value), size));
699 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
700}
701 ::std::string* Api::mutable_name() {
702
703 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
704 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
705}
706 ::std::string* Api::release_name() {
707
708 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
709}
710 void Api::set_allocated_name(::std::string* name) {
711 if (name != NULL) {
712
713 } else {
714
715 }
716 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
717 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
718}
719
720// repeated .google.protobuf.Method methods = 2;
721int Api::methods_size() const {
722 return methods_.size();
723}
724void Api::clear_methods() {
725 methods_.Clear();
726}
727const ::google::protobuf::Method& Api::methods(int index) const {
728 // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
729 return methods_.Get(index);
730}
731::google::protobuf::Method* Api::mutable_methods(int index) {
732 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
733 return methods_.Mutable(index);
734}
735::google::protobuf::Method* Api::add_methods() {
736 // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
737 return methods_.Add();
738}
739::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >*
740Api::mutable_methods() {
741 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
742 return &methods_;
743}
744const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Method >&
745Api::methods() const {
746 // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
747 return methods_;
748}
749
750// repeated .google.protobuf.Option options = 3;
751int Api::options_size() const {
752 return options_.size();
753}
754void Api::clear_options() {
755 options_.Clear();
756}
757const ::google::protobuf::Option& Api::options(int index) const {
758 // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
759 return options_.Get(index);
760}
761::google::protobuf::Option* Api::mutable_options(int index) {
762 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
763 return options_.Mutable(index);
764}
765::google::protobuf::Option* Api::add_options() {
766 // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
767 return options_.Add();
768}
769::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
770Api::mutable_options() {
771 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
772 return &options_;
773}
774const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
775Api::options() const {
776 // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
777 return options_;
778}
779
780// optional string version = 4;
781void Api::clear_version() {
782 version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
783}
784 const ::std::string& Api::version() const {
785 // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
786 return version_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
787}
788 void Api::set_version(const ::std::string& value) {
789
790 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
791 // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
792}
793 void Api::set_version(const char* value) {
794
795 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
796 // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
797}
798 void Api::set_version(const char* value, size_t size) {
799
800 version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
801 ::std::string(reinterpret_cast<const char*>(value), size));
802 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
803}
804 ::std::string* Api::mutable_version() {
805
806 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
807 return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
808}
809 ::std::string* Api::release_version() {
810
811 return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
812}
813 void Api::set_allocated_version(::std::string* version) {
814 if (version != NULL) {
815
816 } else {
817
818 }
819 version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version);
820 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
821}
822
823// optional .google.protobuf.SourceContext source_context = 5;
824bool Api::has_source_context() const {
825 return !_is_default_instance_ && source_context_ != NULL;
826}
827void Api::clear_source_context() {
828 if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
829 source_context_ = NULL;
830}
831const ::google::protobuf::SourceContext& Api::source_context() const {
832 // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
833 return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
834}
835::google::protobuf::SourceContext* Api::mutable_source_context() {
836
837 if (source_context_ == NULL) {
838 source_context_ = new ::google::protobuf::SourceContext;
839 }
840 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
841 return source_context_;
842}
843::google::protobuf::SourceContext* Api::release_source_context() {
844
845 ::google::protobuf::SourceContext* temp = source_context_;
846 source_context_ = NULL;
847 return temp;
848}
849void Api::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
850 delete source_context_;
851 source_context_ = source_context;
852 if (source_context) {
853
854 } else {
855
856 }
857 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
858}
859
860// repeated .google.protobuf.Mixin mixins = 6;
861int Api::mixins_size() const {
862 return mixins_.size();
863}
864void Api::clear_mixins() {
865 mixins_.Clear();
866}
867const ::google::protobuf::Mixin& Api::mixins(int index) const {
868 // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
869 return mixins_.Get(index);
870}
871::google::protobuf::Mixin* Api::mutable_mixins(int index) {
872 // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
873 return mixins_.Mutable(index);
874}
875::google::protobuf::Mixin* Api::add_mixins() {
876 // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
877 return mixins_.Add();
878}
879::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >*
880Api::mutable_mixins() {
881 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
882 return &mixins_;
883}
884const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Mixin >&
885Api::mixins() const {
886 // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
887 return mixins_;
888}
889
890// optional .google.protobuf.Syntax syntax = 7;
891void Api::clear_syntax() {
892 syntax_ = 0;
893}
894 ::google::protobuf::Syntax Api::syntax() const {
895 // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
896 return static_cast< ::google::protobuf::Syntax >(syntax_);
897}
898 void Api::set_syntax(::google::protobuf::Syntax value) {
899
900 syntax_ = value;
901 // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
902}
903
904#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
905
906// ===================================================================
907
908#if !defined(_MSC_VER) || _MSC_VER >= 1900
909const int Method::kNameFieldNumber;
910const int Method::kRequestTypeUrlFieldNumber;
911const int Method::kRequestStreamingFieldNumber;
912const int Method::kResponseTypeUrlFieldNumber;
913const int Method::kResponseStreamingFieldNumber;
914const int Method::kOptionsFieldNumber;
915const int Method::kSyntaxFieldNumber;
916#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
917
918Method::Method()
919 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
920 SharedCtor();
921 // @@protoc_insertion_point(constructor:google.protobuf.Method)
922}
923
924void Method::InitAsDefaultInstance() {
925 _is_default_instance_ = true;
926}
927
928Method::Method(const Method& from)
929 : ::google::protobuf::Message(),
930 _internal_metadata_(NULL) {
931 SharedCtor();
932 MergeFrom(from);
933 // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
934}
935
936void Method::SharedCtor() {
937 _is_default_instance_ = false;
938 ::google::protobuf::internal::GetEmptyString();
939 _cached_size_ = 0;
940 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
941 request_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
942 request_streaming_ = false;
943 response_type_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
944 response_streaming_ = false;
945 syntax_ = 0;
946}
947
948Method::~Method() {
949 // @@protoc_insertion_point(destructor:google.protobuf.Method)
950 SharedDtor();
951}
952
953void Method::SharedDtor() {
954 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
955 request_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
956 response_type_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
957 if (this != default_instance_) {
958 }
959}
960
961void Method::SetCachedSize(int size) const {
962 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
963 _cached_size_ = size;
964 GOOGLE_SAFE_CONCURRENT_WRITES_END();
965}
966const ::google::protobuf::Descriptor* Method::descriptor() {
967 protobuf_AssignDescriptorsOnce();
968 return Method_descriptor_;
969}
970
971const Method& Method::default_instance() {
972 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
973 return *default_instance_;
974}
975
976Method* Method::default_instance_ = NULL;
977
978Method* Method::New(::google::protobuf::Arena* arena) const {
979 Method* n = new Method;
980 if (arena != NULL) {
981 arena->Own(n);
982 }
983 return n;
984}
985
986void Method::Clear() {
987#define ZR_HELPER_(f) reinterpret_cast<char*>(\
988 &reinterpret_cast<Method*>(16)->f)
989
990#define ZR_(first, last) do {\
991 ::memset(&first, 0,\
992 ZR_HELPER_(last) - ZR_HELPER_(first) + sizeof(last));\
993} while (0)
994
995 ZR_(request_streaming_, syntax_);
996 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
997 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
998 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
999
1000#undef ZR_HELPER_
1001#undef ZR_
1002
1003 options_.Clear();
1004}
1005
1006bool Method::MergePartialFromCodedStream(
1007 ::google::protobuf::io::CodedInputStream* input) {
1008#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1009 ::google::protobuf::uint32 tag;
1010 // @@protoc_insertion_point(parse_start:google.protobuf.Method)
1011 for (;;) {
1012 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1013 tag = p.first;
1014 if (!p.second) goto handle_unusual;
1015 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1016 // optional string name = 1;
1017 case 1: {
1018 if (tag == 10) {
1019 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1020 input, this->mutable_name()));
1021 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1022 this->name().data(), this->name().length(),
1023 ::google::protobuf::internal::WireFormatLite::PARSE,
1024 "google.protobuf.Method.name"));
1025 } else {
1026 goto handle_unusual;
1027 }
1028 if (input->ExpectTag(18)) goto parse_request_type_url;
1029 break;
1030 }
1031
1032 // optional string request_type_url = 2;
1033 case 2: {
1034 if (tag == 18) {
1035 parse_request_type_url:
1036 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1037 input, this->mutable_request_type_url()));
1038 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1039 this->request_type_url().data(), this->request_type_url().length(),
1040 ::google::protobuf::internal::WireFormatLite::PARSE,
1041 "google.protobuf.Method.request_type_url"));
1042 } else {
1043 goto handle_unusual;
1044 }
1045 if (input->ExpectTag(24)) goto parse_request_streaming;
1046 break;
1047 }
1048
1049 // optional bool request_streaming = 3;
1050 case 3: {
1051 if (tag == 24) {
1052 parse_request_streaming:
1053 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1054 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1055 input, &request_streaming_)));
1056
1057 } else {
1058 goto handle_unusual;
1059 }
1060 if (input->ExpectTag(34)) goto parse_response_type_url;
1061 break;
1062 }
1063
1064 // optional string response_type_url = 4;
1065 case 4: {
1066 if (tag == 34) {
1067 parse_response_type_url:
1068 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1069 input, this->mutable_response_type_url()));
1070 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1071 this->response_type_url().data(), this->response_type_url().length(),
1072 ::google::protobuf::internal::WireFormatLite::PARSE,
1073 "google.protobuf.Method.response_type_url"));
1074 } else {
1075 goto handle_unusual;
1076 }
1077 if (input->ExpectTag(40)) goto parse_response_streaming;
1078 break;
1079 }
1080
1081 // optional bool response_streaming = 5;
1082 case 5: {
1083 if (tag == 40) {
1084 parse_response_streaming:
1085 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1086 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1087 input, &response_streaming_)));
1088
1089 } else {
1090 goto handle_unusual;
1091 }
1092 if (input->ExpectTag(50)) goto parse_options;
1093 break;
1094 }
1095
1096 // repeated .google.protobuf.Option options = 6;
1097 case 6: {
1098 if (tag == 50) {
1099 parse_options:
1100 DO_(input->IncrementRecursionDepth());
1101 parse_loop_options:
1102 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtualNoRecursionDepth(
1103 input, add_options()));
1104 } else {
1105 goto handle_unusual;
1106 }
1107 if (input->ExpectTag(50)) goto parse_loop_options;
1108 input->UnsafeDecrementRecursionDepth();
1109 if (input->ExpectTag(56)) goto parse_syntax;
1110 break;
1111 }
1112
1113 // optional .google.protobuf.Syntax syntax = 7;
1114 case 7: {
1115 if (tag == 56) {
1116 parse_syntax:
1117 int value;
1118 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1119 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1120 input, &value)));
1121 set_syntax(static_cast< ::google::protobuf::Syntax >(value));
1122 } else {
1123 goto handle_unusual;
1124 }
1125 if (input->ExpectAtEnd()) goto success;
1126 break;
1127 }
1128
1129 default: {
1130 handle_unusual:
1131 if (tag == 0 ||
1132 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1133 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1134 goto success;
1135 }
1136 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag));
1137 break;
1138 }
1139 }
1140 }
1141success:
1142 // @@protoc_insertion_point(parse_success:google.protobuf.Method)
1143 return true;
1144failure:
1145 // @@protoc_insertion_point(parse_failure:google.protobuf.Method)
1146 return false;
1147#undef DO_
1148}
1149
1150void Method::SerializeWithCachedSizes(
1151 ::google::protobuf::io::CodedOutputStream* output) const {
1152 // @@protoc_insertion_point(serialize_start:google.protobuf.Method)
1153 // optional string name = 1;
1154 if (this->name().size() > 0) {
1155 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1156 this->name().data(), this->name().length(),
1157 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1158 "google.protobuf.Method.name");
1159 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1160 1, this->name(), output);
1161 }
1162
1163 // optional string request_type_url = 2;
1164 if (this->request_type_url().size() > 0) {
1165 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1166 this->request_type_url().data(), this->request_type_url().length(),
1167 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1168 "google.protobuf.Method.request_type_url");
1169 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1170 2, this->request_type_url(), output);
1171 }
1172
1173 // optional bool request_streaming = 3;
1174 if (this->request_streaming() != 0) {
1175 ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->request_streaming(), output);
1176 }
1177
1178 // optional string response_type_url = 4;
1179 if (this->response_type_url().size() > 0) {
1180 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1181 this->response_type_url().data(), this->response_type_url().length(),
1182 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1183 "google.protobuf.Method.response_type_url");
1184 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1185 4, this->response_type_url(), output);
1186 }
1187
1188 // optional bool response_streaming = 5;
1189 if (this->response_streaming() != 0) {
1190 ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->response_streaming(), output);
1191 }
1192
1193 // repeated .google.protobuf.Option options = 6;
1194 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1195 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1196 6, this->options(i), output);
1197 }
1198
1199 // optional .google.protobuf.Syntax syntax = 7;
1200 if (this->syntax() != 0) {
1201 ::google::protobuf::internal::WireFormatLite::WriteEnum(
1202 7, this->syntax(), output);
1203 }
1204
1205 // @@protoc_insertion_point(serialize_end:google.protobuf.Method)
1206}
1207
1208::google::protobuf::uint8* Method::SerializeWithCachedSizesToArray(
1209 ::google::protobuf::uint8* target) const {
1210 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
1211 // optional string name = 1;
1212 if (this->name().size() > 0) {
1213 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1214 this->name().data(), this->name().length(),
1215 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1216 "google.protobuf.Method.name");
1217 target =
1218 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1219 1, this->name(), target);
1220 }
1221
1222 // optional string request_type_url = 2;
1223 if (this->request_type_url().size() > 0) {
1224 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1225 this->request_type_url().data(), this->request_type_url().length(),
1226 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1227 "google.protobuf.Method.request_type_url");
1228 target =
1229 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1230 2, this->request_type_url(), target);
1231 }
1232
1233 // optional bool request_streaming = 3;
1234 if (this->request_streaming() != 0) {
1235 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->request_streaming(), target);
1236 }
1237
1238 // optional string response_type_url = 4;
1239 if (this->response_type_url().size() > 0) {
1240 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1241 this->response_type_url().data(), this->response_type_url().length(),
1242 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1243 "google.protobuf.Method.response_type_url");
1244 target =
1245 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1246 4, this->response_type_url(), target);
1247 }
1248
1249 // optional bool response_streaming = 5;
1250 if (this->response_streaming() != 0) {
1251 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->response_streaming(), target);
1252 }
1253
1254 // repeated .google.protobuf.Option options = 6;
1255 for (unsigned int i = 0, n = this->options_size(); i < n; i++) {
1256 target = ::google::protobuf::internal::WireFormatLite::
1257 WriteMessageNoVirtualToArray(
1258 6, this->options(i), target);
1259 }
1260
1261 // optional .google.protobuf.Syntax syntax = 7;
1262 if (this->syntax() != 0) {
1263 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1264 7, this->syntax(), target);
1265 }
1266
1267 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
1268 return target;
1269}
1270
1271int Method::ByteSize() const {
1272 int total_size = 0;
1273
1274 // optional string name = 1;
1275 if (this->name().size() > 0) {
1276 total_size += 1 +
1277 ::google::protobuf::internal::WireFormatLite::StringSize(
1278 this->name());
1279 }
1280
1281 // optional string request_type_url = 2;
1282 if (this->request_type_url().size() > 0) {
1283 total_size += 1 +
1284 ::google::protobuf::internal::WireFormatLite::StringSize(
1285 this->request_type_url());
1286 }
1287
1288 // optional bool request_streaming = 3;
1289 if (this->request_streaming() != 0) {
1290 total_size += 1 + 1;
1291 }
1292
1293 // optional string response_type_url = 4;
1294 if (this->response_type_url().size() > 0) {
1295 total_size += 1 +
1296 ::google::protobuf::internal::WireFormatLite::StringSize(
1297 this->response_type_url());
1298 }
1299
1300 // optional bool response_streaming = 5;
1301 if (this->response_streaming() != 0) {
1302 total_size += 1 + 1;
1303 }
1304
1305 // optional .google.protobuf.Syntax syntax = 7;
1306 if (this->syntax() != 0) {
1307 total_size += 1 +
1308 ::google::protobuf::internal::WireFormatLite::EnumSize(this->syntax());
1309 }
1310
1311 // repeated .google.protobuf.Option options = 6;
1312 total_size += 1 * this->options_size();
1313 for (int i = 0; i < this->options_size(); i++) {
1314 total_size +=
1315 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1316 this->options(i));
1317 }
1318
1319 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1320 _cached_size_ = total_size;
1321 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1322 return total_size;
1323}
1324
1325void Method::MergeFrom(const ::google::protobuf::Message& from) {
1326 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1327 const Method* source =
1328 ::google::protobuf::internal::DynamicCastToGenerated<const Method>(
1329 &from);
1330 if (source == NULL) {
1331 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1332 } else {
1333 MergeFrom(*source);
1334 }
1335}
1336
1337void Method::MergeFrom(const Method& from) {
1338 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1339 options_.MergeFrom(from.options_);
1340 if (from.name().size() > 0) {
1341
1342 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1343 }
1344 if (from.request_type_url().size() > 0) {
1345
1346 request_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
1347 }
1348 if (from.request_streaming() != 0) {
1349 set_request_streaming(from.request_streaming());
1350 }
1351 if (from.response_type_url().size() > 0) {
1352
1353 response_type_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
1354 }
1355 if (from.response_streaming() != 0) {
1356 set_response_streaming(from.response_streaming());
1357 }
1358 if (from.syntax() != 0) {
1359 set_syntax(from.syntax());
1360 }
1361}
1362
1363void Method::CopyFrom(const ::google::protobuf::Message& from) {
1364 if (&from == this) return;
1365 Clear();
1366 MergeFrom(from);
1367}
1368
1369void Method::CopyFrom(const Method& from) {
1370 if (&from == this) return;
1371 Clear();
1372 MergeFrom(from);
1373}
1374
1375bool Method::IsInitialized() const {
1376
1377 return true;
1378}
1379
1380void Method::Swap(Method* other) {
1381 if (other == this) return;
1382 InternalSwap(other);
1383}
1384void Method::InternalSwap(Method* other) {
1385 name_.Swap(&other->name_);
1386 request_type_url_.Swap(&other->request_type_url_);
1387 std::swap(request_streaming_, other->request_streaming_);
1388 response_type_url_.Swap(&other->response_type_url_);
1389 std::swap(response_streaming_, other->response_streaming_);
1390 options_.UnsafeArenaSwap(&other->options_);
1391 std::swap(syntax_, other->syntax_);
1392 _internal_metadata_.Swap(&other->_internal_metadata_);
1393 std::swap(_cached_size_, other->_cached_size_);
1394}
1395
1396::google::protobuf::Metadata Method::GetMetadata() const {
1397 protobuf_AssignDescriptorsOnce();
1398 ::google::protobuf::Metadata metadata;
1399 metadata.descriptor = Method_descriptor_;
1400 metadata.reflection = Method_reflection_;
1401 return metadata;
1402}
1403
1404#if PROTOBUF_INLINE_NOT_IN_HEADERS
1405// Method
1406
1407// optional string name = 1;
1408void Method::clear_name() {
1409 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1410}
1411 const ::std::string& Method::name() const {
1412 // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
1413 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1414}
1415 void Method::set_name(const ::std::string& value) {
1416
1417 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1418 // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
1419}
1420 void Method::set_name(const char* value) {
1421
1422 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1423 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
1424}
1425 void Method::set_name(const char* value, size_t size) {
1426
1427 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1428 ::std::string(reinterpret_cast<const char*>(value), size));
1429 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
1430}
1431 ::std::string* Method::mutable_name() {
1432
1433 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
1434 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1435}
1436 ::std::string* Method::release_name() {
1437
1438 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1439}
1440 void Method::set_allocated_name(::std::string* name) {
1441 if (name != NULL) {
1442
1443 } else {
1444
1445 }
1446 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1447 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
1448}
1449
1450// optional string request_type_url = 2;
1451void Method::clear_request_type_url() {
1452 request_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1453}
1454 const ::std::string& Method::request_type_url() const {
1455 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
1456 return request_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1457}
1458 void Method::set_request_type_url(const ::std::string& value) {
1459
1460 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1461 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
1462}
1463 void Method::set_request_type_url(const char* value) {
1464
1465 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1466 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
1467}
1468 void Method::set_request_type_url(const char* value, size_t size) {
1469
1470 request_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1471 ::std::string(reinterpret_cast<const char*>(value), size));
1472 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
1473}
1474 ::std::string* Method::mutable_request_type_url() {
1475
1476 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
1477 return request_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1478}
1479 ::std::string* Method::release_request_type_url() {
1480
1481 return request_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1482}
1483 void Method::set_allocated_request_type_url(::std::string* request_type_url) {
1484 if (request_type_url != NULL) {
1485
1486 } else {
1487
1488 }
1489 request_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_type_url);
1490 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
1491}
1492
1493// optional bool request_streaming = 3;
1494void Method::clear_request_streaming() {
1495 request_streaming_ = false;
1496}
1497 bool Method::request_streaming() const {
1498 // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
1499 return request_streaming_;
1500}
1501 void Method::set_request_streaming(bool value) {
1502
1503 request_streaming_ = value;
1504 // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
1505}
1506
1507// optional string response_type_url = 4;
1508void Method::clear_response_type_url() {
1509 response_type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1510}
1511 const ::std::string& Method::response_type_url() const {
1512 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
1513 return response_type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1514}
1515 void Method::set_response_type_url(const ::std::string& value) {
1516
1517 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1518 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
1519}
1520 void Method::set_response_type_url(const char* value) {
1521
1522 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1523 // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
1524}
1525 void Method::set_response_type_url(const char* value, size_t size) {
1526
1527 response_type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1528 ::std::string(reinterpret_cast<const char*>(value), size));
1529 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
1530}
1531 ::std::string* Method::mutable_response_type_url() {
1532
1533 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
1534 return response_type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1535}
1536 ::std::string* Method::release_response_type_url() {
1537
1538 return response_type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1539}
1540 void Method::set_allocated_response_type_url(::std::string* response_type_url) {
1541 if (response_type_url != NULL) {
1542
1543 } else {
1544
1545 }
1546 response_type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), response_type_url);
1547 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
1548}
1549
1550// optional bool response_streaming = 5;
1551void Method::clear_response_streaming() {
1552 response_streaming_ = false;
1553}
1554 bool Method::response_streaming() const {
1555 // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
1556 return response_streaming_;
1557}
1558 void Method::set_response_streaming(bool value) {
1559
1560 response_streaming_ = value;
1561 // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
1562}
1563
1564// repeated .google.protobuf.Option options = 6;
1565int Method::options_size() const {
1566 return options_.size();
1567}
1568void Method::clear_options() {
1569 options_.Clear();
1570}
1571const ::google::protobuf::Option& Method::options(int index) const {
1572 // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
1573 return options_.Get(index);
1574}
1575::google::protobuf::Option* Method::mutable_options(int index) {
1576 // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
1577 return options_.Mutable(index);
1578}
1579::google::protobuf::Option* Method::add_options() {
1580 // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
1581 return options_.Add();
1582}
1583::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
1584Method::mutable_options() {
1585 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
1586 return &options_;
1587}
1588const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1589Method::options() const {
1590 // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
1591 return options_;
1592}
1593
1594// optional .google.protobuf.Syntax syntax = 7;
1595void Method::clear_syntax() {
1596 syntax_ = 0;
1597}
1598 ::google::protobuf::Syntax Method::syntax() const {
1599 // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
1600 return static_cast< ::google::protobuf::Syntax >(syntax_);
1601}
1602 void Method::set_syntax(::google::protobuf::Syntax value) {
1603
1604 syntax_ = value;
1605 // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
1606}
1607
1608#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1609
1610// ===================================================================
1611
1612#if !defined(_MSC_VER) || _MSC_VER >= 1900
1613const int Mixin::kNameFieldNumber;
1614const int Mixin::kRootFieldNumber;
1615#endif // !defined(_MSC_VER) || _MSC_VER >= 1900
1616
1617Mixin::Mixin()
1618 : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1619 SharedCtor();
1620 // @@protoc_insertion_point(constructor:google.protobuf.Mixin)
1621}
1622
1623void Mixin::InitAsDefaultInstance() {
1624 _is_default_instance_ = true;
1625}
1626
1627Mixin::Mixin(const Mixin& from)
1628 : ::google::protobuf::Message(),
1629 _internal_metadata_(NULL) {
1630 SharedCtor();
1631 MergeFrom(from);
1632 // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
1633}
1634
1635void Mixin::SharedCtor() {
1636 _is_default_instance_ = false;
1637 ::google::protobuf::internal::GetEmptyString();
1638 _cached_size_ = 0;
1639 name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1640 root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1641}
1642
1643Mixin::~Mixin() {
1644 // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
1645 SharedDtor();
1646}
1647
1648void Mixin::SharedDtor() {
1649 name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1650 root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1651 if (this != default_instance_) {
1652 }
1653}
1654
1655void Mixin::SetCachedSize(int size) const {
1656 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1657 _cached_size_ = size;
1658 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1659}
1660const ::google::protobuf::Descriptor* Mixin::descriptor() {
1661 protobuf_AssignDescriptorsOnce();
1662 return Mixin_descriptor_;
1663}
1664
1665const Mixin& Mixin::default_instance() {
1666 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fapi_2eproto();
1667 return *default_instance_;
1668}
1669
1670Mixin* Mixin::default_instance_ = NULL;
1671
1672Mixin* Mixin::New(::google::protobuf::Arena* arena) const {
1673 Mixin* n = new Mixin;
1674 if (arena != NULL) {
1675 arena->Own(n);
1676 }
1677 return n;
1678}
1679
1680void Mixin::Clear() {
1681 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1682 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1683}
1684
1685bool Mixin::MergePartialFromCodedStream(
1686 ::google::protobuf::io::CodedInputStream* input) {
1687#define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure
1688 ::google::protobuf::uint32 tag;
1689 // @@protoc_insertion_point(parse_start:google.protobuf.Mixin)
1690 for (;;) {
1691 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127);
1692 tag = p.first;
1693 if (!p.second) goto handle_unusual;
1694 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1695 // optional string name = 1;
1696 case 1: {
1697 if (tag == 10) {
1698 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1699 input, this->mutable_name()));
1700 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1701 this->name().data(), this->name().length(),
1702 ::google::protobuf::internal::WireFormatLite::PARSE,
1703 "google.protobuf.Mixin.name"));
1704 } else {
1705 goto handle_unusual;
1706 }
1707 if (input->ExpectTag(18)) goto parse_root;
1708 break;
1709 }
1710
1711 // optional string root = 2;
1712 case 2: {
1713 if (tag == 18) {
1714 parse_root:
1715 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1716 input, this->mutable_root()));
1717 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1718 this->root().data(), this->root().length(),
1719 ::google::protobuf::internal::WireFormatLite::PARSE,
1720 "google.protobuf.Mixin.root"));
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 }
1740success:
1741 // @@protoc_insertion_point(parse_success:google.protobuf.Mixin)
1742 return true;
1743failure:
1744 // @@protoc_insertion_point(parse_failure:google.protobuf.Mixin)
1745 return false;
1746#undef DO_
1747}
1748
1749void Mixin::SerializeWithCachedSizes(
1750 ::google::protobuf::io::CodedOutputStream* output) const {
1751 // @@protoc_insertion_point(serialize_start:google.protobuf.Mixin)
1752 // optional string name = 1;
1753 if (this->name().size() > 0) {
1754 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1755 this->name().data(), this->name().length(),
1756 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1757 "google.protobuf.Mixin.name");
1758 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1759 1, this->name(), output);
1760 }
1761
1762 // optional string root = 2;
1763 if (this->root().size() > 0) {
1764 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1765 this->root().data(), this->root().length(),
1766 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1767 "google.protobuf.Mixin.root");
1768 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1769 2, this->root(), output);
1770 }
1771
1772 // @@protoc_insertion_point(serialize_end:google.protobuf.Mixin)
1773}
1774
1775::google::protobuf::uint8* Mixin::SerializeWithCachedSizesToArray(
1776 ::google::protobuf::uint8* target) const {
1777 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
1778 // optional string name = 1;
1779 if (this->name().size() > 0) {
1780 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1781 this->name().data(), this->name().length(),
1782 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1783 "google.protobuf.Mixin.name");
1784 target =
1785 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1786 1, this->name(), target);
1787 }
1788
1789 // optional string root = 2;
1790 if (this->root().size() > 0) {
1791 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
1792 this->root().data(), this->root().length(),
1793 ::google::protobuf::internal::WireFormatLite::SERIALIZE,
1794 "google.protobuf.Mixin.root");
1795 target =
1796 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1797 2, this->root(), target);
1798 }
1799
1800 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
1801 return target;
1802}
1803
1804int Mixin::ByteSize() const {
1805 int total_size = 0;
1806
1807 // optional string name = 1;
1808 if (this->name().size() > 0) {
1809 total_size += 1 +
1810 ::google::protobuf::internal::WireFormatLite::StringSize(
1811 this->name());
1812 }
1813
1814 // optional string root = 2;
1815 if (this->root().size() > 0) {
1816 total_size += 1 +
1817 ::google::protobuf::internal::WireFormatLite::StringSize(
1818 this->root());
1819 }
1820
1821 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1822 _cached_size_ = total_size;
1823 GOOGLE_SAFE_CONCURRENT_WRITES_END();
1824 return total_size;
1825}
1826
1827void Mixin::MergeFrom(const ::google::protobuf::Message& from) {
1828 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1829 const Mixin* source =
1830 ::google::protobuf::internal::DynamicCastToGenerated<const Mixin>(
1831 &from);
1832 if (source == NULL) {
1833 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1834 } else {
1835 MergeFrom(*source);
1836 }
1837}
1838
1839void Mixin::MergeFrom(const Mixin& from) {
1840 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__);
1841 if (from.name().size() > 0) {
1842
1843 name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1844 }
1845 if (from.root().size() > 0) {
1846
1847 root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.root_);
1848 }
1849}
1850
1851void Mixin::CopyFrom(const ::google::protobuf::Message& from) {
1852 if (&from == this) return;
1853 Clear();
1854 MergeFrom(from);
1855}
1856
1857void Mixin::CopyFrom(const Mixin& from) {
1858 if (&from == this) return;
1859 Clear();
1860 MergeFrom(from);
1861}
1862
1863bool Mixin::IsInitialized() const {
1864
1865 return true;
1866}
1867
1868void Mixin::Swap(Mixin* other) {
1869 if (other == this) return;
1870 InternalSwap(other);
1871}
1872void Mixin::InternalSwap(Mixin* other) {
1873 name_.Swap(&other->name_);
1874 root_.Swap(&other->root_);
1875 _internal_metadata_.Swap(&other->_internal_metadata_);
1876 std::swap(_cached_size_, other->_cached_size_);
1877}
1878
1879::google::protobuf::Metadata Mixin::GetMetadata() const {
1880 protobuf_AssignDescriptorsOnce();
1881 ::google::protobuf::Metadata metadata;
1882 metadata.descriptor = Mixin_descriptor_;
1883 metadata.reflection = Mixin_reflection_;
1884 return metadata;
1885}
1886
1887#if PROTOBUF_INLINE_NOT_IN_HEADERS
1888// Mixin
1889
1890// optional string name = 1;
1891void Mixin::clear_name() {
1892 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1893}
1894 const ::std::string& Mixin::name() const {
1895 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
1896 return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1897}
1898 void Mixin::set_name(const ::std::string& value) {
1899
1900 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1901 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
1902}
1903 void Mixin::set_name(const char* value) {
1904
1905 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1906 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
1907}
1908 void Mixin::set_name(const char* value, size_t size) {
1909
1910 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1911 ::std::string(reinterpret_cast<const char*>(value), size));
1912 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
1913}
1914 ::std::string* Mixin::mutable_name() {
1915
1916 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
1917 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1918}
1919 ::std::string* Mixin::release_name() {
1920
1921 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1922}
1923 void Mixin::set_allocated_name(::std::string* name) {
1924 if (name != NULL) {
1925
1926 } else {
1927
1928 }
1929 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1930 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
1931}
1932
1933// optional string root = 2;
1934void Mixin::clear_root() {
1935 root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1936}
1937 const ::std::string& Mixin::root() const {
1938 // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
1939 return root_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1940}
1941 void Mixin::set_root(const ::std::string& value) {
1942
1943 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1944 // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
1945}
1946 void Mixin::set_root(const char* value) {
1947
1948 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1949 // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
1950}
1951 void Mixin::set_root(const char* value, size_t size) {
1952
1953 root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1954 ::std::string(reinterpret_cast<const char*>(value), size));
1955 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
1956}
1957 ::std::string* Mixin::mutable_root() {
1958
1959 // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
1960 return root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1961}
1962 ::std::string* Mixin::release_root() {
1963
1964 return root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1965}
1966 void Mixin::set_allocated_root(::std::string* root) {
1967 if (root != NULL) {
1968
1969 } else {
1970
1971 }
1972 root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), root);
1973 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
1974}
1975
1976#endif // PROTOBUF_INLINE_NOT_IN_HEADERS
1977
1978// @@protoc_insertion_point(namespace_scope)
1979
1980} // namespace protobuf
1981} // namespace google
1982
1983// @@protoc_insertion_point(global_scope)