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

xfxyjwf picture xfxyjwf  路  35Comments

kolea2 picture kolea2  路  40Comments

tang3w picture tang3w  路  39Comments

sunpoet picture sunpoet  路  32Comments

liujisi picture liujisi  路  48Comments