DropTopicResponse.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 response sent from server to client.
  10. * If topic not exists then response status will be "SCHEME_ERROR".
  11. *
  12. * Generated from protobuf message <code>Ydb.Topic.DropTopicResponse</code>
  13. */
  14. class DropTopicResponse extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Result of request will be inside operation.
  18. *
  19. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  20. */
  21. protected $operation = null;
  22. /**
  23. * Constructor.
  24. *
  25. * @param array $data {
  26. * Optional. Data for populating the Message object.
  27. *
  28. * @type \Ydb\Operations\Operation $operation
  29. * Result of request will be inside operation.
  30. * }
  31. */
  32. public function __construct($data = NULL) {
  33. \GPBMetadata\Protos\YdbTopic::initOnce();
  34. parent::__construct($data);
  35. }
  36. /**
  37. * Result of request will be inside operation.
  38. *
  39. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  40. * @return \Ydb\Operations\Operation|null
  41. */
  42. public function getOperation()
  43. {
  44. return $this->operation;
  45. }
  46. public function hasOperation()
  47. {
  48. return isset($this->operation);
  49. }
  50. public function clearOperation()
  51. {
  52. unset($this->operation);
  53. }
  54. /**
  55. * Result of request will be inside operation.
  56. *
  57. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  58. * @param \Ydb\Operations\Operation $var
  59. * @return $this
  60. */
  61. public function setOperation($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Operations\Operation::class);
  64. $this->operation = $var;
  65. return $this;
  66. }
  67. }