DatabaseQuotas.php 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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 the database
  10. *
  11. * Generated from protobuf message <code>Ydb.Cms.DatabaseQuotas</code>
  12. */
  13. class DatabaseQuotas extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * A maximum data size in bytes, new data will be rejected when exceeded
  17. *
  18. * Generated from protobuf field <code>uint64 data_size_hard_quota = 1;</code>
  19. */
  20. protected $data_size_hard_quota = 0;
  21. /**
  22. * An optional size in bytes (lower than data_size_hard_quota). When data
  23. * size becomes lower than this value new data ingestion is re-enabled
  24. * again. This is useful to help avoid database from rapidly entering and
  25. * exiting from the overloaded state.
  26. *
  27. * Generated from protobuf field <code>uint64 data_size_soft_quota = 2;</code>
  28. */
  29. protected $data_size_soft_quota = 0;
  30. /**
  31. * A maximum count of shards in all data streams.
  32. *
  33. * Generated from protobuf field <code>uint64 data_stream_shards_quota = 3;</code>
  34. */
  35. protected $data_stream_shards_quota = 0;
  36. /**
  37. * A maximum storage that will be reserved for all data stream shards.
  38. *
  39. * Generated from protobuf field <code>uint64 data_stream_reserved_storage_quota = 5;</code>
  40. */
  41. protected $data_stream_reserved_storage_quota = 0;
  42. /**
  43. * A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
  44. * Default is 1800 (15 minutes).
  45. *
  46. * Generated from protobuf field <code>uint32 ttl_min_run_internal_seconds = 4;</code>
  47. */
  48. protected $ttl_min_run_internal_seconds = 0;
  49. /**
  50. * Constructor.
  51. *
  52. * @param array $data {
  53. * Optional. Data for populating the Message object.
  54. *
  55. * @type int|string $data_size_hard_quota
  56. * A maximum data size in bytes, new data will be rejected when exceeded
  57. * @type int|string $data_size_soft_quota
  58. * An optional size in bytes (lower than data_size_hard_quota). When data
  59. * size becomes lower than this value new data ingestion is re-enabled
  60. * again. This is useful to help avoid database from rapidly entering and
  61. * exiting from the overloaded state.
  62. * @type int|string $data_stream_shards_quota
  63. * A maximum count of shards in all data streams.
  64. * @type int|string $data_stream_reserved_storage_quota
  65. * A maximum storage that will be reserved for all data stream shards.
  66. * @type int $ttl_min_run_internal_seconds
  67. * A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
  68. * Default is 1800 (15 minutes).
  69. * }
  70. */
  71. public function __construct($data = NULL) {
  72. \GPBMetadata\Protos\YdbCms::initOnce();
  73. parent::__construct($data);
  74. }
  75. /**
  76. * A maximum data size in bytes, new data will be rejected when exceeded
  77. *
  78. * Generated from protobuf field <code>uint64 data_size_hard_quota = 1;</code>
  79. * @return int|string
  80. */
  81. public function getDataSizeHardQuota()
  82. {
  83. return $this->data_size_hard_quota;
  84. }
  85. /**
  86. * A maximum data size in bytes, new data will be rejected when exceeded
  87. *
  88. * Generated from protobuf field <code>uint64 data_size_hard_quota = 1;</code>
  89. * @param int|string $var
  90. * @return $this
  91. */
  92. public function setDataSizeHardQuota($var)
  93. {
  94. GPBUtil::checkUint64($var);
  95. $this->data_size_hard_quota = $var;
  96. return $this;
  97. }
  98. /**
  99. * An optional size in bytes (lower than data_size_hard_quota). When data
  100. * size becomes lower than this value new data ingestion is re-enabled
  101. * again. This is useful to help avoid database from rapidly entering and
  102. * exiting from the overloaded state.
  103. *
  104. * Generated from protobuf field <code>uint64 data_size_soft_quota = 2;</code>
  105. * @return int|string
  106. */
  107. public function getDataSizeSoftQuota()
  108. {
  109. return $this->data_size_soft_quota;
  110. }
  111. /**
  112. * An optional size in bytes (lower than data_size_hard_quota). When data
  113. * size becomes lower than this value new data ingestion is re-enabled
  114. * again. This is useful to help avoid database from rapidly entering and
  115. * exiting from the overloaded state.
  116. *
  117. * Generated from protobuf field <code>uint64 data_size_soft_quota = 2;</code>
  118. * @param int|string $var
  119. * @return $this
  120. */
  121. public function setDataSizeSoftQuota($var)
  122. {
  123. GPBUtil::checkUint64($var);
  124. $this->data_size_soft_quota = $var;
  125. return $this;
  126. }
  127. /**
  128. * A maximum count of shards in all data streams.
  129. *
  130. * Generated from protobuf field <code>uint64 data_stream_shards_quota = 3;</code>
  131. * @return int|string
  132. */
  133. public function getDataStreamShardsQuota()
  134. {
  135. return $this->data_stream_shards_quota;
  136. }
  137. /**
  138. * A maximum count of shards in all data streams.
  139. *
  140. * Generated from protobuf field <code>uint64 data_stream_shards_quota = 3;</code>
  141. * @param int|string $var
  142. * @return $this
  143. */
  144. public function setDataStreamShardsQuota($var)
  145. {
  146. GPBUtil::checkUint64($var);
  147. $this->data_stream_shards_quota = $var;
  148. return $this;
  149. }
  150. /**
  151. * A maximum storage that will be reserved for all data stream shards.
  152. *
  153. * Generated from protobuf field <code>uint64 data_stream_reserved_storage_quota = 5;</code>
  154. * @return int|string
  155. */
  156. public function getDataStreamReservedStorageQuota()
  157. {
  158. return $this->data_stream_reserved_storage_quota;
  159. }
  160. /**
  161. * A maximum storage that will be reserved for all data stream shards.
  162. *
  163. * Generated from protobuf field <code>uint64 data_stream_reserved_storage_quota = 5;</code>
  164. * @param int|string $var
  165. * @return $this
  166. */
  167. public function setDataStreamReservedStorageQuota($var)
  168. {
  169. GPBUtil::checkUint64($var);
  170. $this->data_stream_reserved_storage_quota = $var;
  171. return $this;
  172. }
  173. /**
  174. * A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
  175. * Default is 1800 (15 minutes).
  176. *
  177. * Generated from protobuf field <code>uint32 ttl_min_run_internal_seconds = 4;</code>
  178. * @return int
  179. */
  180. public function getTtlMinRunInternalSeconds()
  181. {
  182. return $this->ttl_min_run_internal_seconds;
  183. }
  184. /**
  185. * A minimum value of `TtlSettings.run_interval_seconds` that can be specified.
  186. * Default is 1800 (15 minutes).
  187. *
  188. * Generated from protobuf field <code>uint32 ttl_min_run_internal_seconds = 4;</code>
  189. * @param int $var
  190. * @return $this
  191. */
  192. public function setTtlMinRunInternalSeconds($var)
  193. {
  194. GPBUtil::checkUint32($var);
  195. $this->ttl_min_run_internal_seconds = $var;
  196. return $this;
  197. }
  198. }