public override int GetHashCode() { int hash = 1; if (DiscountCode.Length != 0) { hash ^= DiscountCode.GetHashCode(); } if (VoucherCode.Length != 0) { hash ^= VoucherCode.GetHashCode(); } if (Amount != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Amount); } if (ItemName.Length != 0) { hash ^= ItemName.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }