Resources.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 computational and storage resources.
  10. *
  11. * Generated from protobuf message <code>Ydb.Cms.Resources</code>
  12. */
  13. class Resources extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Storage resources.
  17. *
  18. * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units = 1;</code>
  19. */
  20. private $storage_units;
  21. /**
  22. * Computational resources.
  23. *
  24. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units = 2;</code>
  25. */
  26. private $computational_units;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $storage_units
  34. * Storage resources.
  35. * @type array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $computational_units
  36. * Computational resources.
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Protos\YdbCms::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * Storage resources.
  45. *
  46. * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units = 1;</code>
  47. * @return \Google\Protobuf\Internal\RepeatedField
  48. */
  49. public function getStorageUnits()
  50. {
  51. return $this->storage_units;
  52. }
  53. /**
  54. * Storage resources.
  55. *
  56. * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units = 1;</code>
  57. * @param array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $var
  58. * @return $this
  59. */
  60. public function setStorageUnits($var)
  61. {
  62. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\StorageUnits::class);
  63. $this->storage_units = $arr;
  64. return $this;
  65. }
  66. /**
  67. * Computational resources.
  68. *
  69. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units = 2;</code>
  70. * @return \Google\Protobuf\Internal\RepeatedField
  71. */
  72. public function getComputationalUnits()
  73. {
  74. return $this->computational_units;
  75. }
  76. /**
  77. * Computational resources.
  78. *
  79. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units = 2;</code>
  80. * @param array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $var
  81. * @return $this
  82. */
  83. public function setComputationalUnits($var)
  84. {
  85. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\ComputationalUnits::class);
  86. $this->computational_units = $arr;
  87. return $this;
  88. }
  89. }