ExecuteScanQueryRequest.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_table.proto
  4. namespace Ydb\Table;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>Ydb.Table.ExecuteScanQueryRequest</code>
  10. */
  11. class ExecuteScanQueryRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
  15. */
  16. protected $query = null;
  17. /**
  18. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
  19. */
  20. private $parameters;
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Table.ExecuteScanQueryRequest.Mode mode = 6;</code>
  23. */
  24. protected $mode = 0;
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 8;</code>
  27. */
  28. protected $collect_stats = 0;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type \Ydb\Table\Query $query
  36. * @type array|\Google\Protobuf\Internal\MapField $parameters
  37. * @type int $mode
  38. * @type int $collect_stats
  39. * }
  40. */
  41. public function __construct($data = NULL) {
  42. \GPBMetadata\Protos\YdbTable::initOnce();
  43. parent::__construct($data);
  44. }
  45. /**
  46. * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
  47. * @return \Ydb\Table\Query|null
  48. */
  49. public function getQuery()
  50. {
  51. return $this->query;
  52. }
  53. public function hasQuery()
  54. {
  55. return isset($this->query);
  56. }
  57. public function clearQuery()
  58. {
  59. unset($this->query);
  60. }
  61. /**
  62. * Generated from protobuf field <code>.Ydb.Table.Query query = 3;</code>
  63. * @param \Ydb\Table\Query $var
  64. * @return $this
  65. */
  66. public function setQuery($var)
  67. {
  68. GPBUtil::checkMessage($var, \Ydb\Table\Query::class);
  69. $this->query = $var;
  70. return $this;
  71. }
  72. /**
  73. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
  74. * @return \Google\Protobuf\Internal\MapField
  75. */
  76. public function getParameters()
  77. {
  78. return $this->parameters;
  79. }
  80. /**
  81. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 4;</code>
  82. * @param array|\Google\Protobuf\Internal\MapField $var
  83. * @return $this
  84. */
  85. public function setParameters($var)
  86. {
  87. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
  88. $this->parameters = $arr;
  89. return $this;
  90. }
  91. /**
  92. * Generated from protobuf field <code>.Ydb.Table.ExecuteScanQueryRequest.Mode mode = 6;</code>
  93. * @return int
  94. */
  95. public function getMode()
  96. {
  97. return $this->mode;
  98. }
  99. /**
  100. * Generated from protobuf field <code>.Ydb.Table.ExecuteScanQueryRequest.Mode mode = 6;</code>
  101. * @param int $var
  102. * @return $this
  103. */
  104. public function setMode($var)
  105. {
  106. GPBUtil::checkEnum($var, \Ydb\Table\ExecuteScanQueryRequest\Mode::class);
  107. $this->mode = $var;
  108. return $this;
  109. }
  110. /**
  111. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 8;</code>
  112. * @return int
  113. */
  114. public function getCollectStats()
  115. {
  116. return $this->collect_stats;
  117. }
  118. /**
  119. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 8;</code>
  120. * @param int $var
  121. * @return $this
  122. */
  123. public function setCollectStats($var)
  124. {
  125. GPBUtil::checkEnum($var, \Ydb\Table\QueryStatsCollection\Mode::class);
  126. $this->collect_stats = $var;
  127. return $this;
  128. }
  129. }