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 start()
Start the call.
instancetype NS_UNAVAILABLE()
void start()
Start the call.
NSDictionary * responseHeaders
Response headers received during the call.
Definition: ProtoRPC.h:93
NSDictionary * responseTrailers
Response trailers received during the call.
Definition: ProtoRPC.h:96
A client-streaming RPC call with Protobuf.
Definition: ProtoRPC.h:132
HTTP request parameters.
Definition: GRPCCall.h:102
A convenience class of objects that act as response handlers of calls.
Definition: ProtoRPC.h:80
Immutable user configurable options for a gRPC call.
Definition: GRPCCallOptions.h:30
void didWriteMessage()
Issued when flow control is enabled for the call and a message (written with writeMessage: method of ...
dispatch_queue_t dispatchQueue
All the responses must be issued to a user-provided dispatch queue.
Definition: ProtoRPC.h:41
void cancel()
Cancel the request of this call at best effort.
instancetype NS_UNAVAILABLE()
An object can implement this protocol to receive responses from server from a call.
Definition: ProtoRPC.h:33
void finish()
Finish the RPC request and half-close the call.
A unary-request RPC call with Protobuf.
Definition: ProtoRPC.h:101
void receiveNextMessage()
Tell gRPC to receive another message.
void cancel()
Cancel the request of this call at best effort.