| 
    GRPC PHP
    1.76.0
    
   | 
 
Base class for generated client stubs. More...
Public Member Functions | |
| __construct ($hostname, $opts, $channel=null) | |
| getTarget () | |
| getConnectivityState ($try_to_connect=false) | |
| waitForReady ($timeout) | |
| close () | |
| Close the communication channel associated with this stub.  More... | |
Static Public Member Functions | |
| static | getDefaultChannel ($hostname, array $opts) | 
| Creates and returns the default Channel.  More... | |
Protected Member Functions | |
| _simpleRequest ( $method, $argument, $deserialize, array $metadata=[], array $options=[]) | |
| Call a remote method that takes a single argument and has a single output.  More... | |
| _clientStreamRequest ( $method, $deserialize, array $metadata=[], array $options=[]) | |
| Call a remote method that takes a stream of arguments and has a single output.  More... | |
| _serverStreamRequest ( $method, $argument, $deserialize, array $metadata=[], array $options=[]) | |
| Call a remote method that takes a single argument and returns a stream of responses.  More... | |
| _bidiRequest ( $method, $deserialize, array $metadata=[], array $options=[]) | |
| Call a remote method with messages streaming in both directions.  More... | |
Base class for generated client stubs.
Stub methods are expected to call _simpleRequest or _streamRequest and return the result.
| Grpc\BaseStub::__construct | ( | $hostname, | |
| $opts, | |||
$channel = null  | 
        |||
| ) | 
| string | $hostname | |
| array | $opts | 
  | 
| Channel | InterceptorChannel | $channel | An already created Channel or InterceptorChannel object (optional) | 
      
  | 
  protected | 
Call a remote method with messages streaming in both directions.
| string | $method | The name of the method to call | 
| callable | $deserialize | A function that deserializes the responses | 
| array | $metadata | A metadata map to send to the server (optional) | 
| array | $options | An array of options (optional) | 
      
  | 
  protected | 
Call a remote method that takes a stream of arguments and has a single output.
| string | $method | The name of the method to call | 
| callable | $deserialize | A function that deserializes the response | 
| array | $metadata | A metadata map to send to the server (optional) | 
| array | $options | An array of options (optional) | 
      
  | 
  protected | 
Call a remote method that takes a single argument and returns a stream of responses.
| string | $method | The name of the method to call | 
| mixed | $argument | The argument to the method | 
| callable | $deserialize | A function that deserializes the responses | 
| array | $metadata | A metadata map to send to the server (optional) | 
| array | $options | An array of options (optional) | 
      
  | 
  protected | 
Call a remote method that takes a single argument and has a single output.
| string | $method | The name of the method to call | 
| mixed | $argument | The argument to the method | 
| callable | $deserialize | A function that deserializes the response | 
| array | $metadata | A metadata map to send to the server (optional) | 
| array | $options | An array of options (optional) | 
| Grpc\BaseStub::close | ( | ) | 
Close the communication channel associated with this stub.
| Grpc\BaseStub::getConnectivityState | ( | $try_to_connect = false | ) | 
| bool | $try_to_connect | (optional) | 
      
  | 
  static | 
| Grpc\BaseStub::getTarget | ( | ) | 
| Grpc\BaseStub::waitForReady | ( | $timeout | ) | 
| int | $timeout | in microseconds | 
| Exception | if channel is in FATAL_ERROR state | 
 1.8.17