grpc.testing.RequestParams
*/
class RequestParams extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field bool echo_deadline = 1;
*/
private $echo_deadline = false;
/**
* Generated from protobuf field int32 client_cancel_after_us = 2;
*/
private $client_cancel_after_us = 0;
/**
* Generated from protobuf field int32 server_cancel_after_us = 3;
*/
private $server_cancel_after_us = 0;
/**
* Generated from protobuf field bool echo_metadata = 4;
*/
private $echo_metadata = false;
/**
* Generated from protobuf field bool check_auth_context = 5;
*/
private $check_auth_context = false;
/**
* Generated from protobuf field int32 response_message_length = 6;
*/
private $response_message_length = 0;
/**
* Generated from protobuf field bool echo_peer = 7;
*/
private $echo_peer = false;
/**
* will force check_auth_context.
*
* Generated from protobuf field string expected_client_identity = 8;
*/
private $expected_client_identity = '';
/**
* Generated from protobuf field bool skip_cancelled_check = 9;
*/
private $skip_cancelled_check = false;
/**
* Generated from protobuf field string expected_transport_security_type = 10;
*/
private $expected_transport_security_type = '';
/**
* Generated from protobuf field .grpc.testing.DebugInfo debug_info = 11;
*/
private $debug_info = null;
/**
* Server should not see a request with this set.
*
* Generated from protobuf field bool server_die = 12;
*/
private $server_die = false;
/**
* Generated from protobuf field string binary_error_details = 13;
*/
private $binary_error_details = '';
/**
* Generated from protobuf field .grpc.testing.ErrorStatus expected_error = 14;
*/
private $expected_error = null;
/**
* Amount to sleep when invoking server
*
* Generated from protobuf field int32 server_sleep_us = 15;
*/
private $server_sleep_us = 0;
public function __construct() {
\GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce();
parent::__construct();
}
/**
* Generated from protobuf field bool echo_deadline = 1;
* @return bool
*/
public function getEchoDeadline()
{
return $this->echo_deadline;
}
/**
* Generated from protobuf field bool echo_deadline = 1;
* @param bool $var
* @return $this
*/
public function setEchoDeadline($var)
{
GPBUtil::checkBool($var);
$this->echo_deadline = $var;
return $this;
}
/**
* Generated from protobuf field int32 client_cancel_after_us = 2;
* @return int
*/
public function getClientCancelAfterUs()
{
return $this->client_cancel_after_us;
}
/**
* Generated from protobuf field int32 client_cancel_after_us = 2;
* @param int $var
* @return $this
*/
public function setClientCancelAfterUs($var)
{
GPBUtil::checkInt32($var);
$this->client_cancel_after_us = $var;
return $this;
}
/**
* Generated from protobuf field int32 server_cancel_after_us = 3;
* @return int
*/
public function getServerCancelAfterUs()
{
return $this->server_cancel_after_us;
}
/**
* Generated from protobuf field int32 server_cancel_after_us = 3;
* @param int $var
* @return $this
*/
public function setServerCancelAfterUs($var)
{
GPBUtil::checkInt32($var);
$this->server_cancel_after_us = $var;
return $this;
}
/**
* Generated from protobuf field bool echo_metadata = 4;
* @return bool
*/
public function getEchoMetadata()
{
return $this->echo_metadata;
}
/**
* Generated from protobuf field bool echo_metadata = 4;
* @param bool $var
* @return $this
*/
public function setEchoMetadata($var)
{
GPBUtil::checkBool($var);
$this->echo_metadata = $var;
return $this;
}
/**
* Generated from protobuf field bool check_auth_context = 5;
* @return bool
*/
public function getCheckAuthContext()
{
return $this->check_auth_context;
}
/**
* Generated from protobuf field bool check_auth_context = 5;
* @param bool $var
* @return $this
*/
public function setCheckAuthContext($var)
{
GPBUtil::checkBool($var);
$this->check_auth_context = $var;
return $this;
}
/**
* Generated from protobuf field int32 response_message_length = 6;
* @return int
*/
public function getResponseMessageLength()
{
return $this->response_message_length;
}
/**
* Generated from protobuf field int32 response_message_length = 6;
* @param int $var
* @return $this
*/
public function setResponseMessageLength($var)
{
GPBUtil::checkInt32($var);
$this->response_message_length = $var;
return $this;
}
/**
* Generated from protobuf field bool echo_peer = 7;
* @return bool
*/
public function getEchoPeer()
{
return $this->echo_peer;
}
/**
* Generated from protobuf field bool echo_peer = 7;
* @param bool $var
* @return $this
*/
public function setEchoPeer($var)
{
GPBUtil::checkBool($var);
$this->echo_peer = $var;
return $this;
}
/**
* will force check_auth_context.
*
* Generated from protobuf field string expected_client_identity = 8;
* @return string
*/
public function getExpectedClientIdentity()
{
return $this->expected_client_identity;
}
/**
* will force check_auth_context.
*
* Generated from protobuf field string expected_client_identity = 8;
* @param string $var
* @return $this
*/
public function setExpectedClientIdentity($var)
{
GPBUtil::checkString($var, True);
$this->expected_client_identity = $var;
return $this;
}
/**
* Generated from protobuf field bool skip_cancelled_check = 9;
* @return bool
*/
public function getSkipCancelledCheck()
{
return $this->skip_cancelled_check;
}
/**
* Generated from protobuf field bool skip_cancelled_check = 9;
* @param bool $var
* @return $this
*/
public function setSkipCancelledCheck($var)
{
GPBUtil::checkBool($var);
$this->skip_cancelled_check = $var;
return $this;
}
/**
* Generated from protobuf field string expected_transport_security_type = 10;
* @return string
*/
public function getExpectedTransportSecurityType()
{
return $this->expected_transport_security_type;
}
/**
* Generated from protobuf field string expected_transport_security_type = 10;
* @param string $var
* @return $this
*/
public function setExpectedTransportSecurityType($var)
{
GPBUtil::checkString($var, True);
$this->expected_transport_security_type = $var;
return $this;
}
/**
* Generated from protobuf field .grpc.testing.DebugInfo debug_info = 11;
* @return \Grpc\Testing\DebugInfo
*/
public function getDebugInfo()
{
return $this->debug_info;
}
/**
* Generated from protobuf field .grpc.testing.DebugInfo debug_info = 11;
* @param \Grpc\Testing\DebugInfo $var
* @return $this
*/
public function setDebugInfo($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\DebugInfo::class);
$this->debug_info = $var;
return $this;
}
/**
* Server should not see a request with this set.
*
* Generated from protobuf field bool server_die = 12;
* @return bool
*/
public function getServerDie()
{
return $this->server_die;
}
/**
* Server should not see a request with this set.
*
* Generated from protobuf field bool server_die = 12;
* @param bool $var
* @return $this
*/
public function setServerDie($var)
{
GPBUtil::checkBool($var);
$this->server_die = $var;
return $this;
}
/**
* Generated from protobuf field string binary_error_details = 13;
* @return string
*/
public function getBinaryErrorDetails()
{
return $this->binary_error_details;
}
/**
* Generated from protobuf field string binary_error_details = 13;
* @param string $var
* @return $this
*/
public function setBinaryErrorDetails($var)
{
GPBUtil::checkString($var, True);
$this->binary_error_details = $var;
return $this;
}
/**
* Generated from protobuf field .grpc.testing.ErrorStatus expected_error = 14;
* @return \Grpc\Testing\ErrorStatus
*/
public function getExpectedError()
{
return $this->expected_error;
}
/**
* Generated from protobuf field .grpc.testing.ErrorStatus expected_error = 14;
* @param \Grpc\Testing\ErrorStatus $var
* @return $this
*/
public function setExpectedError($var)
{
GPBUtil::checkMessage($var, \Grpc\Testing\ErrorStatus::class);
$this->expected_error = $var;
return $this;
}
/**
* Amount to sleep when invoking server
*
* Generated from protobuf field int32 server_sleep_us = 15;
* @return int
*/
public function getServerSleepUs()
{
return $this->server_sleep_us;
}
/**
* Amount to sleep when invoking server
*
* Generated from protobuf field int32 server_sleep_us = 15;
* @param int $var
* @return $this
*/
public function setServerSleepUs($var)
{
GPBUtil::checkInt32($var);
$this->server_sleep_us = $var;
return $this;
}
}