Use enum type in pb_protocol_create_message