1. I wanted to bypass autoboxing this way. But i think there is no real difference - JIT will optimize it.
2. I am using objects here because AFAIK there is no support for primitives in protocol buffers.