/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Table/TableIndexDescription.php
260 строк
7 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; /** * Represent secondary index with index state * * Generated from protobuf message <code>Ydb.Table.TableIndexDescription</code> */ class TableIndexDescription extends \Google\Protobuf\Internal\Message { /** * Name of index * * Generated from protobuf field <code>string name = 1;</code> */ protected $name = ''; /** * list of columns * * Generated from protobuf field <code>repeated string index_columns = 2;</code> */ private $index_columns; /** * Generated from protobuf field <code>.Ydb.Table.TableIndexDescription.Status status = 4;</code> */ protected $status = 0; /** * list of columns content to be copied in to index table * * Generated from protobuf field <code>repeated string data_columns = 6;</code> */ private $data_columns; /** * Size of index data in bytes * * Generated from protobuf field <code>uint64 size_bytes = 7;</code> */ protected $size_bytes = 0; protected $type; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Name of index * @type array<string>|\Google\Protobuf\Internal\RepeatedField $index_columns * list of columns * @type \Ydb\Table\GlobalIndex $global_index * @type \Ydb\Table\GlobalAsyncIndex $global_async_index * @type int $status * @type array<string>|\Google\Protobuf\Internal\RepeatedField $data_columns * list of columns content to be copied in to index table * @type int|string $size_bytes * Size of index data in bytes * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Name of index * * Generated from protobuf field <code>string name = 1;</code> * @return string */ public function getName() { return $this->name; } /** * Name of index * * Generated from protobuf field <code>string name = 1;</code> * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * list of columns * * Generated from protobuf field <code>repeated string index_columns = 2;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getIndexColumns() { return $this->index_columns; } /** * list of columns * * Generated from protobuf field <code>repeated string index_columns = 2;</code> * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setIndexColumns($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->index_columns = $arr; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.GlobalIndex global_index = 3;</code> * @return \Ydb\Table\GlobalIndex|null */ public function getGlobalIndex() { return $this->readOneof(3); } public function hasGlobalIndex() { return $this->hasOneof(3); } /** * Generated from protobuf field <code>.Ydb.Table.GlobalIndex global_index = 3;</code> * @param \Ydb\Table\GlobalIndex $var * @return $this */ public function setGlobalIndex($var) { GPBUtil::checkMessage($var, \Ydb\Table\GlobalIndex::class); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field <code>.Ydb.Table.GlobalAsyncIndex global_async_index = 5;</code> * @return \Ydb\Table\GlobalAsyncIndex|null */ public function getGlobalAsyncIndex() { return $this->readOneof(5); } public function hasGlobalAsyncIndex() { return $this->hasOneof(5); } /** * Generated from protobuf field <code>.Ydb.Table.GlobalAsyncIndex global_async_index = 5;</code> * @param \Ydb\Table\GlobalAsyncIndex $var * @return $this */ public function setGlobalAsyncIndex($var) { GPBUtil::checkMessage($var, \Ydb\Table\GlobalAsyncIndex::class); $this->writeOneof(5, $var); return $this; } /** * Generated from protobuf field <code>.Ydb.Table.TableIndexDescription.Status status = 4;</code> * @return int */ public function getStatus() { return $this->status; } /** * Generated from protobuf field <code>.Ydb.Table.TableIndexDescription.Status status = 4;</code> * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Ydb\Table\TableIndexDescription\Status::class); $this->status = $var; return $this; } /** * list of columns content to be copied in to index table * * Generated from protobuf field <code>repeated string data_columns = 6;</code> * @return \Google\Protobuf\Internal\RepeatedField */ public function getDataColumns() { return $this->data_columns; } /** * list of columns content to be copied in to index table * * Generated from protobuf field <code>repeated string data_columns = 6;</code> * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setDataColumns($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->data_columns = $arr; return $this; } /** * Size of index data in bytes * * Generated from protobuf field <code>uint64 size_bytes = 7;</code> * @return int|string */ public function getSizeBytes() { return $this->size_bytes; } /** * Size of index data in bytes * * Generated from protobuf field <code>uint64 size_bytes = 7;</code> * @param int|string $var * @return $this */ public function setSizeBytes($var) { GPBUtil::checkUint64($var); $this->size_bytes = $var; return $this; } /** * @return string */ public function getType() { return $this->whichOneof("type"); } }