class ServerStreamingCallWrapper implements ServerStreamingCallInterface (View source)

Class ServerStreamingCallWrapper implements \Google\ApiCore\ServerStreamingCallInterface.

This is essentially a wrapper class around the \Grpc\ServerStreamingCall.

Methods

__construct($stream)

No description

start(mixed $data, array $metadata = [], array $callOptions = [])

Start the call.

mixed
responses()

No description

getStatus()

Return the status of the server stream.

mixed
getMetadata()

No description

mixed
getTrailingMetadata()

No description

string
getPeer()

No description

cancel()

Cancels the call.

setCallCredentials(mixed $call_credentials)

Set the CallCredentials for the underlying Call.

Details

__construct($stream)

No description

Parameters

$stream ServerStreamingCall|GCPServerStreamCall

start(mixed $data, array $metadata = [], array $callOptions = [])

Start the call.

Parameters

mixed $data

The data to send

array $metadata

Metadata to send with the call, if applicable (optional)

array $callOptions

mixed responses()

No description

Return Value

mixed

An iterator of response values.

stdClass getStatus()

Return the status of the server stream.

Return Value

stdClass

The API status.

mixed getMetadata()

No description

Return Value

mixed

The metadata sent by the server.

mixed getTrailingMetadata()

No description

Return Value

mixed

The trailing metadata sent by the server.

string getPeer()

No description

Return Value

string

The URI of the endpoint.

cancel()

Cancels the call.

setCallCredentials(mixed $call_credentials)

Set the CallCredentials for the underlying Call.

Parameters

mixed $call_credentials

The CallCredentials object