class ApiCallable

Creates a function wrapper that provides extra functionalities such as retry and bundling.

Constants

GRPC_CALLABLE_PARAM_COUNT

GRPC_CALLABLE_METADATA_INDEX

GRPC_CALLABLE_OPTION_INDEX

GRPC_RESPONSE_STATUS_INDEX

Methods

static 
callWithoutRequest($callable, $params)

No description

static callable
createApiCall(BaseStub $stub, string $methodName, CallSettings $settings, array $options = [])

No description

Details

at line 137
static callWithoutRequest($callable, $params)

Parameters

$callable
$params

at line 213
static callable createApiCall(BaseStub $stub, string $methodName, CallSettings $settings, array $options = [])

Parameters

BaseStub $stub the gRPC stub to make calls through.
string $methodName the method name on the stub to call.
CallSettings $settings the call settings to use for this call.
array $options { Optional. @type \Google\GAX\PageStreamingDescriptor $pageStreamingDescriptor the descriptor used for page-streaming. @type \Google\GAX\AgentHeaderDescriptor $headerDescriptor the descriptor used for creating GAPIC header. }

Return Value

callable

Exceptions

ValidationException