Ydb.Table.ExecuteDataQueryRequest
*/
class ExecuteDataQueryRequest extends \Google\Protobuf\Internal\Message
{
/**
* Session identifier
*
* Generated from protobuf field string session_id = 1;
*/
protected $session_id = '';
/**
* Generated from protobuf field .Ydb.Table.TransactionControl tx_control = 2;
*/
protected $tx_control = null;
/**
* Generated from protobuf field .Ydb.Table.Query query = 3;
*/
protected $query = null;
/**
* Map of query parameters (optional)
*
* Generated from protobuf field map parameters = 4;
*/
private $parameters;
/**
* Generated from protobuf field .Ydb.Table.QueryCachePolicy query_cache_policy = 5;
*/
protected $query_cache_policy = null;
/**
* Generated from protobuf field .Ydb.Operations.OperationParams operation_params = 6;
*/
protected $operation_params = null;
/**
* Generated from protobuf field .Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;
*/
protected $collect_stats = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $session_id
* Session identifier
* @type \Ydb\Table\TransactionControl $tx_control
* @type \Ydb\Table\Query $query
* @type array|\Google\Protobuf\Internal\MapField $parameters
* Map of query parameters (optional)
* @type \Ydb\Table\QueryCachePolicy $query_cache_policy
* @type \Ydb\Operations\OperationParams $operation_params
* @type int $collect_stats
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbTable::initOnce();
parent::__construct($data);
}
/**
* Session identifier
*
* Generated from protobuf field string session_id = 1;
* @return string
*/
public function getSessionId()
{
return $this->session_id;
}
/**
* Session identifier
*
* Generated from protobuf field string session_id = 1;
* @param string $var
* @return $this
*/
public function setSessionId($var)
{
GPBUtil::checkString($var, True);
$this->session_id = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.TransactionControl tx_control = 2;
* @return \Ydb\Table\TransactionControl|null
*/
public function getTxControl()
{
return $this->tx_control;
}
public function hasTxControl()
{
return isset($this->tx_control);
}
public function clearTxControl()
{
unset($this->tx_control);
}
/**
* Generated from protobuf field .Ydb.Table.TransactionControl tx_control = 2;
* @param \Ydb\Table\TransactionControl $var
* @return $this
*/
public function setTxControl($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\TransactionControl::class);
$this->tx_control = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.Query query = 3;
* @return \Ydb\Table\Query|null
*/
public function getQuery()
{
return $this->query;
}
public function hasQuery()
{
return isset($this->query);
}
public function clearQuery()
{
unset($this->query);
}
/**
* Generated from protobuf field .Ydb.Table.Query query = 3;
* @param \Ydb\Table\Query $var
* @return $this
*/
public function setQuery($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\Query::class);
$this->query = $var;
return $this;
}
/**
* Map of query parameters (optional)
*
* Generated from protobuf field map parameters = 4;
* @return \Google\Protobuf\Internal\MapField
*/
public function getParameters()
{
return $this->parameters;
}
/**
* Map of query parameters (optional)
*
* Generated from protobuf field map parameters = 4;
* @param array|\Google\Protobuf\Internal\MapField $var
* @return $this
*/
public function setParameters($var)
{
$arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
$this->parameters = $arr;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.QueryCachePolicy query_cache_policy = 5;
* @return \Ydb\Table\QueryCachePolicy|null
*/
public function getQueryCachePolicy()
{
return $this->query_cache_policy;
}
public function hasQueryCachePolicy()
{
return isset($this->query_cache_policy);
}
public function clearQueryCachePolicy()
{
unset($this->query_cache_policy);
}
/**
* Generated from protobuf field .Ydb.Table.QueryCachePolicy query_cache_policy = 5;
* @param \Ydb\Table\QueryCachePolicy $var
* @return $this
*/
public function setQueryCachePolicy($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\QueryCachePolicy::class);
$this->query_cache_policy = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Operations.OperationParams operation_params = 6;
* @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 = 6;
* @param \Ydb\Operations\OperationParams $var
* @return $this
*/
public function setOperationParams($var)
{
GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
$this->operation_params = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;
* @return int
*/
public function getCollectStats()
{
return $this->collect_stats;
}
/**
* Generated from protobuf field .Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;
* @param int $var
* @return $this
*/
public function setCollectStats($var)
{
GPBUtil::checkEnum($var, \Ydb\Table\QueryStatsCollection\Mode::class);
$this->collect_stats = $var;
return $this;
}
}