Ydb.Table.IndexBuildDescription
*/
class IndexBuildDescription extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string path = 1;
*/
protected $path = '';
/**
* Generated from protobuf field .Ydb.Table.TableIndex index = 2;
*/
protected $index = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $path
* @type \Ydb\Table\TableIndex $index
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbTable::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string path = 1;
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Generated from protobuf field string path = 1;
* @param string $var
* @return $this
*/
public function setPath($var)
{
GPBUtil::checkString($var, True);
$this->path = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.TableIndex index = 2;
* @return \Ydb\Table\TableIndex|null
*/
public function getIndex()
{
return $this->index;
}
public function hasIndex()
{
return isset($this->index);
}
public function clearIndex()
{
unset($this->index);
}
/**
* Generated from protobuf field .Ydb.Table.TableIndex index = 2;
* @param \Ydb\Table\TableIndex $var
* @return $this
*/
public function setIndex($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\TableIndex::class);
$this->index = $var;
return $this;
}
}