123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567 |
- <?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.DescribeTableResult</code>
- */
- class DescribeTableResult extends \Google\Protobuf\Internal\Message
- {
- /**
- * Description of scheme object
- *
- * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
- */
- protected $self = null;
- /**
- * List of columns
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta columns = 2;</code>
- */
- private $columns;
- /**
- * List of primary key columns
- *
- * Generated from protobuf field <code>repeated string primary_key = 3;</code>
- */
- private $primary_key;
- /**
- * List of key ranges for shard
- *
- * Generated from protobuf field <code>repeated .Ydb.TypedValue shard_key_bounds = 4;</code>
- */
- private $shard_key_bounds;
- /**
- * List of indexes
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.TableIndexDescription indexes = 5;</code>
- */
- private $indexes;
- /**
- * Statistics of table
- *
- * Generated from protobuf field <code>.Ydb.Table.TableStats table_stats = 6;</code>
- */
- protected $table_stats = null;
- /**
- * TTL params
- *
- * Generated from protobuf field <code>.Ydb.Table.TtlSettings ttl_settings = 7;</code>
- */
- protected $ttl_settings = null;
- /**
- * Storage settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.StorageSettings storage_settings = 8;</code>
- */
- protected $storage_settings = null;
- /**
- * Column families
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily column_families = 9;</code>
- */
- private $column_families;
- /**
- * Attributes
- *
- * Generated from protobuf field <code>map<string, string> attributes = 10;</code>
- */
- private $attributes;
- /**
- * Partitioning settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings partitioning_settings = 12;</code>
- */
- protected $partitioning_settings = null;
- /**
- * Bloom filter by key
- *
- * Generated from protobuf field <code>.Ydb.FeatureFlag.Status key_bloom_filter = 13;</code>
- */
- protected $key_bloom_filter = 0;
- /**
- * Read replicas settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings read_replicas_settings = 14;</code>
- */
- protected $read_replicas_settings = null;
- /**
- * List of changefeeds
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ChangefeedDescription changefeeds = 15;</code>
- */
- private $changefeeds;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Ydb\Scheme\Entry $self
- * Description of scheme object
- * @type array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $columns
- * List of columns
- * @type array<string>|\Google\Protobuf\Internal\RepeatedField $primary_key
- * List of primary key columns
- * @type array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $shard_key_bounds
- * List of key ranges for shard
- * @type array<\Ydb\Table\TableIndexDescription>|\Google\Protobuf\Internal\RepeatedField $indexes
- * List of indexes
- * @type \Ydb\Table\TableStats $table_stats
- * Statistics of table
- * @type \Ydb\Table\TtlSettings $ttl_settings
- * TTL params
- * @type \Ydb\Table\StorageSettings $storage_settings
- * Storage settings for table
- * @type array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $column_families
- * Column families
- * @type array|\Google\Protobuf\Internal\MapField $attributes
- * Attributes
- * @type \Ydb\Table\PartitioningSettings $partitioning_settings
- * Partitioning settings for table
- * @type int $key_bloom_filter
- * Bloom filter by key
- * @type \Ydb\Table\ReadReplicasSettings $read_replicas_settings
- * Read replicas settings for table
- * @type array<\Ydb\Table\ChangefeedDescription>|\Google\Protobuf\Internal\RepeatedField $changefeeds
- * List of changefeeds
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTable::initOnce();
- parent::__construct($data);
- }
- /**
- * Description of scheme object
- *
- * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
- * @return \Ydb\Scheme\Entry|null
- */
- public function getSelf()
- {
- return $this->self;
- }
- public function hasSelf()
- {
- return isset($this->self);
- }
- public function clearSelf()
- {
- unset($this->self);
- }
- /**
- * Description of scheme object
- *
- * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
- * @param \Ydb\Scheme\Entry $var
- * @return $this
- */
- public function setSelf($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Scheme\Entry::class);
- $this->self = $var;
- return $this;
- }
- /**
- * List of columns
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta columns = 2;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getColumns()
- {
- return $this->columns;
- }
- /**
- * List of columns
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta columns = 2;</code>
- * @param array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setColumns($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnMeta::class);
- $this->columns = $arr;
- return $this;
- }
- /**
- * List of primary key columns
- *
- * Generated from protobuf field <code>repeated string primary_key = 3;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPrimaryKey()
- {
- return $this->primary_key;
- }
- /**
- * List of primary key columns
- *
- * Generated from protobuf field <code>repeated string primary_key = 3;</code>
- * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPrimaryKey($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->primary_key = $arr;
- return $this;
- }
- /**
- * List of key ranges for shard
- *
- * Generated from protobuf field <code>repeated .Ydb.TypedValue shard_key_bounds = 4;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getShardKeyBounds()
- {
- return $this->shard_key_bounds;
- }
- /**
- * List of key ranges for shard
- *
- * Generated from protobuf field <code>repeated .Ydb.TypedValue shard_key_bounds = 4;</code>
- * @param array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setShardKeyBounds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
- $this->shard_key_bounds = $arr;
- return $this;
- }
- /**
- * List of indexes
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.TableIndexDescription indexes = 5;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIndexes()
- {
- return $this->indexes;
- }
- /**
- * List of indexes
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.TableIndexDescription indexes = 5;</code>
- * @param array<\Ydb\Table\TableIndexDescription>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIndexes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\TableIndexDescription::class);
- $this->indexes = $arr;
- return $this;
- }
- /**
- * Statistics of table
- *
- * Generated from protobuf field <code>.Ydb.Table.TableStats table_stats = 6;</code>
- * @return \Ydb\Table\TableStats|null
- */
- public function getTableStats()
- {
- return $this->table_stats;
- }
- public function hasTableStats()
- {
- return isset($this->table_stats);
- }
- public function clearTableStats()
- {
- unset($this->table_stats);
- }
- /**
- * Statistics of table
- *
- * Generated from protobuf field <code>.Ydb.Table.TableStats table_stats = 6;</code>
- * @param \Ydb\Table\TableStats $var
- * @return $this
- */
- public function setTableStats($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Table\TableStats::class);
- $this->table_stats = $var;
- return $this;
- }
- /**
- * TTL params
- *
- * Generated from protobuf field <code>.Ydb.Table.TtlSettings ttl_settings = 7;</code>
- * @return \Ydb\Table\TtlSettings|null
- */
- public function getTtlSettings()
- {
- return $this->ttl_settings;
- }
- public function hasTtlSettings()
- {
- return isset($this->ttl_settings);
- }
- public function clearTtlSettings()
- {
- unset($this->ttl_settings);
- }
- /**
- * TTL params
- *
- * Generated from protobuf field <code>.Ydb.Table.TtlSettings ttl_settings = 7;</code>
- * @param \Ydb\Table\TtlSettings $var
- * @return $this
- */
- public function setTtlSettings($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Table\TtlSettings::class);
- $this->ttl_settings = $var;
- return $this;
- }
- /**
- * Storage settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.StorageSettings storage_settings = 8;</code>
- * @return \Ydb\Table\StorageSettings|null
- */
- public function getStorageSettings()
- {
- return $this->storage_settings;
- }
- public function hasStorageSettings()
- {
- return isset($this->storage_settings);
- }
- public function clearStorageSettings()
- {
- unset($this->storage_settings);
- }
- /**
- * Storage settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.StorageSettings storage_settings = 8;</code>
- * @param \Ydb\Table\StorageSettings $var
- * @return $this
- */
- public function setStorageSettings($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Table\StorageSettings::class);
- $this->storage_settings = $var;
- return $this;
- }
- /**
- * Column families
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily column_families = 9;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getColumnFamilies()
- {
- return $this->column_families;
- }
- /**
- * Column families
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily column_families = 9;</code>
- * @param array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setColumnFamilies($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnFamily::class);
- $this->column_families = $arr;
- return $this;
- }
- /**
- * Attributes
- *
- * Generated from protobuf field <code>map<string, string> attributes = 10;</code>
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAttributes()
- {
- return $this->attributes;
- }
- /**
- * Attributes
- *
- * Generated from protobuf field <code>map<string, string> attributes = 10;</code>
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAttributes($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->attributes = $arr;
- return $this;
- }
- /**
- * Partitioning settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings partitioning_settings = 12;</code>
- * @return \Ydb\Table\PartitioningSettings|null
- */
- public function getPartitioningSettings()
- {
- return $this->partitioning_settings;
- }
- public function hasPartitioningSettings()
- {
- return isset($this->partitioning_settings);
- }
- public function clearPartitioningSettings()
- {
- unset($this->partitioning_settings);
- }
- /**
- * Partitioning settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings partitioning_settings = 12;</code>
- * @param \Ydb\Table\PartitioningSettings $var
- * @return $this
- */
- public function setPartitioningSettings($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Table\PartitioningSettings::class);
- $this->partitioning_settings = $var;
- return $this;
- }
- /**
- * Bloom filter by key
- *
- * Generated from protobuf field <code>.Ydb.FeatureFlag.Status key_bloom_filter = 13;</code>
- * @return int
- */
- public function getKeyBloomFilter()
- {
- return $this->key_bloom_filter;
- }
- /**
- * Bloom filter by key
- *
- * Generated from protobuf field <code>.Ydb.FeatureFlag.Status key_bloom_filter = 13;</code>
- * @param int $var
- * @return $this
- */
- public function setKeyBloomFilter($var)
- {
- GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class);
- $this->key_bloom_filter = $var;
- return $this;
- }
- /**
- * Read replicas settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings read_replicas_settings = 14;</code>
- * @return \Ydb\Table\ReadReplicasSettings|null
- */
- public function getReadReplicasSettings()
- {
- return $this->read_replicas_settings;
- }
- public function hasReadReplicasSettings()
- {
- return isset($this->read_replicas_settings);
- }
- public function clearReadReplicasSettings()
- {
- unset($this->read_replicas_settings);
- }
- /**
- * Read replicas settings for table
- *
- * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings read_replicas_settings = 14;</code>
- * @param \Ydb\Table\ReadReplicasSettings $var
- * @return $this
- */
- public function setReadReplicasSettings($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Table\ReadReplicasSettings::class);
- $this->read_replicas_settings = $var;
- return $this;
- }
- /**
- * List of changefeeds
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ChangefeedDescription changefeeds = 15;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getChangefeeds()
- {
- return $this->changefeeds;
- }
- /**
- * List of changefeeds
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.ChangefeedDescription changefeeds = 15;</code>
- * @param array<\Ydb\Table\ChangefeedDescription>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setChangefeeds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ChangefeedDescription::class);
- $this->changefeeds = $arr;
- return $this;
- }
- }
|