Column.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.Column</code>
  10. */
  11. class Column extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Name of column
  15. *
  16. * Generated from protobuf field <code>string name = 1;</code>
  17. */
  18. protected $name = '';
  19. /**
  20. * Type of column
  21. *
  22. * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
  23. */
  24. protected $type = null;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type string $name
  32. * Name of column
  33. * @type \Ydb\Type $type
  34. * Type of column
  35. * }
  36. */
  37. public function __construct($data = NULL) {
  38. \GPBMetadata\Protos\YdbValue::initOnce();
  39. parent::__construct($data);
  40. }
  41. /**
  42. * Name of column
  43. *
  44. * Generated from protobuf field <code>string name = 1;</code>
  45. * @return string
  46. */
  47. public function getName()
  48. {
  49. return $this->name;
  50. }
  51. /**
  52. * Name of column
  53. *
  54. * Generated from protobuf field <code>string name = 1;</code>
  55. * @param string $var
  56. * @return $this
  57. */
  58. public function setName($var)
  59. {
  60. GPBUtil::checkString($var, True);
  61. $this->name = $var;
  62. return $this;
  63. }
  64. /**
  65. * Type of column
  66. *
  67. * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
  68. * @return \Ydb\Type|null
  69. */
  70. public function getType()
  71. {
  72. return $this->type;
  73. }
  74. public function hasType()
  75. {
  76. return isset($this->type);
  77. }
  78. public function clearType()
  79. {
  80. unset($this->type);
  81. }
  82. /**
  83. * Type of column
  84. *
  85. * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
  86. * @param \Ydb\Type $var
  87. * @return $this
  88. */
  89. public function setType($var)
  90. {
  91. GPBUtil::checkMessage($var, \Ydb\Type::class);
  92. $this->type = $var;
  93. return $this;
  94. }
  95. }