PHP Trait Google\Cloud\GrpcTrait

Inheritance: use trait ArrayTrait
Mostra file Open project: GoogleCloudPlatform/gcloud-php

Public Methods

Method Description
send ( callable $request, array $args ) : array Delivers a request.
setRequestWrapper ( GrpcRequestWrapper $requestWrapper ) Sets the request wrapper.

Private Methods

Method Description
formatLabelsForApi ( array $labels ) : array Format a set of labels for the API.
formatListForApi ( array $list ) : array Format a list for the API.
formatStructForApi ( array $fields ) : array Format a struct for the API.
formatTimestampFromApi ( array $timestamp ) : string Format a gRPC timestamp to match the format returned by the REST API.
formatValueForApi ( array $value ) : array Format a value for the API.
getGaxConfig ( ) : array Gets the default configuration for generated GAX clients.

Method Details

send() public method

Delivers a request.
public send ( callable $request, array $args ) : array
$request callable
$args array
return array

setRequestWrapper() public method

Sets the request wrapper.
public setRequestWrapper ( GrpcRequestWrapper $requestWrapper )
$requestWrapper GrpcRequestWrapper