Ydb.Cms.GetDatabaseStatusResult */ class GetDatabaseStatusResult extends \Google\Protobuf\Internal\Message { /** * Full path to database's home dir. * * Generated from protobuf field string path = 1; */ protected $path = ''; /** * Current database state. * * Generated from protobuf field .Ydb.Cms.GetDatabaseStatusResult.State state = 2; */ protected $state = 0; /** * Database resources allocated by CMS. * * Generated from protobuf field .Ydb.Cms.Resources allocated_resources = 4; */ protected $allocated_resources = null; /** * Externally allocated database resources registered in CMS. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5; */ private $registered_resources; /** * Current database generation. Incremented at each successful * alter request. * * Generated from protobuf field uint64 generation = 6; */ protected $generation = 0; /** * Current quotas for schema operations * * Generated from protobuf field .Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9; */ protected $schema_operation_quotas = null; /** * Current quotas for the database * * Generated from protobuf field .Ydb.Cms.DatabaseQuotas database_quotas = 10; */ protected $database_quotas = null; protected $resources_kind; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $path * Full path to database's home dir. * @type int $state * Current database state. * @type \Ydb\Cms\Resources $required_resources * Database resources requested for allocation. * @type \Ydb\Cms\Resources $required_shared_resources * @type \Ydb\Cms\ServerlessResources $serverless_resources * @type \Ydb\Cms\Resources $allocated_resources * Database resources allocated by CMS. * @type array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $registered_resources * Externally allocated database resources registered in CMS. * @type int|string $generation * Current database generation. Incremented at each successful * alter request. * @type \Ydb\Cms\SchemaOperationQuotas $schema_operation_quotas * Current quotas for schema operations * @type \Ydb\Cms\DatabaseQuotas $database_quotas * Current quotas for the database * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbCms::initOnce(); parent::__construct($data); } /** * Full path to database's home dir. * * Generated from protobuf field string path = 1; * @return string */ public function getPath() { return $this->path; } /** * 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; } /** * Current database state. * * Generated from protobuf field .Ydb.Cms.GetDatabaseStatusResult.State state = 2; * @return int */ public function getState() { return $this->state; } /** * Current database state. * * Generated from protobuf field .Ydb.Cms.GetDatabaseStatusResult.State state = 2; * @param int $var * @return $this */ public function setState($var) { GPBUtil::checkEnum($var, \Ydb\Cms\GetDatabaseStatusResult\State::class); $this->state = $var; return $this; } /** * Database resources requested for allocation. * * Generated from protobuf field .Ydb.Cms.Resources required_resources = 3; * @return \Ydb\Cms\Resources|null */ public function getRequiredResources() { return $this->readOneof(3); } public function hasRequiredResources() { return $this->hasOneof(3); } /** * Database resources requested for allocation. * * Generated from protobuf field .Ydb.Cms.Resources required_resources = 3; * @param \Ydb\Cms\Resources $var * @return $this */ public function setRequiredResources($var) { GPBUtil::checkMessage($var, \Ydb\Cms\Resources::class); $this->writeOneof(3, $var); return $this; } /** * Generated from protobuf field .Ydb.Cms.Resources required_shared_resources = 7; * @return \Ydb\Cms\Resources|null */ public function getRequiredSharedResources() { return $this->readOneof(7); } public function hasRequiredSharedResources() { return $this->hasOneof(7); } /** * Generated from protobuf field .Ydb.Cms.Resources required_shared_resources = 7; * @param \Ydb\Cms\Resources $var * @return $this */ public function setRequiredSharedResources($var) { GPBUtil::checkMessage($var, \Ydb\Cms\Resources::class); $this->writeOneof(7, $var); return $this; } /** * Generated from protobuf field .Ydb.Cms.ServerlessResources serverless_resources = 8; * @return \Ydb\Cms\ServerlessResources|null */ public function getServerlessResources() { return $this->readOneof(8); } public function hasServerlessResources() { return $this->hasOneof(8); } /** * Generated from protobuf field .Ydb.Cms.ServerlessResources serverless_resources = 8; * @param \Ydb\Cms\ServerlessResources $var * @return $this */ public function setServerlessResources($var) { GPBUtil::checkMessage($var, \Ydb\Cms\ServerlessResources::class); $this->writeOneof(8, $var); return $this; } /** * Database resources allocated by CMS. * * Generated from protobuf field .Ydb.Cms.Resources allocated_resources = 4; * @return \Ydb\Cms\Resources|null */ public function getAllocatedResources() { return $this->allocated_resources; } public function hasAllocatedResources() { return isset($this->allocated_resources); } public function clearAllocatedResources() { unset($this->allocated_resources); } /** * Database resources allocated by CMS. * * Generated from protobuf field .Ydb.Cms.Resources allocated_resources = 4; * @param \Ydb\Cms\Resources $var * @return $this */ public function setAllocatedResources($var) { GPBUtil::checkMessage($var, \Ydb\Cms\Resources::class); $this->allocated_resources = $var; return $this; } /** * Externally allocated database resources registered in CMS. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getRegisteredResources() { return $this->registered_resources; } /** * Externally allocated database resources registered in CMS. * * Generated from protobuf field repeated .Ydb.Cms.AllocatedComputationalUnit registered_resources = 5; * @param array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setRegisteredResources($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\AllocatedComputationalUnit::class); $this->registered_resources = $arr; return $this; } /** * Current database generation. Incremented at each successful * alter request. * * Generated from protobuf field uint64 generation = 6; * @return int|string */ public function getGeneration() { return $this->generation; } /** * Current database generation. Incremented at each successful * alter request. * * Generated from protobuf field uint64 generation = 6; * @param int|string $var * @return $this */ public function setGeneration($var) { GPBUtil::checkUint64($var); $this->generation = $var; return $this; } /** * Current 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); } /** * Current 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; } /** * Current quotas for the database * * Generated from protobuf field .Ydb.Cms.DatabaseQuotas database_quotas = 10; * @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); } /** * Current quotas for the database * * Generated from protobuf field .Ydb.Cms.DatabaseQuotas database_quotas = 10; * @param \Ydb\Cms\DatabaseQuotas $var * @return $this */ public function setDatabaseQuotas($var) { GPBUtil::checkMessage($var, \Ydb\Cms\DatabaseQuotas::class); $this->database_quotas = $var; return $this; } /** * @return string */ public function getResourcesKind() { return $this->whichOneof("resources_kind"); } }