public override int GetHashCode() { int hash = 1; if (item_ != null) { hash ^= Item.GetHashCode(); } if (prevDateRange_ != null) { hash ^= PrevDateRange.GetHashCode(); } if (PrevRequestedQuantity != 0) { hash ^= PrevRequestedQuantity.GetHashCode(); } if (newDateRange_ != null) { hash ^= NewDateRange.GetHashCode(); } if (NewRequestedQuantity != 0) { hash ^= NewRequestedQuantity.GetHashCode(); } if (associatedLodgingReservation_ != null) { hash ^= AssociatedLodgingReservation.GetHashCode(); } return(hash); }
public void MergeFrom(ItemHoldUpdateRequest other) { if (other == null) { return; } if (other.item_ != null) { if (item_ == null) { item_ = new global::HOLMS.Types.Supply.IncidentalItems.IncidentalItemIndicator(); } Item.MergeFrom(other.Item); } if (other.prevDateRange_ != null) { if (prevDateRange_ == null) { prevDateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } PrevDateRange.MergeFrom(other.PrevDateRange); } if (other.PrevRequestedQuantity != 0) { PrevRequestedQuantity = other.PrevRequestedQuantity; } if (other.newDateRange_ != null) { if (newDateRange_ == null) { newDateRange_ = new global::HOLMS.Types.Primitive.PbInclusiveOpsdateRange(); } NewDateRange.MergeFrom(other.NewDateRange); } if (other.NewRequestedQuantity != 0) { NewRequestedQuantity = other.NewRequestedQuantity; } if (other.associatedLodgingReservation_ != null) { if (associatedLodgingReservation_ == null) { associatedLodgingReservation_ = new global::HOLMS.Types.Booking.Indicators.ReservationIndicator(); } AssociatedLodgingReservation.MergeFrom(other.AssociatedLodgingReservation); } }