Entry.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_scheme.proto
  4. namespace Ydb\Scheme;
  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.Scheme.Entry</code>
  10. */
  11. class Entry extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Name of scheme entry (dir2 of /dir1/dir2)
  15. *
  16. * Generated from protobuf field <code>string name = 1;</code>
  17. */
  18. protected $name = '';
  19. /**
  20. * SID (Security ID) of user or group
  21. *
  22. * Generated from protobuf field <code>string owner = 2;</code>
  23. */
  24. protected $owner = '';
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Scheme.Entry.Type type = 5;</code>
  27. */
  28. protected $type = 0;
  29. /**
  30. * Generated from protobuf field <code>repeated .Ydb.Scheme.Permissions effective_permissions = 6;</code>
  31. */
  32. private $effective_permissions;
  33. /**
  34. * Generated from protobuf field <code>repeated .Ydb.Scheme.Permissions permissions = 7;</code>
  35. */
  36. private $permissions;
  37. /**
  38. * Size of entry in bytes. Currently filled for:
  39. * - TABLE;
  40. * - DATABASE.
  41. * Empty (zero) in other cases.
  42. *
  43. * Generated from protobuf field <code>uint64 size_bytes = 8;</code>
  44. */
  45. protected $size_bytes = 0;
  46. /**
  47. * Virtual timestamp when the object was created
  48. *
  49. * Generated from protobuf field <code>.Ydb.VirtualTimestamp created_at = 9;</code>
  50. */
  51. protected $created_at = null;
  52. /**
  53. * Constructor.
  54. *
  55. * @param array $data {
  56. * Optional. Data for populating the Message object.
  57. *
  58. * @type string $name
  59. * Name of scheme entry (dir2 of /dir1/dir2)
  60. * @type string $owner
  61. * SID (Security ID) of user or group
  62. * @type int $type
  63. * @type array<\Ydb\Scheme\Permissions>|\Google\Protobuf\Internal\RepeatedField $effective_permissions
  64. * @type array<\Ydb\Scheme\Permissions>|\Google\Protobuf\Internal\RepeatedField $permissions
  65. * @type int|string $size_bytes
  66. * Size of entry in bytes. Currently filled for:
  67. * - TABLE;
  68. * - DATABASE.
  69. * Empty (zero) in other cases.
  70. * @type \Ydb\VirtualTimestamp $created_at
  71. * Virtual timestamp when the object was created
  72. * }
  73. */
  74. public function __construct($data = NULL) {
  75. \GPBMetadata\Protos\YdbScheme::initOnce();
  76. parent::__construct($data);
  77. }
  78. /**
  79. * Name of scheme entry (dir2 of /dir1/dir2)
  80. *
  81. * Generated from protobuf field <code>string name = 1;</code>
  82. * @return string
  83. */
  84. public function getName()
  85. {
  86. return $this->name;
  87. }
  88. /**
  89. * Name of scheme entry (dir2 of /dir1/dir2)
  90. *
  91. * Generated from protobuf field <code>string name = 1;</code>
  92. * @param string $var
  93. * @return $this
  94. */
  95. public function setName($var)
  96. {
  97. GPBUtil::checkString($var, True);
  98. $this->name = $var;
  99. return $this;
  100. }
  101. /**
  102. * SID (Security ID) of user or group
  103. *
  104. * Generated from protobuf field <code>string owner = 2;</code>
  105. * @return string
  106. */
  107. public function getOwner()
  108. {
  109. return $this->owner;
  110. }
  111. /**
  112. * SID (Security ID) of user or group
  113. *
  114. * Generated from protobuf field <code>string owner = 2;</code>
  115. * @param string $var
  116. * @return $this
  117. */
  118. public function setOwner($var)
  119. {
  120. GPBUtil::checkString($var, True);
  121. $this->owner = $var;
  122. return $this;
  123. }
  124. /**
  125. * Generated from protobuf field <code>.Ydb.Scheme.Entry.Type type = 5;</code>
  126. * @return int
  127. */
  128. public function getType()
  129. {
  130. return $this->type;
  131. }
  132. /**
  133. * Generated from protobuf field <code>.Ydb.Scheme.Entry.Type type = 5;</code>
  134. * @param int $var
  135. * @return $this
  136. */
  137. public function setType($var)
  138. {
  139. GPBUtil::checkEnum($var, \Ydb\Scheme\Entry\Type::class);
  140. $this->type = $var;
  141. return $this;
  142. }
  143. /**
  144. * Generated from protobuf field <code>repeated .Ydb.Scheme.Permissions effective_permissions = 6;</code>
  145. * @return \Google\Protobuf\Internal\RepeatedField
  146. */
  147. public function getEffectivePermissions()
  148. {
  149. return $this->effective_permissions;
  150. }
  151. /**
  152. * Generated from protobuf field <code>repeated .Ydb.Scheme.Permissions effective_permissions = 6;</code>
  153. * @param array<\Ydb\Scheme\Permissions>|\Google\Protobuf\Internal\RepeatedField $var
  154. * @return $this
  155. */
  156. public function setEffectivePermissions($var)
  157. {
  158. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Scheme\Permissions::class);
  159. $this->effective_permissions = $arr;
  160. return $this;
  161. }
  162. /**
  163. * Generated from protobuf field <code>repeated .Ydb.Scheme.Permissions permissions = 7;</code>
  164. * @return \Google\Protobuf\Internal\RepeatedField
  165. */
  166. public function getPermissions()
  167. {
  168. return $this->permissions;
  169. }
  170. /**
  171. * Generated from protobuf field <code>repeated .Ydb.Scheme.Permissions permissions = 7;</code>
  172. * @param array<\Ydb\Scheme\Permissions>|\Google\Protobuf\Internal\RepeatedField $var
  173. * @return $this
  174. */
  175. public function setPermissions($var)
  176. {
  177. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Scheme\Permissions::class);
  178. $this->permissions = $arr;
  179. return $this;
  180. }
  181. /**
  182. * Size of entry in bytes. Currently filled for:
  183. * - TABLE;
  184. * - DATABASE.
  185. * Empty (zero) in other cases.
  186. *
  187. * Generated from protobuf field <code>uint64 size_bytes = 8;</code>
  188. * @return int|string
  189. */
  190. public function getSizeBytes()
  191. {
  192. return $this->size_bytes;
  193. }
  194. /**
  195. * Size of entry in bytes. Currently filled for:
  196. * - TABLE;
  197. * - DATABASE.
  198. * Empty (zero) in other cases.
  199. *
  200. * Generated from protobuf field <code>uint64 size_bytes = 8;</code>
  201. * @param int|string $var
  202. * @return $this
  203. */
  204. public function setSizeBytes($var)
  205. {
  206. GPBUtil::checkUint64($var);
  207. $this->size_bytes = $var;
  208. return $this;
  209. }
  210. /**
  211. * Virtual timestamp when the object was created
  212. *
  213. * Generated from protobuf field <code>.Ydb.VirtualTimestamp created_at = 9;</code>
  214. * @return \Ydb\VirtualTimestamp|null
  215. */
  216. public function getCreatedAt()
  217. {
  218. return $this->created_at;
  219. }
  220. public function hasCreatedAt()
  221. {
  222. return isset($this->created_at);
  223. }
  224. public function clearCreatedAt()
  225. {
  226. unset($this->created_at);
  227. }
  228. /**
  229. * Virtual timestamp when the object was created
  230. *
  231. * Generated from protobuf field <code>.Ydb.VirtualTimestamp created_at = 9;</code>
  232. * @param \Ydb\VirtualTimestamp $var
  233. * @return $this
  234. */
  235. public function setCreatedAt($var)
  236. {
  237. GPBUtil::checkMessage($var, \Ydb\VirtualTimestamp::class);
  238. $this->created_at = $var;
  239. return $this;
  240. }
  241. }