• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/api.proto
3 
4 #include <google/protobuf/api.pb.h>
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/stubs/common.h>
9 #include <google/protobuf/io/coded_stream.h>
10 #include <google/protobuf/extension_set.h>
11 #include <google/protobuf/wire_format_lite.h>
12 #include <google/protobuf/descriptor.h>
13 #include <google/protobuf/generated_message_reflection.h>
14 #include <google/protobuf/reflection_ops.h>
15 #include <google/protobuf/wire_format.h>
16 // @@protoc_insertion_point(includes)
17 #include <google/protobuf/port_def.inc>
18 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Method_google_2fprotobuf_2fapi_2eproto;
19 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Mixin_google_2fprotobuf_2fapi_2eproto;
20 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Option_google_2fprotobuf_2ftype_2eproto;
21 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto;
22 PROTOBUF_NAMESPACE_OPEN
23 class ApiDefaultTypeInternal {
24  public:
25   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Api> _instance;
26 } _Api_default_instance_;
27 class MethodDefaultTypeInternal {
28  public:
29   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Method> _instance;
30 } _Method_default_instance_;
31 class MixinDefaultTypeInternal {
32  public:
33   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Mixin> _instance;
34 } _Mixin_default_instance_;
35 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_Api_google_2fprotobuf_2fapi_2eproto()36 static void InitDefaultsscc_info_Api_google_2fprotobuf_2fapi_2eproto() {
37   GOOGLE_PROTOBUF_VERIFY_VERSION;
38 
39   {
40     void* ptr = &PROTOBUF_NAMESPACE_ID::_Api_default_instance_;
41     new (ptr) PROTOBUF_NAMESPACE_ID::Api();
42     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
43   }
44   PROTOBUF_NAMESPACE_ID::Api::InitAsDefaultInstance();
45 }
46 
47 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Api_google_2fprotobuf_2fapi_2eproto =
48     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsscc_info_Api_google_2fprotobuf_2fapi_2eproto}, {
49       &scc_info_Method_google_2fprotobuf_2fapi_2eproto.base,
50       &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,
51       &scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto.base,
52       &scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base,}};
53 
InitDefaultsscc_info_Method_google_2fprotobuf_2fapi_2eproto()54 static void InitDefaultsscc_info_Method_google_2fprotobuf_2fapi_2eproto() {
55   GOOGLE_PROTOBUF_VERIFY_VERSION;
56 
57   {
58     void* ptr = &PROTOBUF_NAMESPACE_ID::_Method_default_instance_;
59     new (ptr) PROTOBUF_NAMESPACE_ID::Method();
60     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
61   }
62   PROTOBUF_NAMESPACE_ID::Method::InitAsDefaultInstance();
63 }
64 
65 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Method_google_2fprotobuf_2fapi_2eproto =
66     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_Method_google_2fprotobuf_2fapi_2eproto}, {
67       &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,}};
68 
InitDefaultsscc_info_Mixin_google_2fprotobuf_2fapi_2eproto()69 static void InitDefaultsscc_info_Mixin_google_2fprotobuf_2fapi_2eproto() {
70   GOOGLE_PROTOBUF_VERIFY_VERSION;
71 
72   {
73     void* ptr = &PROTOBUF_NAMESPACE_ID::_Mixin_default_instance_;
74     new (ptr) PROTOBUF_NAMESPACE_ID::Mixin();
75     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
76   }
77   PROTOBUF_NAMESPACE_ID::Mixin::InitAsDefaultInstance();
78 }
79 
80 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Mixin_google_2fprotobuf_2fapi_2eproto =
81     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_Mixin_google_2fprotobuf_2fapi_2eproto}, {}};
82 
83 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fapi_2eproto[3];
84 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr;
85 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr;
86 
87 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fapi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
88   ~0u,  // no _has_bits_
89   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, _internal_metadata_),
90   ~0u,  // no _extensions_
91   ~0u,  // no _oneof_case_
92   ~0u,  // no _weak_field_map_
93   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, name_),
94   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, methods_),
95   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, options_),
96   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, version_),
97   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, source_context_),
98   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, mixins_),
99   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, syntax_),
100   ~0u,  // no _has_bits_
101   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, _internal_metadata_),
102   ~0u,  // no _extensions_
103   ~0u,  // no _oneof_case_
104   ~0u,  // no _weak_field_map_
105   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, name_),
106   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, request_type_url_),
107   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, request_streaming_),
108   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, response_type_url_),
109   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, response_streaming_),
110   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, options_),
111   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, syntax_),
112   ~0u,  // no _has_bits_
113   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Mixin, _internal_metadata_),
114   ~0u,  // no _extensions_
115   ~0u,  // no _oneof_case_
116   ~0u,  // no _weak_field_map_
117   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Mixin, name_),
118   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Mixin, root_),
119 };
120 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
121   { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Api)},
122   { 12, -1, sizeof(PROTOBUF_NAMESPACE_ID::Method)},
123   { 24, -1, sizeof(PROTOBUF_NAMESPACE_ID::Mixin)},
124 };
125 
126 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
127   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Api_default_instance_),
128   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Method_default_instance_),
129   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Mixin_default_instance_),
130 };
131 
132 const char descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
133   "\n\031google/protobuf/api.proto\022\017google.prot"
134   "obuf\032$google/protobuf/source_context.pro"
135   "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
136   "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
137   "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
138   ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
139   "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
140   "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
141   "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
142   "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
143   "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
144   "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
145   "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
146   "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
147   "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
148   "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBu\n\023com.google.pr"
149   "otobufB\010ApiProtoP\001Z+google.golang.org/ge"
150   "nproto/protobuf/api;api\242\002\003GPB\252\002\036Google.P"
151   "rotobuf.WellKnownTypesb\006proto3"
152   ;
153 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fapi_2eproto_deps[2] = {
154   &::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto,
155   &::descriptor_table_google_2fprotobuf_2ftype_2eproto,
156 };
157 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fapi_2eproto_sccs[3] = {
158   &scc_info_Api_google_2fprotobuf_2fapi_2eproto.base,
159   &scc_info_Method_google_2fprotobuf_2fapi_2eproto.base,
160   &scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base,
161 };
162 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fapi_2eproto_once;
163 static bool descriptor_table_google_2fprotobuf_2fapi_2eproto_initialized = false;
164 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fapi_2eproto = {
165   &descriptor_table_google_2fprotobuf_2fapi_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto, "google/protobuf/api.proto", 750,
166   &descriptor_table_google_2fprotobuf_2fapi_2eproto_once, descriptor_table_google_2fprotobuf_2fapi_2eproto_sccs, descriptor_table_google_2fprotobuf_2fapi_2eproto_deps, 3, 2,
167   schemas, file_default_instances, TableStruct_google_2fprotobuf_2fapi_2eproto::offsets,
168   file_level_metadata_google_2fprotobuf_2fapi_2eproto, 3, file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto, file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto,
169 };
170 
171 // Force running AddDescriptors() at dynamic initialization time.
172 static bool dynamic_init_dummy_google_2fprotobuf_2fapi_2eproto = (  ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fapi_2eproto), true);
173 PROTOBUF_NAMESPACE_OPEN
174 
175 // ===================================================================
176 
InitAsDefaultInstance()177 void Api::InitAsDefaultInstance() {
178   PROTOBUF_NAMESPACE_ID::_Api_default_instance_._instance.get_mutable()->source_context_ = const_cast< PROTOBUF_NAMESPACE_ID::SourceContext*>(
179       PROTOBUF_NAMESPACE_ID::SourceContext::internal_default_instance());
180 }
181 class Api::_Internal {
182  public:
183   static const PROTOBUF_NAMESPACE_ID::SourceContext& source_context(const Api* msg);
184 };
185 
186 const PROTOBUF_NAMESPACE_ID::SourceContext&
source_context(const Api * msg)187 Api::_Internal::source_context(const Api* msg) {
188   return *msg->source_context_;
189 }
clear_options()190 void Api::clear_options() {
191   options_.Clear();
192 }
clear_source_context()193 void Api::clear_source_context() {
194   if (GetArenaNoVirtual() == nullptr && source_context_ != nullptr) {
195     delete source_context_;
196   }
197   source_context_ = nullptr;
198 }
Api()199 Api::Api()
200   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
201   SharedCtor();
202   // @@protoc_insertion_point(constructor:google.protobuf.Api)
203 }
Api(const Api & from)204 Api::Api(const Api& from)
205   : ::PROTOBUF_NAMESPACE_ID::Message(),
206       _internal_metadata_(nullptr),
207       methods_(from.methods_),
208       options_(from.options_),
209       mixins_(from.mixins_) {
210   _internal_metadata_.MergeFrom(from._internal_metadata_);
211   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
212   if (!from.name().empty()) {
213     name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
214   }
215   version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
216   if (!from.version().empty()) {
217     version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_);
218   }
219   if (from.has_source_context()) {
220     source_context_ = new PROTOBUF_NAMESPACE_ID::SourceContext(*from.source_context_);
221   } else {
222     source_context_ = nullptr;
223   }
224   syntax_ = from.syntax_;
225   // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
226 }
227 
SharedCtor()228 void Api::SharedCtor() {
229   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Api_google_2fprotobuf_2fapi_2eproto.base);
230   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
231   version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
232   ::memset(&source_context_, 0, static_cast<size_t>(
233       reinterpret_cast<char*>(&syntax_) -
234       reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
235 }
236 
~Api()237 Api::~Api() {
238   // @@protoc_insertion_point(destructor:google.protobuf.Api)
239   SharedDtor();
240 }
241 
SharedDtor()242 void Api::SharedDtor() {
243   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
244   version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
245   if (this != internal_default_instance()) delete source_context_;
246 }
247 
SetCachedSize(int size) const248 void Api::SetCachedSize(int size) const {
249   _cached_size_.Set(size);
250 }
default_instance()251 const Api& Api::default_instance() {
252   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Api_google_2fprotobuf_2fapi_2eproto.base);
253   return *internal_default_instance();
254 }
255 
256 
Clear()257 void Api::Clear() {
258 // @@protoc_insertion_point(message_clear_start:google.protobuf.Api)
259   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
260   // Prevent compiler warnings about cached_has_bits being unused
261   (void) cached_has_bits;
262 
263   methods_.Clear();
264   options_.Clear();
265   mixins_.Clear();
266   name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
267   version_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
268   if (GetArenaNoVirtual() == nullptr && source_context_ != nullptr) {
269     delete source_context_;
270   }
271   source_context_ = nullptr;
272   syntax_ = 0;
273   _internal_metadata_.Clear();
274 }
275 
276 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)277 const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
278 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
279   while (!ctx->Done(&ptr)) {
280     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
281     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
282     CHK_(ptr);
283     switch (tag >> 3) {
284       // string name = 1;
285       case 1:
286         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
287           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Api.name");
288           CHK_(ptr);
289         } else goto handle_unusual;
290         continue;
291       // repeated .google.protobuf.Method methods = 2;
292       case 2:
293         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
294           ptr -= 1;
295           do {
296             ptr += 1;
297             ptr = ctx->ParseMessage(add_methods(), ptr);
298             CHK_(ptr);
299             if (!ctx->DataAvailable(ptr)) break;
300           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 18);
301         } else goto handle_unusual;
302         continue;
303       // repeated .google.protobuf.Option options = 3;
304       case 3:
305         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
306           ptr -= 1;
307           do {
308             ptr += 1;
309             ptr = ctx->ParseMessage(add_options(), ptr);
310             CHK_(ptr);
311             if (!ctx->DataAvailable(ptr)) break;
312           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
313         } else goto handle_unusual;
314         continue;
315       // string version = 4;
316       case 4:
317         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
318           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_version(), ptr, ctx, "google.protobuf.Api.version");
319           CHK_(ptr);
320         } else goto handle_unusual;
321         continue;
322       // .google.protobuf.SourceContext source_context = 5;
323       case 5:
324         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
325           ptr = ctx->ParseMessage(mutable_source_context(), ptr);
326           CHK_(ptr);
327         } else goto handle_unusual;
328         continue;
329       // repeated .google.protobuf.Mixin mixins = 6;
330       case 6:
331         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
332           ptr -= 1;
333           do {
334             ptr += 1;
335             ptr = ctx->ParseMessage(add_mixins(), ptr);
336             CHK_(ptr);
337             if (!ctx->DataAvailable(ptr)) break;
338           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
339         } else goto handle_unusual;
340         continue;
341       // .google.protobuf.Syntax syntax = 7;
342       case 7:
343         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
344           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
345           CHK_(ptr);
346           set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
347         } else goto handle_unusual;
348         continue;
349       default: {
350       handle_unusual:
351         if ((tag & 7) == 4 || tag == 0) {
352           ctx->SetLastTag(tag);
353           goto success;
354         }
355         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
356         CHK_(ptr != nullptr);
357         continue;
358       }
359     }  // switch
360   }  // while
361 success:
362   return ptr;
363 failure:
364   ptr = nullptr;
365   goto success;
366 #undef CHK_
367 }
368 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)369 bool Api::MergePartialFromCodedStream(
370     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
371 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
372   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
373   // @@protoc_insertion_point(parse_start:google.protobuf.Api)
374   for (;;) {
375     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
376     tag = p.first;
377     if (!p.second) goto handle_unusual;
378     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
379       // string name = 1;
380       case 1: {
381         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
382           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
383                 input, this->mutable_name()));
384           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
385             this->name().data(), static_cast<int>(this->name().length()),
386             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
387             "google.protobuf.Api.name"));
388         } else {
389           goto handle_unusual;
390         }
391         break;
392       }
393 
394       // repeated .google.protobuf.Method methods = 2;
395       case 2: {
396         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
397           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
398                 input, add_methods()));
399         } else {
400           goto handle_unusual;
401         }
402         break;
403       }
404 
405       // repeated .google.protobuf.Option options = 3;
406       case 3: {
407         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
408           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
409                 input, add_options()));
410         } else {
411           goto handle_unusual;
412         }
413         break;
414       }
415 
416       // string version = 4;
417       case 4: {
418         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
419           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
420                 input, this->mutable_version()));
421           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
422             this->version().data(), static_cast<int>(this->version().length()),
423             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
424             "google.protobuf.Api.version"));
425         } else {
426           goto handle_unusual;
427         }
428         break;
429       }
430 
431       // .google.protobuf.SourceContext source_context = 5;
432       case 5: {
433         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
434           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
435                input, mutable_source_context()));
436         } else {
437           goto handle_unusual;
438         }
439         break;
440       }
441 
442       // repeated .google.protobuf.Mixin mixins = 6;
443       case 6: {
444         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
445           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
446                 input, add_mixins()));
447         } else {
448           goto handle_unusual;
449         }
450         break;
451       }
452 
453       // .google.protobuf.Syntax syntax = 7;
454       case 7: {
455         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
456           int value = 0;
457           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
458                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
459                  input, &value)));
460           set_syntax(static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(value));
461         } else {
462           goto handle_unusual;
463         }
464         break;
465       }
466 
467       default: {
468       handle_unusual:
469         if (tag == 0) {
470           goto success;
471         }
472         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
473               input, tag, _internal_metadata_.mutable_unknown_fields()));
474         break;
475       }
476     }
477   }
478 success:
479   // @@protoc_insertion_point(parse_success:google.protobuf.Api)
480   return true;
481 failure:
482   // @@protoc_insertion_point(parse_failure:google.protobuf.Api)
483   return false;
484 #undef DO_
485 }
486 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
487 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const488 void Api::SerializeWithCachedSizes(
489     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
490   // @@protoc_insertion_point(serialize_start:google.protobuf.Api)
491   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
492   (void) cached_has_bits;
493 
494   // string name = 1;
495   if (this->name().size() > 0) {
496     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
497       this->name().data(), static_cast<int>(this->name().length()),
498       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
499       "google.protobuf.Api.name");
500     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
501       1, this->name(), output);
502   }
503 
504   // repeated .google.protobuf.Method methods = 2;
505   for (unsigned int i = 0,
506       n = static_cast<unsigned int>(this->methods_size()); i < n; i++) {
507     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
508       2,
509       this->methods(static_cast<int>(i)),
510       output);
511   }
512 
513   // repeated .google.protobuf.Option options = 3;
514   for (unsigned int i = 0,
515       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
516     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
517       3,
518       this->options(static_cast<int>(i)),
519       output);
520   }
521 
522   // string version = 4;
523   if (this->version().size() > 0) {
524     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
525       this->version().data(), static_cast<int>(this->version().length()),
526       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
527       "google.protobuf.Api.version");
528     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
529       4, this->version(), output);
530   }
531 
532   // .google.protobuf.SourceContext source_context = 5;
533   if (this->has_source_context()) {
534     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
535       5, _Internal::source_context(this), output);
536   }
537 
538   // repeated .google.protobuf.Mixin mixins = 6;
539   for (unsigned int i = 0,
540       n = static_cast<unsigned int>(this->mixins_size()); i < n; i++) {
541     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
542       6,
543       this->mixins(static_cast<int>(i)),
544       output);
545   }
546 
547   // .google.protobuf.Syntax syntax = 7;
548   if (this->syntax() != 0) {
549     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
550       7, this->syntax(), output);
551   }
552 
553   if (_internal_metadata_.have_unknown_fields()) {
554     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
555         _internal_metadata_.unknown_fields(), output);
556   }
557   // @@protoc_insertion_point(serialize_end:google.protobuf.Api)
558 }
559 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const560 ::PROTOBUF_NAMESPACE_ID::uint8* Api::InternalSerializeWithCachedSizesToArray(
561     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
562   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
563   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
564   (void) cached_has_bits;
565 
566   // string name = 1;
567   if (this->name().size() > 0) {
568     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
569       this->name().data(), static_cast<int>(this->name().length()),
570       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
571       "google.protobuf.Api.name");
572     target =
573       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
574         1, this->name(), target);
575   }
576 
577   // repeated .google.protobuf.Method methods = 2;
578   for (unsigned int i = 0,
579       n = static_cast<unsigned int>(this->methods_size()); i < n; i++) {
580     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
581       InternalWriteMessageToArray(
582         2, this->methods(static_cast<int>(i)), target);
583   }
584 
585   // repeated .google.protobuf.Option options = 3;
586   for (unsigned int i = 0,
587       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
588     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
589       InternalWriteMessageToArray(
590         3, this->options(static_cast<int>(i)), target);
591   }
592 
593   // string version = 4;
594   if (this->version().size() > 0) {
595     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
596       this->version().data(), static_cast<int>(this->version().length()),
597       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
598       "google.protobuf.Api.version");
599     target =
600       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
601         4, this->version(), target);
602   }
603 
604   // .google.protobuf.SourceContext source_context = 5;
605   if (this->has_source_context()) {
606     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
607       InternalWriteMessageToArray(
608         5, _Internal::source_context(this), target);
609   }
610 
611   // repeated .google.protobuf.Mixin mixins = 6;
612   for (unsigned int i = 0,
613       n = static_cast<unsigned int>(this->mixins_size()); i < n; i++) {
614     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
615       InternalWriteMessageToArray(
616         6, this->mixins(static_cast<int>(i)), target);
617   }
618 
619   // .google.protobuf.Syntax syntax = 7;
620   if (this->syntax() != 0) {
621     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
622       7, this->syntax(), target);
623   }
624 
625   if (_internal_metadata_.have_unknown_fields()) {
626     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
627         _internal_metadata_.unknown_fields(), target);
628   }
629   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
630   return target;
631 }
632 
ByteSizeLong() const633 size_t Api::ByteSizeLong() const {
634 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api)
635   size_t total_size = 0;
636 
637   if (_internal_metadata_.have_unknown_fields()) {
638     total_size +=
639       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
640         _internal_metadata_.unknown_fields());
641   }
642   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
643   // Prevent compiler warnings about cached_has_bits being unused
644   (void) cached_has_bits;
645 
646   // repeated .google.protobuf.Method methods = 2;
647   {
648     unsigned int count = static_cast<unsigned int>(this->methods_size());
649     total_size += 1UL * count;
650     for (unsigned int i = 0; i < count; i++) {
651       total_size +=
652         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
653           this->methods(static_cast<int>(i)));
654     }
655   }
656 
657   // repeated .google.protobuf.Option options = 3;
658   {
659     unsigned int count = static_cast<unsigned int>(this->options_size());
660     total_size += 1UL * count;
661     for (unsigned int i = 0; i < count; i++) {
662       total_size +=
663         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
664           this->options(static_cast<int>(i)));
665     }
666   }
667 
668   // repeated .google.protobuf.Mixin mixins = 6;
669   {
670     unsigned int count = static_cast<unsigned int>(this->mixins_size());
671     total_size += 1UL * count;
672     for (unsigned int i = 0; i < count; i++) {
673       total_size +=
674         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
675           this->mixins(static_cast<int>(i)));
676     }
677   }
678 
679   // string name = 1;
680   if (this->name().size() > 0) {
681     total_size += 1 +
682       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
683         this->name());
684   }
685 
686   // string version = 4;
687   if (this->version().size() > 0) {
688     total_size += 1 +
689       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
690         this->version());
691   }
692 
693   // .google.protobuf.SourceContext source_context = 5;
694   if (this->has_source_context()) {
695     total_size += 1 +
696       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
697         *source_context_);
698   }
699 
700   // .google.protobuf.Syntax syntax = 7;
701   if (this->syntax() != 0) {
702     total_size += 1 +
703       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->syntax());
704   }
705 
706   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
707   SetCachedSize(cached_size);
708   return total_size;
709 }
710 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)711 void Api::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
712 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Api)
713   GOOGLE_DCHECK_NE(&from, this);
714   const Api* source =
715       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Api>(
716           &from);
717   if (source == nullptr) {
718   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Api)
719     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
720   } else {
721   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Api)
722     MergeFrom(*source);
723   }
724 }
725 
MergeFrom(const Api & from)726 void Api::MergeFrom(const Api& from) {
727 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api)
728   GOOGLE_DCHECK_NE(&from, this);
729   _internal_metadata_.MergeFrom(from._internal_metadata_);
730   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
731   (void) cached_has_bits;
732 
733   methods_.MergeFrom(from.methods_);
734   options_.MergeFrom(from.options_);
735   mixins_.MergeFrom(from.mixins_);
736   if (from.name().size() > 0) {
737 
738     name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
739   }
740   if (from.version().size() > 0) {
741 
742     version_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.version_);
743   }
744   if (from.has_source_context()) {
745     mutable_source_context()->PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(from.source_context());
746   }
747   if (from.syntax() != 0) {
748     set_syntax(from.syntax());
749   }
750 }
751 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)752 void Api::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
753 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Api)
754   if (&from == this) return;
755   Clear();
756   MergeFrom(from);
757 }
758 
CopyFrom(const Api & from)759 void Api::CopyFrom(const Api& from) {
760 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api)
761   if (&from == this) return;
762   Clear();
763   MergeFrom(from);
764 }
765 
IsInitialized() const766 bool Api::IsInitialized() const {
767   return true;
768 }
769 
InternalSwap(Api * other)770 void Api::InternalSwap(Api* other) {
771   using std::swap;
772   _internal_metadata_.Swap(&other->_internal_metadata_);
773   CastToBase(&methods_)->InternalSwap(CastToBase(&other->methods_));
774   CastToBase(&options_)->InternalSwap(CastToBase(&other->options_));
775   CastToBase(&mixins_)->InternalSwap(CastToBase(&other->mixins_));
776   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
777     GetArenaNoVirtual());
778   version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
779     GetArenaNoVirtual());
780   swap(source_context_, other->source_context_);
781   swap(syntax_, other->syntax_);
782 }
783 
GetMetadata() const784 ::PROTOBUF_NAMESPACE_ID::Metadata Api::GetMetadata() const {
785   return GetMetadataStatic();
786 }
787 
788 
789 // ===================================================================
790 
InitAsDefaultInstance()791 void Method::InitAsDefaultInstance() {
792 }
793 class Method::_Internal {
794  public:
795 };
796 
clear_options()797 void Method::clear_options() {
798   options_.Clear();
799 }
Method()800 Method::Method()
801   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
802   SharedCtor();
803   // @@protoc_insertion_point(constructor:google.protobuf.Method)
804 }
Method(const Method & from)805 Method::Method(const Method& from)
806   : ::PROTOBUF_NAMESPACE_ID::Message(),
807       _internal_metadata_(nullptr),
808       options_(from.options_) {
809   _internal_metadata_.MergeFrom(from._internal_metadata_);
810   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
811   if (!from.name().empty()) {
812     name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
813   }
814   request_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
815   if (!from.request_type_url().empty()) {
816     request_type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
817   }
818   response_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
819   if (!from.response_type_url().empty()) {
820     response_type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
821   }
822   ::memcpy(&request_streaming_, &from.request_streaming_,
823     static_cast<size_t>(reinterpret_cast<char*>(&syntax_) -
824     reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
825   // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
826 }
827 
SharedCtor()828 void Method::SharedCtor() {
829   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Method_google_2fprotobuf_2fapi_2eproto.base);
830   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
831   request_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
832   response_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
833   ::memset(&request_streaming_, 0, static_cast<size_t>(
834       reinterpret_cast<char*>(&syntax_) -
835       reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
836 }
837 
~Method()838 Method::~Method() {
839   // @@protoc_insertion_point(destructor:google.protobuf.Method)
840   SharedDtor();
841 }
842 
SharedDtor()843 void Method::SharedDtor() {
844   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
845   request_type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
846   response_type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
847 }
848 
SetCachedSize(int size) const849 void Method::SetCachedSize(int size) const {
850   _cached_size_.Set(size);
851 }
default_instance()852 const Method& Method::default_instance() {
853   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Method_google_2fprotobuf_2fapi_2eproto.base);
854   return *internal_default_instance();
855 }
856 
857 
Clear()858 void Method::Clear() {
859 // @@protoc_insertion_point(message_clear_start:google.protobuf.Method)
860   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
861   // Prevent compiler warnings about cached_has_bits being unused
862   (void) cached_has_bits;
863 
864   options_.Clear();
865   name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
866   request_type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
867   response_type_url_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
868   ::memset(&request_streaming_, 0, static_cast<size_t>(
869       reinterpret_cast<char*>(&syntax_) -
870       reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
871   _internal_metadata_.Clear();
872 }
873 
874 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)875 const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
876 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
877   while (!ctx->Done(&ptr)) {
878     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
879     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
880     CHK_(ptr);
881     switch (tag >> 3) {
882       // string name = 1;
883       case 1:
884         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
885           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Method.name");
886           CHK_(ptr);
887         } else goto handle_unusual;
888         continue;
889       // string request_type_url = 2;
890       case 2:
891         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
892           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_request_type_url(), ptr, ctx, "google.protobuf.Method.request_type_url");
893           CHK_(ptr);
894         } else goto handle_unusual;
895         continue;
896       // bool request_streaming = 3;
897       case 3:
898         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
899           request_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
900           CHK_(ptr);
901         } else goto handle_unusual;
902         continue;
903       // string response_type_url = 4;
904       case 4:
905         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
906           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_response_type_url(), ptr, ctx, "google.protobuf.Method.response_type_url");
907           CHK_(ptr);
908         } else goto handle_unusual;
909         continue;
910       // bool response_streaming = 5;
911       case 5:
912         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
913           response_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
914           CHK_(ptr);
915         } else goto handle_unusual;
916         continue;
917       // repeated .google.protobuf.Option options = 6;
918       case 6:
919         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
920           ptr -= 1;
921           do {
922             ptr += 1;
923             ptr = ctx->ParseMessage(add_options(), ptr);
924             CHK_(ptr);
925             if (!ctx->DataAvailable(ptr)) break;
926           } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
927         } else goto handle_unusual;
928         continue;
929       // .google.protobuf.Syntax syntax = 7;
930       case 7:
931         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
932           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
933           CHK_(ptr);
934           set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
935         } else goto handle_unusual;
936         continue;
937       default: {
938       handle_unusual:
939         if ((tag & 7) == 4 || tag == 0) {
940           ctx->SetLastTag(tag);
941           goto success;
942         }
943         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
944         CHK_(ptr != nullptr);
945         continue;
946       }
947     }  // switch
948   }  // while
949 success:
950   return ptr;
951 failure:
952   ptr = nullptr;
953   goto success;
954 #undef CHK_
955 }
956 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)957 bool Method::MergePartialFromCodedStream(
958     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
959 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
960   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
961   // @@protoc_insertion_point(parse_start:google.protobuf.Method)
962   for (;;) {
963     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
964     tag = p.first;
965     if (!p.second) goto handle_unusual;
966     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
967       // string name = 1;
968       case 1: {
969         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
970           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
971                 input, this->mutable_name()));
972           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
973             this->name().data(), static_cast<int>(this->name().length()),
974             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
975             "google.protobuf.Method.name"));
976         } else {
977           goto handle_unusual;
978         }
979         break;
980       }
981 
982       // string request_type_url = 2;
983       case 2: {
984         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
985           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
986                 input, this->mutable_request_type_url()));
987           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
988             this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
989             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
990             "google.protobuf.Method.request_type_url"));
991         } else {
992           goto handle_unusual;
993         }
994         break;
995       }
996 
997       // bool request_streaming = 3;
998       case 3: {
999         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
1000 
1001           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1002                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
1003                  input, &request_streaming_)));
1004         } else {
1005           goto handle_unusual;
1006         }
1007         break;
1008       }
1009 
1010       // string response_type_url = 4;
1011       case 4: {
1012         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
1013           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1014                 input, this->mutable_response_type_url()));
1015           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1016             this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
1017             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1018             "google.protobuf.Method.response_type_url"));
1019         } else {
1020           goto handle_unusual;
1021         }
1022         break;
1023       }
1024 
1025       // bool response_streaming = 5;
1026       case 5: {
1027         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
1028 
1029           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1030                    bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
1031                  input, &response_streaming_)));
1032         } else {
1033           goto handle_unusual;
1034         }
1035         break;
1036       }
1037 
1038       // repeated .google.protobuf.Option options = 6;
1039       case 6: {
1040         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
1041           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1042                 input, add_options()));
1043         } else {
1044           goto handle_unusual;
1045         }
1046         break;
1047       }
1048 
1049       // .google.protobuf.Syntax syntax = 7;
1050       case 7: {
1051         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (56 & 0xFF)) {
1052           int value = 0;
1053           DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1054                    int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
1055                  input, &value)));
1056           set_syntax(static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(value));
1057         } else {
1058           goto handle_unusual;
1059         }
1060         break;
1061       }
1062 
1063       default: {
1064       handle_unusual:
1065         if (tag == 0) {
1066           goto success;
1067         }
1068         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1069               input, tag, _internal_metadata_.mutable_unknown_fields()));
1070         break;
1071       }
1072     }
1073   }
1074 success:
1075   // @@protoc_insertion_point(parse_success:google.protobuf.Method)
1076   return true;
1077 failure:
1078   // @@protoc_insertion_point(parse_failure:google.protobuf.Method)
1079   return false;
1080 #undef DO_
1081 }
1082 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1083 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const1084 void Method::SerializeWithCachedSizes(
1085     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1086   // @@protoc_insertion_point(serialize_start:google.protobuf.Method)
1087   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1088   (void) cached_has_bits;
1089 
1090   // string name = 1;
1091   if (this->name().size() > 0) {
1092     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1093       this->name().data(), static_cast<int>(this->name().length()),
1094       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1095       "google.protobuf.Method.name");
1096     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1097       1, this->name(), output);
1098   }
1099 
1100   // string request_type_url = 2;
1101   if (this->request_type_url().size() > 0) {
1102     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1103       this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
1104       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1105       "google.protobuf.Method.request_type_url");
1106     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1107       2, this->request_type_url(), output);
1108   }
1109 
1110   // bool request_streaming = 3;
1111   if (this->request_streaming() != 0) {
1112     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->request_streaming(), output);
1113   }
1114 
1115   // string response_type_url = 4;
1116   if (this->response_type_url().size() > 0) {
1117     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1118       this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
1119       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1120       "google.protobuf.Method.response_type_url");
1121     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1122       4, this->response_type_url(), output);
1123   }
1124 
1125   // bool response_streaming = 5;
1126   if (this->response_streaming() != 0) {
1127     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(5, this->response_streaming(), output);
1128   }
1129 
1130   // repeated .google.protobuf.Option options = 6;
1131   for (unsigned int i = 0,
1132       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
1133     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1134       6,
1135       this->options(static_cast<int>(i)),
1136       output);
1137   }
1138 
1139   // .google.protobuf.Syntax syntax = 7;
1140   if (this->syntax() != 0) {
1141     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
1142       7, this->syntax(), output);
1143   }
1144 
1145   if (_internal_metadata_.have_unknown_fields()) {
1146     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1147         _internal_metadata_.unknown_fields(), output);
1148   }
1149   // @@protoc_insertion_point(serialize_end:google.protobuf.Method)
1150 }
1151 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const1152 ::PROTOBUF_NAMESPACE_ID::uint8* Method::InternalSerializeWithCachedSizesToArray(
1153     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1154   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
1155   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1156   (void) cached_has_bits;
1157 
1158   // string name = 1;
1159   if (this->name().size() > 0) {
1160     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1161       this->name().data(), static_cast<int>(this->name().length()),
1162       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1163       "google.protobuf.Method.name");
1164     target =
1165       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1166         1, this->name(), target);
1167   }
1168 
1169   // string request_type_url = 2;
1170   if (this->request_type_url().size() > 0) {
1171     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1172       this->request_type_url().data(), static_cast<int>(this->request_type_url().length()),
1173       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1174       "google.protobuf.Method.request_type_url");
1175     target =
1176       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1177         2, this->request_type_url(), target);
1178   }
1179 
1180   // bool request_streaming = 3;
1181   if (this->request_streaming() != 0) {
1182     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->request_streaming(), target);
1183   }
1184 
1185   // string response_type_url = 4;
1186   if (this->response_type_url().size() > 0) {
1187     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1188       this->response_type_url().data(), static_cast<int>(this->response_type_url().length()),
1189       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1190       "google.protobuf.Method.response_type_url");
1191     target =
1192       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1193         4, this->response_type_url(), target);
1194   }
1195 
1196   // bool response_streaming = 5;
1197   if (this->response_streaming() != 0) {
1198     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->response_streaming(), target);
1199   }
1200 
1201   // repeated .google.protobuf.Option options = 6;
1202   for (unsigned int i = 0,
1203       n = static_cast<unsigned int>(this->options_size()); i < n; i++) {
1204     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1205       InternalWriteMessageToArray(
1206         6, this->options(static_cast<int>(i)), target);
1207   }
1208 
1209   // .google.protobuf.Syntax syntax = 7;
1210   if (this->syntax() != 0) {
1211     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1212       7, this->syntax(), target);
1213   }
1214 
1215   if (_internal_metadata_.have_unknown_fields()) {
1216     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1217         _internal_metadata_.unknown_fields(), target);
1218   }
1219   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
1220   return target;
1221 }
1222 
ByteSizeLong() const1223 size_t Method::ByteSizeLong() const {
1224 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method)
1225   size_t total_size = 0;
1226 
1227   if (_internal_metadata_.have_unknown_fields()) {
1228     total_size +=
1229       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1230         _internal_metadata_.unknown_fields());
1231   }
1232   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1233   // Prevent compiler warnings about cached_has_bits being unused
1234   (void) cached_has_bits;
1235 
1236   // repeated .google.protobuf.Option options = 6;
1237   {
1238     unsigned int count = static_cast<unsigned int>(this->options_size());
1239     total_size += 1UL * count;
1240     for (unsigned int i = 0; i < count; i++) {
1241       total_size +=
1242         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1243           this->options(static_cast<int>(i)));
1244     }
1245   }
1246 
1247   // string name = 1;
1248   if (this->name().size() > 0) {
1249     total_size += 1 +
1250       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1251         this->name());
1252   }
1253 
1254   // string request_type_url = 2;
1255   if (this->request_type_url().size() > 0) {
1256     total_size += 1 +
1257       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1258         this->request_type_url());
1259   }
1260 
1261   // string response_type_url = 4;
1262   if (this->response_type_url().size() > 0) {
1263     total_size += 1 +
1264       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1265         this->response_type_url());
1266   }
1267 
1268   // bool request_streaming = 3;
1269   if (this->request_streaming() != 0) {
1270     total_size += 1 + 1;
1271   }
1272 
1273   // bool response_streaming = 5;
1274   if (this->response_streaming() != 0) {
1275     total_size += 1 + 1;
1276   }
1277 
1278   // .google.protobuf.Syntax syntax = 7;
1279   if (this->syntax() != 0) {
1280     total_size += 1 +
1281       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->syntax());
1282   }
1283 
1284   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1285   SetCachedSize(cached_size);
1286   return total_size;
1287 }
1288 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1289 void Method::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1290 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Method)
1291   GOOGLE_DCHECK_NE(&from, this);
1292   const Method* source =
1293       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Method>(
1294           &from);
1295   if (source == nullptr) {
1296   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Method)
1297     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1298   } else {
1299   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Method)
1300     MergeFrom(*source);
1301   }
1302 }
1303 
MergeFrom(const Method & from)1304 void Method::MergeFrom(const Method& from) {
1305 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method)
1306   GOOGLE_DCHECK_NE(&from, this);
1307   _internal_metadata_.MergeFrom(from._internal_metadata_);
1308   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1309   (void) cached_has_bits;
1310 
1311   options_.MergeFrom(from.options_);
1312   if (from.name().size() > 0) {
1313 
1314     name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
1315   }
1316   if (from.request_type_url().size() > 0) {
1317 
1318     request_type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.request_type_url_);
1319   }
1320   if (from.response_type_url().size() > 0) {
1321 
1322     response_type_url_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.response_type_url_);
1323   }
1324   if (from.request_streaming() != 0) {
1325     set_request_streaming(from.request_streaming());
1326   }
1327   if (from.response_streaming() != 0) {
1328     set_response_streaming(from.response_streaming());
1329   }
1330   if (from.syntax() != 0) {
1331     set_syntax(from.syntax());
1332   }
1333 }
1334 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1335 void Method::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1336 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Method)
1337   if (&from == this) return;
1338   Clear();
1339   MergeFrom(from);
1340 }
1341 
CopyFrom(const Method & from)1342 void Method::CopyFrom(const Method& from) {
1343 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Method)
1344   if (&from == this) return;
1345   Clear();
1346   MergeFrom(from);
1347 }
1348 
IsInitialized() const1349 bool Method::IsInitialized() const {
1350   return true;
1351 }
1352 
InternalSwap(Method * other)1353 void Method::InternalSwap(Method* other) {
1354   using std::swap;
1355   _internal_metadata_.Swap(&other->_internal_metadata_);
1356   CastToBase(&options_)->InternalSwap(CastToBase(&other->options_));
1357   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1358     GetArenaNoVirtual());
1359   request_type_url_.Swap(&other->request_type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1360     GetArenaNoVirtual());
1361   response_type_url_.Swap(&other->response_type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1362     GetArenaNoVirtual());
1363   swap(request_streaming_, other->request_streaming_);
1364   swap(response_streaming_, other->response_streaming_);
1365   swap(syntax_, other->syntax_);
1366 }
1367 
GetMetadata() const1368 ::PROTOBUF_NAMESPACE_ID::Metadata Method::GetMetadata() const {
1369   return GetMetadataStatic();
1370 }
1371 
1372 
1373 // ===================================================================
1374 
InitAsDefaultInstance()1375 void Mixin::InitAsDefaultInstance() {
1376 }
1377 class Mixin::_Internal {
1378  public:
1379 };
1380 
Mixin()1381 Mixin::Mixin()
1382   : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1383   SharedCtor();
1384   // @@protoc_insertion_point(constructor:google.protobuf.Mixin)
1385 }
Mixin(const Mixin & from)1386 Mixin::Mixin(const Mixin& from)
1387   : ::PROTOBUF_NAMESPACE_ID::Message(),
1388       _internal_metadata_(nullptr) {
1389   _internal_metadata_.MergeFrom(from._internal_metadata_);
1390   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1391   if (!from.name().empty()) {
1392     name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
1393   }
1394   root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1395   if (!from.root().empty()) {
1396     root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.root_);
1397   }
1398   // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
1399 }
1400 
SharedCtor()1401 void Mixin::SharedCtor() {
1402   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base);
1403   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1404   root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1405 }
1406 
~Mixin()1407 Mixin::~Mixin() {
1408   // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
1409   SharedDtor();
1410 }
1411 
SharedDtor()1412 void Mixin::SharedDtor() {
1413   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1414   root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1415 }
1416 
SetCachedSize(int size) const1417 void Mixin::SetCachedSize(int size) const {
1418   _cached_size_.Set(size);
1419 }
default_instance()1420 const Mixin& Mixin::default_instance() {
1421   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base);
1422   return *internal_default_instance();
1423 }
1424 
1425 
Clear()1426 void Mixin::Clear() {
1427 // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin)
1428   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1429   // Prevent compiler warnings about cached_has_bits being unused
1430   (void) cached_has_bits;
1431 
1432   name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1433   root_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1434   _internal_metadata_.Clear();
1435 }
1436 
1437 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1438 const char* Mixin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1439 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1440   while (!ctx->Done(&ptr)) {
1441     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1442     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1443     CHK_(ptr);
1444     switch (tag >> 3) {
1445       // string name = 1;
1446       case 1:
1447         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1448           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "google.protobuf.Mixin.name");
1449           CHK_(ptr);
1450         } else goto handle_unusual;
1451         continue;
1452       // string root = 2;
1453       case 2:
1454         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1455           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_root(), ptr, ctx, "google.protobuf.Mixin.root");
1456           CHK_(ptr);
1457         } else goto handle_unusual;
1458         continue;
1459       default: {
1460       handle_unusual:
1461         if ((tag & 7) == 4 || tag == 0) {
1462           ctx->SetLastTag(tag);
1463           goto success;
1464         }
1465         ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1466         CHK_(ptr != nullptr);
1467         continue;
1468       }
1469     }  // switch
1470   }  // while
1471 success:
1472   return ptr;
1473 failure:
1474   ptr = nullptr;
1475   goto success;
1476 #undef CHK_
1477 }
1478 #else  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
MergePartialFromCodedStream(::PROTOBUF_NAMESPACE_ID::io::CodedInputStream * input)1479 bool Mixin::MergePartialFromCodedStream(
1480     ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1481 #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1482   ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1483   // @@protoc_insertion_point(parse_start:google.protobuf.Mixin)
1484   for (;;) {
1485     ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1486     tag = p.first;
1487     if (!p.second) goto handle_unusual;
1488     switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1489       // string name = 1;
1490       case 1: {
1491         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1492           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1493                 input, this->mutable_name()));
1494           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1495             this->name().data(), static_cast<int>(this->name().length()),
1496             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1497             "google.protobuf.Mixin.name"));
1498         } else {
1499           goto handle_unusual;
1500         }
1501         break;
1502       }
1503 
1504       // string root = 2;
1505       case 2: {
1506         if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1507           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1508                 input, this->mutable_root()));
1509           DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1510             this->root().data(), static_cast<int>(this->root().length()),
1511             ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1512             "google.protobuf.Mixin.root"));
1513         } else {
1514           goto handle_unusual;
1515         }
1516         break;
1517       }
1518 
1519       default: {
1520       handle_unusual:
1521         if (tag == 0) {
1522           goto success;
1523         }
1524         DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1525               input, tag, _internal_metadata_.mutable_unknown_fields()));
1526         break;
1527       }
1528     }
1529   }
1530 success:
1531   // @@protoc_insertion_point(parse_success:google.protobuf.Mixin)
1532   return true;
1533 failure:
1534   // @@protoc_insertion_point(parse_failure:google.protobuf.Mixin)
1535   return false;
1536 #undef DO_
1537 }
1538 #endif  // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1539 
SerializeWithCachedSizes(::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream * output) const1540 void Mixin::SerializeWithCachedSizes(
1541     ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1542   // @@protoc_insertion_point(serialize_start:google.protobuf.Mixin)
1543   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1544   (void) cached_has_bits;
1545 
1546   // string name = 1;
1547   if (this->name().size() > 0) {
1548     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1549       this->name().data(), static_cast<int>(this->name().length()),
1550       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1551       "google.protobuf.Mixin.name");
1552     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1553       1, this->name(), output);
1554   }
1555 
1556   // string root = 2;
1557   if (this->root().size() > 0) {
1558     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1559       this->root().data(), static_cast<int>(this->root().length()),
1560       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1561       "google.protobuf.Mixin.root");
1562     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1563       2, this->root(), output);
1564   }
1565 
1566   if (_internal_metadata_.have_unknown_fields()) {
1567     ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1568         _internal_metadata_.unknown_fields(), output);
1569   }
1570   // @@protoc_insertion_point(serialize_end:google.protobuf.Mixin)
1571 }
1572 
InternalSerializeWithCachedSizesToArray(::PROTOBUF_NAMESPACE_ID::uint8 * target) const1573 ::PROTOBUF_NAMESPACE_ID::uint8* Mixin::InternalSerializeWithCachedSizesToArray(
1574     ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1575   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
1576   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1577   (void) cached_has_bits;
1578 
1579   // string name = 1;
1580   if (this->name().size() > 0) {
1581     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1582       this->name().data(), static_cast<int>(this->name().length()),
1583       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1584       "google.protobuf.Mixin.name");
1585     target =
1586       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1587         1, this->name(), target);
1588   }
1589 
1590   // string root = 2;
1591   if (this->root().size() > 0) {
1592     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1593       this->root().data(), static_cast<int>(this->root().length()),
1594       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1595       "google.protobuf.Mixin.root");
1596     target =
1597       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1598         2, this->root(), target);
1599   }
1600 
1601   if (_internal_metadata_.have_unknown_fields()) {
1602     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1603         _internal_metadata_.unknown_fields(), target);
1604   }
1605   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
1606   return target;
1607 }
1608 
ByteSizeLong() const1609 size_t Mixin::ByteSizeLong() const {
1610 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin)
1611   size_t total_size = 0;
1612 
1613   if (_internal_metadata_.have_unknown_fields()) {
1614     total_size +=
1615       ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1616         _internal_metadata_.unknown_fields());
1617   }
1618   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1619   // Prevent compiler warnings about cached_has_bits being unused
1620   (void) cached_has_bits;
1621 
1622   // string name = 1;
1623   if (this->name().size() > 0) {
1624     total_size += 1 +
1625       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1626         this->name());
1627   }
1628 
1629   // string root = 2;
1630   if (this->root().size() > 0) {
1631     total_size += 1 +
1632       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1633         this->root());
1634   }
1635 
1636   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1637   SetCachedSize(cached_size);
1638   return total_size;
1639 }
1640 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1641 void Mixin::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1642 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Mixin)
1643   GOOGLE_DCHECK_NE(&from, this);
1644   const Mixin* source =
1645       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Mixin>(
1646           &from);
1647   if (source == nullptr) {
1648   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Mixin)
1649     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1650   } else {
1651   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Mixin)
1652     MergeFrom(*source);
1653   }
1654 }
1655 
MergeFrom(const Mixin & from)1656 void Mixin::MergeFrom(const Mixin& from) {
1657 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin)
1658   GOOGLE_DCHECK_NE(&from, this);
1659   _internal_metadata_.MergeFrom(from._internal_metadata_);
1660   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1661   (void) cached_has_bits;
1662 
1663   if (from.name().size() > 0) {
1664 
1665     name_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name_);
1666   }
1667   if (from.root().size() > 0) {
1668 
1669     root_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.root_);
1670   }
1671 }
1672 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1673 void Mixin::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1674 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Mixin)
1675   if (&from == this) return;
1676   Clear();
1677   MergeFrom(from);
1678 }
1679 
CopyFrom(const Mixin & from)1680 void Mixin::CopyFrom(const Mixin& from) {
1681 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin)
1682   if (&from == this) return;
1683   Clear();
1684   MergeFrom(from);
1685 }
1686 
IsInitialized() const1687 bool Mixin::IsInitialized() const {
1688   return true;
1689 }
1690 
InternalSwap(Mixin * other)1691 void Mixin::InternalSwap(Mixin* other) {
1692   using std::swap;
1693   _internal_metadata_.Swap(&other->_internal_metadata_);
1694   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1695     GetArenaNoVirtual());
1696   root_.Swap(&other->root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1697     GetArenaNoVirtual());
1698 }
1699 
GetMetadata() const1700 ::PROTOBUF_NAMESPACE_ID::Metadata Mixin::GetMetadata() const {
1701   return GetMetadataStatic();
1702 }
1703 
1704 
1705 // @@protoc_insertion_point(namespace_scope)
1706 PROTOBUF_NAMESPACE_CLOSE
1707 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)1708 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Api* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Api >(Arena* arena) {
1709   return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::Api >(arena);
1710 }
CreateMaybeMessage(Arena * arena)1711 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Method* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Method >(Arena* arena) {
1712   return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::Method >(arena);
1713 }
CreateMaybeMessage(Arena * arena)1714 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Mixin* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Mixin >(Arena* arena) {
1715   return Arena::CreateInternal< PROTOBUF_NAMESPACE_ID::Mixin >(arena);
1716 }
1717 PROTOBUF_NAMESPACE_CLOSE
1718 
1719 // @@protoc_insertion_point(global_scope)
1720 #include <google/protobuf/port_undef.inc>
1721