function anonymous(Writer,types,util ) { return function CountItem$encode(m,w){ if(!w) w=Writer.create() if(m.sportType!=null&&Object.hasOwnProperty.call(m,"sportType")) w.uint32(8).int32(m.sportType) if(m.count!=null&&Object.hasOwnProperty.call(m,"count")) w.uint32(16).int32(m.count) return w } }