StorageUnits.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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 uniform storage units.
  10. * Single storage unit can be thought of as a reserved part of a RAID.
  11. *
  12. * Generated from protobuf message <code>Ydb.Cms.StorageUnits</code>
  13. */
  14. class StorageUnits extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Required. Kind of the storage unit. Determine guarantees
  18. * for all main unit parameters: used hard disk type, capacity
  19. * throughput, IOPS etc.
  20. *
  21. * Generated from protobuf field <code>string unit_kind = 1;</code>
  22. */
  23. protected $unit_kind = '';
  24. /**
  25. * Required. The number of units in this set.
  26. *
  27. * Generated from protobuf field <code>uint64 count = 2;</code>
  28. */
  29. protected $count = 0;
  30. /**
  31. * Constructor.
  32. *
  33. * @param array $data {
  34. * Optional. Data for populating the Message object.
  35. *
  36. * @type string $unit_kind
  37. * Required. Kind of the storage unit. Determine guarantees
  38. * for all main unit parameters: used hard disk type, capacity
  39. * throughput, IOPS etc.
  40. * @type int|string $count
  41. * Required. The number of units in this set.
  42. * }
  43. */
  44. public function __construct($data = NULL) {
  45. \GPBMetadata\Protos\YdbCms::initOnce();
  46. parent::__construct($data);
  47. }
  48. /**
  49. * Required. Kind of the storage unit. Determine guarantees
  50. * for all main unit parameters: used hard disk type, capacity
  51. * throughput, IOPS etc.
  52. *
  53. * Generated from protobuf field <code>string unit_kind = 1;</code>
  54. * @return string
  55. */
  56. public function getUnitKind()
  57. {
  58. return $this->unit_kind;
  59. }
  60. /**
  61. * Required. Kind of the storage unit. Determine guarantees
  62. * for all main unit parameters: used hard disk type, capacity
  63. * throughput, IOPS etc.
  64. *
  65. * Generated from protobuf field <code>string unit_kind = 1;</code>
  66. * @param string $var
  67. * @return $this
  68. */
  69. public function setUnitKind($var)
  70. {
  71. GPBUtil::checkString($var, True);
  72. $this->unit_kind = $var;
  73. return $this;
  74. }
  75. /**
  76. * Required. The number of units in this set.
  77. *
  78. * Generated from protobuf field <code>uint64 count = 2;</code>
  79. * @return int|string
  80. */
  81. public function getCount()
  82. {
  83. return $this->count;
  84. }
  85. /**
  86. * Required. The number of units in this set.
  87. *
  88. * Generated from protobuf field <code>uint64 count = 2;</code>
  89. * @param int|string $var
  90. * @return $this
  91. */
  92. public function setCount($var)
  93. {
  94. GPBUtil::checkUint64($var);
  95. $this->count = $var;
  96. return $this;
  97. }
  98. }