availability of 'well known types' in proto3 protocol-buffers

Viewed 4126

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?

1 Answers
Related