I want to make a map option to rpc. I try the code below.

message Ext {
  map<string, string> query = 1;

extend google.protobuf.MethodOptions {
  Ext ext = 10000;

service S {
  rpc method(In) returns (Out) {
    option (ext) = {
      query: {
        "key": "value",

But when I run protoc, it replys 'Error while parsing option value for 
"ext": Expected identifier, got: "key"'.

I tried many ways to set query map value, but all failed. Is there a way to 
do that? How?

Thank you.

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to