grpc.testing.RequestParams */ class RequestParams extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field bool echo_deadline = 1; */ protected $echo_deadline = false; /** * Generated from protobuf field int32 client_cancel_after_us = 2; */ protected $client_cancel_after_us = 0; /** * Generated from protobuf field int32 server_cancel_after_us = 3; */ protected $server_cancel_after_us = 0; /** * Generated from protobuf field bool echo_metadata = 4; */ protected $echo_metadata = false; /** * Generated from protobuf field bool check_auth_context = 5; */ protected $check_auth_context = false; /** * Generated from protobuf field int32 response_message_length = 6; */ protected $response_message_length = 0; /** * Generated from protobuf field bool echo_peer = 7; */ protected $echo_peer = false; /** * will force check_auth_context. * * Generated from protobuf field string expected_client_identity = 8; */ protected $expected_client_identity = ''; /** * Generated from protobuf field bool skip_cancelled_check = 9; */ protected $skip_cancelled_check = false; /** * Generated from protobuf field string expected_transport_security_type = 10; */ protected $expected_transport_security_type = ''; /** * Generated from protobuf field .grpc.testing.DebugInfo debug_info = 11; */ protected $debug_info = null; /** * Server should not see a request with this set. * * Generated from protobuf field bool server_die = 12; */ protected $server_die = false; /** * Generated from protobuf field string binary_error_details = 13; */ protected $binary_error_details = ''; /** * Generated from protobuf field .grpc.testing.ErrorStatus expected_error = 14; */ protected $expected_error = null; /** * sleep when invoking server for deadline tests * * Generated from protobuf field int32 server_sleep_us = 15; */ protected $server_sleep_us = 0; /** * which backend to send request to * * Generated from protobuf field int32 backend_channel_idx = 16; */ protected $backend_channel_idx = 0; /** * Generated from protobuf field bool echo_metadata_initially = 17; */ protected $echo_metadata_initially = false; /** * Generated from protobuf field bool server_notify_client_when_started = 18; */ protected $server_notify_client_when_started = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type bool $echo_deadline * @type int $client_cancel_after_us * @type int $server_cancel_after_us * @type bool $echo_metadata * @type bool $check_auth_context * @type int $response_message_length * @type bool $echo_peer * @type string $expected_client_identity * will force check_auth_context. * @type bool $skip_cancelled_check * @type string $expected_transport_security_type * @type \Grpc\Testing\DebugInfo $debug_info * @type bool $server_die * Server should not see a request with this set. * @type string $binary_error_details * @type \Grpc\Testing\ErrorStatus $expected_error * @type int $server_sleep_us * sleep when invoking server for deadline tests * @type int $backend_channel_idx * which backend to send request to * @type bool $echo_metadata_initially * @type bool $server_notify_client_when_started * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\EchoMessages::initOnce(); parent::__construct($data); } /** * 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; } /** * sleep when invoking server for deadline tests * * Generated from protobuf field int32 server_sleep_us = 15; * @return int */ public function getServerSleepUs() { return $this->server_sleep_us; } /** * sleep when invoking server for deadline tests * * 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; } /** * which backend to send request to * * Generated from protobuf field int32 backend_channel_idx = 16; * @return int */ public function getBackendChannelIdx() { return $this->backend_channel_idx; } /** * which backend to send request to * * Generated from protobuf field int32 backend_channel_idx = 16; * @param int $var * @return $this */ public function setBackendChannelIdx($var) { GPBUtil::checkInt32($var); $this->backend_channel_idx = $var; return $this; } /** * Generated from protobuf field bool echo_metadata_initially = 17; * @return bool */ public function getEchoMetadataInitially() { return $this->echo_metadata_initially; } /** * Generated from protobuf field bool echo_metadata_initially = 17; * @param bool $var * @return $this */ public function setEchoMetadataInitially($var) { GPBUtil::checkBool($var); $this->echo_metadata_initially = $var; return $this; } /** * Generated from protobuf field bool server_notify_client_when_started = 18; * @return bool */ public function getServerNotifyClientWhenStarted() { return $this->server_notify_client_when_started; } /** * Generated from protobuf field bool server_notify_client_when_started = 18; * @param bool $var * @return $this */ public function setServerNotifyClientWhenStarted($var) { GPBUtil::checkBool($var); $this->server_notify_client_when_started = $var; return $this; } }