123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Table.ExecuteDataQueryRequest</code>
- */
- class ExecuteDataQueryRequest extends \Google\Protobuf\Internal\Message
- {
- /**
- * Session identifier
- *
- * Generated from protobuf field <code>string session_id = 1;</code>
- */
- protected $session_id = '';
- /**
- * Generated from protobuf field <code>.Ydb.Table.TransactionControl tx_control = 2;</code>
- */
- protected $tx_control = null;
- /**
- * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
- */
- protected $query = null;
- /**
- * Map of query parameters (optional)
- *
- * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
- */
- private $parameters;
- /**
- * Generated from protobuf field <code>.Ydb.Table.QueryCachePolicy query_cache_policy = 5;</code>
- */
- protected $query_cache_policy = null;
- /**
- * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 6;</code>
- */
- protected $operation_params = null;
- /**
- * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;</code>
- */
- 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 <code>string session_id = 1;</code>
- * @return string
- */
- public function getSessionId()
- {
- return $this->session_id;
- }
- /**
- * Session identifier
- *
- * Generated from protobuf field <code>string session_id = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setSessionId($var)
- {
- GPBUtil::checkString($var, True);
- $this->session_id = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Table.TransactionControl tx_control = 2;</code>
- * @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 <code>.Ydb.Table.TransactionControl tx_control = 2;</code>
- * @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 <code>.Ydb.Table.Query query = 3;</code>
- * @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 <code>.Ydb.Table.Query query = 3;</code>
- * @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 <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getParameters()
- {
- return $this->parameters;
- }
- /**
- * Map of query parameters (optional)
- *
- * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
- * @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 <code>.Ydb.Table.QueryCachePolicy query_cache_policy = 5;</code>
- * @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 <code>.Ydb.Table.QueryCachePolicy query_cache_policy = 5;</code>
- * @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 <code>.Ydb.Operations.OperationParams operation_params = 6;</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 = 6;</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;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;</code>
- * @return int
- */
- public function getCollectStats()
- {
- return $this->collect_stats;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 7;</code>
- * @param int $var
- * @return $this
- */
- public function setCollectStats($var)
- {
- GPBUtil::checkEnum($var, \Ydb\Table\QueryStatsCollection\Mode::class);
- $this->collect_stats = $var;
- return $this;
- }
- }
|