class ServerStreamingCallWrapper implements ServerStreamingCallInterface (View source)

Class ServerStreamingCallWrapper implements \Google\ApiCore\ServerStreamingCallInterface.

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

Methods

__construct(ServerStreamingCall|GCPServerStreamCall $stream)

No description

void
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

void
cancel()

Cancels the call.

void
setCallCredentials(mixed $call_credentials)

Set the CallCredentials for the underlying Call.

Details

__construct(ServerStreamingCall|GCPServerStreamCall $stream)

No description

Parameters

ServerStreamingCall|GCPServerStreamCall $stream

void 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

Return Value

void

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.

void cancel()

Cancels the call.

Return Value

void

void setCallCredentials(mixed $call_credentials)

Set the CallCredentials for the underlying Call.

Parameters

mixed $call_credentials

The CallCredentials object

Return Value

void