BidiStream is the response object from a gRPC bidirectional streaming API call.
CloneableInstantiable
| Methods |
| public __construct(Grpc\BidiStreamingCall $bidiStreamingCall, array $streamingDescriptor = [], ?Psr\Log\LoggerInterface $logger = NULL) BidiStream constructor.
|
| public closeWrite() Inform the server that no more requests will be written. The write() function cannot be called after closeWrite() is called.
|
| public closeWriteAndReadAll() Call closeWrite(), and read all responses from the server, until the streaming call is completed. Throws an ApiException if the streaming call failed.
|
| public getBidiStreamingCall() Return the underlying gRPC call object
|
| public read() Read the next response from the server. Returns null if the streaming call completed successfully. Throws an ApiException if the streaming call failed.
|
| public write( $request) Write request to the server.
|
| public writeAll( $requests = []) Write all requests in $requests.
|
| Properties |
| private $call = NULL |
| private $isComplete = false |
| private ?Psr\Log\LoggerInterface $logger = NULL |
| private $pendingResources = [] |
| private $resourcesGetMethod = NULL |
| private $writesClosed = false |
| Methods |
private getJwtToken(array $headers) : ?array
|
private logRequest(Google
|
private logResponse(Google
|
private truncatePayload(?string $payload) : ?string
|