Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
grpc_examples
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriele Civitarese
grpc_examples
Commits
4db2957d
Commit
4db2957d
authored
Apr 04, 2019
by
Gabriele Civitarese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing wrong comments
parent
77d85ac5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
ChatService.proto
src/main/proto/ChatService.proto
+1
-9
No files found.
src/main/proto/ChatService.proto
View file @
4db2957d
syntax
=
"proto3"
;
syntax
=
"proto3"
;
package
com
.
example.chat
;
package
com
.
example.chat
;
// Request payload
message
ChatMessage
{
message
ChatMessage
{
// Each message attribute is strongly typed.
// You also must assign a "tag" number.
// Each tag number is unique within the message.
string
from
=
1
;
string
from
=
1
;
// This defines a strongly typed list of String
string
message
=
2
;
string
message
=
2
;
// There are many more basics types, like Enum, Map
// See https://developers.google.com/protocol-buffers/docs/proto3
// for more information.
}
}
// Defining a Service, a Service can have multiple RPC operations
service
ChatService
{
service
ChatService
{
rpc
chat
(
stream
ChatMessage
)
returns
(
stream
ChatMessage
);
rpc
chat
(
stream
ChatMessage
)
returns
(
stream
ChatMessage
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment