/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Table/TableProfile.php
279 строк
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; /** * Generated from protobuf message <code>Ydb.Table.TableProfile</code> */ class TableProfile extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field <code>string preset_name = 1;</code> */ protected $preset_name = ''; /** * Generated from protobuf field <code>.Ydb.Table.StoragePolicy storage_policy = 2;</code> */ protected $storage_policy = null; /** * Generated from protobuf field <code>.Ydb.Table.CompactionPolicy compaction_policy = 3;</code> */ protected $compaction_policy = null; /** * Generated from protobuf field <code>.Ydb.Table.PartitioningPolicy partitioning_policy = 4;</code> */ protected $partitioning_policy = null; /** * Generated from protobuf field <code>.Ydb.Table.ExecutionPolicy execution_policy = 5;</code> */ protected $execution_policy = null; /** * Generated from protobuf field <code>.Ydb.Table.ReplicationPolicy replication_policy = 6;</code> */ protected $replication_policy = null; /** * Generated from protobuf field <code>.Ydb.Table.CachingPolicy caching_policy = 7;</code> */ protected $caching_policy = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $preset_name * @type \Ydb\Table\StoragePolicy $storage_policy * @type \Ydb\Table\CompactionPolicy $compaction_policy * @type \Ydb\Table\PartitioningPolicy $partitioning_policy * @type \Ydb\Table\ExecutionPolicy $execution_policy * @type \Ydb\Table\ReplicationPolicy $replication_policy * @type \Ydb\Table\CachingPolicy $caching_policy * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Generated from protobuf field <code>string preset_name = 1;</code> * @return string */ public function getPresetName() { return $this->preset_name; } /** * Generated from protobuf field <code>string preset_name = 1;</code> * @param string $var * @return $this */ public function setPresetName($var) { GPBUtil::checkString($var, True); $this->preset_name = $var; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.StoragePolicy storage_policy = 2;</code> * @return \Ydb\Table\StoragePolicy|null */ public function getStoragePolicy() { return $this->storage_policy; } public function hasStoragePolicy() { return isset($this->storage_policy); } public function clearStoragePolicy() { unset($this->storage_policy); } /** * Generated from protobuf field <code>.Ydb.Table.StoragePolicy storage_policy = 2;</code> * @param \Ydb\Table\StoragePolicy $var * @return $this */ public function setStoragePolicy($var) { GPBUtil::checkMessage($var, \Ydb\Table\StoragePolicy::class); $this->storage_policy = $var; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.CompactionPolicy compaction_policy = 3;</code> * @return \Ydb\Table\CompactionPolicy|null */ public function getCompactionPolicy() { return $this->compaction_policy; } public function hasCompactionPolicy() { return isset($this->compaction_policy); } public function clearCompactionPolicy() { unset($this->compaction_policy); } /** * Generated from protobuf field <code>.Ydb.Table.CompactionPolicy compaction_policy = 3;</code> * @param \Ydb\Table\CompactionPolicy $var * @return $this */ public function setCompactionPolicy($var) { GPBUtil::checkMessage($var, \Ydb\Table\CompactionPolicy::class); $this->compaction_policy = $var; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.PartitioningPolicy partitioning_policy = 4;</code> * @return \Ydb\Table\PartitioningPolicy|null */ public function getPartitioningPolicy() { return $this->partitioning_policy; } public function hasPartitioningPolicy() { return isset($this->partitioning_policy); } public function clearPartitioningPolicy() { unset($this->partitioning_policy); } /** * Generated from protobuf field <code>.Ydb.Table.PartitioningPolicy partitioning_policy = 4;</code> * @param \Ydb\Table\PartitioningPolicy $var * @return $this */ public function setPartitioningPolicy($var) { GPBUtil::checkMessage($var, \Ydb\Table\PartitioningPolicy::class); $this->partitioning_policy = $var; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.ExecutionPolicy execution_policy = 5;</code> * @return \Ydb\Table\ExecutionPolicy|null */ public function getExecutionPolicy() { return $this->execution_policy; } public function hasExecutionPolicy() { return isset($this->execution_policy); } public function clearExecutionPolicy() { unset($this->execution_policy); } /** * Generated from protobuf field <code>.Ydb.Table.ExecutionPolicy execution_policy = 5;</code> * @param \Ydb\Table\ExecutionPolicy $var * @return $this */ public function setExecutionPolicy($var) { GPBUtil::checkMessage($var, \Ydb\Table\ExecutionPolicy::class); $this->execution_policy = $var; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.ReplicationPolicy replication_policy = 6;</code> * @return \Ydb\Table\ReplicationPolicy|null */ public function getReplicationPolicy() { return $this->replication_policy; } public function hasReplicationPolicy() { return isset($this->replication_policy); } public function clearReplicationPolicy() { unset($this->replication_policy); } /** * Generated from protobuf field <code>.Ydb.Table.ReplicationPolicy replication_policy = 6;</code> * @param \Ydb\Table\ReplicationPolicy $var * @return $this */ public function setReplicationPolicy($var) { GPBUtil::checkMessage($var, \Ydb\Table\ReplicationPolicy::class); $this->replication_policy = $var; return $this; } /** * Generated from protobuf field <code>.Ydb.Table.CachingPolicy caching_policy = 7;</code> * @return \Ydb\Table\CachingPolicy|null */ public function getCachingPolicy() { return $this->caching_policy; } public function hasCachingPolicy() { return isset($this->caching_policy); } public function clearCachingPolicy() { unset($this->caching_policy); } /** * Generated from protobuf field <code>.Ydb.Table.CachingPolicy caching_policy = 7;</code> * @param \Ydb\Table\CachingPolicy $var * @return $this */ public function setCachingPolicy($var) { GPBUtil::checkMessage($var, \Ydb\Table\CachingPolicy::class); $this->caching_policy = $var; return $this; } }