AlterTopicResponse.php 1.9 KB

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