I'm trying to use a custom EnumValueOption:

package test;

import "google/protobuf/descriptor.proto";
extend google.protobuf.EnumValueOptions {
  optional string code = 1234;
}

enum ProductType {
  ROCK = 0 [(code) = "R"];
  PAPER = 1 [(code) = "P"];
  SCISSORS = 2 [(code) = "S"];
}


However, this doesn't seem to parse:
test.proto:9:12: Expected ";".
test.proto:10:13: Expected ";".
test.proto:11:16: Expected ";".

Looking at unittest_custom_options.proto, it mentions a TODO for
this.  Are custom EnumValueOptions currently supported?  If not, any
idea when they will be?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to