DescribeTopicRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. * Describe topic request sent from client to server.
  10. *
  11. * Generated from protobuf message <code>Ydb.Topic.DescribeTopicRequest</code>
  12. */
  13. class DescribeTopicRequest 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. * Include topic statistics.
  27. *
  28. * Generated from protobuf field <code>bool include_stats = 3;</code>
  29. */
  30. protected $include_stats = false;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type \Ydb\Operations\OperationParams $operation_params
  38. * @type string $path
  39. * Topic path.
  40. * @type bool $include_stats
  41. * Include topic statistics.
  42. * }
  43. */
  44. public function __construct($data = NULL) {
  45. \GPBMetadata\Protos\YdbTopic::initOnce();
  46. parent::__construct($data);
  47. }
  48. /**
  49. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  50. * @return \Ydb\Operations\OperationParams|null
  51. */
  52. public function getOperationParams()
  53. {
  54. return $this->operation_params;
  55. }
  56. public function hasOperationParams()
  57. {
  58. return isset($this->operation_params);
  59. }
  60. public function clearOperationParams()
  61. {
  62. unset($this->operation_params);
  63. }
  64. /**
  65. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  66. * @param \Ydb\Operations\OperationParams $var
  67. * @return $this
  68. */
  69. public function setOperationParams($var)
  70. {
  71. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  72. $this->operation_params = $var;
  73. return $this;
  74. }
  75. /**
  76. * Topic path.
  77. *
  78. * Generated from protobuf field <code>string path = 2;</code>
  79. * @return string
  80. */
  81. public function getPath()
  82. {
  83. return $this->path;
  84. }
  85. /**
  86. * Topic path.
  87. *
  88. * Generated from protobuf field <code>string path = 2;</code>
  89. * @param string $var
  90. * @return $this
  91. */
  92. public function setPath($var)
  93. {
  94. GPBUtil::checkString($var, True);
  95. $this->path = $var;
  96. return $this;
  97. }
  98. /**
  99. * Include topic statistics.
  100. *
  101. * Generated from protobuf field <code>bool include_stats = 3;</code>
  102. * @return bool
  103. */
  104. public function getIncludeStats()
  105. {
  106. return $this->include_stats;
  107. }
  108. /**
  109. * Include topic statistics.
  110. *
  111. * Generated from protobuf field <code>bool include_stats = 3;</code>
  112. * @param bool $var
  113. * @return $this
  114. */
  115. public function setIncludeStats($var)
  116. {
  117. GPBUtil::checkBool($var);
  118. $this->include_stats = $var;
  119. return $this;
  120. }
  121. }