Test enum using protobuffer