added protobuf java code