Ydb.Import.ImportDataRequest */ class ImportDataRequest extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .Ydb.Operations.OperationParams operation_params = 1; */ protected $operation_params = null; /** * Full path to table * * Generated from protobuf field string path = 2; */ 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 bytes data = 3 [(.Ydb.length) = { */ 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 .Ydb.Operations.OperationParams operation_params = 1; * @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 .Ydb.Operations.OperationParams operation_params = 1; * @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 string path = 2; * @return string */ public function getPath() { return $this->path; } /** * Full path to table * * Generated from protobuf field string path = 2; * @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 bytes data = 3 [(.Ydb.length) = { * @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 bytes data = 3 [(.Ydb.length) = { * @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 .Ydb.Import.YdbDumpFormat ydb_dump = 4; * @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 .Ydb.Import.YdbDumpFormat ydb_dump = 4; * @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"); } }