TexToRequest.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: lily.proto
  4. namespace Palm\Lily\V1;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>palm.lily.v1.TexToRequest</code>
  10. */
  11. class TexToRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string title = 1;</code>
  15. */
  16. protected $title = '';
  17. /**
  18. * Generated from protobuf field <code>map<string, bytes> files = 2;</code>
  19. */
  20. private $files;
  21. /**
  22. * Generated from protobuf field <code>optional .google.protobuf.Duration ttl = 7;</code>
  23. */
  24. protected $ttl = null;
  25. /**
  26. * Generated from protobuf field <code>optional string owner = 8;</code>
  27. */
  28. protected $owner = null;
  29. /**
  30. * Generated from protobuf field <code>bool published = 9;</code>
  31. */
  32. protected $published = false;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type string $title
  40. * @type array|\Google\Protobuf\Internal\MapField $files
  41. * @type \Google\Protobuf\Duration $ttl
  42. * @type string $owner
  43. * @type bool $published
  44. * }
  45. */
  46. public function __construct($data = NULL) {
  47. \GPBMetadata\Lily::initOnce();
  48. parent::__construct($data);
  49. }
  50. /**
  51. * Generated from protobuf field <code>string title = 1;</code>
  52. * @return string
  53. */
  54. public function getTitle()
  55. {
  56. return $this->title;
  57. }
  58. /**
  59. * Generated from protobuf field <code>string title = 1;</code>
  60. * @param string $var
  61. * @return $this
  62. */
  63. public function setTitle($var)
  64. {
  65. GPBUtil::checkString($var, True);
  66. $this->title = $var;
  67. return $this;
  68. }
  69. /**
  70. * Generated from protobuf field <code>map<string, bytes> files = 2;</code>
  71. * @return \Google\Protobuf\Internal\MapField
  72. */
  73. public function getFiles()
  74. {
  75. return $this->files;
  76. }
  77. /**
  78. * Generated from protobuf field <code>map<string, bytes> files = 2;</code>
  79. * @param array|\Google\Protobuf\Internal\MapField $var
  80. * @return $this
  81. */
  82. public function setFiles($var)
  83. {
  84. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BYTES);
  85. $this->files = $arr;
  86. return $this;
  87. }
  88. /**
  89. * Generated from protobuf field <code>optional .google.protobuf.Duration ttl = 7;</code>
  90. * @return \Google\Protobuf\Duration|null
  91. */
  92. public function getTtl()
  93. {
  94. return $this->ttl;
  95. }
  96. public function hasTtl()
  97. {
  98. return isset($this->ttl);
  99. }
  100. public function clearTtl()
  101. {
  102. unset($this->ttl);
  103. }
  104. /**
  105. * Generated from protobuf field <code>optional .google.protobuf.Duration ttl = 7;</code>
  106. * @param \Google\Protobuf\Duration $var
  107. * @return $this
  108. */
  109. public function setTtl($var)
  110. {
  111. GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
  112. $this->ttl = $var;
  113. return $this;
  114. }
  115. /**
  116. * Generated from protobuf field <code>optional string owner = 8;</code>
  117. * @return string
  118. */
  119. public function getOwner()
  120. {
  121. return isset($this->owner) ? $this->owner : '';
  122. }
  123. public function hasOwner()
  124. {
  125. return isset($this->owner);
  126. }
  127. public function clearOwner()
  128. {
  129. unset($this->owner);
  130. }
  131. /**
  132. * Generated from protobuf field <code>optional string owner = 8;</code>
  133. * @param string $var
  134. * @return $this
  135. */
  136. public function setOwner($var)
  137. {
  138. GPBUtil::checkString($var, True);
  139. $this->owner = $var;
  140. return $this;
  141. }
  142. /**
  143. * Generated from protobuf field <code>bool published = 9;</code>
  144. * @return bool
  145. */
  146. public function getPublished()
  147. {
  148. return $this->published;
  149. }
  150. /**
  151. * Generated from protobuf field <code>bool published = 9;</code>
  152. * @param bool $var
  153. * @return $this
  154. */
  155. public function setPublished($var)
  156. {
  157. GPBUtil::checkBool($var);
  158. $this->published = $var;
  159. return $this;
  160. }
  161. }