ExportToYtSettings.php 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_export.proto
  4. namespace Ydb\Export;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. *&#47; YT
  10. *
  11. * Generated from protobuf message <code>Ydb.Export.ExportToYtSettings</code>
  12. */
  13. class ExportToYtSettings extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string host = 1 [(.Ydb.required) = true];</code>
  17. */
  18. protected $host = '';
  19. /**
  20. * Generated from protobuf field <code>uint32 port = 2;</code>
  21. */
  22. protected $port = 0;
  23. /**
  24. * Generated from protobuf field <code>string token = 3 [(.Ydb.required) = true];</code>
  25. */
  26. protected $token = '';
  27. /**
  28. * Generated from protobuf field <code>repeated .Ydb.Export.ExportToYtSettings.Item items = 4 [(.Ydb.size) = {</code>
  29. */
  30. private $items;
  31. /**
  32. * Generated from protobuf field <code>string description = 5 [(.Ydb.length) = {</code>
  33. */
  34. protected $description = '';
  35. /**
  36. * Generated from protobuf field <code>uint32 number_of_retries = 6;</code>
  37. */
  38. protected $number_of_retries = 0;
  39. /**
  40. * Generated from protobuf field <code>bool use_type_v3 = 7;</code>
  41. */
  42. protected $use_type_v3 = false;
  43. /**
  44. * Constructor.
  45. *
  46. * @param array $data {
  47. * Optional. Data for populating the Message object.
  48. *
  49. * @type string $host
  50. * @type int $port
  51. * @type string $token
  52. * @type array<\Ydb\Export\ExportToYtSettings\Item>|\Google\Protobuf\Internal\RepeatedField $items
  53. * @type string $description
  54. * @type int $number_of_retries
  55. * @type bool $use_type_v3
  56. * }
  57. */
  58. public function __construct($data = NULL) {
  59. \GPBMetadata\Protos\YdbExport::initOnce();
  60. parent::__construct($data);
  61. }
  62. /**
  63. * Generated from protobuf field <code>string host = 1 [(.Ydb.required) = true];</code>
  64. * @return string
  65. */
  66. public function getHost()
  67. {
  68. return $this->host;
  69. }
  70. /**
  71. * Generated from protobuf field <code>string host = 1 [(.Ydb.required) = true];</code>
  72. * @param string $var
  73. * @return $this
  74. */
  75. public function setHost($var)
  76. {
  77. GPBUtil::checkString($var, True);
  78. $this->host = $var;
  79. return $this;
  80. }
  81. /**
  82. * Generated from protobuf field <code>uint32 port = 2;</code>
  83. * @return int
  84. */
  85. public function getPort()
  86. {
  87. return $this->port;
  88. }
  89. /**
  90. * Generated from protobuf field <code>uint32 port = 2;</code>
  91. * @param int $var
  92. * @return $this
  93. */
  94. public function setPort($var)
  95. {
  96. GPBUtil::checkUint32($var);
  97. $this->port = $var;
  98. return $this;
  99. }
  100. /**
  101. * Generated from protobuf field <code>string token = 3 [(.Ydb.required) = true];</code>
  102. * @return string
  103. */
  104. public function getToken()
  105. {
  106. return $this->token;
  107. }
  108. /**
  109. * Generated from protobuf field <code>string token = 3 [(.Ydb.required) = true];</code>
  110. * @param string $var
  111. * @return $this
  112. */
  113. public function setToken($var)
  114. {
  115. GPBUtil::checkString($var, True);
  116. $this->token = $var;
  117. return $this;
  118. }
  119. /**
  120. * Generated from protobuf field <code>repeated .Ydb.Export.ExportToYtSettings.Item items = 4 [(.Ydb.size) = {</code>
  121. * @return \Google\Protobuf\Internal\RepeatedField
  122. */
  123. public function getItems()
  124. {
  125. return $this->items;
  126. }
  127. /**
  128. * Generated from protobuf field <code>repeated .Ydb.Export.ExportToYtSettings.Item items = 4 [(.Ydb.size) = {</code>
  129. * @param array<\Ydb\Export\ExportToYtSettings\Item>|\Google\Protobuf\Internal\RepeatedField $var
  130. * @return $this
  131. */
  132. public function setItems($var)
  133. {
  134. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Export\ExportToYtSettings\Item::class);
  135. $this->items = $arr;
  136. return $this;
  137. }
  138. /**
  139. * Generated from protobuf field <code>string description = 5 [(.Ydb.length) = {</code>
  140. * @return string
  141. */
  142. public function getDescription()
  143. {
  144. return $this->description;
  145. }
  146. /**
  147. * Generated from protobuf field <code>string description = 5 [(.Ydb.length) = {</code>
  148. * @param string $var
  149. * @return $this
  150. */
  151. public function setDescription($var)
  152. {
  153. GPBUtil::checkString($var, True);
  154. $this->description = $var;
  155. return $this;
  156. }
  157. /**
  158. * Generated from protobuf field <code>uint32 number_of_retries = 6;</code>
  159. * @return int
  160. */
  161. public function getNumberOfRetries()
  162. {
  163. return $this->number_of_retries;
  164. }
  165. /**
  166. * Generated from protobuf field <code>uint32 number_of_retries = 6;</code>
  167. * @param int $var
  168. * @return $this
  169. */
  170. public function setNumberOfRetries($var)
  171. {
  172. GPBUtil::checkUint32($var);
  173. $this->number_of_retries = $var;
  174. return $this;
  175. }
  176. /**
  177. * Generated from protobuf field <code>bool use_type_v3 = 7;</code>
  178. * @return bool
  179. */
  180. public function getUseTypeV3()
  181. {
  182. return $this->use_type_v3;
  183. }
  184. /**
  185. * Generated from protobuf field <code>bool use_type_v3 = 7;</code>
  186. * @param bool $var
  187. * @return $this
  188. */
  189. public function setUseTypeV3($var)
  190. {
  191. GPBUtil::checkBool($var);
  192. $this->use_type_v3 = $var;
  193. return $this;
  194. }
  195. }