public function interceptUnaryUnary($method,
$argument,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
$metadata["foo"] = array('interceptor_from_unary_request');
return $continuation($method, $argument, $deserialize, $metadata, $options);
}
public function interceptStreamUnary($method,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
$metadata["foo"] = array('interceptor_from_stream_request');
return $continuation($method, $deserialize, $metadata, $options);
public function interceptUnaryUnary($method,
$argument,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
if (array_key_exists('foo', $metadata)) {
$metadata['bar'] = array('ChangeMetadataInterceptor should be executed first');
}
public function interceptStreamUnary($method,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
if (array_key_exists('foo', $metadata)) {
$metadata['bar'] = array('ChangeMetadataInterceptor should be executed first');
public function interceptUnaryUnary($method,
$argument,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
$argument->setData('intercepted_unary_request');
return $continuation($method, $argument, $deserialize, $metadata, $options);
}
public function interceptStreamUnary($method,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
return new ChangeRequestCall(
$continuation($method, $deserialize, $metadata, $options)
public function interceptUnaryUnary($method,
$argument,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
$metadata["foo"] = array('interceptor_from_request_response');
}
public function interceptStreamUnary($method,
$deserialize,
+ $continuation,
array $metadata = [],
- array $options = [],
- $continuation)
+ array $options = [])
{
$metadata["foo"] = array('interceptor_from_request_response');
}