Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
9ab2c8b5
Commit
9ab2c8b5
authored
10 years ago
by
Tim Emiola
Browse files
Options
Downloads
Patches
Plain Diff
Another pass at the docs
parent
23307f26
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
protos/route_guide.proto
+9
-9
9 additions, 9 deletions
protos/route_guide.proto
with
9 additions
and
9 deletions
protos/route_guide.proto
+
9
−
9
View file @
9ab2c8b5
...
@@ -54,7 +54,7 @@ message Rectangle {
...
@@ -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 {
...
@@ -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
s
ummary is
the message
received in response to a RecordRoute rpc.
//
A
Route
S
ummary is received in response to a RecordRoute rpc.
//
//
// It
de
tai
l
s the number of individual points received, the number of
detected
// It
con
tai
n
s 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 {
...
@@ -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 stream
s
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
)
{
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment