ListDirectoryResult.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_scheme.proto
  4. namespace Ydb\Scheme;
  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.Scheme.ListDirectoryResult</code>
  10. */
  11. class ListDirectoryResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
  15. */
  16. protected $self = null;
  17. /**
  18. * Generated from protobuf field <code>repeated .Ydb.Scheme.Entry children = 2;</code>
  19. */
  20. private $children;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Ydb\Scheme\Entry $self
  28. * @type array<\Ydb\Scheme\Entry>|\Google\Protobuf\Internal\RepeatedField $children
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbScheme::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
  37. * @return \Ydb\Scheme\Entry|null
  38. */
  39. public function getSelf()
  40. {
  41. return $this->self;
  42. }
  43. public function hasSelf()
  44. {
  45. return isset($this->self);
  46. }
  47. public function clearSelf()
  48. {
  49. unset($this->self);
  50. }
  51. /**
  52. * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
  53. * @param \Ydb\Scheme\Entry $var
  54. * @return $this
  55. */
  56. public function setSelf($var)
  57. {
  58. GPBUtil::checkMessage($var, \Ydb\Scheme\Entry::class);
  59. $this->self = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>repeated .Ydb.Scheme.Entry children = 2;</code>
  64. * @return \Google\Protobuf\Internal\RepeatedField
  65. */
  66. public function getChildren()
  67. {
  68. return $this->children;
  69. }
  70. /**
  71. * Generated from protobuf field <code>repeated .Ydb.Scheme.Entry children = 2;</code>
  72. * @param array<\Ydb\Scheme\Entry>|\Google\Protobuf\Internal\RepeatedField $var
  73. * @return $this
  74. */
  75. public function setChildren($var)
  76. {
  77. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Scheme\Entry::class);
  78. $this->children = $arr;
  79. return $this;
  80. }
  81. }