GetDatabaseStatusRequest.php 2.7 KB

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