Google API Core Client - Class GrpcTransportOptions (1.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
1.46.0 (latest)
1.43.0
1.42.5
1.40.0
1.38.2
1.36.1
1.35.1
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 \ TransportOptions
Implements
\ArrayAccess
Methods
__construct
Parameters
Name
Description
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
Grpc\Channel
Grpc channel to be used.
↳ interceptors
array<Grpc\Interceptor >|array<Google\ApiCore\Transport\Grpc\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|Psr\Log\LoggerInterface
PSR-3 Logger Interface.
setStubOpts
Parameter
Name
Description
stubOpts
array
Returns
Type
Description
$this
setChannel
Parameter
Name
Description
channel
?\Grpc\Channel
Returns
Type
Description
$this
setInterceptors
Parameter
Name
Description
interceptors
array<Grpc\Interceptor >|array<Google\ApiCore\Transport\Grpc\UnaryInterceptorInterface >
Returns
Type
Description
$this
setClientCertSource
Parameter
Name
Description
clientCertSource
?callable
Returns
Type
Description
$this
setLogger
Parameter
Name
Description
logger
null|false|Psr\Log\LoggerInterface
Returns
Type
Description
$this
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-07-31 UTC.
[null,null,["Last updated 2026-07-31 UTC."],[],[]]