LoginRequest.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_auth.proto
  4. namespace Ydb\Auth;
  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.Auth.LoginRequest</code>
  10. */
  11. class LoginRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  15. */
  16. protected $operation_params = null;
  17. /**
  18. * Generated from protobuf field <code>string user = 2;</code>
  19. */
  20. protected $user = '';
  21. /**
  22. * Generated from protobuf field <code>string password = 3;</code>
  23. */
  24. protected $password = '';
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type \Ydb\Operations\OperationParams $operation_params
  32. * @type string $user
  33. * @type string $password
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbAuth::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  42. * @return \Ydb\Operations\OperationParams|null
  43. */
  44. public function getOperationParams()
  45. {
  46. return $this->operation_params;
  47. }
  48. public function hasOperationParams()
  49. {
  50. return isset($this->operation_params);
  51. }
  52. public function clearOperationParams()
  53. {
  54. unset($this->operation_params);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  58. * @param \Ydb\Operations\OperationParams $var
  59. * @return $this
  60. */
  61. public function setOperationParams($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  64. $this->operation_params = $var;
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>string user = 2;</code>
  69. * @return string
  70. */
  71. public function getUser()
  72. {
  73. return $this->user;
  74. }
  75. /**
  76. * Generated from protobuf field <code>string user = 2;</code>
  77. * @param string $var
  78. * @return $this
  79. */
  80. public function setUser($var)
  81. {
  82. GPBUtil::checkString($var, True);
  83. $this->user = $var;
  84. return $this;
  85. }
  86. /**
  87. * Generated from protobuf field <code>string password = 3;</code>
  88. * @return string
  89. */
  90. public function getPassword()
  91. {
  92. return $this->password;
  93. }
  94. /**
  95. * Generated from protobuf field <code>string password = 3;</code>
  96. * @param string $var
  97. * @return $this
  98. */
  99. public function setPassword($var)
  100. {
  101. GPBUtil::checkString($var, True);
  102. $this->password = $var;
  103. return $this;
  104. }
  105. }