/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Table/Query.php
105 строк
2 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?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.Query</code> */ 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 <code>string yql_text = 1;</code> * @return string */ public function getYqlText() { return $this->readOneof(1); } public function hasYqlText() { return $this->hasOneof(1); } /** * SQL program * * Generated from protobuf field <code>string yql_text = 1;</code> * @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 <code>string id = 2;</code> * @return string */ public function getId() { return $this->readOneof(2); } public function hasId() { return $this->hasOneof(2); } /** * Prepared query id * * Generated from protobuf field <code>string id = 2;</code> * @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"); } }