诸暨麻将添加redis
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 
 
 

1216 Zeilen
50 KiB

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