Google\Cloud\GrpcRequestWrapper::handleResponse PHP Method

handleResponse() private method

Serializes a gRPC response.
private handleResponse ( mixed $response ) : array | null
$response mixed
return array | null
    private function handleResponse($response)
    {
        if ($response instanceof PagedListResponse) {
            $response = $response->getPage()->getResponseObject();
        }
        if ($response instanceof Message) {
            return $response->serialize($this->codec);
        }
        return null;
    }