CreateNodeRequest.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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.CreateNodeRequest</code>
  10. */
  11. class CreateNodeRequest 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.Coordination.Config config = 2;</code>
  19. */
  20. protected $config = null;
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 3;</code>
  23. */
  24. protected $operation_params = null;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type string $path
  32. * @type \Ydb\Coordination\Config $config
  33. * @type \Ydb\Operations\OperationParams $operation_params
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbCoordination::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>string path = 1;</code>
  42. * @return string
  43. */
  44. public function getPath()
  45. {
  46. return $this->path;
  47. }
  48. /**
  49. * Generated from protobuf field <code>string path = 1;</code>
  50. * @param string $var
  51. * @return $this
  52. */
  53. public function setPath($var)
  54. {
  55. GPBUtil::checkString($var, True);
  56. $this->path = $var;
  57. return $this;
  58. }
  59. /**
  60. * Generated from protobuf field <code>.Ydb.Coordination.Config config = 2;</code>
  61. * @return \Ydb\Coordination\Config|null
  62. */
  63. public function getConfig()
  64. {
  65. return $this->config;
  66. }
  67. public function hasConfig()
  68. {
  69. return isset($this->config);
  70. }
  71. public function clearConfig()
  72. {
  73. unset($this->config);
  74. }
  75. /**
  76. * Generated from protobuf field <code>.Ydb.Coordination.Config config = 2;</code>
  77. * @param \Ydb\Coordination\Config $var
  78. * @return $this
  79. */
  80. public function setConfig($var)
  81. {
  82. GPBUtil::checkMessage($var, \Ydb\Coordination\Config::class);
  83. $this->config = $var;
  84. return $this;
  85. }
  86. /**
  87. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 3;</code>
  88. * @return \Ydb\Operations\OperationParams|null
  89. */
  90. public function getOperationParams()
  91. {
  92. return $this->operation_params;
  93. }
  94. public function hasOperationParams()
  95. {
  96. return isset($this->operation_params);
  97. }
  98. public function clearOperationParams()
  99. {
  100. unset($this->operation_params);
  101. }
  102. /**
  103. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 3;</code>
  104. * @param \Ydb\Operations\OperationParams $var
  105. * @return $this
  106. */
  107. public function setOperationParams($var)
  108. {
  109. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  110. $this->operation_params = $var;
  111. return $this;
  112. }
  113. }