Ydb.Table.TableProfile
*/
class TableProfile extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string preset_name = 1;
*/
protected $preset_name = '';
/**
* Generated from protobuf field .Ydb.Table.StoragePolicy storage_policy = 2;
*/
protected $storage_policy = null;
/**
* Generated from protobuf field .Ydb.Table.CompactionPolicy compaction_policy = 3;
*/
protected $compaction_policy = null;
/**
* Generated from protobuf field .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
*/
protected $partitioning_policy = null;
/**
* Generated from protobuf field .Ydb.Table.ExecutionPolicy execution_policy = 5;
*/
protected $execution_policy = null;
/**
* Generated from protobuf field .Ydb.Table.ReplicationPolicy replication_policy = 6;
*/
protected $replication_policy = null;
/**
* Generated from protobuf field .Ydb.Table.CachingPolicy caching_policy = 7;
*/
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 string preset_name = 1;
* @return string
*/
public function getPresetName()
{
return $this->preset_name;
}
/**
* Generated from protobuf field string preset_name = 1;
* @param string $var
* @return $this
*/
public function setPresetName($var)
{
GPBUtil::checkString($var, True);
$this->preset_name = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.StoragePolicy storage_policy = 2;
* @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 .Ydb.Table.StoragePolicy storage_policy = 2;
* @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 .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @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 .Ydb.Table.CompactionPolicy compaction_policy = 3;
* @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 .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @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 .Ydb.Table.PartitioningPolicy partitioning_policy = 4;
* @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 .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @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 .Ydb.Table.ExecutionPolicy execution_policy = 5;
* @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 .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @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 .Ydb.Table.ReplicationPolicy replication_policy = 6;
* @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 .Ydb.Table.CachingPolicy caching_policy = 7;
* @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 .Ydb.Table.CachingPolicy caching_policy = 7;
* @param \Ydb\Table\CachingPolicy $var
* @return $this
*/
public function setCachingPolicy($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\CachingPolicy::class);
$this->caching_policy = $var;
return $this;
}
}