ColumnMeta.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. * Generated from protobuf message <code>Ydb.Table.ColumnMeta</code>
  10. */
  11. class ColumnMeta 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. * Column family name of the column
  27. *
  28. * Generated from protobuf field <code>string family = 3;</code>
  29. */
  30. protected $family = '';
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type string $name
  38. * Name of column
  39. * @type \Ydb\Type $type
  40. * Type of column
  41. * @type string $family
  42. * Column family name of the column
  43. * }
  44. */
  45. public function __construct($data = NULL) {
  46. \GPBMetadata\Protos\YdbTable::initOnce();
  47. parent::__construct($data);
  48. }
  49. /**
  50. * Name of column
  51. *
  52. * Generated from protobuf field <code>string name = 1;</code>
  53. * @return string
  54. */
  55. public function getName()
  56. {
  57. return $this->name;
  58. }
  59. /**
  60. * Name of column
  61. *
  62. * Generated from protobuf field <code>string name = 1;</code>
  63. * @param string $var
  64. * @return $this
  65. */
  66. public function setName($var)
  67. {
  68. GPBUtil::checkString($var, True);
  69. $this->name = $var;
  70. return $this;
  71. }
  72. /**
  73. * Type of column
  74. *
  75. * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
  76. * @return \Ydb\Type|null
  77. */
  78. public function getType()
  79. {
  80. return $this->type;
  81. }
  82. public function hasType()
  83. {
  84. return isset($this->type);
  85. }
  86. public function clearType()
  87. {
  88. unset($this->type);
  89. }
  90. /**
  91. * Type of column
  92. *
  93. * Generated from protobuf field <code>.Ydb.Type type = 2;</code>
  94. * @param \Ydb\Type $var
  95. * @return $this
  96. */
  97. public function setType($var)
  98. {
  99. GPBUtil::checkMessage($var, \Ydb\Type::class);
  100. $this->type = $var;
  101. return $this;
  102. }
  103. /**
  104. * Column family name of the column
  105. *
  106. * Generated from protobuf field <code>string family = 3;</code>
  107. * @return string
  108. */
  109. public function getFamily()
  110. {
  111. return $this->family;
  112. }
  113. /**
  114. * Column family name of the column
  115. *
  116. * Generated from protobuf field <code>string family = 3;</code>
  117. * @param string $var
  118. * @return $this
  119. */
  120. public function setFamily($var)
  121. {
  122. GPBUtil::checkString($var, True);
  123. $this->family = $var;
  124. return $this;
  125. }
  126. }