Protobuf: are reserved available in ENUMS?

Created on 4 Aug 2017  路  4Comments  路  Source: protocolbuffers/protobuf

Is it possible to use RESERVED in ENUMS? The proto3 language guide does not tell anything about this.

Most helpful comment

You can't use reserved in enums at the moment. The support was already added in our internal code base though. It missed the integration for 3.4.0 release but should be able to make its way into 3.5.0 release.

All 4 comments

You can't use reserved in enums at the moment. The support was already added in our internal code base though. It missed the integration for 3.4.0 release but should be able to make its way into 3.5.0 release.

This has been released.

I think it would be best if it is explicitly documented in the guides that enum values can also be reserved.
(For both proto2 and proto3 guides.)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dwsutherland picture dwsutherland  路  3Comments

bullyork picture bullyork  路  3Comments

nvarini picture nvarini  路  3Comments

CooperLuan picture CooperLuan  路  3Comments

tbillington picture tbillington  路  3Comments