public void MergeFrom(TaxedIncidentalReservationNightlyQuote other) { if (other == null) { return; } if (other.opsdate_ != null) { if (opsdate_ == null) { opsdate_ = new global::HOLMS.Types.Primitive.PbLocalDate(); } Opsdate.MergeFrom(other.Opsdate); } if (other.pretaxIncidentalPrice_ != null) { if (pretaxIncidentalPrice_ == null) { pretaxIncidentalPrice_ = new global::HOLMS.Types.Primitive.MonetaryAmount(); } PretaxIncidentalPrice.MergeFrom(other.PretaxIncidentalPrice); } taxEstimates_.Add(other.taxEstimates_); if (other.incidentalItem_ != null) { if (incidentalItem_ == null) { incidentalItem_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } IncidentalItem.MergeFrom(other.IncidentalItem); } }
public override int GetHashCode() { int hash = 1; if (opsdate_ != null) { hash ^= Opsdate.GetHashCode(); } if (pretaxIncidentalPrice_ != null) { hash ^= PretaxIncidentalPrice.GetHashCode(); } hash ^= taxEstimates_.GetHashCode(); if (incidentalItem_ != null) { hash ^= IncidentalItem.GetHashCode(); } return(hash); }