DropTopicRequest.php 2.5 KB

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