【发布时间】:2017-05-18 21:47:34
【问题描述】:
我看到 StringValue 是字符串消息的消息包装器,我尝试将其用于:
service SomeService {
// health
rpc HealthCheck(google.protobuf.Empty)
returns (google.protobuf.Empty) {}
// create
rpc CreateSomething(SomeMessageType)
returns (StringValue) {}
}
但是,我从 protoc 收到一条消息,例如:
somefile.proto:30:14: "StringValue" 未定义。
我正在使用 proto3 语法。我错过了什么?
【问题讨论】:
标签: protocol-buffers