AlterResourceRequest.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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.AlterResourceRequest</code>
  10. */
  11. class AlterResourceRequest 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. * New resource properties.
  25. *
  26. * Generated from protobuf field <code>.Ydb.RateLimiter.Resource resource = 3;</code>
  27. */
  28. protected $resource = null;
  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 \Ydb\RateLimiter\Resource $resource
  39. * New resource properties.
  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. * New resource properties.
  98. *
  99. * Generated from protobuf field <code>.Ydb.RateLimiter.Resource resource = 3;</code>
  100. * @return \Ydb\RateLimiter\Resource|null
  101. */
  102. public function getResource()
  103. {
  104. return $this->resource;
  105. }
  106. public function hasResource()
  107. {
  108. return isset($this->resource);
  109. }
  110. public function clearResource()
  111. {
  112. unset($this->resource);
  113. }
  114. /**
  115. * New resource properties.
  116. *
  117. * Generated from protobuf field <code>.Ydb.RateLimiter.Resource resource = 3;</code>
  118. * @param \Ydb\RateLimiter\Resource $var
  119. * @return $this
  120. */
  121. public function setResource($var)
  122. {
  123. GPBUtil::checkMessage($var, \Ydb\RateLimiter\Resource::class);
  124. $this->resource = $var;
  125. return $this;
  126. }
  127. }