• 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/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Method_google_2fprotobuf_2fapi_2eproto;
18 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fapi_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Mixin_google_2fprotobuf_2fapi_2eproto;
19 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Option_google_2fprotobuf_2ftype_2eproto;
20 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto;
21 PROTOBUF_NAMESPACE_OPEN
22 class ApiDefaultTypeInternal {
23  public:
24   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Api> _instance;
25 } _Api_default_instance_;
26 class MethodDefaultTypeInternal {
27  public:
28   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Method> _instance;
29 } _Method_default_instance_;
30 class MixinDefaultTypeInternal {
31  public:
32   ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Mixin> _instance;
33 } _Mixin_default_instance_;
34 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_Api_google_2fprotobuf_2fapi_2eproto()35 static void InitDefaultsscc_info_Api_google_2fprotobuf_2fapi_2eproto() {
36   GOOGLE_PROTOBUF_VERIFY_VERSION;
37 
38   {
39     void* ptr = &PROTOBUF_NAMESPACE_ID::_Api_default_instance_;
40     new (ptr) PROTOBUF_NAMESPACE_ID::Api();
41     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
42   }
43 }
44 
45 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_Api_google_2fprotobuf_2fapi_2eproto =
46     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_Api_google_2fprotobuf_2fapi_2eproto}, {
47       &scc_info_Method_google_2fprotobuf_2fapi_2eproto.base,
48       &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,
49       &scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto.base,
50       &scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base,}};
51 
InitDefaultsscc_info_Method_google_2fprotobuf_2fapi_2eproto()52 static void InitDefaultsscc_info_Method_google_2fprotobuf_2fapi_2eproto() {
53   GOOGLE_PROTOBUF_VERIFY_VERSION;
54 
55   {
56     void* ptr = &PROTOBUF_NAMESPACE_ID::_Method_default_instance_;
57     new (ptr) PROTOBUF_NAMESPACE_ID::Method();
58     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
59   }
60 }
61 
62 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Method_google_2fprotobuf_2fapi_2eproto =
63     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Method_google_2fprotobuf_2fapi_2eproto}, {
64       &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,}};
65 
InitDefaultsscc_info_Mixin_google_2fprotobuf_2fapi_2eproto()66 static void InitDefaultsscc_info_Mixin_google_2fprotobuf_2fapi_2eproto() {
67   GOOGLE_PROTOBUF_VERIFY_VERSION;
68 
69   {
70     void* ptr = &PROTOBUF_NAMESPACE_ID::_Mixin_default_instance_;
71     new (ptr) PROTOBUF_NAMESPACE_ID::Mixin();
72     ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
73   }
74 }
75 
76 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Mixin_google_2fprotobuf_2fapi_2eproto =
77     {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_Mixin_google_2fprotobuf_2fapi_2eproto}, {}};
78 
79 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2fapi_2eproto[3];
80 static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr;
81 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto = nullptr;
82 
83 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2fapi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
84   ~0u,  // no _has_bits_
85   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, _internal_metadata_),
86   ~0u,  // no _extensions_
87   ~0u,  // no _oneof_case_
88   ~0u,  // no _weak_field_map_
89   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, name_),
90   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, methods_),
91   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, options_),
92   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, version_),
93   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, source_context_),
94   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, mixins_),
95   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Api, syntax_),
96   ~0u,  // no _has_bits_
97   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, _internal_metadata_),
98   ~0u,  // no _extensions_
99   ~0u,  // no _oneof_case_
100   ~0u,  // no _weak_field_map_
101   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, name_),
102   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, request_type_url_),
103   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, request_streaming_),
104   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, response_type_url_),
105   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, response_streaming_),
106   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, options_),
107   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Method, syntax_),
108   ~0u,  // no _has_bits_
109   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Mixin, _internal_metadata_),
110   ~0u,  // no _extensions_
111   ~0u,  // no _oneof_case_
112   ~0u,  // no _weak_field_map_
113   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Mixin, name_),
114   PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Mixin, root_),
115 };
116 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
117   { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Api)},
118   { 12, -1, sizeof(PROTOBUF_NAMESPACE_ID::Method)},
119   { 24, -1, sizeof(PROTOBUF_NAMESPACE_ID::Mixin)},
120 };
121 
122 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
123   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Api_default_instance_),
124   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Method_default_instance_),
125   reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Mixin_default_instance_),
126 };
127 
128 const char descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
129   "\n\031google/protobuf/api.proto\022\017google.prot"
130   "obuf\032$google/protobuf/source_context.pro"
131   "to\032\032google/protobuf/type.proto\"\201\002\n\003Api\022\014"
132   "\n\004name\030\001 \001(\t\022(\n\007methods\030\002 \003(\0132\027.google.p"
133   "rotobuf.Method\022(\n\007options\030\003 \003(\0132\027.google"
134   ".protobuf.Option\022\017\n\007version\030\004 \001(\t\0226\n\016sou"
135   "rce_context\030\005 \001(\0132\036.google.protobuf.Sour"
136   "ceContext\022&\n\006mixins\030\006 \003(\0132\026.google.proto"
137   "buf.Mixin\022\'\n\006syntax\030\007 \001(\0162\027.google.proto"
138   "buf.Syntax\"\325\001\n\006Method\022\014\n\004name\030\001 \001(\t\022\030\n\020r"
139   "equest_type_url\030\002 \001(\t\022\031\n\021request_streami"
140   "ng\030\003 \001(\010\022\031\n\021response_type_url\030\004 \001(\t\022\032\n\022r"
141   "esponse_streaming\030\005 \001(\010\022(\n\007options\030\006 \003(\013"
142   "2\027.google.protobuf.Option\022\'\n\006syntax\030\007 \001("
143   "\0162\027.google.protobuf.Syntax\"#\n\005Mixin\022\014\n\004n"
144   "ame\030\001 \001(\t\022\014\n\004root\030\002 \001(\tBv\n\023com.google.pr"
145   "otobufB\010ApiProtoP\001Z,google.golang.org/pr"
146   "otobuf/types/known/apipb\242\002\003GPB\252\002\036Google."
147   "Protobuf.WellKnownTypesb\006proto3"
148   ;
149 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2fapi_2eproto_deps[2] = {
150   &::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto,
151   &::descriptor_table_google_2fprotobuf_2ftype_2eproto,
152 };
153 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2fapi_2eproto_sccs[3] = {
154   &scc_info_Api_google_2fprotobuf_2fapi_2eproto.base,
155   &scc_info_Method_google_2fprotobuf_2fapi_2eproto.base,
156   &scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base,
157 };
158 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2fapi_2eproto_once;
159 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fapi_2eproto = {
160   false, false, descriptor_table_protodef_google_2fprotobuf_2fapi_2eproto, "google/protobuf/api.proto", 751,
161   &descriptor_table_google_2fprotobuf_2fapi_2eproto_once, descriptor_table_google_2fprotobuf_2fapi_2eproto_sccs, descriptor_table_google_2fprotobuf_2fapi_2eproto_deps, 3, 2,
162   schemas, file_default_instances, TableStruct_google_2fprotobuf_2fapi_2eproto::offsets,
163   file_level_metadata_google_2fprotobuf_2fapi_2eproto, 3, file_level_enum_descriptors_google_2fprotobuf_2fapi_2eproto, file_level_service_descriptors_google_2fprotobuf_2fapi_2eproto,
164 };
165 
166 // Force running AddDescriptors() at dynamic initialization time.
167 static bool dynamic_init_dummy_google_2fprotobuf_2fapi_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2fapi_2eproto)), true);
168 PROTOBUF_NAMESPACE_OPEN
169 
170 // ===================================================================
171 
172 class Api::_Internal {
173  public:
174   static const PROTOBUF_NAMESPACE_ID::SourceContext& source_context(const Api* msg);
175 };
176 
177 const PROTOBUF_NAMESPACE_ID::SourceContext&
source_context(const Api * msg)178 Api::_Internal::source_context(const Api* msg) {
179   return *msg->source_context_;
180 }
clear_options()181 void Api::clear_options() {
182   options_.Clear();
183 }
clear_source_context()184 void Api::clear_source_context() {
185   if (GetArena() == nullptr && source_context_ != nullptr) {
186     delete source_context_;
187   }
188   source_context_ = nullptr;
189 }
Api(::PROTOBUF_NAMESPACE_ID::Arena * arena)190 Api::Api(::PROTOBUF_NAMESPACE_ID::Arena* arena)
191   : ::PROTOBUF_NAMESPACE_ID::Message(arena),
192   methods_(arena),
193   options_(arena),
194   mixins_(arena) {
195   SharedCtor();
196   RegisterArenaDtor(arena);
197   // @@protoc_insertion_point(arena_constructor:google.protobuf.Api)
198 }
Api(const Api & from)199 Api::Api(const Api& from)
200   : ::PROTOBUF_NAMESPACE_ID::Message(),
201       methods_(from.methods_),
202       options_(from.options_),
203       mixins_(from.mixins_) {
204   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
205   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
206   if (!from._internal_name().empty()) {
207     name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
208       GetArena());
209   }
210   version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
211   if (!from._internal_version().empty()) {
212     version_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_version(),
213       GetArena());
214   }
215   if (from._internal_has_source_context()) {
216     source_context_ = new PROTOBUF_NAMESPACE_ID::SourceContext(*from.source_context_);
217   } else {
218     source_context_ = nullptr;
219   }
220   syntax_ = from.syntax_;
221   // @@protoc_insertion_point(copy_constructor:google.protobuf.Api)
222 }
223 
SharedCtor()224 void Api::SharedCtor() {
225   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Api_google_2fprotobuf_2fapi_2eproto.base);
226   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
227   version_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
228   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
229       reinterpret_cast<char*>(&source_context_) - reinterpret_cast<char*>(this)),
230       0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) -
231       reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
232 }
233 
~Api()234 Api::~Api() {
235   // @@protoc_insertion_point(destructor:google.protobuf.Api)
236   SharedDtor();
237   _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
238 }
239 
SharedDtor()240 void Api::SharedDtor() {
241   GOOGLE_DCHECK(GetArena() == nullptr);
242   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
243   version_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
244   if (this != internal_default_instance()) delete source_context_;
245 }
246 
ArenaDtor(void * object)247 void Api::ArenaDtor(void* object) {
248   Api* _this = reinterpret_cast< Api* >(object);
249   (void)_this;
250 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)251 void Api::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
252 }
SetCachedSize(int size) const253 void Api::SetCachedSize(int size) const {
254   _cached_size_.Set(size);
255 }
default_instance()256 const Api& Api::default_instance() {
257   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Api_google_2fprotobuf_2fapi_2eproto.base);
258   return *internal_default_instance();
259 }
260 
261 
Clear()262 void Api::Clear() {
263 // @@protoc_insertion_point(message_clear_start:google.protobuf.Api)
264   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
265   // Prevent compiler warnings about cached_has_bits being unused
266   (void) cached_has_bits;
267 
268   methods_.Clear();
269   options_.Clear();
270   mixins_.Clear();
271   name_.ClearToEmpty();
272   version_.ClearToEmpty();
273   if (GetArena() == nullptr && source_context_ != nullptr) {
274     delete source_context_;
275   }
276   source_context_ = nullptr;
277   syntax_ = 0;
278   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
279 }
280 
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)281 const char* Api::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
282 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
283   while (!ctx->Done(&ptr)) {
284     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
285     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
286     CHK_(ptr);
287     switch (tag >> 3) {
288       // string name = 1;
289       case 1:
290         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
291           auto str = _internal_mutable_name();
292           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
293           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Api.name"));
294           CHK_(ptr);
295         } else goto handle_unusual;
296         continue;
297       // repeated .google.protobuf.Method methods = 2;
298       case 2:
299         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
300           ptr -= 1;
301           do {
302             ptr += 1;
303             ptr = ctx->ParseMessage(_internal_add_methods(), ptr);
304             CHK_(ptr);
305             if (!ctx->DataAvailable(ptr)) break;
306           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
307         } else goto handle_unusual;
308         continue;
309       // repeated .google.protobuf.Option options = 3;
310       case 3:
311         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
312           ptr -= 1;
313           do {
314             ptr += 1;
315             ptr = ctx->ParseMessage(_internal_add_options(), ptr);
316             CHK_(ptr);
317             if (!ctx->DataAvailable(ptr)) break;
318           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
319         } else goto handle_unusual;
320         continue;
321       // string version = 4;
322       case 4:
323         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
324           auto str = _internal_mutable_version();
325           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
326           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Api.version"));
327           CHK_(ptr);
328         } else goto handle_unusual;
329         continue;
330       // .google.protobuf.SourceContext source_context = 5;
331       case 5:
332         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
333           ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr);
334           CHK_(ptr);
335         } else goto handle_unusual;
336         continue;
337       // repeated .google.protobuf.Mixin mixins = 6;
338       case 6:
339         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
340           ptr -= 1;
341           do {
342             ptr += 1;
343             ptr = ctx->ParseMessage(_internal_add_mixins(), ptr);
344             CHK_(ptr);
345             if (!ctx->DataAvailable(ptr)) break;
346           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
347         } else goto handle_unusual;
348         continue;
349       // .google.protobuf.Syntax syntax = 7;
350       case 7:
351         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
352           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
353           CHK_(ptr);
354           _internal_set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
355         } else goto handle_unusual;
356         continue;
357       default: {
358       handle_unusual:
359         if ((tag & 7) == 4 || tag == 0) {
360           ctx->SetLastTag(tag);
361           goto success;
362         }
363         ptr = UnknownFieldParse(tag,
364             _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
365             ptr, ctx);
366         CHK_(ptr != nullptr);
367         continue;
368       }
369     }  // switch
370   }  // while
371 success:
372   return ptr;
373 failure:
374   ptr = nullptr;
375   goto success;
376 #undef CHK_
377 }
378 
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const379 ::PROTOBUF_NAMESPACE_ID::uint8* Api::_InternalSerialize(
380     ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
381   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Api)
382   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
383   (void) cached_has_bits;
384 
385   // string name = 1;
386   if (this->name().size() > 0) {
387     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
388       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
389       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
390       "google.protobuf.Api.name");
391     target = stream->WriteStringMaybeAliased(
392         1, this->_internal_name(), target);
393   }
394 
395   // repeated .google.protobuf.Method methods = 2;
396   for (unsigned int i = 0,
397       n = static_cast<unsigned int>(this->_internal_methods_size()); i < n; i++) {
398     target = stream->EnsureSpace(target);
399     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
400       InternalWriteMessage(2, this->_internal_methods(i), target, stream);
401   }
402 
403   // repeated .google.protobuf.Option options = 3;
404   for (unsigned int i = 0,
405       n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) {
406     target = stream->EnsureSpace(target);
407     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
408       InternalWriteMessage(3, this->_internal_options(i), target, stream);
409   }
410 
411   // string version = 4;
412   if (this->version().size() > 0) {
413     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
414       this->_internal_version().data(), static_cast<int>(this->_internal_version().length()),
415       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
416       "google.protobuf.Api.version");
417     target = stream->WriteStringMaybeAliased(
418         4, this->_internal_version(), target);
419   }
420 
421   // .google.protobuf.SourceContext source_context = 5;
422   if (this->has_source_context()) {
423     target = stream->EnsureSpace(target);
424     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
425       InternalWriteMessage(
426         5, _Internal::source_context(this), target, stream);
427   }
428 
429   // repeated .google.protobuf.Mixin mixins = 6;
430   for (unsigned int i = 0,
431       n = static_cast<unsigned int>(this->_internal_mixins_size()); i < n; i++) {
432     target = stream->EnsureSpace(target);
433     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
434       InternalWriteMessage(6, this->_internal_mixins(i), target, stream);
435   }
436 
437   // .google.protobuf.Syntax syntax = 7;
438   if (this->syntax() != 0) {
439     target = stream->EnsureSpace(target);
440     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
441       7, this->_internal_syntax(), target);
442   }
443 
444   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
445     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
446         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
447   }
448   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Api)
449   return target;
450 }
451 
ByteSizeLong() const452 size_t Api::ByteSizeLong() const {
453 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Api)
454   size_t total_size = 0;
455 
456   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
457   // Prevent compiler warnings about cached_has_bits being unused
458   (void) cached_has_bits;
459 
460   // repeated .google.protobuf.Method methods = 2;
461   total_size += 1UL * this->_internal_methods_size();
462   for (const auto& msg : this->methods_) {
463     total_size +=
464       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
465   }
466 
467   // repeated .google.protobuf.Option options = 3;
468   total_size += 1UL * this->_internal_options_size();
469   for (const auto& msg : this->options_) {
470     total_size +=
471       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
472   }
473 
474   // repeated .google.protobuf.Mixin mixins = 6;
475   total_size += 1UL * this->_internal_mixins_size();
476   for (const auto& msg : this->mixins_) {
477     total_size +=
478       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
479   }
480 
481   // string name = 1;
482   if (this->name().size() > 0) {
483     total_size += 1 +
484       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
485         this->_internal_name());
486   }
487 
488   // string version = 4;
489   if (this->version().size() > 0) {
490     total_size += 1 +
491       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
492         this->_internal_version());
493   }
494 
495   // .google.protobuf.SourceContext source_context = 5;
496   if (this->has_source_context()) {
497     total_size += 1 +
498       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
499         *source_context_);
500   }
501 
502   // .google.protobuf.Syntax syntax = 7;
503   if (this->syntax() != 0) {
504     total_size += 1 +
505       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syntax());
506   }
507 
508   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
509     return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
510         _internal_metadata_, total_size, &_cached_size_);
511   }
512   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
513   SetCachedSize(cached_size);
514   return total_size;
515 }
516 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)517 void Api::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
518 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Api)
519   GOOGLE_DCHECK_NE(&from, this);
520   const Api* source =
521       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Api>(
522           &from);
523   if (source == nullptr) {
524   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Api)
525     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
526   } else {
527   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Api)
528     MergeFrom(*source);
529   }
530 }
531 
MergeFrom(const Api & from)532 void Api::MergeFrom(const Api& from) {
533 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Api)
534   GOOGLE_DCHECK_NE(&from, this);
535   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
536   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
537   (void) cached_has_bits;
538 
539   methods_.MergeFrom(from.methods_);
540   options_.MergeFrom(from.options_);
541   mixins_.MergeFrom(from.mixins_);
542   if (from.name().size() > 0) {
543     _internal_set_name(from._internal_name());
544   }
545   if (from.version().size() > 0) {
546     _internal_set_version(from._internal_version());
547   }
548   if (from.has_source_context()) {
549     _internal_mutable_source_context()->PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(from._internal_source_context());
550   }
551   if (from.syntax() != 0) {
552     _internal_set_syntax(from._internal_syntax());
553   }
554 }
555 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)556 void Api::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
557 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Api)
558   if (&from == this) return;
559   Clear();
560   MergeFrom(from);
561 }
562 
CopyFrom(const Api & from)563 void Api::CopyFrom(const Api& from) {
564 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Api)
565   if (&from == this) return;
566   Clear();
567   MergeFrom(from);
568 }
569 
IsInitialized() const570 bool Api::IsInitialized() const {
571   return true;
572 }
573 
InternalSwap(Api * other)574 void Api::InternalSwap(Api* other) {
575   using std::swap;
576   _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
577   methods_.InternalSwap(&other->methods_);
578   options_.InternalSwap(&other->options_);
579   mixins_.InternalSwap(&other->mixins_);
580   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
581   version_.Swap(&other->version_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
582   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
583       PROTOBUF_FIELD_OFFSET(Api, syntax_)
584       + sizeof(Api::syntax_)
585       - PROTOBUF_FIELD_OFFSET(Api, source_context_)>(
586           reinterpret_cast<char*>(&source_context_),
587           reinterpret_cast<char*>(&other->source_context_));
588 }
589 
GetMetadata() const590 ::PROTOBUF_NAMESPACE_ID::Metadata Api::GetMetadata() const {
591   return GetMetadataStatic();
592 }
593 
594 
595 // ===================================================================
596 
597 class Method::_Internal {
598  public:
599 };
600 
clear_options()601 void Method::clear_options() {
602   options_.Clear();
603 }
Method(::PROTOBUF_NAMESPACE_ID::Arena * arena)604 Method::Method(::PROTOBUF_NAMESPACE_ID::Arena* arena)
605   : ::PROTOBUF_NAMESPACE_ID::Message(arena),
606   options_(arena) {
607   SharedCtor();
608   RegisterArenaDtor(arena);
609   // @@protoc_insertion_point(arena_constructor:google.protobuf.Method)
610 }
Method(const Method & from)611 Method::Method(const Method& from)
612   : ::PROTOBUF_NAMESPACE_ID::Message(),
613       options_(from.options_) {
614   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
615   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
616   if (!from._internal_name().empty()) {
617     name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
618       GetArena());
619   }
620   request_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
621   if (!from._internal_request_type_url().empty()) {
622     request_type_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_request_type_url(),
623       GetArena());
624   }
625   response_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
626   if (!from._internal_response_type_url().empty()) {
627     response_type_url_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_response_type_url(),
628       GetArena());
629   }
630   ::memcpy(&request_streaming_, &from.request_streaming_,
631     static_cast<size_t>(reinterpret_cast<char*>(&syntax_) -
632     reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
633   // @@protoc_insertion_point(copy_constructor:google.protobuf.Method)
634 }
635 
SharedCtor()636 void Method::SharedCtor() {
637   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Method_google_2fprotobuf_2fapi_2eproto.base);
638   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
639   request_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
640   response_type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
641   ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
642       reinterpret_cast<char*>(&request_streaming_) - reinterpret_cast<char*>(this)),
643       0, static_cast<size_t>(reinterpret_cast<char*>(&syntax_) -
644       reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
645 }
646 
~Method()647 Method::~Method() {
648   // @@protoc_insertion_point(destructor:google.protobuf.Method)
649   SharedDtor();
650   _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
651 }
652 
SharedDtor()653 void Method::SharedDtor() {
654   GOOGLE_DCHECK(GetArena() == nullptr);
655   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
656   request_type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
657   response_type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
658 }
659 
ArenaDtor(void * object)660 void Method::ArenaDtor(void* object) {
661   Method* _this = reinterpret_cast< Method* >(object);
662   (void)_this;
663 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)664 void Method::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
665 }
SetCachedSize(int size) const666 void Method::SetCachedSize(int size) const {
667   _cached_size_.Set(size);
668 }
default_instance()669 const Method& Method::default_instance() {
670   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Method_google_2fprotobuf_2fapi_2eproto.base);
671   return *internal_default_instance();
672 }
673 
674 
Clear()675 void Method::Clear() {
676 // @@protoc_insertion_point(message_clear_start:google.protobuf.Method)
677   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
678   // Prevent compiler warnings about cached_has_bits being unused
679   (void) cached_has_bits;
680 
681   options_.Clear();
682   name_.ClearToEmpty();
683   request_type_url_.ClearToEmpty();
684   response_type_url_.ClearToEmpty();
685   ::memset(&request_streaming_, 0, static_cast<size_t>(
686       reinterpret_cast<char*>(&syntax_) -
687       reinterpret_cast<char*>(&request_streaming_)) + sizeof(syntax_));
688   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
689 }
690 
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)691 const char* Method::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
692 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
693   while (!ctx->Done(&ptr)) {
694     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
695     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
696     CHK_(ptr);
697     switch (tag >> 3) {
698       // string name = 1;
699       case 1:
700         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
701           auto str = _internal_mutable_name();
702           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
703           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Method.name"));
704           CHK_(ptr);
705         } else goto handle_unusual;
706         continue;
707       // string request_type_url = 2;
708       case 2:
709         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
710           auto str = _internal_mutable_request_type_url();
711           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
712           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Method.request_type_url"));
713           CHK_(ptr);
714         } else goto handle_unusual;
715         continue;
716       // bool request_streaming = 3;
717       case 3:
718         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
719           request_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
720           CHK_(ptr);
721         } else goto handle_unusual;
722         continue;
723       // string response_type_url = 4;
724       case 4:
725         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
726           auto str = _internal_mutable_response_type_url();
727           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
728           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Method.response_type_url"));
729           CHK_(ptr);
730         } else goto handle_unusual;
731         continue;
732       // bool response_streaming = 5;
733       case 5:
734         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
735           response_streaming_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
736           CHK_(ptr);
737         } else goto handle_unusual;
738         continue;
739       // repeated .google.protobuf.Option options = 6;
740       case 6:
741         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
742           ptr -= 1;
743           do {
744             ptr += 1;
745             ptr = ctx->ParseMessage(_internal_add_options(), ptr);
746             CHK_(ptr);
747             if (!ctx->DataAvailable(ptr)) break;
748           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
749         } else goto handle_unusual;
750         continue;
751       // .google.protobuf.Syntax syntax = 7;
752       case 7:
753         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
754           ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
755           CHK_(ptr);
756           _internal_set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
757         } else goto handle_unusual;
758         continue;
759       default: {
760       handle_unusual:
761         if ((tag & 7) == 4 || tag == 0) {
762           ctx->SetLastTag(tag);
763           goto success;
764         }
765         ptr = UnknownFieldParse(tag,
766             _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
767             ptr, ctx);
768         CHK_(ptr != nullptr);
769         continue;
770       }
771     }  // switch
772   }  // while
773 success:
774   return ptr;
775 failure:
776   ptr = nullptr;
777   goto success;
778 #undef CHK_
779 }
780 
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const781 ::PROTOBUF_NAMESPACE_ID::uint8* Method::_InternalSerialize(
782     ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
783   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Method)
784   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
785   (void) cached_has_bits;
786 
787   // string name = 1;
788   if (this->name().size() > 0) {
789     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
790       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
791       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
792       "google.protobuf.Method.name");
793     target = stream->WriteStringMaybeAliased(
794         1, this->_internal_name(), target);
795   }
796 
797   // string request_type_url = 2;
798   if (this->request_type_url().size() > 0) {
799     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
800       this->_internal_request_type_url().data(), static_cast<int>(this->_internal_request_type_url().length()),
801       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
802       "google.protobuf.Method.request_type_url");
803     target = stream->WriteStringMaybeAliased(
804         2, this->_internal_request_type_url(), target);
805   }
806 
807   // bool request_streaming = 3;
808   if (this->request_streaming() != 0) {
809     target = stream->EnsureSpace(target);
810     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_request_streaming(), target);
811   }
812 
813   // string response_type_url = 4;
814   if (this->response_type_url().size() > 0) {
815     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
816       this->_internal_response_type_url().data(), static_cast<int>(this->_internal_response_type_url().length()),
817       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
818       "google.protobuf.Method.response_type_url");
819     target = stream->WriteStringMaybeAliased(
820         4, this->_internal_response_type_url(), target);
821   }
822 
823   // bool response_streaming = 5;
824   if (this->response_streaming() != 0) {
825     target = stream->EnsureSpace(target);
826     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_response_streaming(), target);
827   }
828 
829   // repeated .google.protobuf.Option options = 6;
830   for (unsigned int i = 0,
831       n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) {
832     target = stream->EnsureSpace(target);
833     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
834       InternalWriteMessage(6, this->_internal_options(i), target, stream);
835   }
836 
837   // .google.protobuf.Syntax syntax = 7;
838   if (this->syntax() != 0) {
839     target = stream->EnsureSpace(target);
840     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
841       7, this->_internal_syntax(), target);
842   }
843 
844   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
845     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
846         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
847   }
848   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Method)
849   return target;
850 }
851 
ByteSizeLong() const852 size_t Method::ByteSizeLong() const {
853 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Method)
854   size_t total_size = 0;
855 
856   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
857   // Prevent compiler warnings about cached_has_bits being unused
858   (void) cached_has_bits;
859 
860   // repeated .google.protobuf.Option options = 6;
861   total_size += 1UL * this->_internal_options_size();
862   for (const auto& msg : this->options_) {
863     total_size +=
864       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
865   }
866 
867   // string name = 1;
868   if (this->name().size() > 0) {
869     total_size += 1 +
870       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
871         this->_internal_name());
872   }
873 
874   // string request_type_url = 2;
875   if (this->request_type_url().size() > 0) {
876     total_size += 1 +
877       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
878         this->_internal_request_type_url());
879   }
880 
881   // string response_type_url = 4;
882   if (this->response_type_url().size() > 0) {
883     total_size += 1 +
884       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
885         this->_internal_response_type_url());
886   }
887 
888   // bool request_streaming = 3;
889   if (this->request_streaming() != 0) {
890     total_size += 1 + 1;
891   }
892 
893   // bool response_streaming = 5;
894   if (this->response_streaming() != 0) {
895     total_size += 1 + 1;
896   }
897 
898   // .google.protobuf.Syntax syntax = 7;
899   if (this->syntax() != 0) {
900     total_size += 1 +
901       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syntax());
902   }
903 
904   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
905     return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
906         _internal_metadata_, total_size, &_cached_size_);
907   }
908   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
909   SetCachedSize(cached_size);
910   return total_size;
911 }
912 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)913 void Method::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
914 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Method)
915   GOOGLE_DCHECK_NE(&from, this);
916   const Method* source =
917       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Method>(
918           &from);
919   if (source == nullptr) {
920   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Method)
921     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
922   } else {
923   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Method)
924     MergeFrom(*source);
925   }
926 }
927 
MergeFrom(const Method & from)928 void Method::MergeFrom(const Method& from) {
929 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Method)
930   GOOGLE_DCHECK_NE(&from, this);
931   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
932   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
933   (void) cached_has_bits;
934 
935   options_.MergeFrom(from.options_);
936   if (from.name().size() > 0) {
937     _internal_set_name(from._internal_name());
938   }
939   if (from.request_type_url().size() > 0) {
940     _internal_set_request_type_url(from._internal_request_type_url());
941   }
942   if (from.response_type_url().size() > 0) {
943     _internal_set_response_type_url(from._internal_response_type_url());
944   }
945   if (from.request_streaming() != 0) {
946     _internal_set_request_streaming(from._internal_request_streaming());
947   }
948   if (from.response_streaming() != 0) {
949     _internal_set_response_streaming(from._internal_response_streaming());
950   }
951   if (from.syntax() != 0) {
952     _internal_set_syntax(from._internal_syntax());
953   }
954 }
955 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)956 void Method::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
957 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Method)
958   if (&from == this) return;
959   Clear();
960   MergeFrom(from);
961 }
962 
CopyFrom(const Method & from)963 void Method::CopyFrom(const Method& from) {
964 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Method)
965   if (&from == this) return;
966   Clear();
967   MergeFrom(from);
968 }
969 
IsInitialized() const970 bool Method::IsInitialized() const {
971   return true;
972 }
973 
InternalSwap(Method * other)974 void Method::InternalSwap(Method* other) {
975   using std::swap;
976   _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
977   options_.InternalSwap(&other->options_);
978   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
979   request_type_url_.Swap(&other->request_type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
980   response_type_url_.Swap(&other->response_type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
981   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
982       PROTOBUF_FIELD_OFFSET(Method, syntax_)
983       + sizeof(Method::syntax_)
984       - PROTOBUF_FIELD_OFFSET(Method, request_streaming_)>(
985           reinterpret_cast<char*>(&request_streaming_),
986           reinterpret_cast<char*>(&other->request_streaming_));
987 }
988 
GetMetadata() const989 ::PROTOBUF_NAMESPACE_ID::Metadata Method::GetMetadata() const {
990   return GetMetadataStatic();
991 }
992 
993 
994 // ===================================================================
995 
996 class Mixin::_Internal {
997  public:
998 };
999 
Mixin(::PROTOBUF_NAMESPACE_ID::Arena * arena)1000 Mixin::Mixin(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1001   : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
1002   SharedCtor();
1003   RegisterArenaDtor(arena);
1004   // @@protoc_insertion_point(arena_constructor:google.protobuf.Mixin)
1005 }
Mixin(const Mixin & from)1006 Mixin::Mixin(const Mixin& from)
1007   : ::PROTOBUF_NAMESPACE_ID::Message() {
1008   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1009   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1010   if (!from._internal_name().empty()) {
1011     name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
1012       GetArena());
1013   }
1014   root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1015   if (!from._internal_root().empty()) {
1016     root_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_root(),
1017       GetArena());
1018   }
1019   // @@protoc_insertion_point(copy_constructor:google.protobuf.Mixin)
1020 }
1021 
SharedCtor()1022 void Mixin::SharedCtor() {
1023   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base);
1024   name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1025   root_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1026 }
1027 
~Mixin()1028 Mixin::~Mixin() {
1029   // @@protoc_insertion_point(destructor:google.protobuf.Mixin)
1030   SharedDtor();
1031   _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1032 }
1033 
SharedDtor()1034 void Mixin::SharedDtor() {
1035   GOOGLE_DCHECK(GetArena() == nullptr);
1036   name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1037   root_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1038 }
1039 
ArenaDtor(void * object)1040 void Mixin::ArenaDtor(void* object) {
1041   Mixin* _this = reinterpret_cast< Mixin* >(object);
1042   (void)_this;
1043 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1044 void Mixin::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1045 }
SetCachedSize(int size) const1046 void Mixin::SetCachedSize(int size) const {
1047   _cached_size_.Set(size);
1048 }
default_instance()1049 const Mixin& Mixin::default_instance() {
1050   ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Mixin_google_2fprotobuf_2fapi_2eproto.base);
1051   return *internal_default_instance();
1052 }
1053 
1054 
Clear()1055 void Mixin::Clear() {
1056 // @@protoc_insertion_point(message_clear_start:google.protobuf.Mixin)
1057   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1058   // Prevent compiler warnings about cached_has_bits being unused
1059   (void) cached_has_bits;
1060 
1061   name_.ClearToEmpty();
1062   root_.ClearToEmpty();
1063   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
1064 }
1065 
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1066 const char* Mixin::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1067 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1068   while (!ctx->Done(&ptr)) {
1069     ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1070     ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1071     CHK_(ptr);
1072     switch (tag >> 3) {
1073       // string name = 1;
1074       case 1:
1075         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1076           auto str = _internal_mutable_name();
1077           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1078           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Mixin.name"));
1079           CHK_(ptr);
1080         } else goto handle_unusual;
1081         continue;
1082       // string root = 2;
1083       case 2:
1084         if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1085           auto str = _internal_mutable_root();
1086           ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1087           CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Mixin.root"));
1088           CHK_(ptr);
1089         } else goto handle_unusual;
1090         continue;
1091       default: {
1092       handle_unusual:
1093         if ((tag & 7) == 4 || tag == 0) {
1094           ctx->SetLastTag(tag);
1095           goto success;
1096         }
1097         ptr = UnknownFieldParse(tag,
1098             _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
1099             ptr, ctx);
1100         CHK_(ptr != nullptr);
1101         continue;
1102       }
1103     }  // switch
1104   }  // while
1105 success:
1106   return ptr;
1107 failure:
1108   ptr = nullptr;
1109   goto success;
1110 #undef CHK_
1111 }
1112 
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1113 ::PROTOBUF_NAMESPACE_ID::uint8* Mixin::_InternalSerialize(
1114     ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1115   // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Mixin)
1116   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1117   (void) cached_has_bits;
1118 
1119   // string name = 1;
1120   if (this->name().size() > 0) {
1121     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1122       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1123       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1124       "google.protobuf.Mixin.name");
1125     target = stream->WriteStringMaybeAliased(
1126         1, this->_internal_name(), target);
1127   }
1128 
1129   // string root = 2;
1130   if (this->root().size() > 0) {
1131     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1132       this->_internal_root().data(), static_cast<int>(this->_internal_root().length()),
1133       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1134       "google.protobuf.Mixin.root");
1135     target = stream->WriteStringMaybeAliased(
1136         2, this->_internal_root(), target);
1137   }
1138 
1139   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1140     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1141         _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
1142   }
1143   // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Mixin)
1144   return target;
1145 }
1146 
ByteSizeLong() const1147 size_t Mixin::ByteSizeLong() const {
1148 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Mixin)
1149   size_t total_size = 0;
1150 
1151   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1152   // Prevent compiler warnings about cached_has_bits being unused
1153   (void) cached_has_bits;
1154 
1155   // string name = 1;
1156   if (this->name().size() > 0) {
1157     total_size += 1 +
1158       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1159         this->_internal_name());
1160   }
1161 
1162   // string root = 2;
1163   if (this->root().size() > 0) {
1164     total_size += 1 +
1165       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1166         this->_internal_root());
1167   }
1168 
1169   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1170     return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1171         _internal_metadata_, total_size, &_cached_size_);
1172   }
1173   int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1174   SetCachedSize(cached_size);
1175   return total_size;
1176 }
1177 
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1178 void Mixin::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1179 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Mixin)
1180   GOOGLE_DCHECK_NE(&from, this);
1181   const Mixin* source =
1182       ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Mixin>(
1183           &from);
1184   if (source == nullptr) {
1185   // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Mixin)
1186     ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1187   } else {
1188   // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Mixin)
1189     MergeFrom(*source);
1190   }
1191 }
1192 
MergeFrom(const Mixin & from)1193 void Mixin::MergeFrom(const Mixin& from) {
1194 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Mixin)
1195   GOOGLE_DCHECK_NE(&from, this);
1196   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
1197   ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1198   (void) cached_has_bits;
1199 
1200   if (from.name().size() > 0) {
1201     _internal_set_name(from._internal_name());
1202   }
1203   if (from.root().size() > 0) {
1204     _internal_set_root(from._internal_root());
1205   }
1206 }
1207 
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1208 void Mixin::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1209 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Mixin)
1210   if (&from == this) return;
1211   Clear();
1212   MergeFrom(from);
1213 }
1214 
CopyFrom(const Mixin & from)1215 void Mixin::CopyFrom(const Mixin& from) {
1216 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Mixin)
1217   if (&from == this) return;
1218   Clear();
1219   MergeFrom(from);
1220 }
1221 
IsInitialized() const1222 bool Mixin::IsInitialized() const {
1223   return true;
1224 }
1225 
InternalSwap(Mixin * other)1226 void Mixin::InternalSwap(Mixin* other) {
1227   using std::swap;
1228   _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
1229   name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1230   root_.Swap(&other->root_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1231 }
1232 
GetMetadata() const1233 ::PROTOBUF_NAMESPACE_ID::Metadata Mixin::GetMetadata() const {
1234   return GetMetadataStatic();
1235 }
1236 
1237 
1238 // @@protoc_insertion_point(namespace_scope)
1239 PROTOBUF_NAMESPACE_CLOSE
1240 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)1241 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Api* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Api >(Arena* arena) {
1242   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Api >(arena);
1243 }
CreateMaybeMessage(Arena * arena)1244 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Method* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Method >(Arena* arena) {
1245   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Method >(arena);
1246 }
CreateMaybeMessage(Arena * arena)1247 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Mixin* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Mixin >(Arena* arena) {
1248   return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Mixin >(arena);
1249 }
1250 PROTOBUF_NAMESPACE_CLOSE
1251 
1252 // @@protoc_insertion_point(global_scope)
1253 #include <google/protobuf/port_undef.inc>
1254