You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But since these need to be set on the Request object, we could pass $additionalArgs in with array keys and use those in OperationResponse to set the fields on the Request.
Example (keys as protobuf field names):
// in descriptor_config.php'additionalArgumentMethods' => [
'project' => 'getProject',
'zone' => 'getZone',
],
// in OperationResponse::operationsCallnew$requestClass(['name' => $this->getName()] + $this->additionalArgs);
We need to modify the way the additional args are passed in from GAX. For example, in Compute's
descriptor_config.php
, we have the following:This is then passed into the
OperationResponse
class as$additionalArgs
by GAX:gax-php/src/GapicClientTrait.php
Lines 746 to 748 in 9b06449
But since these need to be set on the
Request
object, we could pass$additionalArgs
in with array keys and use those inOperationResponse
to set the fields on theRequest
.Example (keys as protobuf field names):
Example (keys as message setters):
The text was updated successfully, but these errors were encountered: