gRPC  0.6.0
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Test.pbrpc.h
1 #import "Test.pbobjc.h"
2 #import <gRPC/ProtoService.h>
3 
4 #import "Empty.pbobjc.h"
5 #import "Messages.pbobjc.h"
6 
7 @protocol GRXWriteable;
8 @protocol GRXWriter;
9 
10 @protocol RMTTestService <NSObject>
11 
12 #pragma mark EmptyCall(Empty) returns (Empty)
13 
14 - (void)emptyCallWithRequest:(RMTEmpty *)request handler:(void(^)(RMTEmpty *response, NSError *error))handler;
15 
16 - (ProtoRPC *)RPCToEmptyCallWithRequest:(RMTEmpty *)request handler:(void(^)(RMTEmpty *response, NSError *error))handler;
17 
18 
19 #pragma mark UnaryCall(SimpleRequest) returns (SimpleResponse)
20 
21 - (void)unaryCallWithRequest:(RMTSimpleRequest *)request handler:(void(^)(RMTSimpleResponse *response, NSError *error))handler;
22 
23 - (ProtoRPC *)RPCToUnaryCallWithRequest:(RMTSimpleRequest *)request handler:(void(^)(RMTSimpleResponse *response, NSError *error))handler;
24 
25 
26 #pragma mark StreamingOutputCall(StreamingOutputCallRequest) returns (stream StreamingOutputCallResponse)
27 
28 - (void)streamingOutputCallWithRequest:(RMTStreamingOutputCallRequest *)request handler:(void(^)(BOOL done, RMTStreamingOutputCallResponse *response, NSError *error))handler;
29 
30 - (ProtoRPC *)RPCToStreamingOutputCallWithRequest:(RMTStreamingOutputCallRequest *)request handler:(void(^)(BOOL done, RMTStreamingOutputCallResponse *response, NSError *error))handler;
31 
32 
33 #pragma mark StreamingInputCall(stream StreamingInputCallRequest) returns (StreamingInputCallResponse)
34 
35 - (void)streamingInputCallWithRequestsWriter:(id<GRXWriter>)request handler:(void(^)(RMTStreamingInputCallResponse *response, NSError *error))handler;
36 
37 - (ProtoRPC *)RPCToStreamingInputCallWithRequestsWriter:(id<GRXWriter>)request handler:(void(^)(RMTStreamingInputCallResponse *response, NSError *error))handler;
38 
39 
40 #pragma mark FullDuplexCall(stream StreamingOutputCallRequest) returns (stream StreamingOutputCallResponse)
41 
42 - (void)fullDuplexCallWithRequestsWriter:(id<GRXWriter>)request handler:(void(^)(BOOL done, RMTStreamingOutputCallResponse *response, NSError *error))handler;
43 
44 - (ProtoRPC *)RPCToFullDuplexCallWithRequestsWriter:(id<GRXWriter>)request handler:(void(^)(BOOL done, RMTStreamingOutputCallResponse *response, NSError *error))handler;
45 
46 
47 #pragma mark HalfDuplexCall(stream StreamingOutputCallRequest) returns (stream StreamingOutputCallResponse)
48 
49 - (void)halfDuplexCallWithRequestsWriter:(id<GRXWriter>)request handler:(void(^)(BOOL done, RMTStreamingOutputCallResponse *response, NSError *error))handler;
50 
51 - (ProtoRPC *)RPCToHalfDuplexCallWithRequestsWriter:(id<GRXWriter>)request handler:(void(^)(BOOL done, RMTStreamingOutputCallResponse *response, NSError *error))handler;
52 
53 
54 @end
55 
56 // Basic service implementation, over gRPC, that only does marshalling and parsing.
58 - (instancetype)initWithHost:(NSString *)host NS_DESIGNATED_INITIALIZER;
59 @end
Definition: Empty.pbobjc.h:29
Definition: GRXWriter.h:125
Definition: Messages.pbobjc.h:149
Definition: Messages.pbobjc.h:185
Definition: Messages.pbobjc.h:112
Definition: Messages.pbobjc.h:213
Definition: Messages.pbobjc.h:78
Definition: Test.pbrpc.h:10
Definition: Test.pbrpc.h:57
Definition: GRXWriteable.h:58
Definition: ProtoRPC.h:37
Definition: ProtoService.h:40