ComputationalUnits.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 computational units.
  10. *
  11. * Generated from protobuf message <code>Ydb.Cms.ComputationalUnits</code>
  12. */
  13. class ComputationalUnits extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Required. Kind of the computational unit. Determine main
  17. * unit parameters like available memory, CPU, etc.
  18. *
  19. * Generated from protobuf field <code>string unit_kind = 1;</code>
  20. */
  21. protected $unit_kind = '';
  22. /**
  23. * The availability zone all unit should be located in.
  24. * By default any availability zone can be used.
  25. *
  26. * Generated from protobuf field <code>string availability_zone = 2;</code>
  27. */
  28. protected $availability_zone = '';
  29. /**
  30. * Required. The number of units in this set.
  31. *
  32. * Generated from protobuf field <code>uint64 count = 3;</code>
  33. */
  34. protected $count = 0;
  35. /**
  36. * Constructor.
  37. *
  38. * @param array $data {
  39. * Optional. Data for populating the Message object.
  40. *
  41. * @type string $unit_kind
  42. * Required. Kind of the computational unit. Determine main
  43. * unit parameters like available memory, CPU, etc.
  44. * @type string $availability_zone
  45. * The availability zone all unit should be located in.
  46. * By default any availability zone can be used.
  47. * @type int|string $count
  48. * Required. The number of units in this set.
  49. * }
  50. */
  51. public function __construct($data = NULL) {
  52. \GPBMetadata\Protos\YdbCms::initOnce();
  53. parent::__construct($data);
  54. }
  55. /**
  56. * Required. Kind of the computational unit. Determine main
  57. * unit parameters like available memory, CPU, etc.
  58. *
  59. * Generated from protobuf field <code>string unit_kind = 1;</code>
  60. * @return string
  61. */
  62. public function getUnitKind()
  63. {
  64. return $this->unit_kind;
  65. }
  66. /**
  67. * Required. Kind of the computational unit. Determine main
  68. * unit parameters like available memory, CPU, etc.
  69. *
  70. * Generated from protobuf field <code>string unit_kind = 1;</code>
  71. * @param string $var
  72. * @return $this
  73. */
  74. public function setUnitKind($var)
  75. {
  76. GPBUtil::checkString($var, True);
  77. $this->unit_kind = $var;
  78. return $this;
  79. }
  80. /**
  81. * The availability zone all unit should be located in.
  82. * By default any availability zone can be used.
  83. *
  84. * Generated from protobuf field <code>string availability_zone = 2;</code>
  85. * @return string
  86. */
  87. public function getAvailabilityZone()
  88. {
  89. return $this->availability_zone;
  90. }
  91. /**
  92. * The availability zone all unit should be located in.
  93. * By default any availability zone can be used.
  94. *
  95. * Generated from protobuf field <code>string availability_zone = 2;</code>
  96. * @param string $var
  97. * @return $this
  98. */
  99. public function setAvailabilityZone($var)
  100. {
  101. GPBUtil::checkString($var, True);
  102. $this->availability_zone = $var;
  103. return $this;
  104. }
  105. /**
  106. * Required. The number of units in this set.
  107. *
  108. * Generated from protobuf field <code>uint64 count = 3;</code>
  109. * @return int|string
  110. */
  111. public function getCount()
  112. {
  113. return $this->count;
  114. }
  115. /**
  116. * Required. The number of units in this set.
  117. *
  118. * Generated from protobuf field <code>uint64 count = 3;</code>
  119. * @param int|string $var
  120. * @return $this
  121. */
  122. public function setCount($var)
  123. {
  124. GPBUtil::checkUint64($var);
  125. $this->count = $var;
  126. return $this;
  127. }
  128. }