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