|
GRPC PHP
1.76.0
|
Represents an active call that sends a single message and then gets a single response. More...
Public Member Functions | |
| start ($data, array $metadata=[], array $options=[]) | |
| Start the call. More... | |
| wait () | |
| Wait for the server to respond with data and a status. More... | |
| getMetadata () | |
Public Member Functions inherited from Grpc\AbstractCall | |
| __construct (Channel $channel, $method, $deserialize, array $options=[]) | |
| Create a new Call wrapper object. More... | |
| getTrailingMetadata () | |
| getPeer () | |
| cancel () | |
| Cancels the call. More... | |
| setCallCredentials ($call_credentials) | |
| Set the CallCredentials for the underlying Call. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Grpc\AbstractCall | |
| _serializeMessage ($data) | |
| Serialize a message to the protobuf binary format. More... | |
| _deserializeResponse ($value) | |
| Deserialize a response value to an object. More... | |
Protected Attributes inherited from Grpc\AbstractCall | |
| $call | |
| $deserialize | |
| $metadata | |
| $trailing_metadata | |
Represents an active call that sends a single message and then gets a single response.
@template T of \Google\Protobuf\Internal\Message
| Grpc\UnaryCall::getMetadata | ( | ) |
Reimplemented from Grpc\AbstractCall.
| Grpc\UnaryCall::start | ( | $data, | |
| array | $metadata = [], |
||
| array | $options = [] |
||
| ) |
Start the call.
| mixed | $data | The data to send |
| array | $metadata | Metadata to send with the call, if applicable (optional) |
| array | $options | An array of options, possible keys: 'flags' => a number (optional) |
| Grpc\UnaryCall::wait | ( | ) |
Wait for the server to respond with data and a status.
1.8.17