SchemaOperationQuotas.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_cms.proto
  4. namespace Ydb\Cms;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * A set of quotas for schema operations
  10. *
  11. * Generated from protobuf message <code>Ydb.Cms.SchemaOperationQuotas</code>
  12. */
  13. class SchemaOperationQuotas extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Leaky bucket based quotas
  17. *
  18. * Generated from protobuf field <code>repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;</code>
  19. */
  20. private $leaky_bucket_quotas;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type array<\Ydb\Cms\SchemaOperationQuotas\LeakyBucket>|\Google\Protobuf\Internal\RepeatedField $leaky_bucket_quotas
  28. * Leaky bucket based quotas
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbCms::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Leaky bucket based quotas
  37. *
  38. * Generated from protobuf field <code>repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;</code>
  39. * @return \Google\Protobuf\Internal\RepeatedField
  40. */
  41. public function getLeakyBucketQuotas()
  42. {
  43. return $this->leaky_bucket_quotas;
  44. }
  45. /**
  46. * Leaky bucket based quotas
  47. *
  48. * Generated from protobuf field <code>repeated .Ydb.Cms.SchemaOperationQuotas.LeakyBucket leaky_bucket_quotas = 1;</code>
  49. * @param array<\Ydb\Cms\SchemaOperationQuotas\LeakyBucket>|\Google\Protobuf\Internal\RepeatedField $var
  50. * @return $this
  51. */
  52. public function setLeakyBucketQuotas($var)
  53. {
  54. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\SchemaOperationQuotas\LeakyBucket::class);
  55. $this->leaky_bucket_quotas = $arr;
  56. return $this;
  57. }
  58. }