WhoAmIRequest.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.WhoAmIRequest</code>
  10. */
  11. class WhoAmIRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Include user groups in response
  15. *
  16. * Generated from protobuf field <code>bool include_groups = 1;</code>
  17. */
  18. protected $include_groups = false;
  19. /**
  20. * Constructor.
  21. *
  22. * @param array $data {
  23. * Optional. Data for populating the Message object.
  24. *
  25. * @type bool $include_groups
  26. * Include user groups in response
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbDiscovery::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Include user groups in response
  35. *
  36. * Generated from protobuf field <code>bool include_groups = 1;</code>
  37. * @return bool
  38. */
  39. public function getIncludeGroups()
  40. {
  41. return $this->include_groups;
  42. }
  43. /**
  44. * Include user groups in response
  45. *
  46. * Generated from protobuf field <code>bool include_groups = 1;</code>
  47. * @param bool $var
  48. * @return $this
  49. */
  50. public function setIncludeGroups($var)
  51. {
  52. GPBUtil::checkBool($var);
  53. $this->include_groups = $var;
  54. return $this;
  55. }
  56. }