1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_scripting.proto
- namespace Ydb\Scripting;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Scripting.ExecuteYqlResult</code>
- */
- class ExecuteYqlResult extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>repeated .Ydb.ResultSet result_sets = 1;</code>
- */
- private $result_sets;
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 2;</code>
- */
- protected $query_stats = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Ydb\ResultSet>|\Google\Protobuf\Internal\RepeatedField $result_sets
- * @type \Ydb\TableStats\QueryStats $query_stats
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbScripting::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.ResultSet result_sets = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getResultSets()
- {
- return $this->result_sets;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.ResultSet result_sets = 1;</code>
- * @param array<\Ydb\ResultSet>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setResultSets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\ResultSet::class);
- $this->result_sets = $arr;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 2;</code>
- * @return \Ydb\TableStats\QueryStats|null
- */
- public function getQueryStats()
- {
- return $this->query_stats;
- }
- public function hasQueryStats()
- {
- return isset($this->query_stats);
- }
- public function clearQueryStats()
- {
- unset($this->query_stats);
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.QueryStats query_stats = 2;</code>
- * @param \Ydb\TableStats\QueryStats $var
- * @return $this
- */
- public function setQueryStats($var)
- {
- GPBUtil::checkMessage($var, \Ydb\TableStats\QueryStats::class);
- $this->query_stats = $var;
- return $this;
- }
- }
|