DropNodeRequest.php 2.3 KB

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