grpc.testing.SecurityParams
*/
class SecurityParams extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field bool use_test_ca = 1;
*/
private $use_test_ca = false;
/**
* Generated from protobuf field string server_host_override = 2;
*/
private $server_host_override = '';
/**
* Generated from protobuf field string cred_type = 3;
*/
private $cred_type = '';
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
parent::__construct();
}
/**
* Generated from protobuf field bool use_test_ca = 1;
* @return bool
*/
public function getUseTestCa()
{
return $this->use_test_ca;
}
/**
* Generated from protobuf field bool use_test_ca = 1;
* @param bool $var
* @return $this
*/
public function setUseTestCa($var)
{
GPBUtil::checkBool($var);
$this->use_test_ca = $var;
return $this;
}
/**
* Generated from protobuf field string server_host_override = 2;
* @return string
*/
public function getServerHostOverride()
{
return $this->server_host_override;
}
/**
* Generated from protobuf field string server_host_override = 2;
* @param string $var
* @return $this
*/
public function setServerHostOverride($var)
{
GPBUtil::checkString($var, True);
$this->server_host_override = $var;
return $this;
}
/**
* Generated from protobuf field string cred_type = 3;
* @return string
*/
public function getCredType()
{
return $this->cred_type;
}
/**
* Generated from protobuf field string cred_type = 3;
* @param string $var
* @return $this
*/
public function setCredType($var)
{
GPBUtil::checkString($var, True);
$this->cred_type = $var;
return $this;
}
}