Ydb.RateLimiter.DescribeResourceResult */ class DescribeResourceResult extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .Ydb.RateLimiter.Resource resource = 1; */ protected $resource = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Ydb\RateLimiter\Resource $resource * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbRateLimiter::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .Ydb.RateLimiter.Resource resource = 1; * @return \Ydb\RateLimiter\Resource|null */ public function getResource() { return $this->resource; } public function hasResource() { return isset($this->resource); } public function clearResource() { unset($this->resource); } /** * Generated from protobuf field .Ydb.RateLimiter.Resource resource = 1; * @param \Ydb\RateLimiter\Resource $var * @return $this */ public function setResource($var) { GPBUtil::checkMessage($var, \Ydb\RateLimiter\Resource::class); $this->resource = $var; return $this; } }