123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?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;
- }
- }
|