Represents an active call that allows for sending and recieving messages
in streams in any order.

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 Grpc\Gcp\GcpBaseCall::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 read()
     

    Reads the next value from the server.

    • return mixed The next value from the server, or null if there is none
    public Grpc\Gcp\GcpBaseCall::setCallCredentials( $call_credentials)
     

    Set the CallCredentials for the underlying Call.

      public start(array $metadata = [])
       

      Pick a channel and start the call.

        public write( $data, array $options = [])
         

        Write a single message to the server. This cannot be called after
        writesDone is called.

          public writesDone()
           

          Indicate that no more writes will be sent.

          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( $data = NULL)
            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