morus.pb.cc 22 KB

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