Query.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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.Query</code>
  10. */
  11. class Query extends \Google\Protobuf\Internal\Message
  12. {
  13. protected $query;
  14. /**
  15. * Constructor.
  16. *
  17. * @param array $data {
  18. * Optional. Data for populating the Message object.
  19. *
  20. * @type string $yql_text
  21. * SQL program
  22. * @type string $id
  23. * Prepared query id
  24. * }
  25. */
  26. public function __construct($data = NULL) {
  27. \GPBMetadata\Protos\YdbTable::initOnce();
  28. parent::__construct($data);
  29. }
  30. /**
  31. * SQL program
  32. *
  33. * Generated from protobuf field <code>string yql_text = 1;</code>
  34. * @return string
  35. */
  36. public function getYqlText()
  37. {
  38. return $this->readOneof(1);
  39. }
  40. public function hasYqlText()
  41. {
  42. return $this->hasOneof(1);
  43. }
  44. /**
  45. * SQL program
  46. *
  47. * Generated from protobuf field <code>string yql_text = 1;</code>
  48. * @param string $var
  49. * @return $this
  50. */
  51. public function setYqlText($var)
  52. {
  53. GPBUtil::checkString($var, True);
  54. $this->writeOneof(1, $var);
  55. return $this;
  56. }
  57. /**
  58. * Prepared query id
  59. *
  60. * Generated from protobuf field <code>string id = 2;</code>
  61. * @return string
  62. */
  63. public function getId()
  64. {
  65. return $this->readOneof(2);
  66. }
  67. public function hasId()
  68. {
  69. return $this->hasOneof(2);
  70. }
  71. /**
  72. * Prepared query id
  73. *
  74. * Generated from protobuf field <code>string id = 2;</code>
  75. * @param string $var
  76. * @return $this
  77. */
  78. public function setId($var)
  79. {
  80. GPBUtil::checkString($var, True);
  81. $this->writeOneof(2, $var);
  82. return $this;
  83. }
  84. /**
  85. * @return string
  86. */
  87. public function getQuery()
  88. {
  89. return $this->whichOneof("query");
  90. }
  91. }