LocationStorageVDisk.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_monitoring.proto
  4. namespace Ydb\Monitoring;
  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.Monitoring.LocationStorageVDisk</code>
  10. */
  11. class LocationStorageVDisk extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>repeated string id = 1;</code>
  15. */
  16. private $id;
  17. /**
  18. * Generated from protobuf field <code>repeated .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;</code>
  19. */
  20. private $pdisk;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $id
  28. * @type array<\Ydb\Monitoring\LocationStoragePDisk>|\Google\Protobuf\Internal\RepeatedField $pdisk
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>repeated string id = 1;</code>
  37. * @return \Google\Protobuf\Internal\RepeatedField
  38. */
  39. public function getId()
  40. {
  41. return $this->id;
  42. }
  43. /**
  44. * Generated from protobuf field <code>repeated string id = 1;</code>
  45. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  46. * @return $this
  47. */
  48. public function setId($var)
  49. {
  50. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  51. $this->id = $arr;
  52. return $this;
  53. }
  54. /**
  55. * Generated from protobuf field <code>repeated .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;</code>
  56. * @return \Google\Protobuf\Internal\RepeatedField
  57. */
  58. public function getPdisk()
  59. {
  60. return $this->pdisk;
  61. }
  62. /**
  63. * Generated from protobuf field <code>repeated .Ydb.Monitoring.LocationStoragePDisk pdisk = 2;</code>
  64. * @param array<\Ydb\Monitoring\LocationStoragePDisk>|\Google\Protobuf\Internal\RepeatedField $var
  65. * @return $this
  66. */
  67. public function setPdisk($var)
  68. {
  69. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Monitoring\LocationStoragePDisk::class);
  70. $this->pdisk = $arr;
  71. return $this;
  72. }
  73. }