proto.LoginRequest
*/
class LoginRequest extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string username = 1;
*/
protected $username = '';
/**
* Generated from protobuf field string password = 2;
*/
protected $password = '';
/**
* Generated from protobuf field .google.protobuf.Any other = 3;
*/
protected $other = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $username
* @type string $password
* @type \Google\Protobuf\Any $other
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Demo1\Proto\User::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string username = 1;
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* Generated from protobuf field string username = 1;
* @param string $var
* @return $this
*/
public function setUsername($var)
{
GPBUtil::checkString($var, True);
$this->username = $var;
return $this;
}
/**
* Generated from protobuf field string password = 2;
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Generated from protobuf field string password = 2;
* @param string $var
* @return $this
*/
public function setPassword($var)
{
GPBUtil::checkString($var, True);
$this->password = $var;
return $this;
}
/**
* Generated from protobuf field .google.protobuf.Any other = 3;
* @return \Google\Protobuf\Any|null
*/
public function getOther()
{
return $this->other;
}
public function hasOther()
{
return isset($this->other);
}
public function clearOther()
{
unset($this->other);
}
/**
* Generated from protobuf field .google.protobuf.Any other = 3;
* @param \Google\Protobuf\Any $var
* @return $this
*/
public function setOther($var)
{
GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
$this->other = $var;
return $this;
}
}