Ydb.Table.Query */ class Query extends \Google\Protobuf\Internal\Message { protected $query; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $yql_text * SQL program * @type string $id * Prepared query id * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * SQL program * * Generated from protobuf field string yql_text = 1; * @return string */ public function getYqlText() { return $this->readOneof(1); } public function hasYqlText() { return $this->hasOneof(1); } /** * SQL program * * Generated from protobuf field string yql_text = 1; * @param string $var * @return $this */ public function setYqlText($var) { GPBUtil::checkString($var, True); $this->writeOneof(1, $var); return $this; } /** * Prepared query id * * Generated from protobuf field string id = 2; * @return string */ public function getId() { return $this->readOneof(2); } public function hasId() { return $this->hasOneof(2); } /** * Prepared query id * * Generated from protobuf field string id = 2; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getQuery() { return $this->whichOneof("query"); } }