Ydb.Cms.AlterDatabaseRequest */ class AlterDatabaseRequest extends \Google\Protobuf\Internal\Message { /** * Required. Full path to database's home dir. * * Generated from protobuf field string path = 1; */ protected $path = ''; /** * Additional computational units to allocate for database. * * Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2; */ private $computational_units_to_add; /** * Computational units to deallocate. * * Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3; */ private $computational_units_to_remove; /** * Additional storage units to allocate for database. * * Generated from protobuf field repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4; */ private $storage_units_to_add; /** * Externally allocated computational units to register for database. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5; */ private $computational_units_to_register; /** * Externally allocated computational units to deregister. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6; */ private $computational_units_to_deregister; /** * Operation parameters. * * Generated from protobuf field .Ydb.Operations.OperationParams operation_params = 7; */ protected $operation_params = null; /** * Current generation of altered database. * * Generated from protobuf field uint64 generation = 8; */ protected $generation = 0; /** * Change quotas for schema operations * * Generated from protobuf field .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9; */ protected $schema_operation_quotas = null; /** * Optional idempotency key * * Generated from protobuf field string idempotency_key = 10; */ protected $idempotency_key = ''; /** * Change quotas for the database * * Generated from protobuf field .Ydb.Cms.DatabaseQuotas database_quotas = 11; */ protected $database_quotas = null; /** * Alter attributes. Leave the value blank to drop an attribute. * * Generated from protobuf field map alter_attributes = 12; */ private $alter_attributes; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $path * Required. Full path to database's home dir. * @type array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_add * Additional computational units to allocate for database. * @type array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_remove * Computational units to deallocate. * @type array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $storage_units_to_add * Additional storage units to allocate for database. * @type array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_register * Externally allocated computational units to register for database. * @type array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_deregister * Externally allocated computational units to deregister. * @type \Ydb\Operations\OperationParams $operation_params * Operation parameters. * @type int|string $generation * Current generation of altered database. * @type \Ydb\Cms\SchemaOperationQuotas $schema_operation_quotas * Change quotas for schema operations * @type string $idempotency_key * Optional idempotency key * @type \Ydb\Cms\DatabaseQuotas $database_quotas * Change quotas for the database * @type array|\Google\Protobuf\Internal\MapField $alter_attributes * Alter attributes. Leave the value blank to drop an attribute. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbCms::initOnce(); parent::__construct($data); } /** * Required. Full path to database's home dir. * * Generated from protobuf field string path = 1; * @return string */ public function getPath() { return $this->path; } /** * Required. Full path to database's home dir. * * Generated from protobuf field string path = 1; * @param string $var * @return $this */ public function setPath($var) { GPBUtil::checkString($var, True); $this->path = $var; return $this; } /** * Additional computational units to allocate for database. * * Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getComputationalUnitsToAdd() { return $this->computational_units_to_add; } /** * Additional computational units to allocate for database. * * Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2; * @param array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setComputationalUnitsToAdd($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\ComputationalUnits::class); $this->computational_units_to_add = $arr; return $this; } /** * Computational units to deallocate. * * Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getComputationalUnitsToRemove() { return $this->computational_units_to_remove; } /** * Computational units to deallocate. * * Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3; * @param array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setComputationalUnitsToRemove($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\ComputationalUnits::class); $this->computational_units_to_remove = $arr; return $this; } /** * Additional storage units to allocate for database. * * Generated from protobuf field repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getStorageUnitsToAdd() { return $this->storage_units_to_add; } /** * Additional storage units to allocate for database. * * Generated from protobuf field repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4; * @param array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setStorageUnitsToAdd($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\StorageUnits::class); $this->storage_units_to_add = $arr; return $this; } /** * Externally allocated computational units to register for database. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getComputationalUnitsToRegister() { return $this->computational_units_to_register; } /** * Externally allocated computational units to register for database. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5; * @param array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setComputationalUnitsToRegister($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\AllocatedComputationalUnit::class); $this->computational_units_to_register = $arr; return $this; } /** * Externally allocated computational units to deregister. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6; * @return \Google\Protobuf\Internal\RepeatedField */ public function getComputationalUnitsToDeregister() { return $this->computational_units_to_deregister; } /** * Externally allocated computational units to deregister. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6; * @param array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setComputationalUnitsToDeregister($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\AllocatedComputationalUnit::class); $this->computational_units_to_deregister = $arr; return $this; } /** * Operation parameters. * * Generated from protobuf field .Ydb.Operations.OperationParams operation_params = 7; * @return \Ydb\Operations\OperationParams|null */ public function getOperationParams() { return $this->operation_params; } public function hasOperationParams() { return isset($this->operation_params); } public function clearOperationParams() { unset($this->operation_params); } /** * Operation parameters. * * Generated from protobuf field .Ydb.Operations.OperationParams operation_params = 7; * @param \Ydb\Operations\OperationParams $var * @return $this */ public function setOperationParams($var) { GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class); $this->operation_params = $var; return $this; } /** * Current generation of altered database. * * Generated from protobuf field uint64 generation = 8; * @return int|string */ public function getGeneration() { return $this->generation; } /** * Current generation of altered database. * * Generated from protobuf field uint64 generation = 8; * @param int|string $var * @return $this */ public function setGeneration($var) { GPBUtil::checkUint64($var); $this->generation = $var; return $this; } /** * Change quotas for schema operations * * Generated from protobuf field .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9; * @return \Ydb\Cms\SchemaOperationQuotas|null */ public function getSchemaOperationQuotas() { return $this->schema_operation_quotas; } public function hasSchemaOperationQuotas() { return isset($this->schema_operation_quotas); } public function clearSchemaOperationQuotas() { unset($this->schema_operation_quotas); } /** * Change quotas for schema operations * * Generated from protobuf field .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9; * @param \Ydb\Cms\SchemaOperationQuotas $var * @return $this */ public function setSchemaOperationQuotas($var) { GPBUtil::checkMessage($var, \Ydb\Cms\SchemaOperationQuotas::class); $this->schema_operation_quotas = $var; return $this; } /** * Optional idempotency key * * Generated from protobuf field string idempotency_key = 10; * @return string */ public function getIdempotencyKey() { return $this->idempotency_key; } /** * Optional idempotency key * * Generated from protobuf field string idempotency_key = 10; * @param string $var * @return $this */ public function setIdempotencyKey($var) { GPBUtil::checkString($var, True); $this->idempotency_key = $var; return $this; } /** * Change quotas for the database * * Generated from protobuf field .Ydb.Cms.DatabaseQuotas database_quotas = 11; * @return \Ydb\Cms\DatabaseQuotas|null */ public function getDatabaseQuotas() { return $this->database_quotas; } public function hasDatabaseQuotas() { return isset($this->database_quotas); } public function clearDatabaseQuotas() { unset($this->database_quotas); } /** * Change quotas for the database * * Generated from protobuf field .Ydb.Cms.DatabaseQuotas database_quotas = 11; * @param \Ydb\Cms\DatabaseQuotas $var * @return $this */ public function setDatabaseQuotas($var) { GPBUtil::checkMessage($var, \Ydb\Cms\DatabaseQuotas::class); $this->database_quotas = $var; return $this; } /** * Alter attributes. Leave the value blank to drop an attribute. * * Generated from protobuf field map alter_attributes = 12; * @return \Google\Protobuf\Internal\MapField */ public function getAlterAttributes() { return $this->alter_attributes; } /** * Alter attributes. Leave the value blank to drop an attribute. * * Generated from protobuf field map alter_attributes = 12; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setAlterAttributes($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); $this->alter_attributes = $arr; return $this; } }