Ydb.Cms.SchemaOperationQuotas.LeakyBucket */ class LeakyBucket extends \Google\Protobuf\Internal\Message { /** * Bucket size, e.g. <1000> per day * * Generated from protobuf field double bucket_size = 1; */ protected $bucket_size = 0.0; /** * Bucket duration in seconds, e.g. 1000 per * * Generated from protobuf field uint64 bucket_seconds = 2; */ protected $bucket_seconds = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $bucket_size * Bucket size, e.g. <1000> per day * @type int|string $bucket_seconds * Bucket duration in seconds, e.g. 1000 per * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbCms::initOnce(); parent::__construct($data); } /** * Bucket size, e.g. <1000> per day * * Generated from protobuf field double bucket_size = 1; * @return float */ public function getBucketSize() { return $this->bucket_size; } /** * Bucket size, e.g. <1000> per day * * Generated from protobuf field double bucket_size = 1; * @param float $var * @return $this */ public function setBucketSize($var) { GPBUtil::checkDouble($var); $this->bucket_size = $var; return $this; } /** * Bucket duration in seconds, e.g. 1000 per * * Generated from protobuf field uint64 bucket_seconds = 2; * @return int|string */ public function getBucketSeconds() { return $this->bucket_seconds; } /** * Bucket duration in seconds, e.g. 1000 per * * Generated from protobuf field uint64 bucket_seconds = 2; * @param int|string $var * @return $this */ public function setBucketSeconds($var) { GPBUtil::checkUint64($var); $this->bucket_seconds = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(LeakyBucket::class, \Ydb\Cms\SchemaOperationQuotas_LeakyBucket::class);