123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194 |
- <?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");
- }
- }
|