Skip to content

Commit ab9857b

Browse files
Add test-case for service that returns google protobuf values
1 parent 2f658df commit ab9857b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
syntax = "proto3";
2+
3+
import "google/protobuf/empty.proto";
4+
import "google/protobuf/struct.proto";
5+
6+
// Tests that imports are generated correctly when returning Google well-known types
7+
8+
service Test {
9+
rpc GetEmpty (RequestMessage) returns (google.protobuf.Empty);
10+
rpc GetStruct (RequestMessage) returns (google.protobuf.Struct);
11+
rpc GetListValue (RequestMessage) returns (google.protobuf.ListValue);
12+
rpc GetValue (RequestMessage) returns (google.protobuf.Value);
13+
}
14+
15+
message RequestMessage {
16+
}

0 commit comments

Comments
 (0)