123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_cms.proto
- namespace Ydb\Cms\SchemaOperationQuotas;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * A single quota based on leaky bucket
- *
- * Generated from protobuf message <code>Ydb.Cms.SchemaOperationQuotas.LeakyBucket</code>
- */
- class LeakyBucket extends \Google\Protobuf\Internal\Message
- {
- /**
- * Bucket size, e.g. <1000> per day
- *
- * Generated from protobuf field <code>double bucket_size = 1;</code>
- */
- protected $bucket_size = 0.0;
- /**
- * Bucket duration in seconds, e.g. 1000 per <day>
- *
- * Generated from protobuf field <code>uint64 bucket_seconds = 2;</code>
- */
- 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 <day>
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbCms::initOnce();
- parent::__construct($data);
- }
- /**
- * Bucket size, e.g. <1000> per day
- *
- * Generated from protobuf field <code>double bucket_size = 1;</code>
- * @return float
- */
- public function getBucketSize()
- {
- return $this->bucket_size;
- }
- /**
- * Bucket size, e.g. <1000> per day
- *
- * Generated from protobuf field <code>double bucket_size = 1;</code>
- * @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 <day>
- *
- * Generated from protobuf field <code>uint64 bucket_seconds = 2;</code>
- * @return int|string
- */
- public function getBucketSeconds()
- {
- return $this->bucket_seconds;
- }
- /**
- * Bucket duration in seconds, e.g. 1000 per <day>
- *
- * Generated from protobuf field <code>uint64 bucket_seconds = 2;</code>
- * @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);
|