class GrpcTransportOptions implements ArrayAccess (View source)

The GrpcTransportOptions class provides typing to the associative array of options used to configure {\Google\ApiCore\Transport\GrpcTransport}.

Traits

Trait implemented by any class representing an associative array of PHP options.

Methods

bool
offsetExists($offset)

No description

offsetGet($offset)

No description

void
offsetSet($offset, $value)

No description

void
offsetUnset($offset)

No description

array
toArray()

No description

__construct(array $options)

No description

setStubOpts(array $stubOpts)

No description

setChannel(Channel|null $channel)

No description

setInterceptors(array $interceptors)

No description

setClientCertSource(callable|null $clientCertSource)

No description

Details

bool offsetExists($offset)

No description

Parameters

$offset

Return Value

bool

offsetGet($offset)

No description

Parameters

$offset

void offsetSet($offset, $value)

No description

Parameters

$offset
$value

Return Value

void

Exceptions

BadMethodCallException

void offsetUnset($offset)

No description

Parameters

$offset

Return Value

void

Exceptions

BadMethodCallException

array toArray()

No description

Return Value

array

__construct(array $options)

No description

Parameters

array $options

{ Config options used to construct the gRPC transport.

@type array $stubOpts Options used to construct the gRPC stub (see https://grpc.github.io/grpc/core/group__grpc__arg__keys.html). @type Channel $channel Grpc channel to be used. @type Interceptor[]|UnaryInterceptorInterface[] $interceptors 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 {\Google\ApiCore\Options\TransportOptions\Grpc\Interceptor}. @type callable $clientCertSource A callable which returns the client cert as a string. }

setStubOpts(array $stubOpts)

No description

Parameters

array $stubOpts

setChannel(Channel|null $channel)

No description

Parameters

Channel|null $channel

setInterceptors(array $interceptors)

No description

Parameters

array $interceptors

setClientCertSource(callable|null $clientCertSource)

No description

Parameters

callable|null $clientCertSource