123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_cms.proto
- namespace Ydb\Cms;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Change resources allocated for database.
- *
- * Generated from protobuf message <code>Ydb.Cms.AlterDatabaseRequest</code>
- */
- class AlterDatabaseRequest extends \Google\Protobuf\Internal\Message
- {
- /**
- * Required. Full path to database's home dir.
- *
- * Generated from protobuf field <code>string path = 1;</code>
- */
- protected $path = '';
- /**
- * Additional computational units to allocate for database.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;</code>
- */
- private $computational_units_to_add;
- /**
- * Computational units to deallocate.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;</code>
- */
- private $computational_units_to_remove;
- /**
- * Additional storage units to allocate for database.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;</code>
- */
- private $storage_units_to_add;
- /**
- * Externally allocated computational units to register for database.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;</code>
- */
- private $computational_units_to_register;
- /**
- * Externally allocated computational units to deregister.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;</code>
- */
- private $computational_units_to_deregister;
- /**
- * Operation parameters.
- *
- * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 7;</code>
- */
- protected $operation_params = null;
- /**
- * Current generation of altered database.
- *
- * Generated from protobuf field <code>uint64 generation = 8;</code>
- */
- protected $generation = 0;
- /**
- * Change quotas for schema operations
- *
- * Generated from protobuf field <code>.Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;</code>
- */
- protected $schema_operation_quotas = null;
- /**
- * Optional idempotency key
- *
- * Generated from protobuf field <code>string idempotency_key = 10;</code>
- */
- protected $idempotency_key = '';
- /**
- * Change quotas for the database
- *
- * Generated from protobuf field <code>.Ydb.Cms.DatabaseQuotas database_quotas = 11;</code>
- */
- protected $database_quotas = null;
- /**
- * Alter attributes. Leave the value blank to drop an attribute.
- *
- * Generated from protobuf field <code>map<string, string> alter_attributes = 12;</code>
- */
- 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 <code>string path = 1;</code>
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
- /**
- * Required. Full path to database's home dir.
- *
- * Generated from protobuf field <code>string path = 1;</code>
- * @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 <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;</code>
- * @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 <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;</code>
- * @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 <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getComputationalUnitsToRemove()
- {
- return $this->computational_units_to_remove;
- }
- /**
- * Computational units to deallocate.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;</code>
- * @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 <code>repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;</code>
- * @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 <code>repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;</code>
- * @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 <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;</code>
- * @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 <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;</code>
- * @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 <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getComputationalUnitsToDeregister()
- {
- return $this->computational_units_to_deregister;
- }
- /**
- * Externally allocated computational units to deregister.
- *
- * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;</code>
- * @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 <code>.Ydb.Operations.OperationParams operation_params = 7;</code>
- * @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 <code>.Ydb.Operations.OperationParams operation_params = 7;</code>
- * @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 <code>uint64 generation = 8;</code>
- * @return int|string
- */
- public function getGeneration()
- {
- return $this->generation;
- }
- /**
- * Current generation of altered database.
- *
- * Generated from protobuf field <code>uint64 generation = 8;</code>
- * @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 <code>.Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;</code>
- * @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 <code>.Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;</code>
- * @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 <code>string idempotency_key = 10;</code>
- * @return string
- */
- public function getIdempotencyKey()
- {
- return $this->idempotency_key;
- }
- /**
- * Optional idempotency key
- *
- * Generated from protobuf field <code>string idempotency_key = 10;</code>
- * @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 <code>.Ydb.Cms.DatabaseQuotas database_quotas = 11;</code>
- * @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 <code>.Ydb.Cms.DatabaseQuotas database_quotas = 11;</code>
- * @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 <code>map<string, string> alter_attributes = 12;</code>
- * @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 <code>map<string, string> alter_attributes = 12;</code>
- * @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;
- }
- }
|