Support using Google's wrapper types as RPC output values

This commit is contained in:
boukeversteegh
2020-05-10 16:34:20 +02:00
parent ce9f492f50
commit 499489f1d3
2 changed files with 53 additions and 18 deletions

View File

@@ -0,0 +1,18 @@
syntax = "proto3";
import "google/protobuf/wrappers.proto";
service Test {
rpc GetInt32 (Input) returns (google.protobuf.Int32Value);
rpc GetAnotherInt32 (Input) returns (google.protobuf.Int32Value);
rpc GetInt64 (Input) returns (google.protobuf.Int64Value);
rpc GetOutput (Input) returns (Output);
}
message Input {
}
message Output {
google.protobuf.Int64Value int64 = 1;
}