ExecuteYqlRequest.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_scripting.proto
  4. namespace Ydb\Scripting;
  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.Scripting.ExecuteYqlRequest</code>
  10. */
  11. class ExecuteYqlRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  15. */
  16. protected $operation_params = null;
  17. /**
  18. * Generated from protobuf field <code>string script = 2;</code>
  19. */
  20. protected $script = '';
  21. /**
  22. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 3;</code>
  23. */
  24. private $parameters;
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;</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\Operations\OperationParams $operation_params
  36. * @type string $script
  37. * @type array|\Google\Protobuf\Internal\MapField $parameters
  38. * @type int $collect_stats
  39. * }
  40. */
  41. public function __construct($data = NULL) {
  42. \GPBMetadata\Protos\YdbScripting::initOnce();
  43. parent::__construct($data);
  44. }
  45. /**
  46. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  47. * @return \Ydb\Operations\OperationParams|null
  48. */
  49. public function getOperationParams()
  50. {
  51. return $this->operation_params;
  52. }
  53. public function hasOperationParams()
  54. {
  55. return isset($this->operation_params);
  56. }
  57. public function clearOperationParams()
  58. {
  59. unset($this->operation_params);
  60. }
  61. /**
  62. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  63. * @param \Ydb\Operations\OperationParams $var
  64. * @return $this
  65. */
  66. public function setOperationParams($var)
  67. {
  68. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  69. $this->operation_params = $var;
  70. return $this;
  71. }
  72. /**
  73. * Generated from protobuf field <code>string script = 2;</code>
  74. * @return string
  75. */
  76. public function getScript()
  77. {
  78. return $this->script;
  79. }
  80. /**
  81. * Generated from protobuf field <code>string script = 2;</code>
  82. * @param string $var
  83. * @return $this
  84. */
  85. public function setScript($var)
  86. {
  87. GPBUtil::checkString($var, True);
  88. $this->script = $var;
  89. return $this;
  90. }
  91. /**
  92. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 3;</code>
  93. * @return \Google\Protobuf\Internal\MapField
  94. */
  95. public function getParameters()
  96. {
  97. return $this->parameters;
  98. }
  99. /**
  100. * Generated from protobuf field <code>map<string, .Ydb.TypedValue> parameters = 3;</code>
  101. * @param array|\Google\Protobuf\Internal\MapField $var
  102. * @return $this
  103. */
  104. public function setParameters($var)
  105. {
  106. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
  107. $this->parameters = $arr;
  108. return $this;
  109. }
  110. /**
  111. * Generated from protobuf field <code>.Ydb.Table.QueryStatsCollection.Mode collect_stats = 4;</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 = 4;</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. }