DropResourceRequest.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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.DropResourceRequest</code>
  10. */
  11. class DropResourceRequest 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. *
  26. * Generated from protobuf field <code>string resource_path = 3;</code>
  27. */
  28. protected $resource_path = '';
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type \Ydb\Operations\OperationParams $operation_params
  36. * @type string $coordination_node_path
  37. * Path of a coordination node.
  38. * @type string $resource_path
  39. * Path of resource inside a coordination node.
  40. * }
  41. */
  42. public function __construct($data = NULL) {
  43. \GPBMetadata\Protos\YdbRateLimiter::initOnce();
  44. parent::__construct($data);
  45. }
  46. /**
  47. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  48. * @return \Ydb\Operations\OperationParams|null
  49. */
  50. public function getOperationParams()
  51. {
  52. return $this->operation_params;
  53. }
  54. public function hasOperationParams()
  55. {
  56. return isset($this->operation_params);
  57. }
  58. public function clearOperationParams()
  59. {
  60. unset($this->operation_params);
  61. }
  62. /**
  63. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  64. * @param \Ydb\Operations\OperationParams $var
  65. * @return $this
  66. */
  67. public function setOperationParams($var)
  68. {
  69. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  70. $this->operation_params = $var;
  71. return $this;
  72. }
  73. /**
  74. * Path of a coordination node.
  75. *
  76. * Generated from protobuf field <code>string coordination_node_path = 2;</code>
  77. * @return string
  78. */
  79. public function getCoordinationNodePath()
  80. {
  81. return $this->coordination_node_path;
  82. }
  83. /**
  84. * Path of a coordination node.
  85. *
  86. * Generated from protobuf field <code>string coordination_node_path = 2;</code>
  87. * @param string $var
  88. * @return $this
  89. */
  90. public function setCoordinationNodePath($var)
  91. {
  92. GPBUtil::checkString($var, True);
  93. $this->coordination_node_path = $var;
  94. return $this;
  95. }
  96. /**
  97. * Path of resource inside a coordination node.
  98. *
  99. * Generated from protobuf field <code>string resource_path = 3;</code>
  100. * @return string
  101. */
  102. public function getResourcePath()
  103. {
  104. return $this->resource_path;
  105. }
  106. /**
  107. * Path of resource inside a coordination node.
  108. *
  109. * Generated from protobuf field <code>string resource_path = 3;</code>
  110. * @param string $var
  111. * @return $this
  112. */
  113. public function setResourcePath($var)
  114. {
  115. GPBUtil::checkString($var, True);
  116. $this->resource_path = $var;
  117. return $this;
  118. }
  119. }