Reference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class GrpcRequestWrapper.
The GrpcRequestWrapper is responsible for delivering gRPC requests.
Namespace
Google \ Cloud \ Core
Methods
__construct
Parameters
Name
Description
config
array
Configuration options. Please seeRequestWrapperTrait::setCommonDefaults()for
the other available options.
↳ authHttpHandler
callable
A handler used to deliver Psr7 requests specifically for authentication.
↳ serializer
Serializer
A serializer used to encode responses.
↳ grpcOptions
array
gRPC specific configuration options passed off to the ApiCore library.
send
Deliver the request.
Parameters
Name
Description
request
callable
The request to execute.
args
array
The arguments for the request.
options
array
Request options.
↳ requestTimeout
float
Seconds to wait before timing out the request.Defaults to60.
↳ retries
int
Number of retries for a failed request.Defaults to3.
↳ grpcRetryFunction
callable
Sets the conditions for whether or not a request should attempt to retry. Function signature should match:function (\Exception $ex) : bool.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud PHP shared dependency, providing functionality useful to all components. Client - Class GrpcRequestWrapper (1.64.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.64.2 (latest)](/php/docs/reference/cloud-core/latest/GrpcRequestWrapper)\n- [1.64.1](/php/docs/reference/cloud-core/1.64.1/GrpcRequestWrapper)\n- [1.63.0](/php/docs/reference/cloud-core/1.63.0/GrpcRequestWrapper)\n- [1.62.3](/php/docs/reference/cloud-core/1.62.3/GrpcRequestWrapper)\n- [1.61.0](/php/docs/reference/cloud-core/1.61.0/GrpcRequestWrapper)\n- [1.60.1](/php/docs/reference/cloud-core/1.60.1/GrpcRequestWrapper)\n- [1.59.1](/php/docs/reference/cloud-core/1.59.1/GrpcRequestWrapper)\n- [1.58.2](/php/docs/reference/cloud-core/1.58.2/GrpcRequestWrapper)\n- [1.53.0](/php/docs/reference/cloud-core/1.53.0/GrpcRequestWrapper)\n- [1.52.11](/php/docs/reference/cloud-core/1.52.11/GrpcRequestWrapper)\n- [1.51.2](/php/docs/reference/cloud-core/1.51.2/GrpcRequestWrapper)\n- [1.50.0](/php/docs/reference/cloud-core/1.50.0/GrpcRequestWrapper)\n- [1.49.3](/php/docs/reference/cloud-core/1.49.3/GrpcRequestWrapper)\n- [1.48.1](/php/docs/reference/cloud-core/1.48.1/GrpcRequestWrapper) \nReference documentation and code samples for the Google Cloud PHP shared dependency, providing functionality useful to all components. Client class GrpcRequestWrapper.\n\nThe GrpcRequestWrapper is responsible for delivering gRPC requests.\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Core\n\nMethods\n-------\n\n### __construct\n\n### send\n\nDeliver the request."]]