TeXLiveRequest.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # NO CHECKED-IN PROTOBUF GENCODE
  4. # source: lily.proto
  5. namespace Palm\Lily\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.lily.v1.TeXLiveRequest</code>
  11. */
  12. class TeXLiveRequest extends \Google\Protobuf\Internal\Message
  13. {
  14. /**
  15. * Generated from protobuf field <code>string name = 1;</code>
  16. */
  17. protected $name = '';
  18. /**
  19. * Generated from protobuf field <code>.palm.lily.v1.Style style = 2;</code>
  20. */
  21. protected $style = 0;
  22. /**
  23. * Generated from protobuf field <code>.palm.lily.v1.TeXLiveTask.Output.Format format = 3;</code>
  24. */
  25. protected $format = 0;
  26. /**
  27. * Generated from protobuf field <code>.google.protobuf.Duration ttl = 9;</code>
  28. */
  29. protected $ttl = null;
  30. /**
  31. * Generated from protobuf field <code>bytes entry = 98;</code>
  32. */
  33. protected $entry = '';
  34. /**
  35. * Generated from protobuf field <code>map<string, bytes> attachments = 99;</code>
  36. */
  37. private $attachments;
  38. protected $Payload;
  39. /**
  40. * Constructor.
  41. *
  42. * @param array $data {
  43. * Optional. Data for populating the Message object.
  44. *
  45. * @type string $name
  46. * @type int $style
  47. * @type int $format
  48. * @type \Google\Protobuf\Duration $ttl
  49. * @type \Palm\Lily\V1\Book $book
  50. * @type \Palm\Lily\V1\Article $article
  51. * @type \Palm\Lily\V1\Slideshow $slideshow
  52. * @type string $entry
  53. * @type array|\Google\Protobuf\Internal\MapField $attachments
  54. * }
  55. */
  56. public function __construct($data = NULL) {
  57. \GPBMetadata\Lily::initOnce();
  58. parent::__construct($data);
  59. }
  60. /**
  61. * Generated from protobuf field <code>string name = 1;</code>
  62. * @return string
  63. */
  64. public function getName()
  65. {
  66. return $this->name;
  67. }
  68. /**
  69. * Generated from protobuf field <code>string name = 1;</code>
  70. * @param string $var
  71. * @return $this
  72. */
  73. public function setName($var)
  74. {
  75. GPBUtil::checkString($var, True);
  76. $this->name = $var;
  77. return $this;
  78. }
  79. /**
  80. * Generated from protobuf field <code>.palm.lily.v1.Style style = 2;</code>
  81. * @return int
  82. */
  83. public function getStyle()
  84. {
  85. return $this->style;
  86. }
  87. /**
  88. * Generated from protobuf field <code>.palm.lily.v1.Style style = 2;</code>
  89. * @param int $var
  90. * @return $this
  91. */
  92. public function setStyle($var)
  93. {
  94. GPBUtil::checkEnum($var, \Palm\Lily\V1\Style::class);
  95. $this->style = $var;
  96. return $this;
  97. }
  98. /**
  99. * Generated from protobuf field <code>.palm.lily.v1.TeXLiveTask.Output.Format format = 3;</code>
  100. * @return int
  101. */
  102. public function getFormat()
  103. {
  104. return $this->format;
  105. }
  106. /**
  107. * Generated from protobuf field <code>.palm.lily.v1.TeXLiveTask.Output.Format format = 3;</code>
  108. * @param int $var
  109. * @return $this
  110. */
  111. public function setFormat($var)
  112. {
  113. GPBUtil::checkEnum($var, \Palm\Lily\V1\TeXLiveTask\Output\Format::class);
  114. $this->format = $var;
  115. return $this;
  116. }
  117. /**
  118. * Generated from protobuf field <code>.google.protobuf.Duration ttl = 9;</code>
  119. * @return \Google\Protobuf\Duration|null
  120. */
  121. public function getTtl()
  122. {
  123. return $this->ttl;
  124. }
  125. public function hasTtl()
  126. {
  127. return isset($this->ttl);
  128. }
  129. public function clearTtl()
  130. {
  131. unset($this->ttl);
  132. }
  133. /**
  134. * Generated from protobuf field <code>.google.protobuf.Duration ttl = 9;</code>
  135. * @param \Google\Protobuf\Duration $var
  136. * @return $this
  137. */
  138. public function setTtl($var)
  139. {
  140. GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
  141. $this->ttl = $var;
  142. return $this;
  143. }
  144. /**
  145. * Generated from protobuf field <code>.palm.lily.v1.Book book = 11;</code>
  146. * @return \Palm\Lily\V1\Book|null
  147. */
  148. public function getBook()
  149. {
  150. return $this->readOneof(11);
  151. }
  152. public function hasBook()
  153. {
  154. return $this->hasOneof(11);
  155. }
  156. /**
  157. * Generated from protobuf field <code>.palm.lily.v1.Book book = 11;</code>
  158. * @param \Palm\Lily\V1\Book $var
  159. * @return $this
  160. */
  161. public function setBook($var)
  162. {
  163. GPBUtil::checkMessage($var, \Palm\Lily\V1\Book::class);
  164. $this->writeOneof(11, $var);
  165. return $this;
  166. }
  167. /**
  168. * Generated from protobuf field <code>.palm.lily.v1.Article article = 12;</code>
  169. * @return \Palm\Lily\V1\Article|null
  170. */
  171. public function getArticle()
  172. {
  173. return $this->readOneof(12);
  174. }
  175. public function hasArticle()
  176. {
  177. return $this->hasOneof(12);
  178. }
  179. /**
  180. * Generated from protobuf field <code>.palm.lily.v1.Article article = 12;</code>
  181. * @param \Palm\Lily\V1\Article $var
  182. * @return $this
  183. */
  184. public function setArticle($var)
  185. {
  186. GPBUtil::checkMessage($var, \Palm\Lily\V1\Article::class);
  187. $this->writeOneof(12, $var);
  188. return $this;
  189. }
  190. /**
  191. * Generated from protobuf field <code>.palm.lily.v1.Slideshow slideshow = 13;</code>
  192. * @return \Palm\Lily\V1\Slideshow|null
  193. */
  194. public function getSlideshow()
  195. {
  196. return $this->readOneof(13);
  197. }
  198. public function hasSlideshow()
  199. {
  200. return $this->hasOneof(13);
  201. }
  202. /**
  203. * Generated from protobuf field <code>.palm.lily.v1.Slideshow slideshow = 13;</code>
  204. * @param \Palm\Lily\V1\Slideshow $var
  205. * @return $this
  206. */
  207. public function setSlideshow($var)
  208. {
  209. GPBUtil::checkMessage($var, \Palm\Lily\V1\Slideshow::class);
  210. $this->writeOneof(13, $var);
  211. return $this;
  212. }
  213. /**
  214. * Generated from protobuf field <code>bytes entry = 98;</code>
  215. * @return string
  216. */
  217. public function getEntry()
  218. {
  219. return $this->entry;
  220. }
  221. /**
  222. * Generated from protobuf field <code>bytes entry = 98;</code>
  223. * @param string $var
  224. * @return $this
  225. */
  226. public function setEntry($var)
  227. {
  228. GPBUtil::checkString($var, False);
  229. $this->entry = $var;
  230. return $this;
  231. }
  232. /**
  233. * Generated from protobuf field <code>map<string, bytes> attachments = 99;</code>
  234. * @return \Google\Protobuf\Internal\MapField
  235. */
  236. public function getAttachments()
  237. {
  238. return $this->attachments;
  239. }
  240. /**
  241. * Generated from protobuf field <code>map<string, bytes> attachments = 99;</code>
  242. * @param array|\Google\Protobuf\Internal\MapField $var
  243. * @return $this
  244. */
  245. public function setAttachments($var)
  246. {
  247. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BYTES);
  248. $this->attachments = $arr;
  249. return $this;
  250. }
  251. /**
  252. * @return string
  253. */
  254. public function getPayload()
  255. {
  256. return $this->whichOneof("Payload");
  257. }
  258. }