WhoAmIResult.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_discovery.proto
  4. namespace Ydb\Discovery;
  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.Discovery.WhoAmIResult</code>
  10. */
  11. class WhoAmIResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * User SID (Security ID)
  15. *
  16. * Generated from protobuf field <code>string user = 1;</code>
  17. */
  18. protected $user = '';
  19. /**
  20. * List of group SIDs (Security IDs) for the user
  21. *
  22. * Generated from protobuf field <code>repeated string groups = 2;</code>
  23. */
  24. private $groups;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type string $user
  32. * User SID (Security ID)
  33. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $groups
  34. * List of group SIDs (Security IDs) for the user
  35. * }
  36. */
  37. public function __construct($data = NULL) {
  38. \GPBMetadata\Protos\YdbDiscovery::initOnce();
  39. parent::__construct($data);
  40. }
  41. /**
  42. * User SID (Security ID)
  43. *
  44. * Generated from protobuf field <code>string user = 1;</code>
  45. * @return string
  46. */
  47. public function getUser()
  48. {
  49. return $this->user;
  50. }
  51. /**
  52. * User SID (Security ID)
  53. *
  54. * Generated from protobuf field <code>string user = 1;</code>
  55. * @param string $var
  56. * @return $this
  57. */
  58. public function setUser($var)
  59. {
  60. GPBUtil::checkString($var, True);
  61. $this->user = $var;
  62. return $this;
  63. }
  64. /**
  65. * List of group SIDs (Security IDs) for the user
  66. *
  67. * Generated from protobuf field <code>repeated string groups = 2;</code>
  68. * @return \Google\Protobuf\Internal\RepeatedField
  69. */
  70. public function getGroups()
  71. {
  72. return $this->groups;
  73. }
  74. /**
  75. * List of group SIDs (Security IDs) for the user
  76. *
  77. * Generated from protobuf field <code>repeated string groups = 2;</code>
  78. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  79. * @return $this
  80. */
  81. public function setGroups($var)
  82. {
  83. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  84. $this->groups = $arr;
  85. return $this;
  86. }
  87. }