Morus.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: morus.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021, 8981
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Mint.Morus.V1 {
  12. /// <summary>Holder for reflection information generated from morus.proto</summary>
  13. public static partial class MorusReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for morus.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static MorusReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cgttb3J1cy5wcm90bxINbWludC5tb3J1cy52MSI6ChVNYXJrZG93blRvSHRt",
  24. "bFJlcXVlc3QSDwoHcGF5bG9hZBgBIAEoCRIQCghzYW5pdGl6ZRgCIAEoCCIp",
  25. "ChZNYXJrZG93blRvSHRtbFJlc3BvbnNlEg8KB3BheWxvYWQYASABKAkyYwoI",
  26. "TWFya2Rvd24SVwoGVG9IdG1sEiQubWludC5tb3J1cy52MS5NYXJrZG93blRv",
  27. "SHRtbFJlcXVlc3QaJS5taW50Lm1vcnVzLnYxLk1hcmtkb3duVG9IdG1sUmVz",
  28. "cG9uc2UiAEIyCi5jb20uZ2l0aHViLmlhcHRfcGxhdGZvcm0ubWludC5wbHVn",
  29. "aW5zLm1vcnVzLnYxUAFiBnByb3RvMw=="));
  30. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  31. new pbr::FileDescriptor[] { },
  32. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  33. new pbr::GeneratedClrTypeInfo(typeof(global::Mint.Morus.V1.MarkdownToHtmlRequest), global::Mint.Morus.V1.MarkdownToHtmlRequest.Parser, new[]{ "Payload", "Sanitize" }, null, null, null, null),
  34. new pbr::GeneratedClrTypeInfo(typeof(global::Mint.Morus.V1.MarkdownToHtmlResponse), global::Mint.Morus.V1.MarkdownToHtmlResponse.Parser, new[]{ "Payload" }, null, null, null, null)
  35. }));
  36. }
  37. #endregion
  38. }
  39. #region Messages
  40. public sealed partial class MarkdownToHtmlRequest : pb::IMessage<MarkdownToHtmlRequest>
  41. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  42. , pb::IBufferMessage
  43. #endif
  44. {
  45. private static readonly pb::MessageParser<MarkdownToHtmlRequest> _parser = new pb::MessageParser<MarkdownToHtmlRequest>(() => new MarkdownToHtmlRequest());
  46. private pb::UnknownFieldSet _unknownFields;
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  48. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  49. public static pb::MessageParser<MarkdownToHtmlRequest> Parser { get { return _parser; } }
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  51. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  52. public static pbr::MessageDescriptor Descriptor {
  53. get { return global::Mint.Morus.V1.MorusReflection.Descriptor.MessageTypes[0]; }
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  57. pbr::MessageDescriptor pb::IMessage.Descriptor {
  58. get { return Descriptor; }
  59. }
  60. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  61. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  62. public MarkdownToHtmlRequest() {
  63. OnConstruction();
  64. }
  65. partial void OnConstruction();
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  68. public MarkdownToHtmlRequest(MarkdownToHtmlRequest other) : this() {
  69. payload_ = other.payload_;
  70. sanitize_ = other.sanitize_;
  71. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  74. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  75. public MarkdownToHtmlRequest Clone() {
  76. return new MarkdownToHtmlRequest(this);
  77. }
  78. /// <summary>Field number for the "payload" field.</summary>
  79. public const int PayloadFieldNumber = 1;
  80. private string payload_ = "";
  81. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  82. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  83. public string Payload {
  84. get { return payload_; }
  85. set {
  86. payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  87. }
  88. }
  89. /// <summary>Field number for the "sanitize" field.</summary>
  90. public const int SanitizeFieldNumber = 2;
  91. private bool sanitize_;
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  94. public bool Sanitize {
  95. get { return sanitize_; }
  96. set {
  97. sanitize_ = value;
  98. }
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  101. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  102. public override bool Equals(object other) {
  103. return Equals(other as MarkdownToHtmlRequest);
  104. }
  105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  106. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  107. public bool Equals(MarkdownToHtmlRequest other) {
  108. if (ReferenceEquals(other, null)) {
  109. return false;
  110. }
  111. if (ReferenceEquals(other, this)) {
  112. return true;
  113. }
  114. if (Payload != other.Payload) return false;
  115. if (Sanitize != other.Sanitize) return false;
  116. return Equals(_unknownFields, other._unknownFields);
  117. }
  118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  119. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  120. public override int GetHashCode() {
  121. int hash = 1;
  122. if (Payload.Length != 0) hash ^= Payload.GetHashCode();
  123. if (Sanitize != false) hash ^= Sanitize.GetHashCode();
  124. if (_unknownFields != null) {
  125. hash ^= _unknownFields.GetHashCode();
  126. }
  127. return hash;
  128. }
  129. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  130. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  131. public override string ToString() {
  132. return pb::JsonFormatter.ToDiagnosticString(this);
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  135. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  136. public void WriteTo(pb::CodedOutputStream output) {
  137. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  138. output.WriteRawMessage(this);
  139. #else
  140. if (Payload.Length != 0) {
  141. output.WriteRawTag(10);
  142. output.WriteString(Payload);
  143. }
  144. if (Sanitize != false) {
  145. output.WriteRawTag(16);
  146. output.WriteBool(Sanitize);
  147. }
  148. if (_unknownFields != null) {
  149. _unknownFields.WriteTo(output);
  150. }
  151. #endif
  152. }
  153. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  155. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  156. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  157. if (Payload.Length != 0) {
  158. output.WriteRawTag(10);
  159. output.WriteString(Payload);
  160. }
  161. if (Sanitize != false) {
  162. output.WriteRawTag(16);
  163. output.WriteBool(Sanitize);
  164. }
  165. if (_unknownFields != null) {
  166. _unknownFields.WriteTo(ref output);
  167. }
  168. }
  169. #endif
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  171. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  172. public int CalculateSize() {
  173. int size = 0;
  174. if (Payload.Length != 0) {
  175. size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload);
  176. }
  177. if (Sanitize != false) {
  178. size += 1 + 1;
  179. }
  180. if (_unknownFields != null) {
  181. size += _unknownFields.CalculateSize();
  182. }
  183. return size;
  184. }
  185. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  186. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  187. public void MergeFrom(MarkdownToHtmlRequest other) {
  188. if (other == null) {
  189. return;
  190. }
  191. if (other.Payload.Length != 0) {
  192. Payload = other.Payload;
  193. }
  194. if (other.Sanitize != false) {
  195. Sanitize = other.Sanitize;
  196. }
  197. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  198. }
  199. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  200. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  201. public void MergeFrom(pb::CodedInputStream input) {
  202. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  203. input.ReadRawMessage(this);
  204. #else
  205. uint tag;
  206. while ((tag = input.ReadTag()) != 0) {
  207. switch(tag) {
  208. default:
  209. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  210. break;
  211. case 10: {
  212. Payload = input.ReadString();
  213. break;
  214. }
  215. case 16: {
  216. Sanitize = input.ReadBool();
  217. break;
  218. }
  219. }
  220. }
  221. #endif
  222. }
  223. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  224. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  225. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  226. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  227. uint tag;
  228. while ((tag = input.ReadTag()) != 0) {
  229. switch(tag) {
  230. default:
  231. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  232. break;
  233. case 10: {
  234. Payload = input.ReadString();
  235. break;
  236. }
  237. case 16: {
  238. Sanitize = input.ReadBool();
  239. break;
  240. }
  241. }
  242. }
  243. }
  244. #endif
  245. }
  246. public sealed partial class MarkdownToHtmlResponse : pb::IMessage<MarkdownToHtmlResponse>
  247. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  248. , pb::IBufferMessage
  249. #endif
  250. {
  251. private static readonly pb::MessageParser<MarkdownToHtmlResponse> _parser = new pb::MessageParser<MarkdownToHtmlResponse>(() => new MarkdownToHtmlResponse());
  252. private pb::UnknownFieldSet _unknownFields;
  253. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  254. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  255. public static pb::MessageParser<MarkdownToHtmlResponse> Parser { get { return _parser; } }
  256. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  257. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  258. public static pbr::MessageDescriptor Descriptor {
  259. get { return global::Mint.Morus.V1.MorusReflection.Descriptor.MessageTypes[1]; }
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  262. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  263. pbr::MessageDescriptor pb::IMessage.Descriptor {
  264. get { return Descriptor; }
  265. }
  266. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  267. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  268. public MarkdownToHtmlResponse() {
  269. OnConstruction();
  270. }
  271. partial void OnConstruction();
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  273. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  274. public MarkdownToHtmlResponse(MarkdownToHtmlResponse other) : this() {
  275. payload_ = other.payload_;
  276. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  277. }
  278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  279. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  280. public MarkdownToHtmlResponse Clone() {
  281. return new MarkdownToHtmlResponse(this);
  282. }
  283. /// <summary>Field number for the "payload" field.</summary>
  284. public const int PayloadFieldNumber = 1;
  285. private string payload_ = "";
  286. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  287. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  288. public string Payload {
  289. get { return payload_; }
  290. set {
  291. payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
  292. }
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  295. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  296. public override bool Equals(object other) {
  297. return Equals(other as MarkdownToHtmlResponse);
  298. }
  299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  300. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  301. public bool Equals(MarkdownToHtmlResponse other) {
  302. if (ReferenceEquals(other, null)) {
  303. return false;
  304. }
  305. if (ReferenceEquals(other, this)) {
  306. return true;
  307. }
  308. if (Payload != other.Payload) return false;
  309. return Equals(_unknownFields, other._unknownFields);
  310. }
  311. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  312. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  313. public override int GetHashCode() {
  314. int hash = 1;
  315. if (Payload.Length != 0) hash ^= Payload.GetHashCode();
  316. if (_unknownFields != null) {
  317. hash ^= _unknownFields.GetHashCode();
  318. }
  319. return hash;
  320. }
  321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  322. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  323. public override string ToString() {
  324. return pb::JsonFormatter.ToDiagnosticString(this);
  325. }
  326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  327. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  328. public void WriteTo(pb::CodedOutputStream output) {
  329. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  330. output.WriteRawMessage(this);
  331. #else
  332. if (Payload.Length != 0) {
  333. output.WriteRawTag(10);
  334. output.WriteString(Payload);
  335. }
  336. if (_unknownFields != null) {
  337. _unknownFields.WriteTo(output);
  338. }
  339. #endif
  340. }
  341. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  342. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  343. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  344. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  345. if (Payload.Length != 0) {
  346. output.WriteRawTag(10);
  347. output.WriteString(Payload);
  348. }
  349. if (_unknownFields != null) {
  350. _unknownFields.WriteTo(ref output);
  351. }
  352. }
  353. #endif
  354. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  355. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  356. public int CalculateSize() {
  357. int size = 0;
  358. if (Payload.Length != 0) {
  359. size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload);
  360. }
  361. if (_unknownFields != null) {
  362. size += _unknownFields.CalculateSize();
  363. }
  364. return size;
  365. }
  366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  367. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  368. public void MergeFrom(MarkdownToHtmlResponse other) {
  369. if (other == null) {
  370. return;
  371. }
  372. if (other.Payload.Length != 0) {
  373. Payload = other.Payload;
  374. }
  375. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  376. }
  377. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  378. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  379. public void MergeFrom(pb::CodedInputStream input) {
  380. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  381. input.ReadRawMessage(this);
  382. #else
  383. uint tag;
  384. while ((tag = input.ReadTag()) != 0) {
  385. switch(tag) {
  386. default:
  387. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  388. break;
  389. case 10: {
  390. Payload = input.ReadString();
  391. break;
  392. }
  393. }
  394. }
  395. #endif
  396. }
  397. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  398. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  399. [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
  400. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  401. uint tag;
  402. while ((tag = input.ReadTag()) != 0) {
  403. switch(tag) {
  404. default:
  405. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  406. break;
  407. case 10: {
  408. Payload = input.ReadString();
  409. break;
  410. }
  411. }
  412. }
  413. }
  414. #endif
  415. }
  416. #endregion
  417. }
  418. #endregion Designer generated code