aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/generated_libraries/RouteGuideClient/RouteGuide.pbobjc.m
blob: 16f291a61c7be0841b8203f1736dc9b96b33e5ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: route_guide.proto

#import "GPBProtocolBuffers_RuntimeSupport.h"

#import "RouteGuide.pbobjc.h"

#pragma mark - RGDRouteGuideRoot

@implementation RGDRouteGuideRoot

@end

static GPBFileDescriptor *RGDRouteGuideRoot_FileDescriptor(void) {
  // This is called by +initialize so there is no need to worry
  // about thread safety of the singleton.
  static GPBFileDescriptor *descriptor = NULL;
  if (!descriptor) {
    descriptor = [[GPBFileDescriptor alloc] initWithPackage:@"grpc.example.routeguide"
                                                     syntax:GPBFileSyntaxProto3];
  }
  return descriptor;
}

#pragma mark - RGDPoint

@implementation RGDPoint

@dynamic latitude;
@dynamic longitude;

typedef struct RGDPoint_Storage {
  uint32_t _has_storage_[1];
  int32_t latitude;
  int32_t longitude;
} RGDPoint_Storage;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = NULL;
  if (!descriptor) {
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "latitude",
        .number = RGDPoint_FieldNumber_Latitude,
        .hasIndex = 0,
        .flags = GPBFieldOptional,
        .type = GPBTypeInt32,
        .offset = offsetof(RGDPoint_Storage, latitude),
        .defaultValue.valueInt32 = 0,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
      {
        .name = "longitude",
        .number = RGDPoint_FieldNumber_Longitude,
        .hasIndex = 1,
        .flags = GPBFieldOptional,
        .type = GPBTypeInt32,
        .offset = offsetof(RGDPoint_Storage, longitude),
        .defaultValue.valueInt32 = 0,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
    };
    descriptor = [GPBDescriptor allocDescriptorForClass:[RGDPoint class]
                                              rootClass:[RGDRouteGuideRoot class]
                                                   file:RGDRouteGuideRoot_FileDescriptor()
                                                 fields:fields
                                             fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
                                                 oneofs:NULL
                                             oneofCount:0
                                                  enums:NULL
                                              enumCount:0
                                                 ranges:NULL
                                             rangeCount:0
                                            storageSize:sizeof(RGDPoint_Storage)
                                             wireFormat:NO];
  }
  return descriptor;
}

@end

#pragma mark - RGDRectangle

@implementation RGDRectangle

@dynamic hasLo, lo;
@dynamic hasHi, hi;

typedef struct RGDRectangle_Storage {
  uint32_t _has_storage_[1];
  RGDPoint *lo;
  RGDPoint *hi;
} RGDRectangle_Storage;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = NULL;
  if (!descriptor) {
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "lo",
        .number = RGDRectangle_FieldNumber_Lo,
        .hasIndex = 0,
        .flags = GPBFieldOptional,
        .type = GPBTypeMessage,
        .offset = offsetof(RGDRectangle_Storage, lo),
        .defaultValue.valueMessage = nil,
        .typeSpecific.className = GPBStringifySymbol(RGDPoint),
        .fieldOptions = NULL,
      },
      {
        .name = "hi",
        .number = RGDRectangle_FieldNumber_Hi,
        .hasIndex = 1,
        .flags = GPBFieldOptional,
        .type = GPBTypeMessage,
        .offset = offsetof(RGDRectangle_Storage, hi),
        .defaultValue.valueMessage = nil,
        .typeSpecific.className = GPBStringifySymbol(RGDPoint),
        .fieldOptions = NULL,
      },
    };
    descriptor = [GPBDescriptor allocDescriptorForClass:[RGDRectangle class]
                                              rootClass:[RGDRouteGuideRoot class]
                                                   file:RGDRouteGuideRoot_FileDescriptor()
                                                 fields:fields
                                             fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
                                                 oneofs:NULL
                                             oneofCount:0
                                                  enums:NULL
                                              enumCount:0
                                                 ranges:NULL
                                             rangeCount:0
                                            storageSize:sizeof(RGDRectangle_Storage)
                                             wireFormat:NO];
  }
  return descriptor;
}

@end

#pragma mark - RGDFeature

@implementation RGDFeature

@dynamic name;
@dynamic hasLocation, location;

typedef struct RGDFeature_Storage {
  uint32_t _has_storage_[1];
  NSString *name;
  RGDPoint *location;
} RGDFeature_Storage;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = NULL;
  if (!descriptor) {
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "name",
        .number = RGDFeature_FieldNumber_Name,
        .hasIndex = 0,
        .flags = GPBFieldOptional,
        .type = GPBTypeString,
        .offset = offsetof(RGDFeature_Storage, name),
        .defaultValue.valueString = nil,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
      {
        .name = "location",
        .number = RGDFeature_FieldNumber_Location,
        .hasIndex = 1,
        .flags = GPBFieldOptional,
        .type = GPBTypeMessage,
        .offset = offsetof(RGDFeature_Storage, location),
        .defaultValue.valueMessage = nil,
        .typeSpecific.className = GPBStringifySymbol(RGDPoint),
        .fieldOptions = NULL,
      },
    };
    descriptor = [GPBDescriptor allocDescriptorForClass:[RGDFeature class]
                                              rootClass:[RGDRouteGuideRoot class]
                                                   file:RGDRouteGuideRoot_FileDescriptor()
                                                 fields:fields
                                             fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
                                                 oneofs:NULL
                                             oneofCount:0
                                                  enums:NULL
                                              enumCount:0
                                                 ranges:NULL
                                             rangeCount:0
                                            storageSize:sizeof(RGDFeature_Storage)
                                             wireFormat:NO];
  }
  return descriptor;
}

