gRPC  0.6.0
 All Classes Namespaces Functions Variables Enumerations Properties Pages
RouteGuide.pbobjc.h
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: route_guide.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 RGDFeature;
13 @class RGDPoint;
14 @class RGDRectangle;
15 @class RGDRouteNote;
16 @class RGDRouteSummary;
17 
18 
19 #pragma mark - RGDRouteGuideRoot
20 
21 @interface RGDRouteGuideRoot : GPBRootObject
22 @end
23 
24 #pragma mark - RGDPoint
25 
26 typedef GPB_ENUM(RGDPoint_FieldNumber) {
27  RGDPoint_FieldNumber_Latitude = 1,
28  RGDPoint_FieldNumber_Longitude = 2,
29 };
30 
31 // Points are represented as latitude-longitude pairs in the E7 representation
32 // (degrees multiplied by 10**7 and rounded to the nearest integer).
33 // Latitudes should be in the range +/- 90 degrees and longitude should be in
34 // the range +/- 180 degrees (inclusive).
35 @interface RGDPoint : GPBMessage
36 
37 @property(nonatomic, readwrite) int32_t latitude;
38 
39 @property(nonatomic, readwrite) int32_t longitude;
40 
41 @end
42 
43 #pragma mark - RGDRectangle
44 
45 typedef GPB_ENUM(RGDRectangle_FieldNumber) {
46  RGDRectangle_FieldNumber_Lo = 1,
47  RGDRectangle_FieldNumber_Hi = 2,
48 };
49 
50 // A latitude-longitude rectangle, represented as two diagonally opposite
51 // points "lo" and "hi".
52 @interface RGDRectangle : GPBMessage
53 
54 // One corner of the rectangle.
55 @property(nonatomic, readwrite) BOOL hasLo;
56 @property(nonatomic, readwrite, strong) RGDPoint *lo;
57 
58 // The other corner of the rectangle.
59 @property(nonatomic, readwrite) BOOL hasHi;
60 @property(nonatomic, readwrite, strong) RGDPoint *hi;
61 
62 @end
63 
64 #pragma mark - RGDFeature
65 
66 typedef GPB_ENUM(RGDFeature_FieldNumber) {
67  RGDFeature_FieldNumber_Name = 1,
68  RGDFeature_FieldNumber_Location = 2,
69 };
70 
71 // A feature names something at a given point.
72 //
73 // If a feature could not be named, the name is empty.
74 @interface RGDFeature : GPBMessage
75 
76 // The name of the feature.
77 @property(nonatomic, readwrite, copy) NSString *name;
78 
79 // The point where the feature is detected.
80 @property(nonatomic, readwrite) BOOL hasLocation;
81 @property(nonatomic, readwrite, strong) RGDPoint *location;
82 
83 @end
84 
85 #pragma mark - RGDRouteNote
86 
87 typedef GPB_ENUM(RGDRouteNote_FieldNumber) {
88  RGDRouteNote_FieldNumber_Location = 1,
89  RGDRouteNote_FieldNumber_Message = 2,
90 };
91 
92 // A RouteNote is a message sent while at a given point.
93 @interface RGDRouteNote : GPBMessage
94 
95 // The location from which the message is sent.
96 @property(nonatomic, readwrite) BOOL hasLocation;
97 @property(nonatomic, readwrite, strong) RGDPoint *location;
98 
99 // The message to be sent.
100 @property(nonatomic, readwrite, copy) NSString *message;
101 
102 @end
103 
104 #pragma mark - RGDRouteSummary
105 
106 typedef GPB_ENUM(RGDRouteSummary_FieldNumber) {
107  RGDRouteSummary_FieldNumber_PointCount = 1,
108  RGDRouteSummary_FieldNumber_FeatureCount = 2,
109  RGDRouteSummary_FieldNumber_Distance = 3,
110  RGDRouteSummary_FieldNumber_ElapsedTime = 4,
111 };
112 
113 // A RouteSummary is received in response to a RecordRoute rpc.
114 //
115 // It contains the number of individual points received, the number of
116 // detected features, and the total distance covered as the cumulative sum of
117 // the distance between each point.
118 @interface RGDRouteSummary : GPBMessage
119 
120 // The number of points received.
121 @property(nonatomic, readwrite) int32_t pointCount;
122 
123 // The number of known features passed while traversing the route.
124 @property(nonatomic, readwrite) int32_t featureCount;
125 
126 // The distance covered in metres.
127 @property(nonatomic, readwrite) int32_t distance;
128 
129 // The duration of the traversal in seconds.
130 @property(nonatomic, readwrite) int32_t elapsedTime;
131 
132 @end
133 
134 CF_EXTERN_C_END
Definition: RouteGuide.pbobjc.h:35
Definition: RouteGuide.pbobjc.h:21
Definition: RouteGuide.pbobjc.h:118
Definition: RouteGuide.pbobjc.h:52
Definition: RouteGuide.pbobjc.h:74
Definition: RouteGuide.pbobjc.h:93