chrisdew / protobuf

Protocol Buffers for Node.JS
http://code.google.com/p/protobuf-for-node/
Apache License 2.0
234 stars 71 forks source link

How to read enum types and their values? #37

Closed namwkim closed 10 years ago

namwkim commented 10 years ago

var cdmSchema = new Schema(fs.readFileSync('../proto/CommonDimensionProto.desc')); var AppCategory = cdmSchema['com.lge.telepathy.proto.AppCategory'];

AppCategory is a enum class defined in CommonDimensionProto.proto. I can read the enum class? Please help!