/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Import/ImportDataRequest.php
193 строки
5 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: protos/ydb_import.proto namespace Ydb\Import; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Generated from protobuf message <code>Ydb.Import.ImportDataRequest</code> */ class ImportDataRequest extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code> */ protected $operation_params = null; /** * Full path to table * * Generated from protobuf field <code>string path = 2;</code> */ protected $path = ''; /** * Data serialized in the selected format. Restrictions: * - sorted by primary key; * - all keys must be from the same partition; * - table has no global secondary indexes; * - size of serialized data is limited to 8 MB. * * Generated from protobuf field <code>bytes data = 3 [(.Ydb.length) = {</code> */ protected $data = ''; protected $format; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Ydb\Operations\OperationParams $operation_params * @type string $path * Full path to table * @type string $data * Data serialized in the selected format. Restrictions: * - sorted by primary key; * - all keys must be from the same partition; * - table has no global secondary indexes; * - size of serialized data is limited to 8 MB. * @type \Ydb\Import\YdbDumpFormat $ydb_dump * Result of `ydb tools dump` * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbImport::initOnce(); parent::__construct($data); } /** * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code> * @return \Ydb\Operations\OperationParams|null */ public function getOperationParams() { return $this->operation_params; } public function hasOperationParams() { return isset($this->operation_params); } public function clearOperationParams() { unset($this->operation_params); } /** * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code> * @param \Ydb\Operations\OperationParams $var * @return $this */ public function setOperationParams($var) { GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class); $this->operation_params = $var; return $this; } /** * Full path to table * * Generated from protobuf field <code>string path = 2;</code> * @return string */ public function getPath() { return $this->path; } /** * Full path to table * * Generated from protobuf field <code>string path = 2;</code> * @param string $var * @return $this */ public function setPath($var) { GPBUtil::checkString($var, True); $this->path = $var; return $this; } /** * Data serialized in the selected format. Restrictions: * - sorted by primary key; * - all keys must be from the same partition; * - table has no global secondary indexes; * - size of serialized data is limited to 8 MB. * * Generated from protobuf field <code>bytes data = 3 [(.Ydb.length) = {</code> * @return string */ public function getData() { return $this->data; } /** * Data serialized in the selected format. Restrictions: * - sorted by primary key; * - all keys must be from the same partition; * - table has no global secondary indexes; * - size of serialized data is limited to 8 MB. * * Generated from protobuf field <code>bytes data = 3 [(.Ydb.length) = {</code> * @param string $var * @return $this */ public function setData($var) { GPBUtil::checkString($var, False); $this->data = $var; return $this; } /** * Result of `ydb tools dump` * * Generated from protobuf field <code>.Ydb.Import.YdbDumpFormat ydb_dump = 4;</code> * @return \Ydb\Import\YdbDumpFormat|null */ public function getYdbDump() { return $this->readOneof(4); } public function hasYdbDump() { return $this->hasOneof(4); } /** * Result of `ydb tools dump` * * Generated from protobuf field <code>.Ydb.Import.YdbDumpFormat ydb_dump = 4;</code> * @param \Ydb\Import\YdbDumpFormat $var * @return $this */ public function setYdbDump($var) { GPBUtil::checkMessage($var, \Ydb\Import\YdbDumpFormat::class); $this->writeOneof(4, $var); return $this; } /** * @return string */ public function getFormat() { return $this->whichOneof("format"); } }