updated .proto file
changed some const casts to static casts