public void MergeFrom(ConditionalItems other) { if (other == null) { return; } if (other.PassengerDescription != global::PKFlights.PassengerDescription.Adult) { PassengerDescription = other.PassengerDescription; } if (other.CheckInSource != global::PKFlights.Source.W) { CheckInSource = other.CheckInSource; } if (other.BoardingPassIssuanceSource != global::PKFlights.Source.W) { BoardingPassIssuanceSource = other.BoardingPassIssuanceSource; } if (other.boardingPassIssueDate_ != null) { if (boardingPassIssueDate_ == null) { BoardingPassIssueDate = new global::PKIo.Date(); } BoardingPassIssueDate.MergeFrom(other.BoardingPassIssueDate); } if (other.DocumentType != global::PKFlights.DocType.B) { DocumentType = other.DocumentType; } if (other.BoardingPassIssuer.Length != 0) { BoardingPassIssuer = other.BoardingPassIssuer; } baggageTagNumber_.Add(other.baggageTagNumber_); if (other.SelecteeIndicator != global::PKFlights.SelecteeIndicator.NotSelectee) { SelecteeIndicator = other.SelecteeIndicator; } if (other.InternationalDocVerification != global::PKFlights.InternationalDocVerification.NotRequired) { InternationalDocVerification = other.InternationalDocVerification; } if (other.IdadIndicator != global::PKFlights.IDADIndicator.None) { IdadIndicator = other.IdadIndicator; } if (other.FastTrack != global::PKFlights.FastTrack.N) { FastTrack = other.FastTrack; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (PassengerDescription != global::PKFlights.PassengerDescription.Adult) { hash ^= PassengerDescription.GetHashCode(); } if (CheckInSource != global::PKFlights.Source.W) { hash ^= CheckInSource.GetHashCode(); } if (BoardingPassIssuanceSource != global::PKFlights.Source.W) { hash ^= BoardingPassIssuanceSource.GetHashCode(); } if (boardingPassIssueDate_ != null) { hash ^= BoardingPassIssueDate.GetHashCode(); } if (DocumentType != global::PKFlights.DocType.B) { hash ^= DocumentType.GetHashCode(); } if (BoardingPassIssuer.Length != 0) { hash ^= BoardingPassIssuer.GetHashCode(); } hash ^= baggageTagNumber_.GetHashCode(); if (SelecteeIndicator != global::PKFlights.SelecteeIndicator.NotSelectee) { hash ^= SelecteeIndicator.GetHashCode(); } if (InternationalDocVerification != global::PKFlights.InternationalDocVerification.NotRequired) { hash ^= InternationalDocVerification.GetHashCode(); } if (IdadIndicator != global::PKFlights.IDADIndicator.None) { hash ^= IdadIndicator.GetHashCode(); } if (FastTrack != global::PKFlights.FastTrack.N) { hash ^= FastTrack.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }