DictType.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.DictType</code>
  10. */
  11. class DictType extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Type key = 1;</code>
  15. */
  16. protected $key = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Type payload = 2;</code>
  19. */
  20. protected $payload = null;
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Ydb\Type $key
  28. * @type \Ydb\Type $payload
  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 key = 1;</code>
  37. * @return \Ydb\Type|null
  38. */
  39. public function getKey()
  40. {
  41. return $this->key;
  42. }
  43. public function hasKey()
  44. {
  45. return isset($this->key);
  46. }
  47. public function clearKey()
  48. {
  49. unset($this->key);
  50. }
  51. /**
  52. * Generated from protobuf field <code>.Ydb.Type key = 1;</code>
  53. * @param \Ydb\Type $var
  54. * @return $this
  55. */
  56. public function setKey($var)
  57. {
  58. GPBUtil::checkMessage($var, \Ydb\Type::class);
  59. $this->key = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>.Ydb.Type payload = 2;</code>
  64. * @return \Ydb\Type|null
  65. */
  66. public function getPayload()
  67. {
  68. return $this->payload;
  69. }
  70. public function hasPayload()
  71. {
  72. return isset($this->payload);
  73. }
  74. public function clearPayload()
  75. {
  76. unset($this->payload);
  77. }
  78. /**
  79. * Generated from protobuf field <code>.Ydb.Type payload = 2;</code>
  80. * @param \Ydb\Type $var
  81. * @return $this
  82. */
  83. public function setPayload($var)
  84. {
  85. GPBUtil::checkMessage($var, \Ydb\Type::class);
  86. $this->payload = $var;
  87. return $this;
  88. }
  89. }