Change of protocol buffers schema

New schema protocol buffers.
Updated .java and .scala files to new schema.