-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set client and server streaming
- Loading branch information
1 parent
56e74cb
commit b6d0542
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test-crates/protobuf-codegen-protoc-test/src/v2/test_stream_pb.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto2"; | ||
|
||
|
||
message Req { | ||
required int32 a = 1; | ||
repeated string b = 2; | ||
} | ||
|
||
message Resp { | ||
required int32 status = 1; | ||
} | ||
|
||
service TestService { | ||
rpc test_client_streaming(stream Req) returns (Resp); | ||
rpc test_server_streaming(Req) returns (stream Resp); | ||
rpc test_bi_streaming(stream Req) returns (stream Resp); | ||
} | ||
|