Represents an active call that sends a single message and then gets a stream of responses.

CloneableInstantiable
ExtendsGrpc\Gcp\GcpBaseCall
Constants
public Grpc\Gcp\GcpBaseCall::BIND = 'BIND'
public Grpc\Gcp\GcpBaseCall::BOUND = 'BOUND'
public Grpc\Gcp\GcpBaseCall::UNBIND = 'UNBIND'
Methods
public Grpc\Gcp\GcpBaseCall::__construct( $channel, $method, $deserialize, $options)
 
Create a new Call wrapper object.

    public Grpc\Gcp\GcpBaseCall::cancel()
     
    Cancels the call.

    public getMetadata()
     


    • return mixed The metadata sent by the server
    public Grpc\Gcp\GcpBaseCall::getPeer()
     


    • return string The URI of the endpoint
    public getStatus()
     
    Wait for the server to send the status, and return it.

    • return stdClass The status object, with integer $code, string $details, and array $metadata members
    public Grpc\Gcp\GcpBaseCall::getTrailingMetadata()
     


    • return mixed The trailing metadata sent by the server
    public responses()
     


    • return mixed An iterator of response values
    public Grpc\Gcp\GcpBaseCall::setCallCredentials( $call_credentials)
     
    Set the CallCredentials for the underlying Call.

      public start( $argument, $metadata, $options)
       
      Pick a channel and start the call.

        Properties
        protected Grpc\Gcp\GcpBaseCall::$_affinity
        protected Grpc\Gcp\GcpBaseCall::$affinity_key
        protected Grpc\Gcp\GcpBaseCall::$argument
        protected Grpc\Gcp\GcpBaseCall::$channel_ref
        protected Grpc\Gcp\GcpBaseCall::$gcp_channel
        protected Grpc\Gcp\GcpBaseCall::$has_real_call
        protected Grpc\Gcp\GcpBaseCall::$metadata
        protected Grpc\Gcp\GcpBaseCall::$metadata_rpc
        protected Grpc\Gcp\GcpBaseCall::$method
        protected Grpc\Gcp\GcpBaseCall::$options
        protected Grpc\Gcp\GcpBaseCall::$real_call
        Methods
        protected Grpc\Gcp\GcpBaseCall::_deserializeResponse( $value)
         
        Deserialize a response value to an object.

        • return mixed The deserialized value
        protected Grpc\Gcp\GcpBaseCall::_rpcPostProcess( $status, $response)
         
        Update ChannelRef when RPC finishes.

          protected Grpc\Gcp\GcpBaseCall::_rpcPreProcess( $argument)
           
          Pick a ChannelRef from the channel pool based on the request and the affinity config.

          protected Grpc\Gcp\GcpBaseCall::_serializeMessage( $data)
           
          Serialize a message to the protobuf binary format.

          • return string The protobuf binary format
          protected createRealCall( $channel)
          protected Grpc\Gcp\GcpBaseCall::getAffinityKeyFromProto( $proto)
           
          Get the affinity key based on the affinity config.

          • return string Affinity key.
          Properties
          private $response
          © 2020 Bruce Wells
          Search Namespaces \ Classes
          ConfigurationNumbers (0-9.) only