MapKey.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/annotations/validation.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.MapKey</code>
  10. */
  11. class MapKey extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Limit length = 1;</code>
  15. */
  16. protected $length = null;
  17. /**
  18. * Generated from protobuf field <code>string value = 2;</code>
  19. */
  20. protected $value = '';
  21. /**
  22. * Constructor.
  23. *
  24. * @param array $data {
  25. * Optional. Data for populating the Message object.
  26. *
  27. * @type \Ydb\Limit $length
  28. * @type string $value
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\Annotations\Validation::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * Generated from protobuf field <code>.Ydb.Limit length = 1;</code>
  37. * @return \Ydb\Limit|null
  38. */
  39. public function getLength()
  40. {
  41. return $this->length;
  42. }
  43. public function hasLength()
  44. {
  45. return isset($this->length);
  46. }
  47. public function clearLength()
  48. {
  49. unset($this->length);
  50. }
  51. /**
  52. * Generated from protobuf field <code>.Ydb.Limit length = 1;</code>
  53. * @param \Ydb\Limit $var
  54. * @return $this
  55. */
  56. public function setLength($var)
  57. {
  58. GPBUtil::checkMessage($var, \Ydb\Limit::class);
  59. $this->length = $var;
  60. return $this;
  61. }
  62. /**
  63. * Generated from protobuf field <code>string value = 2;</code>
  64. * @return string
  65. */
  66. public function getValue()
  67. {
  68. return $this->value;
  69. }
  70. /**
  71. * Generated from protobuf field <code>string value = 2;</code>
  72. * @param string $var
  73. * @return $this
  74. */
  75. public function setValue($var)
  76. {
  77. GPBUtil::checkString($var, True);
  78. $this->value = $var;
  79. return $this;
  80. }
  81. }