ImportFromS3Settings.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_import.proto
  4. namespace Ydb\Import;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. *&#47; S3
  10. *
  11. * Generated from protobuf message <code>Ydb.Import.ImportFromS3Settings</code>
  12. */
  13. class ImportFromS3Settings extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
  17. */
  18. protected $endpoint = '';
  19. /**
  20. * HTTPS if not specified
  21. *
  22. * Generated from protobuf field <code>.Ydb.Import.ImportFromS3Settings.Scheme scheme = 2;</code>
  23. */
  24. protected $scheme = 0;
  25. /**
  26. * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
  27. */
  28. protected $bucket = '';
  29. /**
  30. * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
  31. */
  32. protected $access_key = '';
  33. /**
  34. * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
  35. */
  36. protected $secret_key = '';
  37. /**
  38. * Generated from protobuf field <code>repeated .Ydb.Import.ImportFromS3Settings.Item items = 6 [(.Ydb.size) = {</code>
  39. */
  40. private $items;
  41. /**
  42. * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
  43. */
  44. protected $description = '';
  45. /**
  46. * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
  47. */
  48. protected $number_of_retries = 0;
  49. /**
  50. * Constructor.
  51. *
  52. * @param array $data {
  53. * Optional. Data for populating the Message object.
  54. *
  55. * @type string $endpoint
  56. * @type int $scheme
  57. * HTTPS if not specified
  58. * @type string $bucket
  59. * @type string $access_key
  60. * @type string $secret_key
  61. * @type array<\Ydb\Import\ImportFromS3Settings\Item>|\Google\Protobuf\Internal\RepeatedField $items
  62. * @type string $description
  63. * @type int $number_of_retries
  64. * }
  65. */
  66. public function __construct($data = NULL) {
  67. \GPBMetadata\Protos\YdbImport::initOnce();
  68. parent::__construct($data);
  69. }
  70. /**
  71. * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
  72. * @return string
  73. */
  74. public function getEndpoint()
  75. {
  76. return $this->endpoint;
  77. }
  78. /**
  79. * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
  80. * @param string $var
  81. * @return $this
  82. */
  83. public function setEndpoint($var)
  84. {
  85. GPBUtil::checkString($var, True);
  86. $this->endpoint = $var;
  87. return $this;
  88. }
  89. /**
  90. * HTTPS if not specified
  91. *
  92. * Generated from protobuf field <code>.Ydb.Import.ImportFromS3Settings.Scheme scheme = 2;</code>
  93. * @return int
  94. */
  95. public function getScheme()
  96. {
  97. return $this->scheme;
  98. }
  99. /**
  100. * HTTPS if not specified
  101. *
  102. * Generated from protobuf field <code>.Ydb.Import.ImportFromS3Settings.Scheme scheme = 2;</code>
  103. * @param int $var
  104. * @return $this
  105. */
  106. public function setScheme($var)
  107. {
  108. GPBUtil::checkEnum($var, \Ydb\Import\ImportFromS3Settings\Scheme::class);
  109. $this->scheme = $var;
  110. return $this;
  111. }
  112. /**
  113. * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
  114. * @return string
  115. */
  116. public function getBucket()
  117. {
  118. return $this->bucket;
  119. }
  120. /**
  121. * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
  122. * @param string $var
  123. * @return $this
  124. */
  125. public function setBucket($var)
  126. {
  127. GPBUtil::checkString($var, True);
  128. $this->bucket = $var;
  129. return $this;
  130. }
  131. /**
  132. * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
  133. * @return string
  134. */
  135. public function getAccessKey()
  136. {
  137. return $this->access_key;
  138. }
  139. /**
  140. * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
  141. * @param string $var
  142. * @return $this
  143. */
  144. public function setAccessKey($var)
  145. {
  146. GPBUtil::checkString($var, True);
  147. $this->access_key = $var;
  148. return $this;
  149. }
  150. /**
  151. * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
  152. * @return string
  153. */
  154. public function getSecretKey()
  155. {
  156. return $this->secret_key;
  157. }
  158. /**
  159. * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
  160. * @param string $var
  161. * @return $this
  162. */
  163. public function setSecretKey($var)
  164. {
  165. GPBUtil::checkString($var, True);
  166. $this->secret_key = $var;
  167. return $this;
  168. }
  169. /**
  170. * Generated from protobuf field <code>repeated .Ydb.Import.ImportFromS3Settings.Item items = 6 [(.Ydb.size) = {</code>
  171. * @return \Google\Protobuf\Internal\RepeatedField
  172. */
  173. public function getItems()
  174. {
  175. return $this->items;
  176. }
  177. /**
  178. * Generated from protobuf field <code>repeated .Ydb.Import.ImportFromS3Settings.Item items = 6 [(.Ydb.size) = {</code>
  179. * @param array<\Ydb\Import\ImportFromS3Settings\Item>|\Google\Protobuf\Internal\RepeatedField $var
  180. * @return $this
  181. */
  182. public function setItems($var)
  183. {
  184. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Import\ImportFromS3Settings\Item::class);
  185. $this->items = $arr;
  186. return $this;
  187. }
  188. /**
  189. * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
  190. * @return string
  191. */
  192. public function getDescription()
  193. {
  194. return $this->description;
  195. }
  196. /**
  197. * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
  198. * @param string $var
  199. * @return $this
  200. */
  201. public function setDescription($var)
  202. {
  203. GPBUtil::checkString($var, True);
  204. $this->description = $var;
  205. return $this;
  206. }
  207. /**
  208. * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
  209. * @return int
  210. */
  211. public function getNumberOfRetries()
  212. {
  213. return $this->number_of_retries;
  214. }
  215. /**
  216. * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
  217. * @param int $var
  218. * @return $this
  219. */
  220. public function setNumberOfRetries($var)
  221. {
  222. GPBUtil::checkUint32($var);
  223. $this->number_of_retries = $var;
  224. return $this;
  225. }
  226. }