ListResourcesRequest.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_rate_limiter.proto
  4. namespace Ydb\RateLimiter;
  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.RateLimiter.ListResourcesRequest</code>
  10. */
  11. class ListResourcesRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  15. */
  16. protected $operation_params = null;
  17. /**
  18. * Path of a coordination node.
  19. *
  20. * Generated from protobuf field <code>string coordination_node_path = 2;</code>
  21. */
  22. protected $coordination_node_path = '';
  23. /**
  24. * Path of resource inside a coordination node.
  25. * May be empty.
  26. * In that case all root resources will be listed.
  27. *
  28. * Generated from protobuf field <code>string resource_path = 3;</code>
  29. */
  30. protected $resource_path = '';
  31. /**
  32. * List resources recursively.
  33. *
  34. * Generated from protobuf field <code>bool recursive = 4;</code>
  35. */
  36. protected $recursive = false;
  37. /**
  38. * Constructor.
  39. *
  40. * @param array $data {
  41. * Optional. Data for populating the Message object.
  42. *
  43. * @type \Ydb\Operations\OperationParams $operation_params
  44. * @type string $coordination_node_path
  45. * Path of a coordination node.
  46. * @type string $resource_path
  47. * Path of resource inside a coordination node.
  48. * May be empty.
  49. * In that case all root resources will be listed.
  50. * @type bool $recursive
  51. * List resources recursively.
  52. * }
  53. */
  54. public function __construct($data = NULL) {
  55. \GPBMetadata\Protos\YdbRateLimiter::initOnce();
  56. parent::__construct($data);
  57. }
  58. /**
  59. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  60. * @return \Ydb\Operations\OperationParams|null
  61. */
  62. public function getOperationParams()
  63. {
  64. return $this->operation_params;
  65. }
  66. public function hasOperationParams()
  67. {
  68. return isset($this->operation_params);
  69. }
  70. public function clearOperationParams()
  71. {
  72. unset($this->operation_params);
  73. }
  74. /**
  75. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  76. * @param \Ydb\Operations\OperationParams $var
  77. * @return $this
  78. */
  79. public function setOperationParams($var)
  80. {
  81. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  82. $this->operation_params = $var;
  83. return $this;
  84. }
  85. /**
  86. * Path of a coordination node.
  87. *
  88. * Generated from protobuf field <code>string coordination_node_path = 2;</code>
  89. * @return string
  90. */
  91. public function getCoordinationNodePath()
  92. {
  93. return $this->coordination_node_path;
  94. }
  95. /**
  96. * Path of a coordination node.
  97. *
  98. * Generated from protobuf field <code>string coordination_node_path = 2;</code>
  99. * @param string $var
  100. * @return $this
  101. */
  102. public function setCoordinationNodePath($var)
  103. {
  104. GPBUtil::checkString($var, True);
  105. $this->coordination_node_path = $var;
  106. return $this;
  107. }
  108. /**
  109. * Path of resource inside a coordination node.
  110. * May be empty.
  111. * In that case all root resources will be listed.
  112. *
  113. * Generated from protobuf field <code>string resource_path = 3;</code>
  114. * @return string
  115. */
  116. public function getResourcePath()
  117. {
  118. return $this->resource_path;
  119. }
  120. /**
  121. * Path of resource inside a coordination node.
  122. * May be empty.
  123. * In that case all root resources will be listed.
  124. *
  125. * Generated from protobuf field <code>string resource_path = 3;</code>
  126. * @param string $var
  127. * @return $this
  128. */
  129. public function setResourcePath($var)
  130. {
  131. GPBUtil::checkString($var, True);
  132. $this->resource_path = $var;
  133. return $this;
  134. }
  135. /**
  136. * List resources recursively.
  137. *
  138. * Generated from protobuf field <code>bool recursive = 4;</code>
  139. * @return bool
  140. */
  141. public function getRecursive()
  142. {
  143. return $this->recursive;
  144. }
  145. /**
  146. * List resources recursively.
  147. *
  148. * Generated from protobuf field <code>bool recursive = 4;</code>
  149. * @param bool $var
  150. * @return $this
  151. */
  152. public function setRecursive($var)
  153. {
  154. GPBUtil::checkBool($var);
  155. $this->recursive = $var;
  156. return $this;
  157. }
  158. }