Go to the documentation of this file.
19 #import <Foundation/Foundation.h>
26 NS_ASSUME_NONNULL_BEGIN
48 - (void)didReceiveInitialMetadata:(nullable NSDictionary *)initialMetadata;
53 - (void)didReceiveProtoMessage:(nullable GPBMessage *)message;
61 - (void)didCloseWithTrailingMetadata:(nullable NSDictionary *)trailingMetadata
62 error:(nullable NSError *)error;
89 - (nullable instancetype)initWithResponseHandler:(
void (^)(ResponseType, NSError *))handler
90 responseDispatchQueue:(nullable dispatch_queue_t)dispatchQueue;
112 message:(GPBMessage *)message
115 responseClass:(Class)responseClass NS_DESIGNATED_INITIALIZER;
145 responseClass:(Class)responseClass NS_DESIGNATED_INITIALIZER;
163 - (void)writeMessage:(GPBMessage *)message;
189 - (void)receiveNextMessages:(NSUInteger)numberOfMessages;
193 NS_ASSUME_NONNULL_END
void cancel()
Cancel the request of this call at best effort.
void start()
Start the call.
A convenience class of objects that act as response handlers of calls.
Definition: ProtoRPC.h:80
void didWriteMessage()
Issued when flow control is enabled for the call and a message (written with writeMessage: method of ...
NSDictionary * responseHeaders
Response headers received during the call.
Definition: ProtoRPC.h:93
Immutable user configurable options for a gRPC call.
Definition: GRPCCallOptions.h:32
NSDictionary * responseTrailers
Response trailers received during the call.
Definition: ProtoRPC.h:96
instancetype NS_UNAVAILABLE()
void receiveNextMessage()
Tell gRPC to receive another message.
A client-streaming RPC call with Protobuf.
Definition: ProtoRPC.h:132
A unary-request RPC call with Protobuf.
Definition: ProtoRPC.h:101
void start()
Start the call.
instancetype NS_UNAVAILABLE()
HTTP request parameters.
Definition: GRPCCall.h:102
void cancel()
Cancel the request of this call at best effort.
dispatch_queue_t dispatchQueue
All the responses must be issued to a user-provided dispatch queue.
Definition: ProtoRPC.h:41
void finish()
Finish the RPC request and half-close the call.
An object can implement this protocol to receive responses from server from a call.
Definition: ProtoRPC.h:33