morus.pb.cc 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: morus.proto
  3. #include "morus.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. // Must be included last.
  14. #include "google/protobuf/port_def.inc"
  15. PROTOBUF_PRAGMA_INIT_SEG
  16. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  17. namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
  18. namespace mint {
  19. namespace morus {
  20. namespace v1 {
  21. template <typename>
  22. PROTOBUF_CONSTEXPR MarkdownToHtmlRequest::MarkdownToHtmlRequest(
  23. ::_pbi::ConstantInitialized): _impl_{
  24. /*decltype(_impl_.payload_)*/ {
  25. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  26. }
  27. , /*decltype(_impl_.sanitize_)*/ false
  28. , /*decltype(_impl_._cached_size_)*/{}} {}
  29. struct MarkdownToHtmlRequestDefaultTypeInternal {
  30. PROTOBUF_CONSTEXPR MarkdownToHtmlRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  31. ~MarkdownToHtmlRequestDefaultTypeInternal() {}
  32. union {
  33. MarkdownToHtmlRequest _instance;
  34. };
  35. };
  36. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  37. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkdownToHtmlRequestDefaultTypeInternal _MarkdownToHtmlRequest_default_instance_;
  38. template <typename>
  39. PROTOBUF_CONSTEXPR MarkdownToHtmlResponse::MarkdownToHtmlResponse(
  40. ::_pbi::ConstantInitialized): _impl_{
  41. /*decltype(_impl_.payload_)*/ {
  42. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  43. }
  44. , /*decltype(_impl_._cached_size_)*/{}} {}
  45. struct MarkdownToHtmlResponseDefaultTypeInternal {
  46. PROTOBUF_CONSTEXPR MarkdownToHtmlResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  47. ~MarkdownToHtmlResponseDefaultTypeInternal() {}
  48. union {
  49. MarkdownToHtmlResponse _instance;
  50. };
  51. };
  52. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  53. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarkdownToHtmlResponseDefaultTypeInternal _MarkdownToHtmlResponse_default_instance_;
  54. } // namespace v1
  55. } // namespace morus
  56. } // namespace mint
  57. static ::_pb::Metadata file_level_metadata_morus_2eproto[2];
  58. static constexpr const ::_pb::EnumDescriptor**
  59. file_level_enum_descriptors_morus_2eproto = nullptr;
  60. static constexpr const ::_pb::ServiceDescriptor**
  61. file_level_service_descriptors_morus_2eproto = nullptr;
  62. const ::uint32_t TableStruct_morus_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  63. protodesc_cold) = {
  64. ~0u, // no _has_bits_
  65. PROTOBUF_FIELD_OFFSET(::mint::morus::v1::MarkdownToHtmlRequest, _internal_metadata_),
  66. ~0u, // no _extensions_
  67. ~0u, // no _oneof_case_
  68. ~0u, // no _weak_field_map_
  69. ~0u, // no _inlined_string_donated_
  70. ~0u, // no _split_
  71. ~0u, // no sizeof(Split)
  72. PROTOBUF_FIELD_OFFSET(::mint::morus::v1::MarkdownToHtmlRequest, _impl_.payload_),
  73. PROTOBUF_FIELD_OFFSET(::mint::morus::v1::MarkdownToHtmlRequest, _impl_.sanitize_),
  74. ~0u, // no _has_bits_
  75. PROTOBUF_FIELD_OFFSET(::mint::morus::v1::MarkdownToHtmlResponse, _internal_metadata_),
  76. ~0u, // no _extensions_
  77. ~0u, // no _oneof_case_
  78. ~0u, // no _weak_field_map_
  79. ~0u, // no _inlined_string_donated_
  80. ~0u, // no _split_
  81. ~0u, // no sizeof(Split)
  82. PROTOBUF_FIELD_OFFSET(::mint::morus::v1::MarkdownToHtmlResponse, _impl_.payload_),
  83. };
  84. static const ::_pbi::MigrationSchema
  85. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  86. { 0, -1, -1, sizeof(::mint::morus::v1::MarkdownToHtmlRequest)},
  87. { 10, -1, -1, sizeof(::mint::morus::v1::MarkdownToHtmlResponse)},
  88. };
  89. static const ::_pb::Message* const file_default_instances[] = {
  90. &::mint::morus::v1::_MarkdownToHtmlRequest_default_instance_._instance,
  91. &::mint::morus::v1::_MarkdownToHtmlResponse_default_instance_._instance,
  92. };
  93. const char descriptor_table_protodef_morus_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  94. "\n\013morus.proto\022\rmint.morus.v1\":\n\025Markdown"
  95. "ToHtmlRequest\022\017\n\007payload\030\001 \001(\t\022\020\n\010saniti"
  96. "ze\030\002 \001(\010\")\n\026MarkdownToHtmlResponse\022\017\n\007pa"
  97. "yload\030\001 \001(\t2c\n\010Markdown\022W\n\006ToHtml\022$.mint"
  98. ".morus.v1.MarkdownToHtmlRequest\032%.mint.m"
  99. "orus.v1.MarkdownToHtmlResponse\"\000B2\n.com."
  100. "github.iapt_platform.mint.plugins.morus."
  101. "v1P\001b\006proto3"
  102. };
  103. static ::absl::once_flag descriptor_table_morus_2eproto_once;
  104. const ::_pbi::DescriptorTable descriptor_table_morus_2eproto = {
  105. false,
  106. false,
  107. 292,
  108. descriptor_table_protodef_morus_2eproto,
  109. "morus.proto",
  110. &descriptor_table_morus_2eproto_once,
  111. nullptr,
  112. 0,
  113. 2,
  114. schemas,
  115. file_default_instances,
  116. TableStruct_morus_2eproto::offsets,
  117. file_level_metadata_morus_2eproto,
  118. file_level_enum_descriptors_morus_2eproto,
  119. file_level_service_descriptors_morus_2eproto,
  120. };
  121. // This function exists to be marked as weak.
  122. // It can significantly speed up compilation by breaking up LLVM's SCC
  123. // in the .pb.cc translation units. Large translation units see a
  124. // reduction of more than 35% of walltime for optimized builds. Without
  125. // the weak attribute all the messages in the file, including all the
  126. // vtables and everything they use become part of the same SCC through
  127. // a cycle like:
  128. // GetMetadata -> descriptor table -> default instances ->
  129. // vtables -> GetMetadata
  130. // By adding a weak function here we break the connection from the
  131. // individual vtables back into the descriptor table.
  132. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_morus_2eproto_getter() {
  133. return &descriptor_table_morus_2eproto;
  134. }
  135. // Force running AddDescriptors() at dynamic initialization time.
  136. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  137. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_morus_2eproto(&descriptor_table_morus_2eproto);
  138. namespace mint {
  139. namespace morus {
  140. namespace v1 {
  141. // ===================================================================
  142. class MarkdownToHtmlRequest::_Internal {
  143. public:
  144. };
  145. MarkdownToHtmlRequest::MarkdownToHtmlRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  146. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  147. SharedCtor(arena);
  148. // @@protoc_insertion_point(arena_constructor:mint.morus.v1.MarkdownToHtmlRequest)
  149. }
  150. MarkdownToHtmlRequest::MarkdownToHtmlRequest(const MarkdownToHtmlRequest& from)
  151. : ::PROTOBUF_NAMESPACE_ID::Message() {
  152. MarkdownToHtmlRequest* const _this = this; (void)_this;
  153. new (&_impl_) Impl_{
  154. decltype(_impl_.payload_) {}
  155. , decltype(_impl_.sanitize_) {}
  156. , /*decltype(_impl_._cached_size_)*/{}};
  157. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  158. _impl_.payload_.InitDefault();
  159. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  160. _impl_.payload_.Set("", GetArenaForAllocation());
  161. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  162. if (!from._internal_payload().empty()) {
  163. _this->_impl_.payload_.Set(from._internal_payload(), _this->GetArenaForAllocation());
  164. }
  165. _this->_impl_.sanitize_ = from._impl_.sanitize_;
  166. // @@protoc_insertion_point(copy_constructor:mint.morus.v1.MarkdownToHtmlRequest)
  167. }
  168. inline void MarkdownToHtmlRequest::SharedCtor(::_pb::Arena* arena) {
  169. (void)arena;
  170. new (&_impl_) Impl_{
  171. decltype(_impl_.payload_) {}
  172. , decltype(_impl_.sanitize_) { false }
  173. , /*decltype(_impl_._cached_size_)*/{}
  174. };
  175. _impl_.payload_.InitDefault();
  176. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  177. _impl_.payload_.Set("", GetArenaForAllocation());
  178. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  179. }
  180. MarkdownToHtmlRequest::~MarkdownToHtmlRequest() {
  181. // @@protoc_insertion_point(destructor:mint.morus.v1.MarkdownToHtmlRequest)
  182. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  183. (void)arena;
  184. return;
  185. }
  186. SharedDtor();
  187. }
  188. inline void MarkdownToHtmlRequest::SharedDtor() {
  189. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  190. _impl_.payload_.Destroy();
  191. }
  192. void MarkdownToHtmlRequest::SetCachedSize(int size) const {
  193. _impl_._cached_size_.Set(size);
  194. }
  195. void MarkdownToHtmlRequest::Clear() {
  196. // @@protoc_insertion_point(message_clear_start:mint.morus.v1.MarkdownToHtmlRequest)
  197. ::uint32_t cached_has_bits = 0;
  198. // Prevent compiler warnings about cached_has_bits being unused
  199. (void) cached_has_bits;
  200. _impl_.payload_.ClearToEmpty();
  201. _impl_.sanitize_ = false;
  202. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  203. }
  204. const char* MarkdownToHtmlRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  205. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  206. while (!ctx->Done(&ptr)) {
  207. ::uint32_t tag;
  208. ptr = ::_pbi::ReadTag(ptr, &tag);
  209. switch (tag >> 3) {
  210. // string payload = 1;
  211. case 1:
  212. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  213. auto str = _internal_mutable_payload();
  214. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  215. CHK_(ptr);
  216. CHK_(::_pbi::VerifyUTF8(str, "mint.morus.v1.MarkdownToHtmlRequest.payload"));
  217. } else {
  218. goto handle_unusual;
  219. }
  220. continue;
  221. // bool sanitize = 2;
  222. case 2:
  223. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  224. _impl_.sanitize_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  225. CHK_(ptr);
  226. } else {
  227. goto handle_unusual;
  228. }
  229. continue;
  230. default:
  231. goto handle_unusual;
  232. } // switch
  233. handle_unusual:
  234. if ((tag == 0) || ((tag & 7) == 4)) {
  235. CHK_(ptr);
  236. ctx->SetLastTag(tag);
  237. goto message_done;
  238. }
  239. ptr = UnknownFieldParse(
  240. tag,
  241. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  242. ptr, ctx);
  243. CHK_(ptr != nullptr);
  244. } // while
  245. message_done:
  246. return ptr;
  247. failure:
  248. ptr = nullptr;
  249. goto message_done;
  250. #undef CHK_
  251. }
  252. ::uint8_t* MarkdownToHtmlRequest::_InternalSerialize(
  253. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  254. // @@protoc_insertion_point(serialize_to_array_start:mint.morus.v1.MarkdownToHtmlRequest)
  255. ::uint32_t cached_has_bits = 0;
  256. (void) cached_has_bits;
  257. // string payload = 1;
  258. if (!this->_internal_payload().empty()) {
  259. const std::string& _s = this->_internal_payload();
  260. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  261. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mint.morus.v1.MarkdownToHtmlRequest.payload");
  262. target = stream->WriteStringMaybeAliased(1, _s, target);
  263. }
  264. // bool sanitize = 2;
  265. if (this->_internal_sanitize() != 0) {
  266. target = stream->EnsureSpace(target);
  267. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  268. 2, this->_internal_sanitize(), target);
  269. }
  270. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  271. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  272. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  273. }
  274. // @@protoc_insertion_point(serialize_to_array_end:mint.morus.v1.MarkdownToHtmlRequest)
  275. return target;
  276. }
  277. ::size_t MarkdownToHtmlRequest::ByteSizeLong() const {
  278. // @@protoc_insertion_point(message_byte_size_start:mint.morus.v1.MarkdownToHtmlRequest)
  279. ::size_t total_size = 0;
  280. ::uint32_t cached_has_bits = 0;
  281. // Prevent compiler warnings about cached_has_bits being unused
  282. (void) cached_has_bits;
  283. // string payload = 1;
  284. if (!this->_internal_payload().empty()) {
  285. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  286. this->_internal_payload());
  287. }
  288. // bool sanitize = 2;
  289. if (this->_internal_sanitize() != 0) {
  290. total_size += 2;
  291. }
  292. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  293. }
  294. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkdownToHtmlRequest::_class_data_ = {
  295. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  296. MarkdownToHtmlRequest::MergeImpl
  297. };
  298. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkdownToHtmlRequest::GetClassData() const { return &_class_data_; }
  299. void MarkdownToHtmlRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  300. auto* const _this = static_cast<MarkdownToHtmlRequest*>(&to_msg);
  301. auto& from = static_cast<const MarkdownToHtmlRequest&>(from_msg);
  302. // @@protoc_insertion_point(class_specific_merge_from_start:mint.morus.v1.MarkdownToHtmlRequest)
  303. ABSL_DCHECK_NE(&from, _this);
  304. ::uint32_t cached_has_bits = 0;
  305. (void) cached_has_bits;
  306. if (!from._internal_payload().empty()) {
  307. _this->_internal_set_payload(from._internal_payload());
  308. }
  309. if (from._internal_sanitize() != 0) {
  310. _this->_internal_set_sanitize(from._internal_sanitize());
  311. }
  312. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  313. }
  314. void MarkdownToHtmlRequest::CopyFrom(const MarkdownToHtmlRequest& from) {
  315. // @@protoc_insertion_point(class_specific_copy_from_start:mint.morus.v1.MarkdownToHtmlRequest)
  316. if (&from == this) return;
  317. Clear();
  318. MergeFrom(from);
  319. }
  320. bool MarkdownToHtmlRequest::IsInitialized() const {
  321. return true;
  322. }
  323. void MarkdownToHtmlRequest::InternalSwap(MarkdownToHtmlRequest* other) {
  324. using std::swap;
  325. auto* lhs_arena = GetArenaForAllocation();
  326. auto* rhs_arena = other->GetArenaForAllocation();
  327. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  328. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, lhs_arena,
  329. &other->_impl_.payload_, rhs_arena);
  330. swap(_impl_.sanitize_, other->_impl_.sanitize_);
  331. }
  332. ::PROTOBUF_NAMESPACE_ID::Metadata MarkdownToHtmlRequest::GetMetadata() const {
  333. return ::_pbi::AssignDescriptors(
  334. &descriptor_table_morus_2eproto_getter, &descriptor_table_morus_2eproto_once,
  335. file_level_metadata_morus_2eproto[0]);
  336. }
  337. // ===================================================================
  338. class MarkdownToHtmlResponse::_Internal {
  339. public:
  340. };
  341. MarkdownToHtmlResponse::MarkdownToHtmlResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  342. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  343. SharedCtor(arena);
  344. // @@protoc_insertion_point(arena_constructor:mint.morus.v1.MarkdownToHtmlResponse)
  345. }
  346. MarkdownToHtmlResponse::MarkdownToHtmlResponse(const MarkdownToHtmlResponse& from)
  347. : ::PROTOBUF_NAMESPACE_ID::Message() {
  348. MarkdownToHtmlResponse* const _this = this; (void)_this;
  349. new (&_impl_) Impl_{
  350. decltype(_impl_.payload_) {}
  351. , /*decltype(_impl_._cached_size_)*/{}};
  352. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  353. _impl_.payload_.InitDefault();
  354. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  355. _impl_.payload_.Set("", GetArenaForAllocation());
  356. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  357. if (!from._internal_payload().empty()) {
  358. _this->_impl_.payload_.Set(from._internal_payload(), _this->GetArenaForAllocation());
  359. }
  360. // @@protoc_insertion_point(copy_constructor:mint.morus.v1.MarkdownToHtmlResponse)
  361. }
  362. inline void MarkdownToHtmlResponse::SharedCtor(::_pb::Arena* arena) {
  363. (void)arena;
  364. new (&_impl_) Impl_{
  365. decltype(_impl_.payload_) {}
  366. , /*decltype(_impl_._cached_size_)*/{}
  367. };
  368. _impl_.payload_.InitDefault();
  369. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  370. _impl_.payload_.Set("", GetArenaForAllocation());
  371. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  372. }
  373. MarkdownToHtmlResponse::~MarkdownToHtmlResponse() {
  374. // @@protoc_insertion_point(destructor:mint.morus.v1.MarkdownToHtmlResponse)
  375. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  376. (void)arena;
  377. return;
  378. }
  379. SharedDtor();
  380. }
  381. inline void MarkdownToHtmlResponse::SharedDtor() {
  382. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  383. _impl_.payload_.Destroy();
  384. }
  385. void MarkdownToHtmlResponse::SetCachedSize(int size) const {
  386. _impl_._cached_size_.Set(size);
  387. }
  388. void MarkdownToHtmlResponse::Clear() {
  389. // @@protoc_insertion_point(message_clear_start:mint.morus.v1.MarkdownToHtmlResponse)
  390. ::uint32_t cached_has_bits = 0;
  391. // Prevent compiler warnings about cached_has_bits being unused
  392. (void) cached_has_bits;
  393. _impl_.payload_.ClearToEmpty();
  394. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  395. }
  396. const char* MarkdownToHtmlResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  397. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  398. while (!ctx->Done(&ptr)) {
  399. ::uint32_t tag;
  400. ptr = ::_pbi::ReadTag(ptr, &tag);
  401. switch (tag >> 3) {
  402. // string payload = 1;
  403. case 1:
  404. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  405. auto str = _internal_mutable_payload();
  406. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  407. CHK_(ptr);
  408. CHK_(::_pbi::VerifyUTF8(str, "mint.morus.v1.MarkdownToHtmlResponse.payload"));
  409. } else {
  410. goto handle_unusual;
  411. }
  412. continue;
  413. default:
  414. goto handle_unusual;
  415. } // switch
  416. handle_unusual:
  417. if ((tag == 0) || ((tag & 7) == 4)) {
  418. CHK_(ptr);
  419. ctx->SetLastTag(tag);
  420. goto message_done;
  421. }
  422. ptr = UnknownFieldParse(
  423. tag,
  424. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  425. ptr, ctx);
  426. CHK_(ptr != nullptr);
  427. } // while
  428. message_done:
  429. return ptr;
  430. failure:
  431. ptr = nullptr;
  432. goto message_done;
  433. #undef CHK_
  434. }
  435. ::uint8_t* MarkdownToHtmlResponse::_InternalSerialize(
  436. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  437. // @@protoc_insertion_point(serialize_to_array_start:mint.morus.v1.MarkdownToHtmlResponse)
  438. ::uint32_t cached_has_bits = 0;
  439. (void) cached_has_bits;
  440. // string payload = 1;
  441. if (!this->_internal_payload().empty()) {
  442. const std::string& _s = this->_internal_payload();
  443. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  444. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "mint.morus.v1.MarkdownToHtmlResponse.payload");
  445. target = stream->WriteStringMaybeAliased(1, _s, target);
  446. }
  447. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  448. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  449. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  450. }
  451. // @@protoc_insertion_point(serialize_to_array_end:mint.morus.v1.MarkdownToHtmlResponse)
  452. return target;
  453. }
  454. ::size_t MarkdownToHtmlResponse::ByteSizeLong() const {
  455. // @@protoc_insertion_point(message_byte_size_start:mint.morus.v1.MarkdownToHtmlResponse)
  456. ::size_t total_size = 0;
  457. ::uint32_t cached_has_bits = 0;
  458. // Prevent compiler warnings about cached_has_bits being unused
  459. (void) cached_has_bits;
  460. // string payload = 1;
  461. if (!this->_internal_payload().empty()) {
  462. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  463. this->_internal_payload());
  464. }
  465. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  466. }
  467. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData MarkdownToHtmlResponse::_class_data_ = {
  468. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  469. MarkdownToHtmlResponse::MergeImpl
  470. };
  471. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*MarkdownToHtmlResponse::GetClassData() const { return &_class_data_; }
  472. void MarkdownToHtmlResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  473. auto* const _this = static_cast<MarkdownToHtmlResponse*>(&to_msg);
  474. auto& from = static_cast<const MarkdownToHtmlResponse&>(from_msg);
  475. // @@protoc_insertion_point(class_specific_merge_from_start:mint.morus.v1.MarkdownToHtmlResponse)
  476. ABSL_DCHECK_NE(&from, _this);
  477. ::uint32_t cached_has_bits = 0;
  478. (void) cached_has_bits;
  479. if (!from._internal_payload().empty()) {
  480. _this->_internal_set_payload(from._internal_payload());
  481. }
  482. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  483. }
  484. void MarkdownToHtmlResponse::CopyFrom(const MarkdownToHtmlResponse& from) {
  485. // @@protoc_insertion_point(class_specific_copy_from_start:mint.morus.v1.MarkdownToHtmlResponse)
  486. if (&from == this) return;
  487. Clear();
  488. MergeFrom(from);
  489. }
  490. bool MarkdownToHtmlResponse::IsInitialized() const {
  491. return true;
  492. }
  493. void MarkdownToHtmlResponse::InternalSwap(MarkdownToHtmlResponse* other) {
  494. using std::swap;
  495. auto* lhs_arena = GetArenaForAllocation();
  496. auto* rhs_arena = other->GetArenaForAllocation();
  497. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  498. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.payload_, lhs_arena,
  499. &other->_impl_.payload_, rhs_arena);
  500. }
  501. ::PROTOBUF_NAMESPACE_ID::Metadata MarkdownToHtmlResponse::GetMetadata() const {
  502. return ::_pbi::AssignDescriptors(
  503. &descriptor_table_morus_2eproto_getter, &descriptor_table_morus_2eproto_once,
  504. file_level_metadata_morus_2eproto[1]);
  505. }
  506. // @@protoc_insertion_point(namespace_scope)
  507. } // namespace v1
  508. } // namespace morus
  509. } // namespace mint
  510. PROTOBUF_NAMESPACE_OPEN
  511. template<> PROTOBUF_NOINLINE ::mint::morus::v1::MarkdownToHtmlRequest*
  512. Arena::CreateMaybeMessage< ::mint::morus::v1::MarkdownToHtmlRequest >(Arena* arena) {
  513. return Arena::CreateMessageInternal< ::mint::morus::v1::MarkdownToHtmlRequest >(arena);
  514. }
  515. template<> PROTOBUF_NOINLINE ::mint::morus::v1::MarkdownToHtmlResponse*
  516. Arena::CreateMaybeMessage< ::mint::morus::v1::MarkdownToHtmlResponse >(Arena* arena) {
  517. return Arena::CreateMessageInternal< ::mint::morus::v1::MarkdownToHtmlResponse >(arena);
  518. }
  519. PROTOBUF_NAMESPACE_CLOSE
  520. // @@protoc_insertion_point(global_scope)
  521. #include "google/protobuf/port_undef.inc"