Instance Methods | Properties | List of all members
<GRPCProtoResponseHandler> Protocol Reference

#import <ProtoRPC.h>

Inheritance diagram for <GRPCProtoResponseHandler>:
Inheritance graph
[legend]

Instance Methods

(void) - didCloseWithTrailingMetadata:error:
 
(void) - didReceiveInitialMetadata:
 
(void) - didReceiveProtoMessage:
 
(void) - didWriteMessage
 

Properties

dispatch_queue_t dispatchQueue
 

Detailed Description

An object can implement this protocol to receive responses from server from a call.

Definition at line 33 of file ProtoRPC.h.

Method Documentation

◆ didCloseWithTrailingMetadata:error:

- (void) didCloseWithTrailingMetadata: (nullable NSDictionary *)  trailingMetadata
error: (nullable NSError *)  error 
optional

Issued when a call finished. If the call finished successfully, error is nil and trailingMetadata consists any trailing metadata received from the server. Otherwise, error is non-nil and contains the corresponding error information, including gRPC error codes and error descriptions.

◆ didReceiveInitialMetadata:

- (void) didReceiveInitialMetadata: (nullable NSDictionary *)  initialMetadata
optional

Issued when initial metadata is received from the server.

◆ didReceiveProtoMessage:

- (void) didReceiveProtoMessage: (nullable GPBMessage *)  message
optional

Issued when a message is received from the server. The message is the deserialized proto object.

◆ didWriteMessage

- (void) didWriteMessage
optional

Issued when flow control is enabled for the call and a message (written with writeMessage: method of GRPCStreamingProtoCall or the initializer of GRPCUnaryProtoCall) is passed to gRPC core with SEND_MESSAGE operation.

Property Documentation

◆ dispatchQueue

- (dispatch_queue_t) dispatchQueue
readrequiredatomicassign

All the responses must be issued to a user-provided dispatch queue. This property specifies the dispatch queue to be used for issuing the notifications.

Definition at line 41 of file ProtoRPC.h.


The documentation for this protocol was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:46