mirror of https://github.com/grpc/grpc.git
Merge pull request #316 from murgatroid99/master
Updated PHP library to handle generated code without explicit references to grpcpull/317/head
commit
7448d3d69e
5 changed files with 37 additions and 36 deletions
@ -1,52 +1,52 @@ |
||||
<?php |
||||
// DO NOT EDIT! Generated by Protobuf-PHP protoc plugin 1.0 |
||||
// Source: test/cpp/interop/test.proto |
||||
// Date: 2015-01-30 21:44:54 |
||||
// Date: 2015-01-30 23:30:46 |
||||
|
||||
namespace grpc\testing { |
||||
|
||||
class TestServiceClient extends \Grpc\BaseStub { |
||||
class TestServiceClient{ |
||||
|
||||
private $rpc_impl; |
||||
|
||||
public function __construct($rpc_impl) { |
||||
$this->rpc_impl = $rpc_impl; |
||||
} |
||||
/** |
||||
* @param grpc\testing\EmptyMessage $input |
||||
* @return grpc\testing\EmptyMessage |
||||
*/ |
||||
public function EmptyCall(\grpc\testing\EmptyMessage $argument, $metadata = array()) { |
||||
return $this->_simpleRequest('/grpc.testing.TestService/EmptyCall', $argument, '\grpc\testing\EmptyMessage::deserialize', $metadata); |
||||
return $this->rpc_impl->_simpleRequest('/grpc.testing.TestService/EmptyCall', $argument, '\grpc\testing\EmptyMessage::deserialize', $metadata); |
||||
} |
||||
/** |
||||
* @param grpc\testing\SimpleRequest $input |
||||
* @return grpc\testing\SimpleResponse |
||||
*/ |
||||
public function UnaryCall(\grpc\testing\SimpleRequest $argument, $metadata = array()) { |
||||
return $this->_simpleRequest('/grpc.testing.TestService/UnaryCall', $argument, '\grpc\testing\SimpleResponse::deserialize', $metadata); |
||||
return $this->rpc_impl->_simpleRequest('/grpc.testing.TestService/UnaryCall', $argument, '\grpc\testing\SimpleResponse::deserialize', $metadata); |
||||
} |
||||
/** |
||||
* @param grpc\testing\StreamingOutputCallRequest $input |
||||
* @return grpc\testing\StreamingOutputCallResponse |
||||
*/ |
||||
public function StreamingOutputCall($argument, $metadata = array()) { |
||||
return $this->_serverStreamRequest('/grpc.testing.TestService/StreamingOutputCall', $argument, '\grpc\testing\StreamingOutputCallResponse::deserialize', $metadata); |
||||
return $this->rpc_impl->_serverStreamRequest('/grpc.testing.TestService/StreamingOutputCall', $argument, '\grpc\testing\StreamingOutputCallResponse::deserialize', $metadata); |
||||
} |
||||
/** |
||||
* @param grpc\testing\StreamingInputCallRequest $input |
||||
* @return grpc\testing\StreamingInputCallResponse |
||||
*/ |
||||
public function StreamingInputCall($arguments, $metadata = array()) { |
||||
return $this->_clientStreamRequest('/grpc.testing.TestService/StreamingInputCall', $arguments, '\grpc\testing\StreamingInputCallResponse::deserialize', $metadata); |
||||
return $this->rpc_impl->_clientStreamRequest('/grpc.testing.TestService/StreamingInputCall', $arguments, '\grpc\testing\StreamingInputCallResponse::deserialize', $metadata); |
||||
} |
||||
/** |
||||
* @param grpc\testing\StreamingOutputCallRequest $input |
||||
* @return grpc\testing\StreamingOutputCallResponse |
||||
*/ |
||||
public function FullDuplexCall($metadata = array()) { |
||||
return $this->_bidiRequest('/grpc.testing.TestService/FullDuplexCall', '\grpc\testing\StreamingOutputCallResponse::deserialize', $metadata); |
||||
return $this->rpc_impl->_bidiRequest('/grpc.testing.TestService/FullDuplexCall', '\grpc\testing\StreamingOutputCallResponse::deserialize', $metadata); |
||||
} |
||||
/** |
||||
* @param grpc\testing\StreamingOutputCallRequest $input |
||||
* @return grpc\testing\StreamingOutputCallResponse |
||||
*/ |
||||
public function HalfDuplexCall($metadata = array()) { |
||||
return $this->_bidiRequest('/grpc.testing.TestService/HalfDuplexCall', '\grpc\testing\StreamingOutputCallResponse::deserialize', $metadata); |
||||
return $this->rpc_impl->_bidiRequest('/grpc.testing.TestService/HalfDuplexCall', '\grpc\testing\StreamingOutputCallResponse::deserialize', $metadata); |
||||
} |
||||
} |
||||
} |
||||
|
Loading…
Reference in new issue