allow_alias true

290 views
Skip to first unread message

hy kam

unread,
Sep 27, 2021, 4:55:41 AM9/27/21
to Protocol Buffers
Hi,

I got proto file from other team but they defined as below 
enum Aaa{
  option allow_alias = true;
  MAX_NUMBER = 400;
}

and I got error during compile

"ppp.proto:17:1: "Constants" declares support for enum aliases but no enum values share field numbers. Please remove the unnecessary 'option allow_alias = true;' declaration."

we got proto file from other team so we can fix it directly.
Is there any way ( compile option ? ) we could build it without any change of proto ?


Adam Cozzette

unread,
Sep 28, 2021, 2:34:16 PM9/28/21
to hy kam, Protocol Buffers
No, there is no flag to disable this check.

--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/fcdf5965-e72f-4b09-b8b2-a5f8faf9ed63n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages