gRPC  0.6.0
 All Classes Namespaces Functions Variables Enumerations Properties Pages
Messages.pbobjc.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: messages.proto
3 
4 #import "GPBProtocolBuffers.h"
5 
6 #if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000
7 #error This file was generated by a different version of protoc-gen-objc which is incompatible with your Protocol Buffer sources.
8 #endif
9 
10 CF_EXTERN_C_BEGIN
11 
12 @class RMTPayload;
14 @class RMTSimpleRequest;
15 @class RMTSimpleResponse;
20 
21 #pragma mark - Enum RMTPayloadType
22 
23 // The type of payload that should be returned.
24 typedef GPB_ENUM(RMTPayloadType) {
25  RMTPayloadType_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
26  // Compressable text format.
27  RMTPayloadType_Compressable = 0,
28 
29  // Uncompressable binary format.
30  RMTPayloadType_Uncompressable = 1,
31 
32  // Randomly chosen from all other formats defined in this enum.
33  RMTPayloadType_Random = 2,
34 };
35 
36 GPBEnumDescriptor *RMTPayloadType_EnumDescriptor(void);
37 
38 BOOL RMTPayloadType_IsValidValue(int32_t value);
39 
40 
41 #pragma mark - RMTMessagesRoot
42 
43 @interface RMTMessagesRoot : GPBRootObject
44 @end
45 
46 #pragma mark - RMTPayload
47 
48 typedef GPB_ENUM(RMTPayload_FieldNumber) {
49  RMTPayload_FieldNumber_Type = 1,
50  RMTPayload_FieldNumber_Body = 2,
51 };
52 
53 // A block of data, to simply increase gRPC message size.
54 @interface RMTPayload : GPBMessage
55 
56 // The type of data in body.
57 @property(nonatomic, readwrite) RMTPayloadType type;
58 
59 // Primary contents of payload.
60 @property(nonatomic, readwrite, copy) NSData *body;
61 
62 @end
63 
64 int32_t RMTPayload_Type_RawValue(RMTPayload *message);
65 void SetRMTPayload_Type_RawValue(RMTPayload *message, int32_t value);
66 
67 #pragma mark - RMTSimpleRequest
68 
69 typedef GPB_ENUM(RMTSimpleRequest_FieldNumber) {
70  RMTSimpleRequest_FieldNumber_ResponseType = 1,
71  RMTSimpleRequest_FieldNumber_ResponseSize = 2,
72  RMTSimpleRequest_FieldNumber_Payload = 3,
73  RMTSimpleRequest_FieldNumber_FillUsername = 4,
74  RMTSimpleRequest_FieldNumber_FillOauthScope = 5,
75 };
76 
77 // Unary request.
78 @interface RMTSimpleRequest : GPBMessage
79 
80 // Desired payload type in the response from the server.
81 // If response_type is RANDOM, server randomly chooses one from other formats.
82 @property(nonatomic, readwrite) RMTPayloadType responseType;
83 
84 // Desired payload size in the response from the server.
85 // If response_type is COMPRESSABLE, this denotes the size before compression.
86 @property(nonatomic, readwrite) int32_t responseSize;
87 
88 // Optional input payload sent along with the request.
89 @property(nonatomic, readwrite) BOOL hasPayload;
90 @property(nonatomic, readwrite, strong) RMTPayload *payload;
91 
92 // Whether SimpleResponse should include username.
93 @property(nonatomic, readwrite) BOOL fillUsername;
94 
95 // Whether SimpleResponse should include OAuth scope.
96 @property(nonatomic, readwrite) BOOL fillOauthScope;
97 
98 @end
99 
100 int32_t RMTSimpleRequest_ResponseType_RawValue(RMTSimpleRequest *message);
101 void SetRMTSimpleRequest_ResponseType_RawValue(RMTSimpleRequest *message, int32_t value);
102 
103 #pragma mark - RMTSimpleResponse
104 
105 typedef GPB_ENUM(RMTSimpleResponse_FieldNumber) {
106  RMTSimpleResponse_FieldNumber_Payload = 1,
107  RMTSimpleResponse_FieldNumber_Username = 2,
108  RMTSimpleResponse_FieldNumber_OauthScope = 3,
109 };
110 
111 // Unary response, as configured by the request.
112 @interface RMTSimpleResponse : GPBMessage
113 
114 // Payload to increase message size.
115 @property(nonatomic, readwrite) BOOL hasPayload;
116 @property(nonatomic, readwrite, strong) RMTPayload *payload;
117 
118 // The user the request came from, for verifying authentication was
119 // successful when the client expected it.
120 @property(nonatomic, readwrite, copy) NSString *username;
121 
122 // OAuth scope.
123 @property(nonatomic, readwrite, copy) NSString *oauthScope;
124 
125 @end
126 
127 #pragma mark - RMTStreamingInputCallRequest
128 
129 typedef GPB_ENUM(RMTStreamingInputCallRequest_FieldNumber) {
130  RMTStreamingInputCallRequest_FieldNumber_Payload = 1,
131 };
132 
133 // Client-streaming request.
134 @interface RMTStreamingInputCallRequest : GPBMessage
135 
136 // Optional input payload sent along with the request.
137 @property(nonatomic, readwrite) BOOL hasPayload;
138 @property(nonatomic, readwrite, strong) RMTPayload *payload;
139 
140 @end
141 
142 #pragma mark - RMTStreamingInputCallResponse
143 
144 typedef GPB_ENUM(RMTStreamingInputCallResponse_FieldNumber) {
145  RMTStreamingInputCallResponse_FieldNumber_AggregatedPayloadSize = 1,
146 };
147 
148 // Client-streaming response.
149 @interface RMTStreamingInputCallResponse : GPBMessage
150 
151 // Aggregated size of payloads received from the client.
152 @property(nonatomic, readwrite) int32_t aggregatedPayloadSize;
153 
154 @end
155 
156 #pragma mark - RMTResponseParameters
157 
158 typedef GPB_ENUM(RMTResponseParameters_FieldNumber) {
159  RMTResponseParameters_FieldNumber_Size = 1,
160  RMTResponseParameters_FieldNumber_IntervalUs = 2,
161 };
162 
163 // Configuration for a particular response.
164 @interface RMTResponseParameters : GPBMessage
165 
166 // Desired payload sizes in responses from the server.
167 // If response_type is COMPRESSABLE, this denotes the size before compression.
168 @property(nonatomic, readwrite) int32_t size;
169 
170 // Desired interval between consecutive responses in the response stream in
171 // microseconds.
172 @property(nonatomic, readwrite) int32_t intervalUs;
173 
174 @end
175 
176 #pragma mark - RMTStreamingOutputCallRequest
177 
178 typedef GPB_ENUM(RMTStreamingOutputCallRequest_FieldNumber) {
179  RMTStreamingOutputCallRequest_FieldNumber_ResponseType = 1,
180  RMTStreamingOutputCallRequest_FieldNumber_ResponseParametersArray = 2,
181  RMTStreamingOutputCallRequest_FieldNumber_Payload = 3,
182 };
183 
184 // Server-streaming request.
185 @interface RMTStreamingOutputCallRequest : GPBMessage
186 
187 // Desired payload type in the response from the server.
188 // If response_type is RANDOM, the payload from each response in the stream
189 // might be of different types. This is to simulate a mixed type of payload
190 // stream.
191 @property(nonatomic, readwrite) RMTPayloadType responseType;
192 
193 // Configuration for each expected response message.
194 // |responseParametersArray| contains |RMTResponseParameters|
195 @property(nonatomic, readwrite, strong) NSMutableArray *responseParametersArray;
196 
197 // Optional input payload sent along with the request.
198 @property(nonatomic, readwrite) BOOL hasPayload;
199 @property(nonatomic, readwrite, strong) RMTPayload *payload;
200 
201 @end
202 
203 int32_t RMTStreamingOutputCallRequest_ResponseType_RawValue(RMTStreamingOutputCallRequest *message);
204 void SetRMTStreamingOutputCallRequest_ResponseType_RawValue(RMTStreamingOutputCallRequest *message, int32_t value);
205 
206 #pragma mark - RMTStreamingOutputCallResponse
207 
208 typedef GPB_ENUM(RMTStreamingOutputCallResponse_FieldNumber) {
209  RMTStreamingOutputCallResponse_FieldNumber_Payload = 1,
210 };
211 
212 // Server-streaming response, as configured by the request and parameters.
213 @interface RMTStreamingOutputCallResponse : GPBMessage
214 
215 // Payload to increase response size.
216 @property(nonatomic, readwrite) BOOL hasPayload;
217 @property(nonatomic, readwrite, strong) RMTPayload *payload;
218 
219 @end
220 
221 CF_EXTERN_C_END
Definition: Messages.pbobjc.h:43
Definition: Messages.pbobjc.h:149
Definition: Messages.pbobjc.h:185
Definition: Messages.pbobjc.h:112
Definition: Messages.pbobjc.h:213
Definition: Messages.pbobjc.h:134
Definition: Messages.pbobjc.h:164
Definition: Messages.pbobjc.h:78
Definition: Messages.pbobjc.h:54