GapicClientTrait
trait GapicClientTrait (View source)
Common functions used to work with various clients.
Traits
Methods
Initiates an orderly shutdown in which preexisting calls continue but new calls are immediately cancelled.
Get the transport for the client. This method is protected to support use by customized clients.
Get the credentials for the client. This method is protected to support use by customized clients.
Modify options passed to the client before calling setClientOptions.
Modify the unary callable.
Modify the streaming callable.
Details
static array
validate(array $arr, array $requiredKeys)
static array
validateNotNull(array $arr, array $requiredKeys)
close()
Initiates an orderly shutdown in which preexisting calls continue but new calls are immediately cancelled.
protected TransportInterface
getTransport()
Get the transport for the client. This method is protected to support use by customized clients.
protected CredentialsWrapper
getCredentialsWrapper()
Get the credentials for the client. This method is protected to support use by customized clients.
protected
modifyClientOptions(array $options)
Modify options passed to the client before calling setClientOptions.
protected
modifyUnaryCallable(callable $callable)
Modify the unary callable.
protected
modifyStreamingCallable(callable $callable)
Modify the streaming callable.