public void MergeFrom(TaxedReservationQuote other)
 {
     if (other == null)
     {
         return;
     }
     lodgingQuotes_.Add(other.lodgingQuotes_);
     incidentalQuotes_.Add(other.incidentalQuotes_);
     if (other.pretaxLodgingPriceSubtotal_ != null)
     {
         if (pretaxLodgingPriceSubtotal_ == null)
         {
             pretaxLodgingPriceSubtotal_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PretaxLodgingPriceSubtotal.MergeFrom(other.PretaxLodgingPriceSubtotal);
     }
     if (other.pretaxIncidentalPriceSubtotal_ != null)
     {
         if (pretaxIncidentalPriceSubtotal_ == null)
         {
             pretaxIncidentalPriceSubtotal_ = new global::HOLMS.Types.Primitive.MonetaryAmount();
         }
         PretaxIncidentalPriceSubtotal.MergeFrom(other.PretaxIncidentalPriceSubtotal);
     }
     taxAssessments_.Add(other.taxAssessments_);
     if (other.reservation_ != null)
     {
         if (reservation_ == null)
         {
             reservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator();
         }
         Reservation.MergeFrom(other.Reservation);
     }
     reservationTags_.Add(other.reservationTags_);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= lodgingQuotes_.GetHashCode();
            hash ^= incidentalQuotes_.GetHashCode();
            if (pretaxLodgingPriceSubtotal_ != null)
            {
                hash ^= PretaxLodgingPriceSubtotal.GetHashCode();
            }
            if (pretaxIncidentalPriceSubtotal_ != null)
            {
                hash ^= PretaxIncidentalPriceSubtotal.GetHashCode();
            }
            hash ^= taxAssessments_.GetHashCode();
            if (reservation_ != null)
            {
                hash ^= Reservation.GetHashCode();
            }
            hash ^= reservationTags_.GetHashCode();
            return(hash);
        }