Copied!
  • internal
CloneableInstantiable
Methods
public __construct( $mockCall = NULL)
 
  • param mixed $mockCall
public static Google\ApiCore\Transport\GrpcTransport::build(string $apiEndpoint, array $config = [])
 

Builds a GrpcTransport.

  • param string $apiEndpoint The address of the API remote host, for example "example.googleapis.com. May also include the port, for example "example.googleapis.com:443"
  • param array $config { Config options used to construct the gRPC transport. @type array $stubOpts Options used to construct the gRPC stub (see {@link https://grpc.github.io/grpc/core/group__grpc__arg__keys.html}). @type Channel $channel Grpc channel to be used. @type Interceptor[]|UnaryInterceptorInterface[] $interceptors EXPERIMENTAL Interceptors used to intercept RPC invocations before a call starts. Please note that implementations of {@see \Google\ApiCore\Transport\Grpc\UnaryInterceptorInterface} are considered deprecated and support will be removed in a future release. To prepare for this, please take the time to convert UnaryInterceptorInterface implementations over to a class which extends {@see \Grpc\Interceptor}. @type callable $clientCertSource A callable which returns the client cert as a string. }
  • return \GrpcTransport
  • throws \ValidationException
public Grpc\BaseStub::close()
 

Close the communication channel associated with this stub.

public Grpc\BaseStub::getConnectivityState( $try_to_connect = false)
 
  • param bool $try_to_connect (optional)
  • return int The grpc connectivity state
public static Grpc\BaseStub::getDefaultChannel( $hostname, array $opts)
 

Creates and returns the default Channel

  • param array $opts Channel constructor options
  • 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)
 
    public Google\ApiCore\Transport\GrpcTransport::startClientStreamingCall(Google\ApiCore\Call $call, array $options)
     
      public Google\ApiCore\Transport\GrpcTransport::startServerStreamingCall(Google\ApiCore\Call $call, array $options)
       
        public Google\ApiCore\Transport\GrpcTransport::startUnaryCall(Google\ApiCore\Call $call, array $options)
         
          public static Google\ApiCore\Transport\GrpcTransport::validate(array $arr, array $requiredKeys)
           
          • param array $arr Associative array
          • param array $requiredKeys List of keys to check for in $arr
          • return array Returns $arr for fluent use
          public static Google\ApiCore\Transport\GrpcTransport::validateNotNull(array $arr, array $requiredKeys)
           
          • param array $arr Associative array
          • param array $requiredKeys List of keys to check for in $arr
          • return array Returns $arr for fluent use
          public Grpc\BaseStub::waitForReady( $timeout)
           
          • param int $timeout in microseconds
          • 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 = [])
           
          • param string $method
          • param callable $deserialize
          protected _clientStreamRequest( $method, $deserialize, array $metadata = [], array $options = [])
           
          • param string $method
          • param callable $deserialize
          protected _serverStreamRequest( $method, $arguments, $deserialize, array $metadata = [], array $options = [])
           
          • param string $method
          • param array $arguments
          • param callable $deserialize
          protected _simpleRequest( $method, $arguments, $deserialize, array $metadata = [], array $options = [])
           
          • param string $method
          • param array $arguments
          • param callable $deserialize
          Properties
          private $mockCall = NULL
          private $requestArguments = NULL
          Methods
          private logCall( $method, $deserialize, array $metadata = [], array $options = [], $arguments = NULL)
           
          • param string $method
          • param callable $deserialize
          • param array $arguments
          Methods
          public static Google\ApiCore\Transport\GrpcTransport::build(string $apiEndpoint, array $config = [])
           

          Builds a GrpcTransport.

          • param string $apiEndpoint The address of the API remote host, for example "example.googleapis.com. May also include the port, for example "example.googleapis.com:443"
          • param array $config { Config options used to construct the gRPC transport. @type array $stubOpts Options used to construct the gRPC stub (see {@link https://grpc.github.io/grpc/core/group__grpc__arg__keys.html}). @type Channel $channel Grpc channel to be used. @type Interceptor[]|UnaryInterceptorInterface[] $interceptors EXPERIMENTAL Interceptors used to intercept RPC invocations before a call starts. Please note that implementations of {@see \Google\ApiCore\Transport\Grpc\UnaryInterceptorInterface} are considered deprecated and support will be removed in a future release. To prepare for this, please take the time to convert UnaryInterceptorInterface implementations over to a class which extends {@see \Grpc\Interceptor}. @type callable $clientCertSource A callable which returns the client cert as a string. }
          • return \GrpcTransport
          • throws \ValidationException
          public static Grpc\BaseStub::getDefaultChannel( $hostname, array $opts)
           

          Creates and returns the default Channel

          • param array $opts Channel constructor options
          • return \Channel The channel
          public static Google\ApiCore\Transport\GrpcTransport::validate(array $arr, array $requiredKeys)
           
          • param array $arr Associative array
          • param array $requiredKeys List of keys to check for in $arr
          • return array Returns $arr for fluent use
          public static Google\ApiCore\Transport\GrpcTransport::validateNotNull(array $arr, array $requiredKeys)
           
          • param array $arr Associative array
          • param array $requiredKeys List of keys to check for in $arr
          • return array Returns $arr for fluent use
          © 2025 Bruce Wells
          Search Namespaces \ Classes
          Configuration