DescribeConsumerRequest.php 4.0 KB

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