DescribeDatabaseOptionsResult.php 3.9 KB

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