Permissions.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.Permissions</code>
  10. */
  11. class Permissions extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * SID (Security ID) of user or group
  15. *
  16. * Generated from protobuf field <code>string subject = 1;</code>
  17. */
  18. protected $subject = '';
  19. /**
  20. * Generated from protobuf field <code>repeated string permission_names = 2;</code>
  21. */
  22. private $permission_names;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type string $subject
  30. * SID (Security ID) of user or group
  31. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $permission_names
  32. * }
  33. */
  34. public function __construct($data = NULL) {
  35. \GPBMetadata\Protos\YdbScheme::initOnce();
  36. parent::__construct($data);
  37. }
  38. /**
  39. * SID (Security ID) of user or group
  40. *
  41. * Generated from protobuf field <code>string subject = 1;</code>
  42. * @return string
  43. */
  44. public function getSubject()
  45. {
  46. return $this->subject;
  47. }
  48. /**
  49. * SID (Security ID) of user or group
  50. *
  51. * Generated from protobuf field <code>string subject = 1;</code>
  52. * @param string $var
  53. * @return $this
  54. */
  55. public function setSubject($var)
  56. {
  57. GPBUtil::checkString($var, True);
  58. $this->subject = $var;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>repeated string permission_names = 2;</code>
  63. * @return \Google\Protobuf\Internal\RepeatedField
  64. */
  65. public function getPermissionNames()
  66. {
  67. return $this->permission_names;
  68. }
  69. /**
  70. * Generated from protobuf field <code>repeated string permission_names = 2;</code>
  71. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  72. * @return $this
  73. */
  74. public function setPermissionNames($var)
  75. {
  76. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  77. $this->permission_names = $arr;
  78. return $this;
  79. }
  80. }