/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/RateLimiter/Resource.php
120 строк
3 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?php # Generated by the protocol buffer compiler. DO NOT EDIT! # source: protos/ydb_rate_limiter.proto namespace Ydb\RateLimiter; use Google\Protobuf\Internal\GPBType; use Google\Protobuf\Internal\RepeatedField; use Google\Protobuf\Internal\GPBUtil; /** * Rate limiter resource description. * * Generated from protobuf message <code>Ydb.RateLimiter.Resource</code> */ class Resource extends \Google\Protobuf\Internal\Message { /** * Resource path. Elements are separated by slash. * The first symbol is not slash. * The first element is root resource name. * Resource path is the path of resource inside coordination node. * * Generated from protobuf field <code>string resource_path = 1;</code> */ protected $resource_path = ''; protected $type; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $resource_path * Resource path. Elements are separated by slash. * The first symbol is not slash. * The first element is root resource name. * Resource path is the path of resource inside coordination node. * @type \Ydb\RateLimiter\HierarchicalDrrSettings $hierarchical_drr * Settings for Hierarchical DRR algorithm. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbRateLimiter::initOnce(); parent::__construct($data); } /** * Resource path. Elements are separated by slash. * The first symbol is not slash. * The first element is root resource name. * Resource path is the path of resource inside coordination node. * * Generated from protobuf field <code>string resource_path = 1;</code> * @return string */ public function getResourcePath() { return $this->resource_path; } /** * Resource path. Elements are separated by slash. * The first symbol is not slash. * The first element is root resource name. * Resource path is the path of resource inside coordination node. * * Generated from protobuf field <code>string resource_path = 1;</code> * @param string $var * @return $this */ public function setResourcePath($var) { GPBUtil::checkString($var, True); $this->resource_path = $var; return $this; } /** * Settings for Hierarchical DRR algorithm. * * Generated from protobuf field <code>.Ydb.RateLimiter.HierarchicalDrrSettings hierarchical_drr = 2;</code> * @return \Ydb\RateLimiter\HierarchicalDrrSettings|null */ public function getHierarchicalDrr() { return $this->readOneof(2); } public function hasHierarchicalDrr() { return $this->hasOneof(2); } /** * Settings for Hierarchical DRR algorithm. * * Generated from protobuf field <code>.Ydb.RateLimiter.HierarchicalDrrSettings hierarchical_drr = 2;</code> * @param \Ydb\RateLimiter\HierarchicalDrrSettings $var * @return $this */ public function setHierarchicalDrr($var) { GPBUtil::checkMessage($var, \Ydb\RateLimiter\HierarchicalDrrSettings::class); $this->writeOneof(2, $var); return $this; } /** * @return string */ public function getType() { return $this->whichOneof("type"); } }