@end

#pragma mark - RGDRouteNote

@implementation RGDRouteNote

@dynamic hasLocation, location;
@dynamic message;

typedef struct RGDRouteNote_Storage {
  uint32_t _has_storage_[1];
  RGDPoint *location;
  NSString *message;
} RGDRouteNote_Storage;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = NULL;
  if (!descriptor) {
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "location",
        .number = RGDRouteNote_FieldNumber_Location,
        .hasIndex = 0,
        .flags = GPBFieldOptional,
        .type = GPBTypeMessage,
        .offset = offsetof(RGDRouteNote_Storage, location),
        .defaultValue.valueMessage = nil,
        .typeSpecific.className = GPBStringifySymbol(RGDPoint),
        .fieldOptions = NULL,
      },
      {
        .name = "message",
        .number = RGDRouteNote_FieldNumber_Message,
        .hasIndex = 1,
        .flags = GPBFieldOptional,
        .type = GPBTypeString,
        .offset = offsetof(RGDRouteNote_Storage, message),
        .defaultValue.valueString = nil,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
    };
    descriptor = [GPBDescriptor allocDescriptorForClass:[RGDRouteNote class]
                                              rootClass:[RGDRouteGuideRoot class]
                                                   file:RGDRouteGuideRoot_FileDescriptor()
                                                 fields:fields
                                             fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
                                                 oneofs:NULL
                                             oneofCount:0
                                                  enums:NULL
                                              enumCount:0
                                                 ranges:NULL
                                             rangeCount:0
                                            storageSize:sizeof(RGDRouteNote_Storage)
                                             wireFormat:NO];
  }
  return descriptor;
}

@end

#pragma mark - RGDRouteSummary

@implementation RGDRouteSummary

@dynamic pointCount;
@dynamic featureCount;
@dynamic distance;
@dynamic elapsedTime;

typedef struct RGDRouteSummary_Storage {
  uint32_t _has_storage_[1];
  int32_t pointCount;
  int32_t featureCount;
  int32_t distance;
  int32_t elapsedTime;
} RGDRouteSummary_Storage;

// This method is threadsafe because it is initially called
// in +initialize for each subclass.
+ (GPBDescriptor *)descriptor {
  static GPBDescriptor *descriptor = NULL;
  if (!descriptor) {
    static GPBMessageFieldDescription fields[] = {
      {
        .name = "pointCount",
        .number = RGDRouteSummary_FieldNumber_PointCount,
        .hasIndex = 0,
        .flags = GPBFieldOptional,
        .type = GPBTypeInt32,
        .offset = offsetof(RGDRouteSummary_Storage, pointCount),
        .defaultValue.valueInt32 = 0,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
      {
        .name = "featureCount",
        .number = RGDRouteSummary_FieldNumber_FeatureCount,
        .hasIndex = 1,
        .flags = GPBFieldOptional,
        .type = GPBTypeInt32,
        .offset = offsetof(RGDRouteSummary_Storage, featureCount),
        .defaultValue.valueInt32 = 0,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
      {
        .name = "distance",
        .number = RGDRouteSummary_FieldNumber_Distance,
        .hasIndex = 2,
        .flags = GPBFieldOptional,
        .type = GPBTypeInt32,
        .offset = offsetof(RGDRouteSummary_Storage, distance),
        .defaultValue.valueInt32 = 0,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
      {
        .name = "elapsedTime",
        .number = RGDRouteSummary_FieldNumber_ElapsedTime,
        .hasIndex = 3,
        .flags = GPBFieldOptional,
        .type = GPBTypeInt32,
        .offset = offsetof(RGDRouteSummary_Storage, elapsedTime),
        .defaultValue.valueInt32 = 0,
        .typeSpecific.className = NULL,
        .fieldOptions = NULL,
      },
    };
    descriptor = [GPBDescriptor allocDescriptorForClass:[RGDRouteSummary class]
                                              rootClass:[RGDRouteGuideRoot class]
                                                   file:RGDRouteGuideRoot_FileDescriptor()
                                                 fields:fields
                                             fieldCount:sizeof(fields) / sizeof(GPBMessageFieldDescription)
                                                 oneofs:NULL
                                             oneofCount:0
                                                  enums:NULL
                                              enumCount:0
                                                 ranges:NULL
                                             rangeCount:0
                                            storageSize:sizeof(RGDRouteSummary_Storage)
                                             wireFormat:NO];
  }
  return descriptor;
}

@end