Reference documentation and code samples for the Google API Core Client class GrpcTransportOptions.
The GrpcTransportOptions class provides typing to the associative array of options used to configure Google\ApiCore\Transport\GrpcTransport .
Namespace
Google \ ApiCore \ Options \ TransportOptionsMethods
__construct
options
array
Config options used to construct the gRPC transport.
↳ stubOpts
array
Options used to construct the gRPC stub (see {@link https://grpc.github.io/grpc/core/group__grpc__arg__keys.html}).
↳ channel
Channel
Grpc channel to be used.
↳ interceptors
Interceptor[]|UnaryInterceptorInterface[]
EXPERIMENTAL
Interceptors used to intercept RPC invocations before a call starts. Please note that implementations of Google\ApiCore\Transport\Grpc\UnaryInterceptorInterface
are considered deprecated and support will be removed in a future release. To prepare for this, please take the time to convert UnaryInterceptorInterface
implementations over to a class which extends Grpc\Interceptor
.
↳ clientCertSource
callable
A callable which returns the client cert as a string.
↳ A
null|false|LoggerInterface
PSR-3 Logger Interface.
setStubOpts
stubOpts
array
setChannel
channel
?\Grpc\Channel
setInterceptors
interceptors
array< Grpc\Interceptor
>|array< Google\ApiCore\Transport\Grpc\UnaryInterceptorInterface
>
setClientCertSource
clientCertSource
?callable
setLogger
logger
null|false| Psr\Log\LoggerInterface

