QueryMeta.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. * Holds query id and type of parameters
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.QueryMeta</code>
  12. */
  13. class QueryMeta extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Query identifier
  17. *
  18. * Generated from protobuf field <code>string id = 1;</code>
  19. */
  20. protected $id = '';
  21. /**
  22. * Type of parameters
  23. *
  24. * Generated from protobuf field <code>map<string, .Ydb.Type> parameters_types = 2;</code>
  25. */
  26. private $parameters_types;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type string $id
  34. * Query identifier
  35. * @type array|\Google\Protobuf\Internal\MapField $parameters_types
  36. * Type of parameters
  37. * }
  38. */
  39. public function __construct($data = NULL) {
  40. \GPBMetadata\Protos\YdbTable::initOnce();
  41. parent::__construct($data);
  42. }
  43. /**
  44. * Query identifier
  45. *
  46. * Generated from protobuf field <code>string id = 1;</code>
  47. * @return string
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * Query identifier
  55. *
  56. * Generated from protobuf field <code>string id = 1;</code>
  57. * @param string $var
  58. * @return $this
  59. */
  60. public function setId($var)
  61. {
  62. GPBUtil::checkString($var, True);
  63. $this->id = $var;
  64. return $this;
  65. }
  66. /**
  67. * Type of parameters
  68. *
  69. * Generated from protobuf field <code>map<string, .Ydb.Type> parameters_types = 2;</code>
  70. * @return \Google\Protobuf\Internal\MapField
  71. */
  72. public function getParametersTypes()
  73. {
  74. return $this->parameters_types;
  75. }
  76. /**
  77. * Type of parameters
  78. *
  79. * Generated from protobuf field <code>map<string, .Ydb.Type> parameters_types = 2;</code>
  80. * @param array|\Google\Protobuf\Internal\MapField $var
  81. * @return $this
  82. */
  83. public function setParametersTypes($var)
  84. {
  85. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Type::class);
  86. $this->parameters_types = $arr;
  87. return $this;
  88. }
  89. }