TypedValue.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_value.proto
  4. namespace Ydb;
  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.TypedValue</code>
  10. */
  11. class TypedValue extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Type type = 1;</code>
  15. */
  16. protected $type = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Value value = 2;</code>
  19. */
  20. protected $value = null;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Ydb\Type $type
  28. * @type \Ydb\Value $value
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbValue::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>.Ydb.Type type = 1;</code>
  37. * @return \Ydb\Type|null
  38. */
  39. public function getType()
  40. {
  41. return $this->type;
  42. }
  43. public function hasType()
  44. {
  45. return isset($this->type);
  46. }
  47. public function clearType()
  48. {
  49. unset($this->type);
  50. }
  51. /**
  52. * Generated from protobuf field <code>.Ydb.Type type = 1;</code>
  53. * @param \Ydb\Type $var
  54. * @return $this
  55. */
  56. public function setType($var)
  57. {
  58. GPBUtil::checkMessage($var, \Ydb\Type::class);
  59. $this->type = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>.Ydb.Value value = 2;</code>
  64. * @return \Ydb\Value|null
  65. */
  66. public function getValue()
  67. {
  68. return $this->value;
  69. }
  70. public function hasValue()
  71. {
  72. return isset($this->value);
  73. }
  74. public function clearValue()
  75. {
  76. unset($this->value);
  77. }
  78. /**
  79. * Generated from protobuf field <code>.Ydb.Value value = 2;</code>
  80. * @param \Ydb\Value $var
  81. * @return $this
  82. */
  83. public function setValue($var)
  84. {
  85. GPBUtil::checkMessage($var, \Ydb\Value::class);
  86. $this->value = $var;
  87. return $this;
  88. }
  89. }