MakeDirectoryRequest.php 2.4 KB

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