class ClientGrpcOperation implements GrpcOperation

Methods

__construct(ServiceMethod $serviceMethod, string $serverAddress, int $serverPort, Metadata $metadata)

Create an outbound gRPC operation description.

serviceMethod()

Return the recognized service method.

metadata()

Return the current outbound metadata.

withMetadata(Metadata $metadata)

Replace the outbound metadata for subsequent observers and transport encoding.

Details

at line 14
__construct(ServiceMethod $serviceMethod, string $serverAddress, int $serverPort, Metadata $metadata)

Create an outbound gRPC operation description.

Parameters

ServiceMethod $serviceMethod
string $serverAddress
int $serverPort
Metadata $metadata

at line 25
ServiceMethod|null serviceMethod()

Return the recognized service method.

Return Value

ServiceMethod|null

at line 33
Metadata metadata()

Return the current outbound metadata.

Return Value

Metadata

at line 41
ClientGrpcOperation withMetadata(Metadata $metadata)

Replace the outbound metadata for subsequent observers and transport encoding.

Parameters

Metadata $metadata

Return Value

ClientGrpcOperation