I see that StringValue is the message wrapper for a string message, which I attempt to use in:
service SomeService {
// health
rpc HealthCheck(google.protobuf.Empty)
returns (google.protobuf.Empty) {}
// create
rpc CreateSomething(SomeMessageType)
returns (StringValue) {}
}
However, I get a message from protoc like:
somefile.proto:30:14: "StringValue" is not defined.
I'm using proto3 syntax. What am I missing?
OK.
I needed:import "google/protobuf/wrappers.proto";
and, to use the fully qualified google.protobuf.StringValue
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With