Fixed deprecated var and function names.

ProtocolBuffer API had changed, function and variable names are now
renamed to respect theese changes.