ExportToS3Settings.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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; S3
  10. *
  11. * Generated from protobuf message <code>Ydb.Export.ExportToS3Settings</code>
  12. */
  13. class ExportToS3Settings 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.Export.ExportToS3Settings.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.Export.ExportToS3Settings.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. * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;</code>
  51. */
  52. protected $storage_class = 0;
  53. /**
  54. * Codec used to compress data. Codecs are available:
  55. * - zstd.
  56. * - zstd-N, where N is compression level, e.g. zstd-3.
  57. *
  58. * Generated from protobuf field <code>string compression = 10;</code>
  59. */
  60. protected $compression = '';
  61. /**
  62. * Region to use in requests
  63. *
  64. * Generated from protobuf field <code>string region = 11;</code>
  65. */
  66. protected $region = '';
  67. /**
  68. * Constructor.
  69. *
  70. * @param array $data {
  71. * Optional. Data for populating the Message object.
  72. *
  73. * @type string $endpoint
  74. * @type int $scheme
  75. * HTTPS if not specified
  76. * @type string $bucket
  77. * @type string $access_key
  78. * @type string $secret_key
  79. * @type array<\Ydb\Export\ExportToS3Settings\Item>|\Google\Protobuf\Internal\RepeatedField $items
  80. * @type string $description
  81. * @type int $number_of_retries
  82. * @type int $storage_class
  83. * @type string $compression
  84. * Codec used to compress data. Codecs are available:
  85. * - zstd.
  86. * - zstd-N, where N is compression level, e.g. zstd-3.
  87. * @type string $region
  88. * Region to use in requests
  89. * }
  90. */
  91. public function __construct($data = NULL) {
  92. \GPBMetadata\Protos\YdbExport::initOnce();
  93. parent::__construct($data);
  94. }
  95. /**
  96. * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
  97. * @return string
  98. */
  99. public function getEndpoint()
  100. {
  101. return $this->endpoint;
  102. }
  103. /**
  104. * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
  105. * @param string $var
  106. * @return $this
  107. */
  108. public function setEndpoint($var)
  109. {
  110. GPBUtil::checkString($var, True);
  111. $this->endpoint = $var;
  112. return $this;
  113. }
  114. /**
  115. * HTTPS if not specified
  116. *
  117. * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.Scheme scheme = 2;</code>
  118. * @return int
  119. */
  120. public function getScheme()
  121. {
  122. return $this->scheme;
  123. }
  124. /**
  125. * HTTPS if not specified
  126. *
  127. * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.Scheme scheme = 2;</code>
  128. * @param int $var
  129. * @return $this
  130. */
  131. public function setScheme($var)
  132. {
  133. GPBUtil::checkEnum($var, \Ydb\Export\ExportToS3Settings\Scheme::class);
  134. $this->scheme = $var;
  135. return $this;
  136. }
  137. /**
  138. * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
  139. * @return string
  140. */
  141. public function getBucket()
  142. {
  143. return $this->bucket;
  144. }
  145. /**
  146. * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
  147. * @param string $var
  148. * @return $this
  149. */
  150. public function setBucket($var)
  151. {
  152. GPBUtil::checkString($var, True);
  153. $this->bucket = $var;
  154. return $this;
  155. }
  156. /**
  157. * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
  158. * @return string
  159. */
  160. public function getAccessKey()
  161. {
  162. return $this->access_key;
  163. }
  164. /**
  165. * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
  166. * @param string $var
  167. * @return $this
  168. */
  169. public function setAccessKey($var)
  170. {
  171. GPBUtil::checkString($var, True);
  172. $this->access_key = $var;
  173. return $this;
  174. }
  175. /**
  176. * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
  177. * @return string
  178. */
  179. public function getSecretKey()
  180. {
  181. return $this->secret_key;
  182. }
  183. /**
  184. * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
  185. * @param string $var
  186. * @return $this
  187. */
  188. public function setSecretKey($var)
  189. {
  190. GPBUtil::checkString($var, True);
  191. $this->secret_key = $var;
  192. return $this;
  193. }
  194. /**
  195. * Generated from protobuf field <code>repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {</code>
  196. * @return \Google\Protobuf\Internal\RepeatedField
  197. */
  198. public function getItems()
  199. {
  200. return $this->items;
  201. }
  202. /**
  203. * Generated from protobuf field <code>repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {</code>
  204. * @param array<\Ydb\Export\ExportToS3Settings\Item>|\Google\Protobuf\Internal\RepeatedField $var
  205. * @return $this
  206. */
  207. public function setItems($var)
  208. {
  209. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Export\ExportToS3Settings\Item::class);
  210. $this->items = $arr;
  211. return $this;
  212. }
  213. /**
  214. * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
  215. * @return string
  216. */
  217. public function getDescription()
  218. {
  219. return $this->description;
  220. }
  221. /**
  222. * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
  223. * @param string $var
  224. * @return $this
  225. */
  226. public function setDescription($var)
  227. {
  228. GPBUtil::checkString($var, True);
  229. $this->description = $var;
  230. return $this;
  231. }
  232. /**
  233. * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
  234. * @return int
  235. */
  236. public function getNumberOfRetries()
  237. {
  238. return $this->number_of_retries;
  239. }
  240. /**
  241. * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
  242. * @param int $var
  243. * @return $this
  244. */
  245. public function setNumberOfRetries($var)
  246. {
  247. GPBUtil::checkUint32($var);
  248. $this->number_of_retries = $var;
  249. return $this;
  250. }
  251. /**
  252. * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;</code>
  253. * @return int
  254. */
  255. public function getStorageClass()
  256. {
  257. return $this->storage_class;
  258. }
  259. /**
  260. * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;</code>
  261. * @param int $var
  262. * @return $this
  263. */
  264. public function setStorageClass($var)
  265. {
  266. GPBUtil::checkEnum($var, \Ydb\Export\ExportToS3Settings\StorageClass::class);
  267. $this->storage_class = $var;
  268. return $this;
  269. }
  270. /**
  271. * Codec used to compress data. Codecs are available:
  272. * - zstd.
  273. * - zstd-N, where N is compression level, e.g. zstd-3.
  274. *
  275. * Generated from protobuf field <code>string compression = 10;</code>
  276. * @return string
  277. */
  278. public function getCompression()
  279. {
  280. return $this->compression;
  281. }
  282. /**
  283. * Codec used to compress data. Codecs are available:
  284. * - zstd.
  285. * - zstd-N, where N is compression level, e.g. zstd-3.
  286. *
  287. * Generated from protobuf field <code>string compression = 10;</code>
  288. * @param string $var
  289. * @return $this
  290. */
  291. public function setCompression($var)
  292. {
  293. GPBUtil::checkString($var, True);
  294. $this->compression = $var;
  295. return $this;
  296. }
  297. /**
  298. * Region to use in requests
  299. *
  300. * Generated from protobuf field <code>string region = 11;</code>
  301. * @return string
  302. */
  303. public function getRegion()
  304. {
  305. return $this->region;
  306. }
  307. /**
  308. * Region to use in requests
  309. *
  310. * Generated from protobuf field <code>string region = 11;</code>
  311. * @param string $var
  312. * @return $this
  313. */
  314. public function setRegion($var)
  315. {
  316. GPBUtil::checkString($var, True);
  317. $this->region = $var;
  318. return $this;
  319. }
  320. }