aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/examples/Sample/RouteGuideClient/RouteGuide.pbobjc.h
blob: 6efaec7f0285455169bcb78bcb7524dd3ed21fd6 (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
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: route_guide.proto

#import "GPBProtocolBuffers.h"

#if GOOGLE_PROTOBUF_OBJC_GEN_VERSION != 30000
#error This file was generated by a different version of protoc-gen-objc which is incompatible with your Protocol Buffer sources.
#endif

CF_EXTERN_C_BEGIN

@class RGDFeature;
@class RGDPoint;
@class RGDRectangle;
@class RGDRouteNote;
@class RGDRouteSummary;


#pragma mark - RGDRouteGuideRoot

@interface RGDRouteGuideRoot : GPBRootObject
@end

#pragma mark - RGDPoint

typedef GPB_ENUM(RGDPoint_FieldNumber) {
  RGDPoint_FieldNumber_Latitude = 1,
  RGDPoint_FieldNumber_Longitude = 2,
};

// Points are represented as latitude-longitude pairs in the E7 representation
// (degrees multiplied by 10**7 and rounded to the nearest integer).
// Latitudes should be in the range +/- 90 degrees and longitude should be in
// the range +/- 180 degrees (inclusive).
@interface RGDPoint : GPBMessage

@property(nonatomic, readwrite) int32_t latitude;

@property(nonatomic, readwrite) int32_t longitude;

@end

#pragma mark - RGDRectangle

typedef GPB_ENUM(RGDRectangle_FieldNumber) {
  RGDRectangle_FieldNumber_Lo = 1,
  RGDRectangle_FieldNumber_Hi = 2,
};

// A latitude-longitude rectangle, represented as two diagonally opposite
// points "lo" and "hi".
@interface RGDRectangle : GPBMessage

// One corner of the rectangle.
@property(nonatomic, readwrite) BOOL hasLo;
@property(nonatomic, readwrite, strong) RGDPoint *lo;

// The other corner of the rectangle.
@property(nonatomic, readwrite) BOOL hasHi;
@property(nonatomic, readwrite, strong) RGDPoint *hi;

@end

#pragma mark - RGDFeature

typedef GPB_ENUM(RGDFeature_FieldNumber) {
  RGDFeature_FieldNumber_Name = 1,
  RGDFeature_FieldNumber_Location = 2,
};

// A feature names something at a given point.
//
// If a feature could not be named, the name is empty.
@interface RGDFeature : GPBMessage

// The name of the feature.
@property(nonatomic, readwrite, copy) NSString *name;

// The point where the feature is detected.
@property(nonatomic, readwrite) BOOL hasLocation;
@property(nonatomic, readwrite, strong) RGDPoint *location;

@end

#pragma mark - RGDRouteNote

typedef GPB_ENUM(RGDRouteNote_FieldNumber) {
  RGDRouteNote_FieldNumber_Location = 1,
  RGDRouteNote_FieldNumber_Message = 2,
};

// A RouteNote is a message sent while at a given point.
@interface RGDRouteNote : GPBMessage

// The location from which the message is sent.
@property(nonatomic, readwrite) BOOL hasLocation;
@property(nonatomic, readwrite, strong) RGDPoint *location;

// The message to be sent.
@property(nonatomic, readwrite, copy) NSString *message;

@end

#pragma mark - RGDRouteSummary

typedef GPB_ENUM(RGDRouteSummary_FieldNumber) {
  RGDRouteSummary_FieldNumber_PointCount = 1,
  RGDRouteSummary_FieldNumber_FeatureCount = 2,
  RGDRouteSummary_FieldNumber_Distance = 3,
  RGDRouteSummary_FieldNumber_ElapsedTime = 4,
};

// A RouteSummary is received in response to a RecordRoute rpc.
//
// It contains the number of individual points received, the number of
// detected features, and the total distance covered as the cumulative sum of
// the distance between each point.
@interface RGDRouteSummary : GPBMessage

// The number of points received.
@property(nonatomic, readwrite) int32_t pointCount;

// The number of known features passed while traversing the route.
@property(nonatomic, readwrite) int32_t featureCount;

// The distance covered in metres.
@property(nonatomic, readwrite) int32_t distance;

// The duration of the traversal in seconds.
@property(nonatomic, readwrite) int32_t elapsedTime;

@end

CF_EXTERN_C_END