AllocatedComputationalUnit.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. * Computational unit allocated for database. Used to register
  10. * externally allocated computational resources in CMS.
  11. *
  12. * Generated from protobuf message <code>Ydb.Cms.AllocatedComputationalUnit</code>
  13. */
  14. class AllocatedComputationalUnit extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Required. Computational unit host name.
  18. *
  19. * Generated from protobuf field <code>string host = 1;</code>
  20. */
  21. protected $host = '';
  22. /**
  23. * Required. Computational unit port.
  24. *
  25. * Generated from protobuf field <code>uint32 port = 2;</code>
  26. */
  27. protected $port = 0;
  28. /**
  29. * Required. Computational unit kind.
  30. *
  31. * Generated from protobuf field <code>string unit_kind = 3;</code>
  32. */
  33. protected $unit_kind = '';
  34. /**
  35. * Constructor.
  36. *
  37. * @param array $data {
  38. * Optional. Data for populating the Message object.
  39. *
  40. * @type string $host
  41. * Required. Computational unit host name.
  42. * @type int $port
  43. * Required. Computational unit port.
  44. * @type string $unit_kind
  45. * Required. Computational unit kind.
  46. * }
  47. */
  48. public function __construct($data = NULL) {
  49. \GPBMetadata\Protos\YdbCms::initOnce();
  50. parent::__construct($data);
  51. }
  52. /**
  53. * Required. Computational unit host name.
  54. *
  55. * Generated from protobuf field <code>string host = 1;</code>
  56. * @return string
  57. */
  58. public function getHost()
  59. {
  60. return $this->host;
  61. }
  62. /**
  63. * Required. Computational unit host name.
  64. *
  65. * Generated from protobuf field <code>string host = 1;</code>
  66. * @param string $var
  67. * @return $this
  68. */
  69. public function setHost($var)
  70. {
  71. GPBUtil::checkString($var, True);
  72. $this->host = $var;
  73. return $this;
  74. }
  75. /**
  76. * Required. Computational unit port.
  77. *
  78. * Generated from protobuf field <code>uint32 port = 2;</code>
  79. * @return int
  80. */
  81. public function getPort()
  82. {
  83. return $this->port;
  84. }
  85. /**
  86. * Required. Computational unit port.
  87. *
  88. * Generated from protobuf field <code>uint32 port = 2;</code>
  89. * @param int $var
  90. * @return $this
  91. */
  92. public function setPort($var)
  93. {
  94. GPBUtil::checkUint32($var);
  95. $this->port = $var;
  96. return $this;
  97. }
  98. /**
  99. * Required. Computational unit kind.
  100. *
  101. * Generated from protobuf field <code>string unit_kind = 3;</code>
  102. * @return string
  103. */
  104. public function getUnitKind()
  105. {
  106. return $this->unit_kind;
  107. }
  108. /**
  109. * Required. Computational unit kind.
  110. *
  111. * Generated from protobuf field <code>string unit_kind = 3;</code>
  112. * @param string $var
  113. * @return $this
  114. */
  115. public function setUnitKind($var)
  116. {
  117. GPBUtil::checkString($var, True);
  118. $this->unit_kind = $var;
  119. return $this;
  120. }
  121. }