|
|
@ -54,7 +54,7 @@ message Rectangle { |
|
|
|
|
|
|
|
|
|
|
|
// A feature names something at a given point. |
|
|
|
// A feature names something at a given point. |
|
|
|
// |
|
|
|
// |
|
|
|
// If a feature could not be named, the name value is blank. |
|
|
|
// If a feature could not be named, the name is empty. |
|
|
|
message Feature { |
|
|
|
message Feature { |
|
|
|
// The name of the feature. |
|
|
|
// The name of the feature. |
|
|
|
optional string name = 1; |
|
|
|
optional string name = 1; |
|
|
@ -65,18 +65,18 @@ message Feature { |
|
|
|
|
|
|
|
|
|
|
|
// A RouteNote is a message sent while at a given point. |
|
|
|
// A RouteNote is a message sent while at a given point. |
|
|
|
message RouteNote { |
|
|
|
message RouteNote { |
|
|
|
// The location at from which the message is sent. |
|
|
|
// The location from which the message is sent. |
|
|
|
optional Point location = 1; |
|
|
|
optional Point location = 1; |
|
|
|
|
|
|
|
|
|
|
|
// The message to be sent |
|
|
|
// The message to be sent. |
|
|
|
optional string message = 2; |
|
|
|
optional string message = 2; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Route summary is the message received in response to a RecordRoute rpc. |
|
|
|
// A RouteSummary is received in response to a RecordRoute rpc. |
|
|
|
// |
|
|
|
// |
|
|
|
// It details the number of individual points received, the number of detected |
|
|
|
// It contains the number of individual points received, the number of |
|
|
|
// features and the total distance covered as the cumulative sum of the |
|
|
|
// detected features, and the total distance covered as the cumulative sum of |
|
|
|
// distance between each point. |
|
|
|
// the distance between each point. |
|
|
|
message RouteSummary { |
|
|
|
message RouteSummary { |
|
|
|
// The number of points received. |
|
|
|
// The number of points received. |
|
|
|
optional int32 point_count = 1; |
|
|
|
optional int32 point_count = 1; |
|
|
@ -115,9 +115,9 @@ service RouteGuide { |
|
|
|
rpc RecordRoute(stream Point) returns (RouteSummary) { |
|
|
|
rpc RecordRoute(stream Point) returns (RouteSummary) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Bidirectional streaming RPC. |
|
|
|
// A Bidirectional streaming RPC. |
|
|
|
// |
|
|
|
// |
|
|
|
// Accepts a streams of RouteNotes sent while a route is being traversed, |
|
|
|
// Accepts a stream of RouteNotes sent while a route is being traversed, |
|
|
|
// while receiving other RouteNotes (e.g. from other users). |
|
|
|
// while receiving other RouteNotes (e.g. from other users). |
|
|
|
rpc RouteChat(stream RouteNote) returns (stream RouteNote) { |
|
|
|
rpc RouteChat(stream RouteNote) returns (stream RouteNote) { |
|
|
|
} |
|
|
|
} |
|
|
|