public override int GetHashCode() { int hash = 1; if (VehicleId.Length != 0) { hash ^= VehicleId.GetHashCode(); } if (CustomerId.Length != 0) { hash ^= CustomerId.GetHashCode(); } if (Registration.Length != 0) { hash ^= Registration.GetHashCode(); } if (MakeModel.Length != 0) { hash ^= MakeModel.GetHashCode(); } if (MaxSpeed != 0) { hash ^= MaxSpeed.GetHashCode(); } if (MaxTemperature != 0) { hash ^= MaxTemperature.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }