123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_export.proto
- namespace Ydb\Export;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- */ S3
- *
- * Generated from protobuf message <code>Ydb.Export.ExportToS3Settings</code>
- */
- class ExportToS3Settings extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
- */
- protected $endpoint = '';
- /**
- * HTTPS if not specified
- *
- * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.Scheme scheme = 2;</code>
- */
- protected $scheme = 0;
- /**
- * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
- */
- protected $bucket = '';
- /**
- * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
- */
- protected $access_key = '';
- /**
- * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
- */
- protected $secret_key = '';
- /**
- * Generated from protobuf field <code>repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {</code>
- */
- private $items;
- /**
- * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
- */
- protected $description = '';
- /**
- * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
- */
- protected $number_of_retries = 0;
- /**
- * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;</code>
- */
- protected $storage_class = 0;
- /**
- * Codec used to compress data. Codecs are available:
- * - zstd.
- * - zstd-N, where N is compression level, e.g. zstd-3.
- *
- * Generated from protobuf field <code>string compression = 10;</code>
- */
- protected $compression = '';
- /**
- * Region to use in requests
- *
- * Generated from protobuf field <code>string region = 11;</code>
- */
- protected $region = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $endpoint
- * @type int $scheme
- * HTTPS if not specified
- * @type string $bucket
- * @type string $access_key
- * @type string $secret_key
- * @type array<\Ydb\Export\ExportToS3Settings\Item>|\Google\Protobuf\Internal\RepeatedField $items
- * @type string $description
- * @type int $number_of_retries
- * @type int $storage_class
- * @type string $compression
- * Codec used to compress data. Codecs are available:
- * - zstd.
- * - zstd-N, where N is compression level, e.g. zstd-3.
- * @type string $region
- * Region to use in requests
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbExport::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
- * @return string
- */
- public function getEndpoint()
- {
- return $this->endpoint;
- }
- /**
- * Generated from protobuf field <code>string endpoint = 1 [(.Ydb.required) = true];</code>
- * @param string $var
- * @return $this
- */
- public function setEndpoint($var)
- {
- GPBUtil::checkString($var, True);
- $this->endpoint = $var;
- return $this;
- }
- /**
- * HTTPS if not specified
- *
- * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.Scheme scheme = 2;</code>
- * @return int
- */
- public function getScheme()
- {
- return $this->scheme;
- }
- /**
- * HTTPS if not specified
- *
- * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.Scheme scheme = 2;</code>
- * @param int $var
- * @return $this
- */
- public function setScheme($var)
- {
- GPBUtil::checkEnum($var, \Ydb\Export\ExportToS3Settings\Scheme::class);
- $this->scheme = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
- * @return string
- */
- public function getBucket()
- {
- return $this->bucket;
- }
- /**
- * Generated from protobuf field <code>string bucket = 3 [(.Ydb.required) = true];</code>
- * @param string $var
- * @return $this
- */
- public function setBucket($var)
- {
- GPBUtil::checkString($var, True);
- $this->bucket = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
- * @return string
- */
- public function getAccessKey()
- {
- return $this->access_key;
- }
- /**
- * Generated from protobuf field <code>string access_key = 4 [(.Ydb.required) = true];</code>
- * @param string $var
- * @return $this
- */
- public function setAccessKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->access_key = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
- * @return string
- */
- public function getSecretKey()
- {
- return $this->secret_key;
- }
- /**
- * Generated from protobuf field <code>string secret_key = 5 [(.Ydb.required) = true];</code>
- * @param string $var
- * @return $this
- */
- public function setSecretKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->secret_key = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getItems()
- {
- return $this->items;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {</code>
- * @param array<\Ydb\Export\ExportToS3Settings\Item>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setItems($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Export\ExportToS3Settings\Item::class);
- $this->items = $arr;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * Generated from protobuf field <code>string description = 7 [(.Ydb.length) = {</code>
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
- * @return int
- */
- public function getNumberOfRetries()
- {
- return $this->number_of_retries;
- }
- /**
- * Generated from protobuf field <code>uint32 number_of_retries = 8;</code>
- * @param int $var
- * @return $this
- */
- public function setNumberOfRetries($var)
- {
- GPBUtil::checkUint32($var);
- $this->number_of_retries = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;</code>
- * @return int
- */
- public function getStorageClass()
- {
- return $this->storage_class;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;</code>
- * @param int $var
- * @return $this
- */
- public function setStorageClass($var)
- {
- GPBUtil::checkEnum($var, \Ydb\Export\ExportToS3Settings\StorageClass::class);
- $this->storage_class = $var;
- return $this;
- }
- /**
- * Codec used to compress data. Codecs are available:
- * - zstd.
- * - zstd-N, where N is compression level, e.g. zstd-3.
- *
- * Generated from protobuf field <code>string compression = 10;</code>
- * @return string
- */
- public function getCompression()
- {
- return $this->compression;
- }
- /**
- * Codec used to compress data. Codecs are available:
- * - zstd.
- * - zstd-N, where N is compression level, e.g. zstd-3.
- *
- * Generated from protobuf field <code>string compression = 10;</code>
- * @param string $var
- * @return $this
- */
- public function setCompression($var)
- {
- GPBUtil::checkString($var, True);
- $this->compression = $var;
- return $this;
- }
- /**
- * Region to use in requests
- *
- * Generated from protobuf field <code>string region = 11;</code>
- * @return string
- */
- public function getRegion()
- {
- return $this->region;
- }
- /**
- * Region to use in requests
- *
- * Generated from protobuf field <code>string region = 11;</code>
- * @param string $var
- * @return $this
- */
- public function setRegion($var)
- {
- GPBUtil::checkString($var, True);
- $this->region = $var;
- return $this;
- }
- }
|