ExplainYqlRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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.ExplainYqlRequest</code>
  10. */
  11. class ExplainYqlRequest 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>.Ydb.Scripting.ExplainYqlRequest.Mode mode = 3;</code>
  23. */
  24. protected $mode = 0;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type \Ydb\Operations\OperationParams $operation_params
  32. * @type string $script
  33. * @type int $mode
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbScripting::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  42. * @return \Ydb\Operations\OperationParams|null
  43. */
  44. public function getOperationParams()
  45. {
  46. return $this->operation_params;
  47. }
  48. public function hasOperationParams()
  49. {
  50. return isset($this->operation_params);
  51. }
  52. public function clearOperationParams()
  53. {
  54. unset($this->operation_params);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  58. * @param \Ydb\Operations\OperationParams $var
  59. * @return $this
  60. */
  61. public function setOperationParams($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  64. $this->operation_params = $var;
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>string script = 2;</code>
  69. * @return string
  70. */
  71. public function getScript()
  72. {
  73. return $this->script;
  74. }
  75. /**
  76. * Generated from protobuf field <code>string script = 2;</code>
  77. * @param string $var
  78. * @return $this
  79. */
  80. public function setScript($var)
  81. {
  82. GPBUtil::checkString($var, True);
  83. $this->script = $var;
  84. return $this;
  85. }
  86. /**
  87. * Generated from protobuf field <code>.Ydb.Scripting.ExplainYqlRequest.Mode mode = 3;</code>
  88. * @return int
  89. */
  90. public function getMode()
  91. {
  92. return $this->mode;
  93. }
  94. /**
  95. * Generated from protobuf field <code>.Ydb.Scripting.ExplainYqlRequest.Mode mode = 3;</code>
  96. * @param int $var
  97. * @return $this
  98. */
  99. public function setMode($var)
  100. {
  101. GPBUtil::checkEnum($var, \Ydb\Scripting\ExplainYqlRequest\Mode::class);
  102. $this->mode = $var;
  103. return $this;
  104. }
  105. }