Google\Cloud\GrpcRequestWrapper::handleResponse PHP Метод

handleResponse() приватный Метод

Serializes a gRPC response.
private handleResponse ( mixed $response ) : array | null
$response mixed
Результат 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;
    }