123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?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");
- }
- }
|