CloneableInstantiable
ExtendsGoogle\ApiCore\Transport\GrpcTransport
Grpc\BaseStub
ImplementsGoogle\ApiCore\Transport\TransportInterface
Methods
public __construct( $mockCall = NULL)
public static Google\ApiCore\Transport\GrpcTransport::build( $apiEndpoint, array $config = [])
 
Builds a GrpcTransport.

  • return GrpcTransport
  • throws ValidationException
public Grpc\BaseStub::close()
 
Close the communication channel associated with this stub.

public Grpc\BaseStub::getConnectivityState( $try_to_connect = false)
 


  • return int The grpc connectivity state
public static Grpc\BaseStub::getDefaultChannel( $hostname, array $opts)
 
Creates and returns the default Channel

  • return Channel The channel
public getRequestArguments()
public Grpc\BaseStub::getTarget()
 


  • return string The URI of the endpoint
public Google\ApiCore\Transport\GrpcTransport::startBidiStreamingCall(Google\ApiCore\Call $call, array $options)
 
{@inheritdoc}

public Google\ApiCore\Transport\GrpcTransport::startClientStreamingCall(Google\ApiCore\Call $call, array $options)
 
{@inheritdoc}

public Google\ApiCore\Transport\GrpcTransport::startServerStreamingCall(Google\ApiCore\Call $call, array $options)
 
{@inheritdoc}

public Google\ApiCore\Transport\GrpcTransport::startUnaryCall(Google\ApiCore\Call $call, array $options)
 
{@inheritdoc}

public static Google\ApiCore\Transport\GrpcTransport::validate( $arr, $requiredKeys)
 


  • return array Returns $arr for fluent use
public static Google\ApiCore\Transport\GrpcTransport::validateNotNull( $arr, $requiredKeys)
 


  • return array Returns $arr for fluent use
public Grpc\BaseStub::waitForReady( $timeout)
 


  • return bool true if channel is ready
  • throws Exception if channel is in FATAL_ERROR state
Methods
protected _bidiRequest( $method, $deserialize, array $metadata = [], array $options = [])
protected _clientStreamRequest( $method, $deserialize, array $metadata = [], array $options = [])
protected _serverStreamRequest( $method, $arguments, $deserialize, array $metadata = [], array $options = [])
protected _simpleRequest( $method, $arguments, $deserialize, array $metadata = [], array $options = [])
Properties
private $mockCall
private $requestArguments
Methods
private Grpc\BaseStub::_checkConnectivityState( $new_state)
 


  • return bool true if state is CHANNEL_READY
  • throws Exception if state is CHANNEL_FATAL_FAILURE
private Grpc\BaseStub::_get_jwt_aud_uri( $method)
 
constructs the auth uri for the jwt.

  • return string The URL string
private Grpc\BaseStub::_GrpcStreamStream( $channel)
 
Create a function which can be used to create BidiStreamingCall

  • return Closure
private Grpc\BaseStub::_GrpcStreamUnary( $channel)
 
Create a function which can be used to create ServerStreamingCall

  • return Closure
private Grpc\BaseStub::_GrpcUnaryStream( $channel)
 
Create a function which can be used to create ClientStreamingCall

  • return Closure
private Grpc\BaseStub::_GrpcUnaryUnary( $channel)
 
Create a function which can be used to create UnaryCall

  • return Closure
private Grpc\BaseStub::_StreamStreamCallFactory( $channel)
 
Create a function which can be used to create BidiStreamingCall

  • return Closure
private Grpc\BaseStub::_StreamUnaryCallFactory( $channel)
 
Create a function which can be used to create ClientStreamingCall

  • return Closure
private Grpc\BaseStub::_UnaryStreamCallFactory( $channel)
 
Create a function which can be used to create ServerStreamingCall

  • return Closure
private Grpc\BaseStub::_UnaryUnaryCallFactory( $channel)
 
Create a function which can be used to create UnaryCall

  • return Closure
private Grpc\BaseStub::_validate_and_normalize_metadata( $metadata)
 
validate and normalize the metadata array.

  • return array $metadata Validated and key-normalized metadata map
  • throws InvalidArgumentException if key contains invalid characters
private Google\ApiCore\Transport\GrpcTransport::getCallOptions(array $options)
private static Google\ApiCore\Transport\GrpcTransport::getGrpcDependencyStatus()
 


  • return bool
private logCall( $method, $deserialize, $metadata = [], $options = [], $arguments = NULL)
private static Google\ApiCore\Transport\GrpcTransport::normalizeServiceAddress( $apiEndpoint)
 


  • return array
  • throws ValidationException
private static Grpc\BaseStub::updateOpts( $opts)
private static Google\ApiCore\Transport\GrpcTransport::validateFileExists( $filePath)
 


  • throws ValidationException
private static Google\ApiCore\Transport\GrpcTransport::validateGrpcSupport()
 


  • throws ValidationException
private static Google\ApiCore\Transport\GrpcTransport::validateImpl( $arr, $requiredKeys, $allowNull)
Methods
public static Google\ApiCore\Transport\GrpcTransport::build( $apiEndpoint, array $config = [])
 
Builds a GrpcTransport.

  • return GrpcTransport
  • throws ValidationException
public static Grpc\BaseStub::getDefaultChannel( $hostname, array $opts)
 
Creates and returns the default Channel

  • return Channel The channel
private static Google\ApiCore\Transport\GrpcTransport::getGrpcDependencyStatus()
 


  • return bool
private static Google\ApiCore\Transport\GrpcTransport::normalizeServiceAddress( $apiEndpoint)
 


  • return array
  • throws ValidationException
private static Grpc\BaseStub::updateOpts( $opts)
public static Google\ApiCore\Transport\GrpcTransport::validate( $arr, $requiredKeys)
 


  • return array Returns $arr for fluent use
private static Google\ApiCore\Transport\GrpcTransport::validateFileExists( $filePath)
 


  • throws ValidationException
private static Google\ApiCore\Transport\GrpcTransport::validateGrpcSupport()
 


  • throws ValidationException
private static Google\ApiCore\Transport\GrpcTransport::validateImpl( $arr, $requiredKeys, $allowNull)
public static Google\ApiCore\Transport\GrpcTransport::validateNotNull( $arr, $requiredKeys)
 


  • return array Returns $arr for fluent use
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only