Ydb.Export.ExportToS3Settings
*/
class ExportToS3Settings extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string endpoint = 1 [(.Ydb.required) = true];
*/
protected $endpoint = '';
/**
* HTTPS if not specified
*
* Generated from protobuf field .Ydb.Export.ExportToS3Settings.Scheme scheme = 2;
*/
protected $scheme = 0;
/**
* Generated from protobuf field string bucket = 3 [(.Ydb.required) = true];
*/
protected $bucket = '';
/**
* Generated from protobuf field string access_key = 4 [(.Ydb.required) = true];
*/
protected $access_key = '';
/**
* Generated from protobuf field string secret_key = 5 [(.Ydb.required) = true];
*/
protected $secret_key = '';
/**
* Generated from protobuf field repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {
*/
private $items;
/**
* Generated from protobuf field string description = 7 [(.Ydb.length) = {
*/
protected $description = '';
/**
* Generated from protobuf field uint32 number_of_retries = 8;
*/
protected $number_of_retries = 0;
/**
* Generated from protobuf field .Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;
*/
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 string compression = 10;
*/
protected $compression = '';
/**
* Region to use in requests
*
* Generated from protobuf field string region = 11;
*/
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 string endpoint = 1 [(.Ydb.required) = true];
* @return string
*/
public function getEndpoint()
{
return $this->endpoint;
}
/**
* Generated from protobuf field string endpoint = 1 [(.Ydb.required) = true];
* @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 .Ydb.Export.ExportToS3Settings.Scheme scheme = 2;
* @return int
*/
public function getScheme()
{
return $this->scheme;
}
/**
* HTTPS if not specified
*
* Generated from protobuf field .Ydb.Export.ExportToS3Settings.Scheme scheme = 2;
* @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 string bucket = 3 [(.Ydb.required) = true];
* @return string
*/
public function getBucket()
{
return $this->bucket;
}
/**
* Generated from protobuf field string bucket = 3 [(.Ydb.required) = true];
* @param string $var
* @return $this
*/
public function setBucket($var)
{
GPBUtil::checkString($var, True);
$this->bucket = $var;
return $this;
}
/**
* Generated from protobuf field string access_key = 4 [(.Ydb.required) = true];
* @return string
*/
public function getAccessKey()
{
return $this->access_key;
}
/**
* Generated from protobuf field string access_key = 4 [(.Ydb.required) = true];
* @param string $var
* @return $this
*/
public function setAccessKey($var)
{
GPBUtil::checkString($var, True);
$this->access_key = $var;
return $this;
}
/**
* Generated from protobuf field string secret_key = 5 [(.Ydb.required) = true];
* @return string
*/
public function getSecretKey()
{
return $this->secret_key;
}
/**
* Generated from protobuf field string secret_key = 5 [(.Ydb.required) = true];
* @param string $var
* @return $this
*/
public function setSecretKey($var)
{
GPBUtil::checkString($var, True);
$this->secret_key = $var;
return $this;
}
/**
* Generated from protobuf field repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getItems()
{
return $this->items;
}
/**
* Generated from protobuf field repeated .Ydb.Export.ExportToS3Settings.Item items = 6 [(.Ydb.size) = {
* @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 string description = 7 [(.Ydb.length) = {
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Generated from protobuf field string description = 7 [(.Ydb.length) = {
* @param string $var
* @return $this
*/
public function setDescription($var)
{
GPBUtil::checkString($var, True);
$this->description = $var;
return $this;
}
/**
* Generated from protobuf field uint32 number_of_retries = 8;
* @return int
*/
public function getNumberOfRetries()
{
return $this->number_of_retries;
}
/**
* Generated from protobuf field uint32 number_of_retries = 8;
* @param int $var
* @return $this
*/
public function setNumberOfRetries($var)
{
GPBUtil::checkUint32($var);
$this->number_of_retries = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;
* @return int
*/
public function getStorageClass()
{
return $this->storage_class;
}
/**
* Generated from protobuf field .Ydb.Export.ExportToS3Settings.StorageClass storage_class = 9;
* @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 string compression = 10;
* @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 string compression = 10;
* @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 string region = 11;
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Region to use in requests
*
* Generated from protobuf field string region = 11;
* @param string $var
* @return $this
*/
public function setRegion($var)
{
GPBUtil::checkString($var, True);
$this->region = $var;
return $this;
}
}