MarkdownToHtmlRequest.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: morus.proto
  5. namespace Palm\Morus\V1;
  6. use Google\Protobuf\Internal\GPBType;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\GPBUtil;
  9. /**
  10. * Generated from protobuf message <code>palm.morus.v1.MarkdownToHtmlRequest</code>
  11. */
  12. class MarkdownToHtmlRequest extends \Google\Protobuf\Internal\Message
  13. {
  14. /**
  15. * Generated from protobuf field <code>string payload = 1;</code>
  16. */
  17. protected $payload = '';
  18. /**
  19. * Generated from protobuf field <code>bool sanitize = 2;</code>
  20. */
  21. protected $sanitize = false;
  22. /**
  23. * Constructor.
  24. *
  25. * @param array $data {
  26. * Optional. Data for populating the Message object.
  27. *
  28. * @type string $payload
  29. * @type bool $sanitize
  30. * }
  31. */
  32. public function __construct($data = NULL) {
  33. \GPBMetadata\Morus::initOnce();
  34. parent::__construct($data);
  35. }
  36. /**
  37. * Generated from protobuf field <code>string payload = 1;</code>
  38. * @return string
  39. */
  40. public function getPayload()
  41. {
  42. return $this->payload;
  43. }
  44. /**
  45. * Generated from protobuf field <code>string payload = 1;</code>
  46. * @param string $var
  47. * @return $this
  48. */
  49. public function setPayload($var)
  50. {
  51. GPBUtil::checkString($var, True);
  52. $this->payload = $var;
  53. return $this;
  54. }
  55. /**
  56. * Generated from protobuf field <code>bool sanitize = 2;</code>
  57. * @return bool
  58. */
  59. public function getSanitize()
  60. {
  61. return $this->sanitize;
  62. }
  63. /**
  64. * Generated from protobuf field <code>bool sanitize = 2;</code>
  65. * @param bool $var
  66. * @return $this
  67. */
  68. public function setSanitize($var)
  69. {
  70. GPBUtil::checkBool($var);
  71. $this->sanitize = $var;
  72. return $this;
  73. }
  74. }